@luminix/mui-cms 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ Error generating stack: `+C.message+`
19
19
  @keyframes `.concat(r,` {
20
20
  `).concat(t,`
21
21
  }
22
- `);return s&&s.insertRule(l,0),r},Dd=function(){return Dd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dd.apply(this,arguments)},tB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nB=eB("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),ui=function(e){return Math.random()*e};function rB(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,o=r===void 0?"#000000":r,s=e.speedMultiplier,l=s===void 0?1:s,u=e.cssOverride,c=u===void 0?{}:u,f=e.size,p=f===void 0?15:f,m=e.margin,g=m===void 0?2:m,S=tB(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),x=Dm(p),b=Dm(g),w=parseFloat(x.value.toString())*3+parseFloat(b.value.toString())*6,P=Dd({width:"".concat(w).concat(x.unit),fontSize:0,display:"inline-block"},c),R=function(T){return{display:"inline-block",backgroundColor:o,width:"".concat(Fm(p)),height:"".concat(Fm(p)),margin:Fm(g),borderRadius:"100%",animationFillMode:"both",animation:"".concat(nB," ").concat((T/100+.6)/l,"s ").concat(T/100-.2,"s infinite ease")}};return n?E.createElement("span",Dd({style:P},S,{ref:function(T){T&&T.style.setProperty("width","".concat(w).concat(x.unit),"important")}}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))})):null}const oB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALMUlEQVR4nOyde1BTZ97Hv5AEUbnESwGRCkGCAi9yUZG2oFYqtn3bnV3W1hZ72Vqdam92esGu2m23VWdtd9Z29tJ1t7P+0+ls2213y/0WuVuxaKlUyjUBCgQCYriThISdcwosYoCc5DznnBA+M46B5Dy/Z/LhOc/9OeKxsTHMRElra3iWUrnnYrs6oUGrDQXgMeOHecQJQObuXyJs5Upe81HZqcETmZnQ6nTT3+oLkkqrY31XKe4LDPw03s+vaqY0nMwJyVGptp4uv3SyQauNI5Bv1kkOCcHvtm3lNQ8FLS04mJuH4dHROT8bJJWWHtkSc2yXTFY8/b2bhBiMRqfXCove/rK+/igAZ/azzT5uEglK9yZjuasrb3nIUanwbF4+DCYTk8tMSXL5qfe2b/uNRCSalCCeeEHJeCY376P85uZ9bGeYJI+HhfIq44vaOrxaWAjjLLf+GXD+sr7+eJ9e73s2cef+CSmTpYAqGfYmw1Ukwv4NG3iLf66qCi8XFFgjYxLqO6e++4mfaSE5KlX8+G3Krng+Ohq3LVnCS+z3KyrwZtkFWK/if1DfPeUAE0JOl186ZS91xgS3u7vjYGQEL7F/W3YBf6i4zGaSzuMOIKaatvbSmppKSsxmuIhEnMY0mkw4UlSMz2prWU+bckC5cM5sVO5hPXXChK9ciQflck5j6o1GHC0uISJjAsqFuFytTiAWgQBUJ/DtuLs4vb8OGQx4Pj8f+c0tRONQLsQNWm0I0Sgss0sWgI0+PpzF69Xp8KvMLFzu7CQei3JB9UM8iUdikeeiojiL1TM8jEfT0/HD9R6uQnraVcsqMSAAEV5enMTq0+nweEYmlzJoxJxGswGqE/jGHbGcxGrq7cXT2dmov6HlJN5U7EbIgQ0b4O9J/u56tasLT2RkomdkhHgsc9iFkOWurjgYFUk8TqVGg+T0dAzoDcRjzYRd1CGHN0bD3cWFaIzvu7vpksGnDNhDCQn09MRjYWFEY+Q1NeFFxXkMGviVAXsQ8tKmjZA4kyvIH1+rxrGSElYGCdlA0EKCpFI8sHYtsfQ/vnYNR0tKiaVvDYKuQ17fEgMxodLxSXU1jgtMBoRcQrb6+SFRJmM9XROA98rL8edvK1lPmw0EKUTk5IS37rqT9XRHTSa8pDiP1MZG1tNmC0Hesh5Zvx5By5axmiZVMl4uKBC0DAixhHi4uOCVmM2spjmg1+Pw+fPIa2pmNV0SCE7I3tAQrFy8mLX0boyM4Nm8PJS1tbOWJkkEJcRNIsGhSPaGSDSDQ9iTloZGLfeDhNYiKCGUDCmLa6yWSMT45IEHJn82jZmgZ7aYbVb++UMNPqxkt7UmGCH+Hh44EMHuGis3Fxf6Hwn+/t1V1mVASELeuCMWrmLBZGdWzlRU4Ay7y4AmEcQ3sNnHh0gnkAQnv/4aZ7+7Six9QQg5FsvNTKAtUDXPuxfLicqAEITcKwtAtI8339mYFaqHn1JYhH/V1RGPxasQJ6r3vGkTn1mYE53RSPdjuOpU8irkZ0FBWL9iBZ9ZmJUhgwH7s3NQ2tbGWUzexrJcnJ3xGstDJGxiMJnoksGlDPBZQsYAPJqWTjd1F4lE9DKfRROvxSIsEt38+v8DAxHpzc2arBsjI/T2tK/buR9u4U0I9Rf4Y3+/RZ+lmsUpHJUm9cAAktMzeBtu4b2VNRcrXF3xl507IeFg60Fbfz8eTk2z+A+FBIKcD5nK6W3b4L2U/C6prqEhPJaRwasMCL2EHN64EYmyAOJxanp68HRWNu8yIGQhD64NxCubyfdRvlGr8WRWFu8L5CYQpJB1y5fhve3bice51K6mT14YsmCzP1dwXoe4zLGsx00iwd8SE7FEIiGaj8pODZ7KzhaUDPAhZPe6dVg6y5f97vZtkEmlRPOQpVThkbQ09Ov1RONYA+dCqNvRz+VBZt87FBlBdKUixlcrHszNFVzJmIBzIX7u7nSvezpxq1cjJSaGaOyPr1XTS0eFso7XHJxX6gGenvR07WKxCMOjRvp3q93c8Kd7EiAiuKj6s5oaHC8V3tLR6XBaQhaLxZB5etIb/qO8fpoDoSrxc/fdi+UsLv2ZzpmKCrxaWASTDWeScAWnQqK8vSYXT69fvpz+/0R8HLEheKPJhFcLConNf5OAUyF3+a6efO3jthQPrQtGUnAwsXjHS0qJnrxAAk7rkF1ThkHi/fzwVHg4kTgjo6NIKSrCf+obiKRPEs6EhK1YgeDx2xT9M6HzEQf0euzLysZFtZpI+qThTMjD69cRj9Gn09EjtpWaLuKxSMFJHUL1zKkeOkmGDAa6ZNizDHBVQh4PDSW6rbljcBD7s7NxtaubWAyuIC5kjbs7DhHc9N/S14eHU1PRPjBILAaXEL9lHY2NxTJCp4ZSJeOx9Ix5IwOkS8gv5EG4f+2t41ZsQJWM5LR0tAhglo9NiAlJ8F+DdwlNMl3p6MSBnBx0DQ8TSZ9PiAhJDPDHh4mJRE5guNDWRp/wNmI0sp62EGD9G0sOCflp2Q4BGd+oO/B0ds68lQE2S4j3kiV4Jz4O9xLa51HS2ooD2TmCnVhiC5uFUP2LQ5ER2BceTmwe/LOaGvy6uITpYfd2iU1C7vT1xQcJO+C9dCl7OZrGuaoq+khvR8FqIbuDg+kFCaQOh8H4lOtbDiQD1gpJWLMGv99xt9kWgdFkop8WYOsx4H+trMSpi+U2pWGPMP7z9vfwwJkdO8xeeLmjkz5a1RYooW+WljmkDDAV4gTg/R13Q+q66Jb3MpVKPPTVV4j08rKpdKQUFeHc999bfb29w+iWdX9goNljvq91d+PFfAW9iODREOtOLqdKxuvFxfi8lvzGSiHDSMiBGZ5mc6y4hD6y4h7/Nbjdw51xJqjm7GGFAumNSsbXzjcsFkLVHea2L/+7rh5XNBr6dvZCdDTjDPTqdPRKQns5rYc0FgvZNMMTCf545Qr9/5NhYYjyZrbffNBgoM/K/VajYXTdfMZiIb5ut3b+Kjs1aNBq6RPg3opn9pAe7cgInszMWpAxDYuF6EZvHdAra2/Dibg4PPF/zA46burtpee/G+zoHCuusFiIuS9vb0io2SbwbCi1Wvo2Nd8mltjC4n5IWVsbtCM3P+OVqQyVthd7UtMWZMyCxUJ0RiPOfmf9gV0116/jodRUdA4NWZ2GI8Cop25tP6Fcrcbur1KhWZAxJ4w6hvF+fowD5KhUOKw4P+8nltiCkZCI225jlHhBSwuey1fQzwBcwDIYCZFJLX/kUKZSiRfyFQ4xy8cmjIR4Wfgg4C/q6uiNMrY8RdlRYSRkkWjuj2c2KvFKQaFdbB8TIoxaWXPVBbmqJjyvyF+QYQOMhMzWbC1rbaNPYBs1LciwBUZCanuum/395Y4O+kGMbB7j7agwEmJuzqK1v58+KHKhn8EOjIQU/thC71SaYECvx1NZWbjO01Mx5yOUkD5LPzxoGMXn49uMqZsT1c+o7blBMn+ORq9zkFRazeSKDy5foSeXTly4AEUL2Qe+OxpBUukPzltWrVIwuah7eBh70zPw0dUqcjlzUCgXzvevDfyU6YVV3fa/uVKIUC6c4/38qoKkUuEfkzPPoRxQLuhW1pEtMUfH6+kF+ME07uCnZu8umawkSS4/xXeuHJUkufwk5YB67TQ2Pu5kMBqdnsnN+yi/uXkf3xl0JO7x9//H2cSd+yUiES1ismNI/YJ6I0kuP7Fw++IEU5Jc/s5UGZhaQqaSo1JtPV1+6WSDVsts9dsCFkFV4Ee2xBzbJZMVT3/PrJAJSlpbw7OUyj0X29UJDVptKAAP0pmdp/RRHfBY31WK+wIDP6VaUzN98L8BAAD//6zjBbZXWKjWAAAAAElFTkSuQmCC",iB=()=>(Z.useEffect(()=>(document.body.style.margin="0",()=>{document.body.style.margin=""}),[]),y.jsxs("div",{style:{height:"100vh",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"1rem"},className:"test",children:[y.jsx("img",{src:oB,alt:"Luminix"}),y.jsx(rB,{color:"#1d9798"})]})),cS={booted:!1,router:null},sB=Z.createContext(cS),uS=Z.createContext({form:null});function zo(){const{form:e}=Z.useContext(uS);return e}function Fi(e="default"){const[t,n]=Z.useState({});return Z.useEffect(()=>{const r=vm().bag(e).on("change",({source:o})=>{n(Object.entries(o.all()).reduce((s,[l,u])=>(s[He.camel(l+"Error")]=u,s),{}))});return()=>{r(),vm().clear(e)}},[e]),t}const aB=e=>{const{label:t,className:n,...r}=e,{checkboxProps:o,errorBag:s}=zo(),{[`${He.camel(e.name)}Error`]:l}=Fi(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[y.jsx("input",{className:`luminix-form-input luminix-form-checkbox-input ${n??""}`.trim(),...o(e.name,e.value),...r}),t&&y.jsx("label",{htmlFor:e.id,className:"luminix-form-label luminix-form-checkbox-label",children:t})]}),l&&y.jsx("p",{children:l})]})},lB=e=>{const{label:t,className:n,...r}=e,{datetimeLocalProps:o,errorBag:s}=zo(),{[`${He.camel(e.name)}Error`]:l}=Fi(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-datetime-local-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-datetime-local-input ${n??""}`.trim(),...o(e.name),...r,type:"datetime-local"})]}),l&&y.jsx("p",{className:"luminix-form-error",children:l})]})},cB=e=>{const{subscribe:t,inputProps:n,errorBag:r}=zo();Z.useEffect(()=>t(f=>f.asForm()),[t]);const{label:o,sanitize:s=f=>f.target.files,className:l,...u}=e,{[`${He.camel(e.name)}Error`]:c}=Fi(r);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[o&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:o}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${l??""}`.trim(),...je.omit(n(e.name,s),"value"),...u})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},uB=e=>{const{label:t,options:n,className:r,id:o,...s}=e,{radioProps:l,errorBag:u}=zo(),{[`${He.camel(e.name)}Error`]:c}=Fi(u);return y.jsxs(y.Fragment,{children:[t&&y.jsx(y.Fragment,{children:y.jsx("label",{className:"luminix-form-label luminix-form-radio-label",children:t})}),n.map(({value:f,label:p})=>y.jsxs("p",{children:[y.jsx("input",{id:o?`${o}::${f}`:void 0,className:`luminix-form-input luminix-form-radio-input ${r??""}`.trim(),...l(e.name,f),...s}),y.jsx("label",{htmlFor:o?`${o}::${f}`:void 0,children:p})]},f)),c&&y.jsx("p",{children:c})]})},dB=e=>{const{label:t,options:n,className:r,...o}=e,{selectProps:s,errorBag:l}=zo(),{[`${He.camel(e.name)}Error`]:u}=Fi(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-select-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("select",{className:`luminix-form-input luminix-form-select-input ${r??""}`.trim(),...s(e.name),...o,children:n.map(c=>y.jsx("option",{value:c.value,children:c.label},c.value))})]}),u&&y.jsx("p",{children:u})]})},fB=e=>{const{label:t,type:n,sanitize:r,className:o,...s}=e,{textareaProps:l,errorBag:u}=zo(),{[`${He.camel(e.name)}Error`]:c}=Fi(u);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-textarea-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("textarea",{className:`luminix-form-input luminix-form-textarea-input ${o??""}`.trim(),...l(e.name,r),...s})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},dS=e=>{const{label:t,sanitize:n,className:r,...o}=e,{inputProps:s,errorBag:l}=zo(),{[`${He.camel(e.name)}Error`]:u}=Fi(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${r??""}`.trim(),...s(e.name,n),...o})]}),u&&y.jsx("p",{className:"luminix-form-error",children:u})]})},pB=e=>{const{className:t,...n}=e,r=document.querySelector('meta[name="csrf-token"]'),{subscribe:o}=zo();return Z.useEffect(()=>o(s=>s.withData({_token:r==null?void 0:r.content})),[r==null?void 0:r.content,o]),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${t??""}`.trim(),...n,value:r==null?void 0:r.content,name:"_token",type:"hidden"})};class hB{constructor(){Lm(this,"includesCsrfToken",!1),Lm(this,"manager"),this.manager=new(xa(class{}))}getFormInputComponent(t){return this.thisAny().replaceFormInputComponent(this.switchInputType(t),t)}getDefaultInputsForModel(t,n=[]){const r=t.getType(),o=Un(rc.schema(r).attributes),s=t.fillable.flatMap(l=>this.thisAny().getDefaultInputProps(this.makeFormAttributesFor(l,{attributes:o,confirmed:n,item:t}),{attributes:o,confirmed:n,item:t,key:l}));return this.includesCsrfToken&&s.unshift({type:"csrf"}),this.thisAny()[`selectDefaultInputsFor${He.studly(r)}`](s,t)}ensureFrontendRequestsAreStateful(){this.includesCsrfToken=!0}thisAny(){return this}switchInputType(t){return{select:dB,radio:uB,checkbox:aB,textarea:fB,"datetime-local":lB,file:cB,text:dS,csrf:pB}[t]||dS}makeFormAttributesFor(t,{attributes:n,item:r,confirmed:o}){const s=(l=>{var u;const c=n.where("name",l).first(),f=`luminix-form-${r.getType()}-${r.getKey()||"new"}-${l}`;if(!c)return null;const p=this.thisAny().mapAttributeCastToInputTypes({date:{type:"date"},datetime:{type:"datetime-local"},timestamp:{type:"datetime-local"},hashed:{type:"password",addedAttributes:{autoComplete:"new-password"}},int:{type:"number"},float:{type:"number"},boolean:{type:"checkbox"}},r,c);if(c.cast&&c.cast in p){const{type:g,addedAttributes:S={}}=p[c.cast];return{name:l,type:g,label:He.human(l),id:f,...S}}const m=this.thisAny().mapAttributeTypeToInputTypes({"tinyint(1)":"checkbox",int:"number",float:"number",timestamp:"datetime-local",text:"textarea",tinytext:"textarea",mediumtext:"textarea",longtext:"textarea",date:"date"},r,c);if(c.type&&c.type in m)return{name:l,type:m[c.type],label:He.human(l),id:f};if((u=c.type)!=null&&u.startsWith("enum(")){const g=c.type.match(/enum\((.*)\)/);if(g)return{name:l,type:"select",label:He.human(l),id:f,options:[{label:"-- Select a value --",value:""},...g[1].split(",").map(S=>{const x=S.replace(/['"]+/g,"");return{label:He.human(x.trim()),value:x.trim()}})]}}return{name:l,type:"text",label:He.human(l),id:f}})(t);return o.includes(t)&&s?[s,{...s,name:`${t}_confirmation`,label:`Confirm ${s.label}`,id:`luminix-form-${r.getType()}-${r.getKey()||"new"}-${t}-confirmation`}]:s}uuid(){return Math.random().toString(36).substring(2)}create(t){const n=this.uuid();return t(n),()=>{this.manager.clearReducer(n)}}subscribe(t,n){return this.manager.reducer(t,n)}listen(t,n){return this.manager.getReducer(t).on("change",n)}applyMiddlewares(t,n){return this.manager[t](n)}}const mB=xa(hB);var fS,pS;class gB extends(pS=Td,fS=Symbol.toStringTag,pS){constructor(){super(...arguments),Lm(this,fS,"ReactServiceProvider")}register(){this.app.singleton("forms",()=>new mB)}boot(){this.registerUrlParamReplacementForReactRouter()}registerUrlParamReplacementForReactRouter(){bm.reducer("replaceRouteParams",t=>{const n=t.replace(/^\/+|\/+$/g,""),r=/{([^}]+)}/g;return`/${n.replace(r,":$1")}`})}}const yB=({routes:e,config:t,providers:n,onInit:r,onBooting:o,onBooted:s,onFlushing:l,onFlushed:u,onReady:c,fallbackElement:f=y.jsx(iB,{}),...p})=>{const[m,g]=Z.useState(cS);return Z.useEffect(()=>{const S=_r.withProviders([gB,...n||[]]);return t&&S.withConfiguration(t),r&&S.on("init",r),o&&S.on("booting",o),s&&S.on("booted",s),c&&S.on("ready",c),l&&S.on("flushing",l),u&&S.on("flushed",u),S.on("ready",()=>{const x=bm.domRouterOptions({});g({booted:!0,router:A4(e(S),x)})}),S.create(),()=>{S.down()}},[t,s,o,u,l,r,c,n,e]),y.jsx(sB.Provider,{value:m,children:m.router?y.jsx(D4,{router:m.router,fallbackElement:f,...p}):f})};function hS(e,t){return t[e]()}function vB(e,t={}){const{method:n="get",page:r=1,id:o}=t,[s,l]=Z.useState({loading:!0,error:null}),u=Z.useCallback(()=>{if(l(({meta:f,links:p})=>({loading:!0,error:null,meta:f,links:p})),!e)return;const c=hS(n,{get:()=>[{page:r,replaceLinks:!0}],all:()=>[],first:()=>[],find:()=>[o]});if(!c){$d().error(`useQuery: method '${n}' is not supported`);return}return e[n](...c).then(f=>{const p=hS(n,{get:()=>f.data,all:()=>f,first:()=>f?Un([f]):null,find:()=>f?Un([f]):null});l({loading:!1,error:null,data:p??void 0,...n==="get"?f:void 0})}).catch(f=>{l({loading:!1,error:f}),$d().error(f)}),()=>{l({loading:!0,error:null})}},[e,r,n,o]);return Z.useEffect(u,[u]),{...s,refresh:u}}function bB(e){const[t,n]=So(),[r,o]=Z.useState(null),s=t.has("page")?Number(t.get("page")):1;Z.useEffect(()=>(o(e().include(t)),()=>{o(null)}),[t,e]);const l=vB(r,{page:s}),{meta:{current_page:u,last_page:c}={}}=l;return Z.useEffect(()=>{u&&c&&u>c&&n(f=>(f.set("page",c.toString()),f),{replace:!0})},[u,c,n]),l}const mS=Z.createContext({refresh:()=>{},loading:!1,error:new Error("Trying to access QueryContext outside of QueryProvider")}),xB=({factory:e,children:t})=>{const n=bB(e);return y.jsx(mS.Provider,{value:n,children:t})};class wB{getFacadeAccessor(){return"forms"}}const Bi=xo(wB,_r);function SB(e,t){if(X1(e)){const n=Object.entries(e.json("errors")).reduce((r,[o,s])=>(r[o]=s.join(", "),r),{});vm().set(n,t)}}function gS(e){return e}const CB=gm.throttle((...e)=>{$d().debug(...e)},1e3);function EB(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u=gS,tap:c=gS,preventDefault:f=!0,errorBag:p="default",method:m,autoSave:g=!1,debounce:S=1e3,debug:x=!1}=e,b=Z.useRef(),[w,P]=Z.useState(null);Z.useEffect(()=>Bi.create(D=>P(D)),[]);const R=Z.useCallback(D=>w?Bi.applyMiddlewares(w,D):D,[w]),[T,A]=Z.useState(t),[$,O]=Z.useState(!1),_=Z.useCallback(gm.debounce(D=>{var F;g&&((F=b.current)==null||F.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},S),[S,g]);Z.useEffect(()=>{_(T)},[_,T]),Z.useEffect(()=>{if(w&&x)return Bi.listen(w,D=>{$d().debug(`Form middleware stack changed to ${D.items.length} items:`,D.items)})},[w,x]);const N=Z.useCallback(D=>w?Bi.subscribe(w,D):()=>{},[w]);return{...Z.useMemo(()=>{const D=(G,W)=>{A(M=>{const q=G==="."?W:Lh.produce(M,se=>{je.set(se,G,W)});return r&&r(q),x&&CB("Form data changed",{form:b.current,path:G,value:W,data:q,prev:M}),q})},F=(G,W=M=>M.target.value)=>({name:G,value:je.get(T,G,"")??"",onChange:M=>{D(G,W(M))}}),K=G=>({name:G,value:(()=>{const W=je.get(T,G);return W?ec.toDateTimeLocal(W):""})(),onChange:W=>{const{value:M}=W.target;D(G,M?new Date(M).toISOString():null)}}),Y=G=>({name:G,value:je.get(T,G,"")??"",onChange:W=>{D(G,W.target.value)}}),J=(G,W)=>{const M=typeof W<"u"&&G.endsWith("[]"),q=M?G.replace(/\[\]$/,""):G,se=M?je.get(T,q,[])??[]:je.get(T,q);return{name:G,checked:M?se.includes(W):!!se,onChange:L=>{if(M){L.target.checked?D(q,[...se,W].flat()):D(q,se.filter(ie=>ie!==W));return}D(q,L.target.checked)},value:W}},U=(G,W)=>({name:G,value:W,checked:je.get(T,G)===W,onChange:M=>{D(G,M.target.value)}}),oe=async G=>{G.preventDefault();try{O(!0);let W=!0;if(n&&(W=await n(T)),W!==!1&&l){const M=R(tF.getClient()),q=await c(M)[m??"get"](l,u(T));q.successful()&&s?s(q):q.failed()&&(SB(q,p),o&&o(q))}}catch(W){o&&o(W)}finally{O(!1)}};return{data:T,setProp:D,formProps:()=>({onSubmit:f?oe:void 0,action:l,method:m==null?void 0:m.toUpperCase(),ref:b}),inputProps:F,textareaProps:F,selectProps:Y,checkboxProps:J,radioProps:U,datetimeLocalProps:K,isSubmitting:$,form:b.current,errorBag:p,...Bi.expandUseFormProps({},T)}},[T,r,$,n,l,m,x,u,s,p,o,f,c,R]),subscribe:N,applyMiddlewares:R}}function Fd(e){const t=Z.useMemo(()=>Bi.getFormInputComponent(e.type),[e.type]),{errorBag:n}=zo(),{[`${He.camel(e.name)}Error`]:r}=Fi(n);return y.jsx("div",{className:`luminix-form-control luminix-form-${e.type}-control ${r?"luminix-form-control-error":""}`,children:y.jsx(t,{...e})})}Fd.displayName="Input";function RB(e,t){const{initialValues:n,onSubmit:r,onChange:o,onError:s,onSuccess:l,action:u,transformPayload:c,preventDefault:f=!0,errorBag:p,method:m,children:g,autoSave:S,debounce:x,debug:b,className:w,tap:P,...R}=e,T=EB({initialValues:n,onSubmit:r,onChange:o,onError:s,onSuccess:l,action:u,transformPayload:c,preventDefault:f,errorBag:p,method:m,autoSave:S,debounce:x,debug:b,tap:P});Z.useImperativeHandle(t,()=>({applyMiddlewares:T.applyMiddlewares}),[T.applyMiddlewares]);const{data:A,...$}=T;return y.jsx(uS.Provider,{value:{form:T},children:y.jsx("form",{className:`luminix-form ${w||""}`.trim(),...R,...T.formProps(),children:typeof g=="function"?g(A,$):g})})}const yS=Z.forwardRef(RB);yS.Input=Fd;const Bm=Z.createContext({item:null});function kB(){const{item:e}=Z.useContext(Bm);return e}function vS({confirmed:e=[]}){const t=kB();return Z.useMemo(()=>Bi.getDefaultInputsForModel(t,e).filter(Boolean).map(({key:n,...r})=>y.jsx(Fd,{...r},n??r.name)),[t,...e])}function zm({children:e,className:t,...n}){return y.jsx("button",{type:"submit",className:`luminix-form-submit ${t??""}`.trim(),...n,children:e})}zm.displayName="Submit";const PB=()=>({});function Um(){const{item:e}=Z.useContext(Bm),{setProp:t}=zo();return Z.useEffect(()=>e.on("save",()=>{t(".",e.toJson())}),[e,t]),null}function Bd({item:e,children:t,onSubmit:n,onSuccess:r,onError:o,getSaveOptions:s=PB,hideSubmit:l=!1,submitText:u="Submit",confirmed:c=[],...f}){const p=e.getRouteForSave(),m=Z.useMemo(()=>typeof c=="string"?[c]:c,[c]),g=Z.useRef({applyMiddlewares:x=>x}),S=Z.useCallback(async x=>{let b=!0;if(n&&(b=await n(x)),e.fill(x),b!==!1){const{additionalPayload:w,...P}=s(x),R={additionalPayload:{...w,...je.pick(x,...m.map(T=>`${T}_confirmation`))},...P};e.save(R,g.current.applyMiddlewares).then(T=>{r&&T&&r(T)}).catch(o)}return!1},[e,n,r,o,s,m]);return y.jsx(Bm.Provider,{value:{item:e},children:y.jsx(yS,{ref:g,initialValues:e.toJson(),onSubmit:S,action:Pw().url(p),method:Pw().methods(p)[0],errorBag:e.getErrorBag(e.exists?"update":"store"),...f,children:(x,b)=>t?typeof t=="function"?y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),t(x,b)]}):y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),t]}):y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),y.jsx(vS,{confirmed:m}),!l&&y.jsx(zm,{style:{marginTop:"1rem"},children:u})]})})})}Bd.Input=Fd,Bd.DefaultInputs=vS,Bd.Submit=zm;function Wm(e,t){const[n,r]=Z.useState(t?t(e.collect()):e.collect()),o=Z.useRef(!1);return Z.useEffect(()=>{o.current=!0},[]),Z.useEffect(()=>(o.current?o.current=!1:r(t?t(e.collect()):e.collect()),e.on("change",({items:s})=>{r(()=>t?t(new zn(s)):new zn(s))})),[e,t]),n}const TB=e=>e.pluck("callback");function Hm(e,t,n,...r){const o=Wm(e.getReducer(t),TB);return Z.useMemo(()=>Lh.isDraftable(n)?Lh.produce(n,s=>o.reduce((l,u)=>u(l,...r),s)):o.reduce((s,l)=>l(s,...r),n),[o,n,...r])}function hc(){return Z.useContext(mS)}function di(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const OB=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),Ra="$$material";function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function bS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $B=/^((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|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)-.*))$/,AB=bS(function(e){return $B.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jB=!1;function _B(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function MB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var IB=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!jB:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(MB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=_B(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Qn="-ms-",zd="-moz-",Ut="-webkit-",xS="comm",Vm="rule",Km="decl",NB="@import",wS="@keyframes",LB="@layer",DB=Math.abs,Ud=String.fromCharCode,FB=Object.assign;function BB(e,t){return Wn(e,0)^45?(((t<<2^Wn(e,0))<<2^Wn(e,1))<<2^Wn(e,2))<<2^Wn(e,3):0}function SS(e){return e.trim()}function zB(e,t){return(e=t.exec(e))?e[0]:e}function Wt(e,t,n){return e.replace(t,n)}function Gm(e,t){return e.indexOf(t)}function Wn(e,t){return e.charCodeAt(t)|0}function mc(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function qm(e){return e.length}function Wd(e,t){return t.push(e),e}function UB(e,t){return e.map(t).join("")}var Hd=1,ka=1,CS=0,yr=0,Pn=0,Pa="";function Vd(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Hd,column:ka,length:l,return:""}}function gc(e,t){return FB(Vd("",null,null,"",null,null,0),e,{length:-e.length},t)}function WB(){return Pn}function HB(){return Pn=yr>0?Wn(Pa,--yr):0,ka--,Pn===10&&(ka=1,Hd--),Pn}function Ir(){return Pn=yr<CS?Wn(Pa,yr++):0,ka++,Pn===10&&(ka=1,Hd++),Pn}function Wo(){return Wn(Pa,yr)}function Kd(){return yr}function yc(e,t){return mc(Pa,e,t)}function vc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ES(e){return Hd=ka=1,CS=Uo(Pa=e),yr=0,[]}function RS(e){return Pa="",e}function Gd(e){return SS(yc(yr-1,Qm(e===91?e+2:e===40?e+1:e)))}function VB(e){for(;(Pn=Wo())&&Pn<33;)Ir();return vc(e)>2||vc(Pn)>3?"":" "}function KB(e,t){for(;--t&&Ir()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return yc(e,Kd()+(t<6&&Wo()==32&&Ir()==32))}function Qm(e){for(;Ir();)switch(Pn){case e:return yr;case 34:case 39:e!==34&&e!==39&&Qm(Pn);break;case 40:e===41&&Qm(e);break;case 92:Ir();break}return yr}function GB(e,t){for(;Ir()&&e+Pn!==57;)if(e+Pn===84&&Wo()===47)break;return"/*"+yc(t,yr-1)+"*"+Ud(e===47?e:Ir())}function qB(e){for(;!vc(Wo());)Ir();return yc(e,yr)}function QB(e){return RS(qd("",null,null,null,[""],e=ES(e),0,[0],e))}function qd(e,t,n,r,o,s,l,u,c){for(var f=0,p=0,m=l,g=0,S=0,x=0,b=1,w=1,P=1,R=0,T="",A=o,$=s,O=r,_=T;w;)switch(x=R,R=Ir()){case 40:if(x!=108&&Wn(_,m-1)==58){Gm(_+=Wt(Gd(R),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:_+=Gd(R);break;case 9:case 10:case 13:case 32:_+=VB(x);break;case 92:_+=KB(Kd()-1,7);continue;case 47:switch(Wo()){case 42:case 47:Wd(YB(GB(Ir(),Kd()),t,n),c);break;default:_+="/"}break;case 123*b:u[f++]=Uo(_)*P;case 125*b:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+p:P==-1&&(_=Wt(_,/\f/g,"")),S>0&&Uo(_)-m&&Wd(S>32?PS(_+";",r,n,m-1):PS(Wt(_," ","")+";",r,n,m-2),c);break;case 59:_+=";";default:if(Wd(O=kS(_,t,n,f,p,o,u,T,A=[],$=[],m),s),R===123)if(p===0)qd(_,t,O,O,A,s,m,u,$);else switch(g===99&&Wn(_,3)===110?100:g){case 100:case 108:case 109:case 115:qd(e,O,O,r&&Wd(kS(e,O,O,0,0,o,u,T,o,A=[],m),$),o,$,m,u,r?A:$);break;default:qd(_,O,O,O,[""],$,0,u,$)}}f=p=S=0,b=P=1,T=_="",m=l;break;case 58:m=1+Uo(_),S=x;default:if(b<1){if(R==123)--b;else if(R==125&&b++==0&&HB()==125)continue}switch(_+=Ud(R),R*b){case 38:P=p>0?1:(_+="\f",-1);break;case 44:u[f++]=(Uo(_)-1)*P,P=1;break;case 64:Wo()===45&&(_+=Gd(Ir())),g=Wo(),p=m=Uo(T=_+=qB(Kd())),R++;break;case 45:x===45&&Uo(_)==2&&(b=0)}}return s}function kS(e,t,n,r,o,s,l,u,c,f,p){for(var m=o-1,g=o===0?s:[""],S=qm(g),x=0,b=0,w=0;x<r;++x)for(var P=0,R=mc(e,m+1,m=DB(b=l[x])),T=e;P<S;++P)(T=SS(b>0?g[P]+" "+R:Wt(R,/&\f/g,g[P])))&&(c[w++]=T);return Vd(e,t,n,o===0?Vm:u,c,f,p)}function YB(e,t,n){return Vd(e,t,n,xS,Ud(WB()),mc(e,2,-2),0)}function PS(e,t,n,r){return Vd(e,t,n,Km,mc(e,0,r),mc(e,r+1,-1),r)}function Ta(e,t){for(var n="",r=qm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function XB(e,t,n,r){switch(e.type){case LB:if(e.children.length)break;case NB:case Km:return e.return=e.return||e.value;case xS:return"";case wS:return e.return=e.value+"{"+Ta(e.children,r)+"}";case Vm:e.value=e.props.join(",")}return Uo(n=Ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function JB(e){var t=qm(e);return function(n,r,o,s){for(var l="",u=0;u<t;u++)l+=e[u](n,r,o,s)||"";return l}}function ZB(e){return function(t){t.root||(t=t.return)&&e(t)}}var e5=function(t,n,r){for(var o=0,s=0;o=s,s=Wo(),o===38&&s===12&&(n[r]=1),!vc(s);)Ir();return yc(t,yr)},t5=function(t,n){var r=-1,o=44;do switch(vc(o)){case 0:o===38&&Wo()===12&&(n[r]=1),t[r]+=e5(yr-1,n,r);break;case 2:t[r]+=Gd(o);break;case 4:if(o===44){t[++r]=Wo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ud(o)}while(o=Ir());return t},n5=function(t,n){return RS(t5(ES(t),n))},TS=new WeakMap,r5=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!TS.get(r))&&!o){TS.set(t,!0);for(var s=[],l=n5(n,s),u=r.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=s[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},o5=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OS(e,t){switch(BB(e,t)){case 5103:return Ut+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+zd+e+Qn+e+e;case 6828:case 4268:return Ut+e+Qn+e+e;case 6165:return Ut+e+Qn+"flex-"+e+e;case 5187:return Ut+e+Wt(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+Qn+"flex-$1$2")+e;case 5443:return Ut+e+Qn+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ut+e+Qn+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+Qn+Wt(e,"shrink","negative")+e;case 5292:return Ut+e+Qn+Wt(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+Wt(e,"-grow","")+Ut+e+Qn+Wt(e,"grow","positive")+e;case 4554:return Ut+Wt(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+Qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ut+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(Wn(e,t+1)){case 109:if(Wn(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+zd+(Wn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gm(e,"stretch")?OS(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wn(e,t+1)!==115)break;case 6444:switch(Wn(e,Uo(e)-3-(~Gm(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ut)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(Wn(e,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+Qn+"$2box$3")+e}break;case 5936:switch(Wn(e,t+11)){case 114:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+Qn+e+e}return e}var i5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Km:t.return=OS(t.value,t.length);break;case wS:return Ta([gc(t,{value:Wt(t.value,"@","@"+Ut)})],o);case Vm:if(t.length)return UB(t.props,function(s){switch(zB(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ta([gc(t,{props:[Wt(s,/:(read-\w+)/,":"+zd+"$1")]})],o);case"::placeholder":return Ta([gc(t,{props:[Wt(s,/:(plac\w+)/,":"+Ut+"input-$1")]}),gc(t,{props:[Wt(s,/:(plac\w+)/,":"+zd+"$1")]}),gc(t,{props:[Wt(s,/:(plac\w+)/,Qn+"input-$1")]})],o)}return""})}},s5=[i5],$S=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(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||s5,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),P=1;P<w.length;P++)s[w[P]]=!0;u.push(b)});var c,f=[r5,o5];{var p,m=[XB,ZB(function(b){p.insert(b)})],g=JB(f.concat(o,m)),S=function(w){return Ta(QB(w),g)};c=function(w,P,R,T){p=R,S(w?w+"{"+P.styles+"}":P.styles),T&&(x.inserted[P.name]=!0)}}var x={key:n,sheet:new IB({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(u),x},AS={exports:{}},Vt={};var jS;function a5(){if(jS)return Vt;jS=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,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function T($){if(typeof $=="object"&&$!==null){var O=$.$$typeof;switch(O){case t:switch($=$.type,$){case c:case f:case r:case s:case o:case m:return $;default:switch($=$&&$.$$typeof,$){case u:case p:case x:case S:case l:return $;default:return O}}case n:return O}}}function A($){return T($)===f}return Vt.AsyncMode=c,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=l,Vt.Element=t,Vt.ForwardRef=p,Vt.Fragment=r,Vt.Lazy=x,Vt.Memo=S,Vt.Portal=n,Vt.Profiler=s,Vt.StrictMode=o,Vt.Suspense=m,Vt.isAsyncMode=function($){return A($)||T($)===c},Vt.isConcurrentMode=A,Vt.isContextConsumer=function($){return T($)===u},Vt.isContextProvider=function($){return T($)===l},Vt.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Vt.isForwardRef=function($){return T($)===p},Vt.isFragment=function($){return T($)===r},Vt.isLazy=function($){return T($)===x},Vt.isMemo=function($){return T($)===S},Vt.isPortal=function($){return T($)===n},Vt.isProfiler=function($){return T($)===s},Vt.isStrictMode=function($){return T($)===o},Vt.isSuspense=function($){return T($)===m},Vt.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===s||$===o||$===m||$===g||typeof $=="object"&&$!==null&&($.$$typeof===x||$.$$typeof===S||$.$$typeof===l||$.$$typeof===u||$.$$typeof===p||$.$$typeof===w||$.$$typeof===P||$.$$typeof===R||$.$$typeof===b)},Vt.typeOf=T,Vt}AS.exports=a5();var l5=AS.exports,_S=l5,c5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MS={};MS[_S.ForwardRef]=c5,MS[_S.Memo]=u5;var d5=!0;function f5(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var IS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||d5===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},NS=function(t,n,r){IS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function p5(e){for(var t=0,n,r=0,o=e.length;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 h5={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,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},m5=!1,g5=/[A-Z]|^ms/g,y5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LS=function(t){return t.charCodeAt(1)===45},DS=function(t){return t!=null&&typeof t!="boolean"},Ym=bS(function(e){return LS(e)?e:e.replace(g5,"-$&").toLowerCase()}),FS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(y5,function(r,o,s){return Ho={name:o,styles:s,next:Ho},o})}return h5[t]!==1&&!LS(t)&&typeof n=="number"&&n!==0?n+"px":n},v5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bc(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 Ho={name:o.name,styles:o.styles,next:Ho},o.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Ho={name:l.name,styles:l.styles,next:Ho},l=l.next;var u=s.styles+";";return u}return b5(e,t,n)}case"function":{if(e!==void 0){var c=Ho,f=n(e);return Ho=c,bc(e,t,f)}break}}var p=n;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function b5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=bc(e,t,n[o])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?r+=s+"{"+t[u]+"}":DS(u)&&(r+=Ym(s)+":"+FS(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&m5)throw new Error(v5);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)DS(l[c])&&(r+=Ym(s)+":"+FS(s,l[c])+";");else{var f=bc(e,t,l);switch(s){case"animation":case"animationName":{r+=Ym(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var BS=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ho;function Xm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ho=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=bc(n,t,s);else{var l=s;o+=l[0]}for(var u=1;u<e.length;u++)if(o+=bc(n,t,e[u]),r){var c=s;o+=c[u]}BS.lastIndex=0;for(var f="",p;(p=BS.exec(o))!==null;)f+="-"+p[1];var m=p5(o)+f;return{name:m,styles:o,next:Ho}}var x5=function(t){return t()},zS=Wu.useInsertionEffect?Wu.useInsertionEffect:!1,w5=zS||x5,US=zS||E.useLayoutEffect,WS=E.createContext(typeof HTMLElement<"u"?$S({key:"css"}):null),S5=WS.Provider,HS=function(t){return E.forwardRef(function(n,r){var o=E.useContext(WS);return t(n,o,r)})},xc=E.createContext({}),Jm={exports:{}},VS;function KS(){return VS||(VS=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jm)),Jm.exports}KS();var C5=HS(function(e,t){var n=e.styles,r=Xm([n],void 0,E.useContext(xc)),o=E.useRef();return US(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",s),l.hydrate([c])),o.current=[l,u],function(){l.flush()}},[t]),US(function(){var s=o.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(r.next!==void 0&&NS(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xm(t)}var zi=function(){var t=Oa.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},E5=AB,R5=function(t){return t!=="theme"},GS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?E5:R5},qS=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},k5=!1,P5=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return IS(n,r,o),w5(function(){return NS(n,r,o)}),null},T5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=qS(t,n,r),c=u||GS(o),f=!c("as");return function(){var p=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{m.push(p[0][0]);for(var g=p.length,S=1;S<g;S++)m.push(p[S],p[0][S])}var x=HS(function(b,w,P){var R=f&&b.as||o,T="",A=[],$=b;if(b.theme==null){$={};for(var O in b)$[O]=b[O];$.theme=E.useContext(xc)}typeof b.className=="string"?T=f5(w.registered,A,b.className):b.className!=null&&(T=b.className+" ");var _=Xm(m.concat(A),w.registered,$);T+=w.key+"-"+_.name,l!==void 0&&(T+=" "+l);var N=f&&u===void 0?GS(R):c,D={};for(var F in b)f&&F==="as"||N(F)&&(D[F]=b[F]);return D.className=T,P&&(D.ref=P),E.createElement(E.Fragment,null,E.createElement(P5,{cache:w,serialized:_,isStringTag:typeof R=="string"}),E.createElement(R,D))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=m,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&k5?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(b,w){return e(b,k({},n,w,{shouldForwardProp:qS(x,w,!0)})).apply(void 0,m)},x}},O5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zm=T5.bind();O5.forEach(function(e){Zm[e]=Zm(e)});let eg;typeof document=="object"&&(eg=$S({key:"css",prepend:!0}));function $5(e){const{injectFirst:t,children:n}=e;return t&&eg?y.jsx(S5,{value:eg,children:n}):n}function A5(e){return e==null||Object.keys(e).length===0}function QS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(A5(o)?n:o):t;return y.jsx(C5,{styles:r})}function tg(e,t){return Zm(e,t)}const YS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:QS,StyledEngineProvider:$5,ThemeContext:xc,css:Oa,default:tg,internal_processStyles:YS,keyframes:zi},Symbol.toStringTag,{value:"Module"}));function fi(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 XS(e){if(!fi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=XS(e[n])}),t}function nr(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return fi(e)&&fi(t)&&Object.keys(t).forEach(o=>{fi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fi(e[o])?r[o]=nr(e[o],t[o],n):n.clone?r[o]=fi(t[o])?XS(t[o]):t[o]:r[o]=t[o]}),r}const _5=Object.freeze(Object.defineProperty({__proto__:null,default:nr,isPlainObject:fi},Symbol.toStringTag,{value:"Module"})),M5=["values","unit","step"],I5=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)=>k({},n,{[r.key]:r.val}),{})};function JS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ge(e,M5),s=I5(t),l=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function f(g,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function p(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):u(g)}function m(g){const S=l.indexOf(g);return S===0?u(l[1]):S===l.length-1?c(l[S]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return k({keys:l,values:s,up:u,down:c,between:f,only:p,not:m,unit:n},o)}const N5={borderRadius:4};function wc(e,t){return t?nr(e,t,{clone:!1}):e}const ng={xs:0,sm:600,md:900,lg:1200,xl:1536},ZS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ng[e]}px)`};function Co(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ZS;return t.reduce((l,u,c)=>(l[s.up(s.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const s=r.breakpoints||ZS;return Object.keys(t).reduce((l,u)=>{if(Object.keys(s.values||ng).indexOf(u)!==-1){const c=s.up(u);l[c]=n(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return n(t)}function eC(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function tC(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function L5(e,...t){const n=eC(e),r=[n,...t].reduce((o,s)=>nr(o,s),{});return tC(Object.keys(n),r)}function D5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function rg({values:e,breakpoints:t,base:n}){const r=n||D5(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((l,u,c)=>(Array.isArray(e)?(l[u]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[s],s=u):l[u]=e,l),{})}function le(e){if(typeof e!="string")throw new Error(di(7));return e.charAt(0).toUpperCase()+e.slice(1)}const F5=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"}));function $a(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Qd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=$a(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=$a(c,r)||{};return Co(l,u,m=>{let g=Qd(f,o,m);return m===g&&typeof m=="string"&&(g=Qd(f,o,`${t}${m==="default"?"":le(m)}`,m)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function B5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const z5={m:"margin",p:"padding"},U5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},W5=B5(e=>{if(e.length>2)if(nC[e])e=nC[e];else return[e];const[t,n]=e.split(""),r=z5[t],o=U5[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),og=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ig=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...og,...ig];function Sc(e,t,n,r){var o;const s=(o=$a(e,t,!1))!=null?o:n;return typeof s=="number"?l=>typeof l=="string"?l:s*l:Array.isArray(s)?l=>typeof l=="string"?l:s[l]:typeof s=="function"?s:()=>{}}function sg(e){return Sc(e,"spacing",8)}function Ls(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function H5(e,t){return n=>e.reduce((r,o)=>(r[o]=Ls(t,n),r),{})}function V5(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=W5(n),s=H5(o,r),l=e[n];return Co(e,l,s)}function rC(e,t){const n=sg(e.theme);return Object.keys(e).map(r=>V5(e,t,r,n)).reduce(wc,{})}function yn(e){return rC(e,og)}yn.propTypes={},yn.filterProps=og;function vn(e){return rC(e,ig)}vn.propTypes={},vn.filterProps=ig;function K5(e=8){if(e.mui)return e;const t=sg({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Yd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?wc(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function eo(e){return typeof e!="number"?e:`${e}px solid`}function to(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const G5=to("border",eo),q5=to("borderTop",eo),Q5=to("borderRight",eo),Y5=to("borderBottom",eo),X5=to("borderLeft",eo),J5=to("borderColor"),Z5=to("borderTopColor"),ez=to("borderRightColor"),tz=to("borderBottomColor"),nz=to("borderLeftColor"),rz=to("outline",eo),oz=to("outlineColor"),Xd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ls(t,r)});return Co(e,e.borderRadius,n)}return null};Xd.propTypes={},Xd.filterProps=["borderRadius"],Yd(G5,q5,Q5,Y5,X5,J5,Z5,ez,tz,nz,Xd,rz,oz);const Jd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({gap:Ls(t,r)});return Co(e,e.gap,n)}return null};Jd.propTypes={},Jd.filterProps=["gap"];const Zd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({columnGap:Ls(t,r)});return Co(e,e.columnGap,n)}return null};Zd.propTypes={},Zd.filterProps=["columnGap"];const ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({rowGap:Ls(t,r)});return Co(e,e.rowGap,n)}return null};ef.propTypes={},ef.filterProps=["rowGap"];const iz=Sn({prop:"gridColumn"}),sz=Sn({prop:"gridRow"}),az=Sn({prop:"gridAutoFlow"}),lz=Sn({prop:"gridAutoColumns"}),cz=Sn({prop:"gridAutoRows"}),uz=Sn({prop:"gridTemplateColumns"}),dz=Sn({prop:"gridTemplateRows"}),fz=Sn({prop:"gridTemplateAreas"}),pz=Sn({prop:"gridArea"});Yd(Jd,Zd,ef,iz,sz,az,lz,cz,uz,dz,fz,pz);function Aa(e,t){return t==="grey"?t:e}const hz=Sn({prop:"color",themeKey:"palette",transform:Aa}),mz=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Aa}),gz=Sn({prop:"backgroundColor",themeKey:"palette",transform:Aa});Yd(hz,mz,gz);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const yz=Sn({prop:"width",transform:Nr}),ag=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ng[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Nr(n)}};return Co(e,e.maxWidth,t)}return null};ag.filterProps=["maxWidth"];const vz=Sn({prop:"minWidth",transform:Nr}),bz=Sn({prop:"height",transform:Nr}),xz=Sn({prop:"maxHeight",transform:Nr}),wz=Sn({prop:"minHeight",transform:Nr});Sn({prop:"size",cssProperty:"width",transform:Nr}),Sn({prop:"size",cssProperty:"height",transform:Nr});const Sz=Sn({prop:"boxSizing"});Yd(yz,ag,vz,bz,xz,wz,Sz);const Cc={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xd},color:{themeKey:"palette",transform:Aa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Aa},backgroundColor:{themeKey:"palette",transform:Aa},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:yn},mt:{style:yn},mr:{style:yn},mb:{style:yn},ml:{style:yn},mx:{style:yn},my:{style:yn},margin:{style:yn},marginTop:{style:yn},marginRight:{style:yn},marginBottom:{style:yn},marginLeft:{style:yn},marginX:{style:yn},marginY:{style:yn},marginInline:{style:yn},marginInlineStart:{style:yn},marginInlineEnd:{style:yn},marginBlock:{style:yn},marginBlockStart:{style:yn},marginBlockEnd:{style:yn},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:Jd},rowGap:{style:ef},columnGap:{style:Zd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:ag},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cz(...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 Ez(e,t){return typeof e=="function"?e(t):e}function oC(){function e(n,r,o,s){const l={[n]:r,theme:o},u=s[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:m}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const g=$a(o,f)||{};return m?m(l):Co(l,r,x=>{let b=Qd(g,p,x);return x===b&&typeof x=="string"&&(b=Qd(g,p,`${n}${x==="default"?"":le(x)}`,x)),c===!1?b:{[c]:b}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const l=(r=s.unstable_sxConfig)!=null?r:Cc;function u(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=eC(s.breakpoints),m=Object.keys(p);let g=p;return Object.keys(f).forEach(S=>{const x=Ez(f[S],s);if(x!=null)if(typeof x=="object")if(l[S])g=wc(g,e(S,x,s,l));else{const b=Co({theme:s},x,w=>({[S]:w}));Cz(b,x)?g[S]=t({sx:x,theme:s}):g=wc(g,b)}else g=wc(g,e(S,x,s,l))}),tC(m,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const ja=oC();ja.filterProps=["sx"];function iC(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Rz=["breakpoints","palette","spacing","shape"];function _a(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,l=ge(e,Rz),u=JS(n),c=K5(o);let f=nr({breakpoints:u,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:c,shape:k({},N5,s)},l);return f.applyStyles=iC,f=t.reduce((p,m)=>nr(p,m),f),f.unstable_sxConfig=k({},Cc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return ja({sx:m,theme:this})},f}const kz=Object.freeze(Object.defineProperty({__proto__:null,default:_a,private_createBreakpoints:JS,unstable_applyStyles:iC},Symbol.toStringTag,{value:"Module"}));function Pz(e){return Object.keys(e).length===0}function lg(e=null){const t=E.useContext(xc);return!t||Pz(t)?e:t}const Tz=_a();function Ec(e=Tz){return lg(e)}function Oz({styles:e,themeId:t,defaultTheme:n={}}){const r=Ec(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(QS,{styles:o})}const $z=["sx"],Az=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Cc;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Rc(e){const{sx:t}=e,n=ge(e,$z),{systemProps:r,otherProps:o}=Az(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return fi(u)?k({},r,u):r}:s=k({},r,t),k({},o,{sx:s})}const jz=Object.freeze(Object.defineProperty({__proto__:null,default:ja,extendSxProp:Rc,unstable_createStyleFunctionSx:oC,unstable_defaultSxConfig:Cc},Symbol.toStringTag,{value:"Module"})),sC=e=>e,aC=(()=>{let e=sC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sC}}})();function lC(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;t<o;t++)e[t]&&(n=lC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lC(e))&&(r&&(r+=" "),r+=t);return r}const _z=["className","component"];function Mz(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=tg("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ja);return E.forwardRef(function(c,f){const p=Ec(n),m=Rc(c),{className:g,component:S="div"}=m,x=ge(m,_z);return y.jsx(s,k({as:S,ref:f,className:ye(g,o?o(r):r),theme:t&&p[t]||p},x))})}const Iz={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 Me(e,t,n="Mui"){const r=Iz[t];return r?`${n}-${r}`:`${aC.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Me(e,o,n)}),r}var cC={exports:{}},Kt={};var uC;function Nz(){if(uC)return Kt;uC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case e:switch(w=w.type,w){case n:case o:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case c:case g:case m:case s:return w;default:return P}}case t:return P}}}return Kt.ContextConsumer=l,Kt.ContextProvider=s,Kt.Element=e,Kt.ForwardRef=c,Kt.Fragment=n,Kt.Lazy=g,Kt.Memo=m,Kt.Portal=t,Kt.Profiler=o,Kt.StrictMode=r,Kt.Suspense=f,Kt.SuspenseList=p,Kt.isAsyncMode=function(){return!1},Kt.isConcurrentMode=function(){return!1},Kt.isContextConsumer=function(w){return b(w)===l},Kt.isContextProvider=function(w){return b(w)===s},Kt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Kt.isForwardRef=function(w){return b(w)===c},Kt.isFragment=function(w){return b(w)===n},Kt.isLazy=function(w){return b(w)===g},Kt.isMemo=function(w){return b(w)===m},Kt.isPortal=function(w){return b(w)===t},Kt.isProfiler=function(w){return b(w)===o},Kt.isStrictMode=function(w){return b(w)===r},Kt.isSuspense=function(w){return b(w)===f},Kt.isSuspenseList=function(w){return b(w)===p},Kt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===o||w===r||w===f||w===p||w===S||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},Kt.typeOf=b,Kt}cC.exports=Nz();var dC=cC.exports;const Lz=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fC(e){const t=`${e}`.match(Lz);return t&&t[1]||""}function pC(e,t=""){return e.displayName||e.name||fC(e)||t}function hC(e,t,n){const r=pC(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Dz(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dC.ForwardRef:return hC(e,e.render,"ForwardRef");case dC.Memo:return hC(e,e.type,"memo");default:return}}}const Fz=Object.freeze(Object.defineProperty({__proto__:null,default:Dz,getFunctionName:fC},Symbol.toStringTag,{value:"Module"})),Bz=["ownerState"],zz=["variants"],Uz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wz(e){return Object.keys(e).length===0}function Hz(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vz=_a(),Kz=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function tf({defaultTheme:e,theme:t,themeId:n}){return Wz(t)?e:t[n]||t}function Gz(e){return e?(t,n)=>n[e]:null}function nf(e,t){let{ownerState:n}=t,r=ge(t,Bz);const o=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>nf(s,k({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=ge(o,zz);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(k({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(k({ownerState:n},r,n)):c.style))}),u}return o}function qz(e={}){const{themeId:t,defaultTheme:n=Vz,rootShouldForwardProp:r=cg,slotShouldForwardProp:o=cg}=e,s=l=>ja(k({},l,{theme:tf(k({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{YS(l,$=>$.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=Gz(Kz(f))}=u,S=ge(u,Uz),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=cg;f==="Root"||f==="root"?P=r:f?P=o:Hz(l)&&(P=void 0);const R=tg(l,k({shouldForwardProp:P,label:w},S)),T=$=>typeof $=="function"&&$.__emotion_real!==$||fi($)?O=>nf($,k({},O,{theme:tf({theme:O.theme,defaultTheme:n,themeId:t})})):$,A=($,...O)=>{let _=T($);const N=O?O.map(T):[];c&&g&&N.push(K=>{const Y=tf(k({},K,{defaultTheme:n,themeId:t}));if(!Y.components||!Y.components[c]||!Y.components[c].styleOverrides)return null;const J=Y.components[c].styleOverrides,U={};return Object.entries(J).forEach(([oe,G])=>{U[oe]=nf(G,k({},K,{theme:Y}))}),g(K,U)}),c&&!x&&N.push(K=>{var Y;const J=tf(k({},K,{defaultTheme:n,themeId:t})),U=J==null||(Y=J.components)==null||(Y=Y[c])==null?void 0:Y.variants;return nf({variants:U},k({},K,{theme:J}))}),b||N.push(s);const D=N.length-O.length;if(Array.isArray($)&&D>0){const K=new Array(D).fill("");_=[...$,...K],_.raw=[...$.raw,...K]}const F=R(_,...N);return l.muiName&&(F.muiName=l.muiName),F};return R.withConfig&&(A.withConfig=R.withConfig),A}}const mC=qz();function kc(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=k({},s),Object.keys(o).forEach(l=>{n[r][l]=kc(o[l],s[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function gC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kc(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ec(n);return r&&(o=o[r]||o),gC({theme:o,name:t,props:e})}const vr=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Qz(e,t,n,r,o){const[s,l]=E.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return vr(()=>{let u=!0;if(!n)return;const c=n(e),f=()=>{u&&l(c.matches)};return f(),c.addListener(f),()=>{u=!1,c.removeListener(f)}},[e,n]),s}const vC=E.useSyncExternalStore;function Yz(e,t,n,r,o){const s=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,o,n]),[u,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[s,n,e]);return vC(c,u,l)}function rf(e,t={}){const n=lg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:u=!1}=gC({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(vC!==void 0?Yz:Qz)(c,o,s,l,u)}function ug(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Xz=Object.freeze(Object.defineProperty({__proto__:null,default:ug},Symbol.toStringTag,{value:"Module"}));function Jz(e,t=0,n=1){return ug(e,t,n)}function Zz(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 bC(e){if(e.type)return e;if(e.charAt(0)==="#")return bC(Zz(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(di(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"].indexOf(o)===-1)throw new Error(di(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function e3(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function t3(e,t){return e=bC(e),t=Jz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,e3(e)}function dg(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Pc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ma(e,t){var n,r;return E.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function An(e){return e&&e.ownerDocument||document}function Eo(e){return An(e).defaultView||window}function of(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let xC=0;function n3(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(xC+=1,n(`mui-${xC}`))},[t]),r}const wC=Wu.useId;function Ia(e){if(wC!==void 0){const t=wC();return e??t}return n3(e)}function pi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(e!==void 0),[s,l]=E.useState(t),u=o?e:s,c=E.useCallback(f=>{o||l(f)},[]);return[u,c]}function Nn(e){const t=E.useRef(e);return vr(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{of(n,t)})},e)}const SC={};function r3(e,t){const n=E.useRef(SC);return n.current===SC&&(n.current=e(t)),n}const o3=[];function i3(e){E.useEffect(e,o3)}class Tc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Tc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=r3(Tc.create).current;return i3(e.disposeEffect),e}let sf=!0,fg=!1;const s3=new Tc,a3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&a3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function c3(e){e.metaKey||e.altKey||e.ctrlKey||(sf=!0)}function pg(){sf=!1}function u3(){this.visibilityState==="hidden"&&fg&&(sf=!0)}function d3(e){e.addEventListener("keydown",c3,!0),e.addEventListener("mousedown",pg,!0),e.addEventListener("pointerdown",pg,!0),e.addEventListener("touchstart",pg,!0),e.addEventListener("visibilitychange",u3,!0)}function f3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sf||l3(t)}function hg(){const e=E.useCallback(o=>{o!=null&&d3(o.ownerDocument)},[]),t=E.useRef(!1);function n(){return t.current?(fg=!0,s3.start(100,()=>{fg=!1}),t.current=!1,!0):!1}function r(o){return f3(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function CC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Na;function EC(){if(Na)return Na;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Na="reverse",e.scrollLeft>0?Na="default":(e.scrollLeft=1,e.scrollLeft===0&&(Na="negative")),document.body.removeChild(e),Na}function p3(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(EC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mg=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current};function h3(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}function Le(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,l)=>{if(l){const u=t(l);u!==""&&s.push(u),n&&n[l]&&s.push(n[l])}return s},[]).join(" ")}),r}function La(e){return typeof e=="string"}function Da(e,t,n){return e===void 0||La(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function af(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function RC(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 kC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const S=ye(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=k({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=k({},n,o,r);return S.length>0&&(b.className=S),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const l=af(k({},o,r)),u=RC(r),c=RC(o),f=t(l),p=ye(f==null?void 0:f.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),m=k({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=k({},f,n,c,u);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}function PC(e,t,n){return typeof e=="function"?e(t,n):e}const m3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function rr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,l=ge(e,m3),u=s?{}:PC(r,o),{props:c,internalRef:f}=kC(k({},l,{externalSlotProps:u})),p=Gt(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Da(n,k({},c,{ref:p}),o)}const TC=E.createContext(null);function OC(){return E.useContext(TC)}const g3=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function y3(e,t){return typeof t=="function"?t(e):k({},e,t)}function v3(e){const{children:t,theme:n}=e,r=OC(),o=E.useMemo(()=>{const s=r===null?n:y3(r,n);return s!=null&&(s[g3]=r!==null),s},[n,r]);return y.jsx(TC.Provider,{value:o,children:t})}const b3=["value"],$C=E.createContext();function x3(e){let{value:t}=e,n=ge(e,b3);return y.jsx($C.Provider,k({value:t??!0},n))}const Oc=()=>{const e=E.useContext($C);return e??!1},AC=E.createContext(void 0);function w3({value:e,children:t}){return y.jsx(AC.Provider,{value:e,children:t})}function S3(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?kc(o.defaultProps,r):!o.styleOverrides&&!o.variants?kc(o,r):r}function C3({props:e,name:t}){const n=E.useContext(AC);return S3({props:e,name:t,theme:{components:n}})}const jC={};function _C(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),l=e?k({},t,{[e]:s}):s;return r?()=>l:l}return e?k({},t,{[e]:n}):k({},t,n)},[e,t,n,r])}function E3(e){const{children:t,theme:n,themeId:r}=e,o=lg(jC),s=OC()||jC,l=_C(r,o,n),u=_C(r,s,n,!0),c=l.direction==="rtl";return y.jsx(v3,{theme:u,children:y.jsx(xc.Provider,{value:l,children:y.jsx(x3,{value:c,children:y.jsx(w3,{value:l==null?void 0:l.components,children:t})})})})}const R3=(e,t)=>e.filter(n=>t.includes(n)),Fa=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((l,u)=>{s<=e.keys.length-1&&(s===0?Object.assign(l,u):l[e.up(e.keys[s])]=u)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:R3(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.indexOf(s)!==-1){const l=t[s];l!==void 0&&n((u,c)=>{r===s?Object.assign(u,c):u[e.up(s)]=c},l)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function mi(e){return e?`Level${e}`:""}function $c(e){return e.unstable_level>0&&e.container}function MC(e){return function(n){return`var(--Grid-${n}Spacing${mi(e.unstable_level)})`}}function gg(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${mi(e.unstable_level-1)})`}}function yg(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${mi(e.unstable_level-1)})`}const k3=({theme:e,ownerState:t})=>{const n=MC(t),r={};return Fa(e.breakpoints,t.gridSize,(o,s)=>{let l={};s===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / ${yg(t)}${$c(t)?` + ${n("column")}`:""})`}),o(r,l)}),r},P3=({theme:e,ownerState:t})=>{const n={};return Fa(e.breakpoints,t.gridOffset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / ${yg(t)})`}),r(n,s)}),n},T3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=$c(t)?{[`--Grid-columns${mi(t.unstable_level)}`]:yg(t)}:{"--Grid-columns":12};return Fa(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${mi(t.unstable_level)}`]:o})}),n},O3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=gg(t),r=$c(t)?{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:n("row")}:{};return Fa(e.breakpoints,t.rowSpacing,(o,s)=>{var l;o(r,{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},$3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=gg(t),r=$c(t)?{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:n("column")}:{};return Fa(e.breakpoints,t.columnSpacing,(o,s)=>{var l;o(r,{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},A3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fa(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},j3=({ownerState:e})=>{const t=MC(e),n=gg(e);return k({minWidth:0,boxSizing:"border-box"},e.container&&k({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||$c(e))&&k({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},_3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},M3=(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,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},I3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],N3=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],L3=_a(),D3=mC("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function F3(e){return yC({props:e,name:"MuiGrid",defaultTheme:L3})}function B3(e={}){const{createStyledComponent:t=D3,useThemeProps:n=F3,componentName:r="MuiGrid"}=e,o=E.createContext(void 0),s=(c,f)=>{const{container:p,direction:m,spacing:g,wrap:S,gridSize:x}=c,b={root:["root",p&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...I3(m),..._3(x),...p?M3(g,f.breakpoints.keys[0]):[]]};return Le(b,w=>Me(r,w),{})},l=t(T3,$3,O3,k3,A3,j3,P3),u=E.forwardRef(function(f,p){var m,g,S,x,b,w,P,R;const T=Ec(),A=n(f),$=Rc(A),O=E.useContext(o),{className:_,children:N,columns:D=12,container:F=!1,component:K="div",direction:Y="row",wrap:J="wrap",spacing:U=0,rowSpacing:oe=U,columnSpacing:G=U,disableEqualOverflow:W,unstable_level:M=0}=$,q=ge($,N3);let se=W;M&&W!==void 0&&(se=f.disableEqualOverflow);const L={},ie={},Oe={};Object.entries(q).forEach(([Ve,Be])=>{T.breakpoints.values[Ve]!==void 0?L[Ve]=Be:T.breakpoints.values[Ve.replace("Offset","")]!==void 0?ie[Ve.replace("Offset","")]=Be:Oe[Ve]=Be});const ve=(m=f.columns)!=null?m:M?void 0:D,xe=(g=f.spacing)!=null?g:M?void 0:U,he=(S=(x=f.rowSpacing)!=null?x:f.spacing)!=null?S:M?void 0:oe,Ie=(b=(w=f.columnSpacing)!=null?w:f.spacing)!=null?b:M?void 0:G,de=k({},$,{level:M,columns:ve,container:F,direction:Y,wrap:J,spacing:xe,rowSpacing:he,columnSpacing:Ie,gridSize:L,gridOffset:ie,disableEqualOverflow:(P=(R=se)!=null?R:O)!=null?P:!1,parentDisableEqualOverflow:O}),ke=s(de,T);let Qe=y.jsx(l,k({ref:p,as:K,ownerState:de,className:ye(ke.root,_)},Oe,{children:E.Children.map(N,Ve=>{if(E.isValidElement(Ve)&&Ma(Ve,["Grid"])){var Be;return E.cloneElement(Ve,{unstable_level:(Be=Ve.props.unstable_level)!=null?Be:M+1})}return Ve})}));return se!==void 0&&se!==(O??!1)&&(Qe=y.jsx(o.Provider,{value:se,children:Qe})),Qe});return u.muiName="Grid",u}const z3=["component","direction","spacing","divider","children","className","useFlexGap"],U3=_a(),W3=mC("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function H3(e){return yC({props:e,name:"MuiStack",defaultTheme:U3})}function V3(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(E.cloneElement(t,{key:`separator-${s}`})),r),[])}const K3=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],G3=({ownerState:e,theme:t})=>{let n=k({display:"flex",flexDirection:"column"},Co({theme:t},rg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=sg(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),s=rg({values:e.direction,base:o}),l=rg({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,f,p)=>{if(!s[c]){const g=f>0?s[p[f-1]]:"column";s[c]=g}}),n=nr(n,Co({theme:t},l,(c,f)=>e.useFlexGap?{gap:Ls(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${K3(f?s[f]:e.direction)}`]:Ls(r,c)}}))}return n=L5(t.breakpoints,n),n};function q3(e={}){const{createStyledComponent:t=W3,useThemeProps:n=H3,componentName:r="MuiStack"}=e,o=()=>Le({root:["root"]},c=>Me(r,c),{}),s=t(G3);return E.forwardRef(function(c,f){const p=n(c),m=Rc(p),{component:g="div",direction:S="column",spacing:x=0,divider:b,children:w,className:P,useFlexGap:R=!1}=m,T=ge(m,z3),A={direction:S,spacing:x,useFlexGap:R},$=o();return y.jsx(s,k({as:g,ownerState:A,ref:f,className:ye($.root,P)},T,{children:b?V3(w,b):w}))})}function Q3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},IC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(IC);var NC=IC.exports;const Y3=Or(OB),X3=Or(Xz);var Ac={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_88e256a3-9822-465d-b9e6-a8218a195f60",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"",npm_config_user_agent:"npm/10.8.2 node/v20.19.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_88e256a3-9822-465d-b9e6-a8218a195f60",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.0/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/js-mui-cms/js-mui-cms/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"luminix-cms",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"158327540",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_local_prefix:"/home/runner/work/js-mui-cms/js-mui-cms",SYSTEMD_EXEC_PID:"709",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250323.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.7/x64",JOURNAL_STREAM:"8:5856",GITHUB_WORKFLOW:"Publish beta version to NPM",_:"/opt/hostedtoolcache/node/20.19.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.19.0/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"14176182027",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"120d89e90e23bc045418bda6ceed01e0fe12d203",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"luminix-cms/js-mui-cms/.github/workflows/beta.yml@refs/heads/v0.x",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_91fa020c-f1d0-4823-a38c-1a500a3ac59c",INVOCATION_ID:"a6b2d1a476fb4243b8c6264d98c42c49",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.19.0/x64/bin/node",npm_package_name:"@luminix/mui-cms",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"31",GITHUB_TRIGGERING_ACTOR:"obrunopolo",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000000011",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v0.x",GITHUB_REPOSITORY:"luminix-cms/js-mui-cms",STATS_D_D:"true",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"751419373",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"",npm_lifecycle_event:"build:bundle",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/js-mui-cms/js-mui-cms",ACCEPT_EULA:"Y",GITHUB_JOB:"publish",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"120d89e90e23bc045418bda6ceed01e0fe12d203",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/v0.x",GITHUB_ACTOR:"obrunopolo",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.19.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_88e256a3-9822-465d-b9e6-a8218a195f60",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/js-mui-cms/js-mui-cms",GITHUB_ACTOR_ID:"47830258",RUNNER_WORKSPACE:"/home/runner/work/js-mui-cms",npm_execpath:"/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_88e256a3-9822-465d-b9e6-a8218a195f60",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.19.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_88e256a3-9822-465d-b9e6-a8218a195f60",INIT_CWD:"/home/runner/work/js-mui-cms/js-mui-cms",EDITOR:"vi",NODE_ENV:"production"},LC=NC;Object.defineProperty(Cn,"__esModule",{value:!0});var mt=Cn.alpha=UC;Cn.blend=lU,Cn.colorChannel=void 0;var jc=Cn.darken=bg;Cn.decomposeColor=no;var lf=Cn.emphasize=WC,J3=Cn.getContrastRatio=rU;Cn.getLuminance=cf,Cn.hexToRgb=FC,Cn.hslToRgb=zC;var _c=Cn.lighten=xg;Cn.private_safeAlpha=oU,Cn.private_safeColorChannel=void 0,Cn.private_safeDarken=iU,Cn.private_safeEmphasize=aU,Cn.private_safeLighten=sU,Cn.recomposeColor=Ba,Cn.rgbToHex=nU;var DC=LC(Y3),Z3=LC(X3);function vg(e,t=0,n=1){return(0,Z3.default)(e,t,n)}function FC(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 eU(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function no(e){if(e.type)return e;if(e.charAt(0)==="#")return no(FC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,DC.default)(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"].indexOf(o)===-1)throw new Error((0,DC.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const BC=e=>{const t=no(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=BC;const tU=(e,t)=>{try{return BC(e)}catch{return t&&Ac.NODE_ENV!=="production"&&console.warn(t),e}};Cn.private_safeColorChannel=tU;function Ba(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function nU(e){if(e.indexOf("#")===0)return e;const{values:t}=no(e);return`#${t.map((n,r)=>eU(r===3?Math.round(255*n):n)).join("")}`}function zC(e){e=no(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(f,p=(f+n/30)%12)=>o-s*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Ba({type:u,values:c})}function cf(e){e=no(e);let t=e.type==="hsl"||e.type==="hsla"?no(zC(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 rU(e,t){const n=cf(e),r=cf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function UC(e,t){return e=no(e),t=vg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ba(e)}function oU(e,t,n){try{return UC(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function bg(e,t){if(e=no(e),t=vg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ba(e)}function iU(e,t,n){try{return bg(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function xg(e,t){if(e=no(e),t=vg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ba(e)}function sU(e,t,n){try{return xg(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function WC(e,t=.15){return cf(e)>.5?bg(e,t):xg(e,t)}function aU(e,t,n){try{return WC(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function lU(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),s=no(e),l=no(t),u=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return Ba({type:"rgb",values:u})}const Mc={black:"#000",white:"#fff"},cU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},za={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ua={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ic={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ha={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Va={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},uU=["mode","contrastThreshold","tonalOffset"],HC={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:Mc.white,default:Mc.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}},wg={text:{primary:Mc.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:Mc.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}};function VC(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_c(e.main,o):t==="dark"&&(e.dark=jc(e.main,s)))}function dU(e="light"){return e==="dark"?{main:Wa[200],light:Wa[50],dark:Wa[400]}:{main:Wa[700],light:Wa[400],dark:Wa[800]}}function fU(e="light"){return e==="dark"?{main:za[200],light:za[50],dark:za[400]}:{main:za[500],light:za[300],dark:za[700]}}function pU(e="light"){return e==="dark"?{main:Ua[500],light:Ua[300],dark:Ua[700]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function hU(e="light"){return e==="dark"?{main:Ha[400],light:Ha[300],dark:Ha[700]}:{main:Ha[700],light:Ha[500],dark:Ha[900]}}function mU(e="light"){return e==="dark"?{main:Va[400],light:Va[300],dark:Va[700]}:{main:Va[800],light:Va[500],dark:Va[900]}}function gU(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:"#ed6c02",light:Ic[500],dark:Ic[900]}}function yU(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ge(e,uU),s=e.primary||dU(t),l=e.secondary||fU(t),u=e.error||pU(t),c=e.info||hU(t),f=e.success||mU(t),p=e.warning||gU(t);function m(b){return J3(b,wg.text.primary)>=n?wg.text.primary:HC.text.primary}const g=({color:b,name:w,mainShade:P=500,lightShade:R=300,darkShade:T=700})=>{if(b=k({},b),!b.main&&b[P]&&(b.main=b[P]),!b.hasOwnProperty("main"))throw new Error(di(11,w?` (${w})`:"",P));if(typeof b.main!="string")throw new Error(di(12,w?` (${w})`:"",JSON.stringify(b.main)));return VC(b,"light",R,r),VC(b,"dark",T,r),b.contrastText||(b.contrastText=m(b.main)),b},S={dark:wg,light:HC};return nr(k({common:k({},Mc),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:f,name:"success"}),grey:cU,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r},S[t]),o)}const vU=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bU(e){return Math.round(e*1e5)/1e5}const KC={textTransform:"uppercase"},GC='"Roboto", "Helvetica", "Arial", sans-serif';function xU(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=GC,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=n,g=ge(n,vU),S=o/14,x=m||(P=>`${P/f*S}rem`),b=(P,R,T,A,$)=>k({fontFamily:r,fontWeight:P,fontSize:x(R),lineHeight:T},r===GC?{letterSpacing:`${bU(A/R)}em`}:{},$,p),w={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(u,14,1.75,.4,KC),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,KC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr(k({htmlFontSize:f,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},w),g,{clone:!1})}const wU=.2,SU=.14,CU=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wU})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SU})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CU})`].join(",")}const EU=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],RU=["duration","easing","delay"],kU={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)"},qC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function QC(e){return`${Math.round(e)}ms`}function PU(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function TU(e){const t=k({},kU,e.easing),n=k({},qC,e.duration);return k({getAutoHeightDuration:PU,create:(o=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:c=0}=s;return ge(s,RU),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof l=="string"?l:QC(l)} ${u} ${typeof c=="string"?c:QC(c)}`).join(",")}},e,{easing:t,duration:n})}const OU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$U=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,l=ge(e,$U);if(e.vars)throw new Error(di(18));const u=yU(r),c=_a(e);let f=nr(c,{mixins:Q3(c.breakpoints,n),palette:u,shadows:EU.slice(),typography:xU(u,s),transitions:TU(o),zIndex:k({},OU)});return f=nr(f,l),f=t.reduce((p,m)=>nr(p,m),f),f.unstable_sxConfig=k({},Cc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return ja({sx:m,theme:this})},f}function AU(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function jU(e){return parseFloat(e)}const Cg=Sg();function br(){const e=Ec(Cg);return e[Ra]||e}var Nc={},Eg={exports:{}},YC;function _U(){return YC||(YC=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.includes(s))continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}const XC=Or(j5),MU=Or(_5),IU=Or(F5),NU=Or(Fz),LU=Or(kz),DU=Or(jz);var Ka=NC;Object.defineProperty(Nc,"__esModule",{value:!0});var FU=Nc.default=JU;Nc.shouldForwardProp=uf,Nc.systemDefaultTheme=void 0;var ro=Ka(KS()),Rg=Ka(_U()),JC=KU(XC),BU=MU;Ka(IU),Ka(NU);var zU=Ka(LU),UU=Ka(DU);const WU=["ownerState"],HU=["variants"],VU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ZC=function(r){return r?n:t})(e)}function KU(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ZC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function GU(e){return Object.keys(e).length===0}function qU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QU=Nc.systemDefaultTheme=(0,zU.default)(),YU=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function df({defaultTheme:e,theme:t,themeId:n}){return GU(t)?e:t[n]||t}function XU(e){return e?(t,n)=>n[e]:null}function ff(e,t){let{ownerState:n}=t,r=(0,Rg.default)(t,WU);const o=typeof e=="function"?e((0,ro.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>ff(s,(0,ro.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=(0,Rg.default)(o,HU);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,ro.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,ro.default)({ownerState:n},r,n)):c.style))}),u}return o}function JU(e={}){const{themeId:t,defaultTheme:n=QU,rootShouldForwardProp:r=uf,slotShouldForwardProp:o=uf}=e,s=l=>(0,UU.default)((0,ro.default)({},l,{theme:df((0,ro.default)({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{(0,JC.internal_processStyles)(l,$=>$.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=XU(YU(f))}=u,S=(0,Rg.default)(u,VU),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=uf;f==="Root"||f==="root"?P=r:f?P=o:qU(l)&&(P=void 0);const R=(0,JC.default)(l,(0,ro.default)({shouldForwardProp:P,label:w},S)),T=$=>typeof $=="function"&&$.__emotion_real!==$||(0,BU.isPlainObject)($)?O=>ff($,(0,ro.default)({},O,{theme:df({theme:O.theme,defaultTheme:n,themeId:t})})):$,A=($,...O)=>{let _=T($);const N=O?O.map(T):[];c&&g&&N.push(K=>{const Y=df((0,ro.default)({},K,{defaultTheme:n,themeId:t}));if(!Y.components||!Y.components[c]||!Y.components[c].styleOverrides)return null;const J=Y.components[c].styleOverrides,U={};return Object.entries(J).forEach(([oe,G])=>{U[oe]=ff(G,(0,ro.default)({},K,{theme:Y}))}),g(K,U)}),c&&!x&&N.push(K=>{var Y;const J=df((0,ro.default)({},K,{defaultTheme:n,themeId:t})),U=J==null||(Y=J.components)==null||(Y=Y[c])==null?void 0:Y.variants;return ff({variants:U},(0,ro.default)({},K,{theme:J}))}),b||N.push(s);const D=N.length-O.length;if(Array.isArray($)&&D>0){const K=new Array(D).fill("");_=[...$,...K],_.raw=[...$.raw,...K]}const F=R(_,...N);return l.muiName&&(F.muiName=l.muiName),F};return R.withConfig&&(A.withConfig=R.withConfig),A}}function eE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>eE(e)&&e!=="classes",re=FU({themeId:Ra,defaultTheme:Cg,rootShouldForwardProp:Tn}),ZU=["theme"];function e6(e){let{theme:t}=e,n=ge(e,ZU);const r=t[Ra];return y.jsx(E3,k({},n,{themeId:r?Ra:void 0,theme:r||t}))}const tE=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fe(e){return C3(e)}function t6(e){return Me("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n6=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],r6=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return Le(o,t6,r)},o6=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,l,u,c,f,p,m,g,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),kg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=r,S=ge(r,n6),x=E.isValidElement(o)&&o.type==="svg",b=k({},r,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:x}),w={};p||(w.viewBox=g);const P=r6(b);return y.jsxs(o6,k({as:u,className:ye(P.root,s),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n},w,S,x&&o.props,{ownerState:b,children:[x?o.props.children:o,m?y.jsx("title",{children:m}):null]}))});kg.muiName="SvgIcon";function Rt(e,t){function n(r,o){return y.jsx(kg,k({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=kg.muiName,E.memo(E.forwardRef(n))}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Pg(e,t)}function nE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pg(e,t)}const rE={disabled:!1},pf=Z.createContext(null);var i6=function(t){return t.scrollTop},Lc="unmounted",Ds="exited",Fs="entering",Ga="entered",Tg="exiting",Lr=function(e){nE(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=o,u=l&&!l.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?u?(c=Ds,s.appearStatus=Fs):c=Ga:r.unmountOnExit||r.mountOnEnter?c=Lc:c=Ds,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===Lc?{status:Ds}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Fs&&l!==Ga&&(s=Fs):(l===Fs||l===Ga)&&(s=Tg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,l,u;return s=l=u=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,u=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this);l&&i6(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ds&&this.setState({status:Lc})},n.performEnter=function(o){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[bs.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),g=u?m.appear:m.enter;if(!o&&!l||rE.disabled){this.safeSetState({status:Ga},function(){s.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Fs},function(){s.props.onEntering(f,p),s.onTransitionEnd(g,function(){s.safeSetState({status:Ga},function(){s.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:bs.findDOMNode(this);if(!s||rE.disabled){this.safeSetState({status:Ds},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Tg},function(){o.props.onExiting(u),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Ds},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,o(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Lc)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=ge(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(pf.Provider,{value:null},typeof l=="function"?l(o,u):Z.cloneElement(Z.Children.only(l),u))},t}(Z.Component);Lr.contextType=pf,Lr.propTypes={};function qa(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qa,onEntering:qa,onEntered:qa,onExit:qa,onExiting:qa,onExited:qa},Lr.UNMOUNTED=Lc,Lr.EXITED=Ds,Lr.ENTERING=Fs,Lr.ENTERED=Ga,Lr.EXITING=Tg;function s6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Og(e,t){var n=function(s){return t&&E.isValidElement(s)?t(s):s},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function a6(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var l,u={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var f=r[c][l];u[r[c][l]]=n(f)}u[c]=n(c)}for(l=0;l<o.length;l++)u[o[l]]=n(o[l]);return u}function Bs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function l6(e,t){return Og(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Bs(n,"appear",e),enter:Bs(n,"enter",e),exit:Bs(n,"exit",e)})})}function c6(e,t,n){var r=Og(e.children),o=a6(t,r);return Object.keys(o).forEach(function(s){var l=o[s];if(E.isValidElement(l)){var u=s in t,c=s in r,f=t[s],p=E.isValidElement(f)&&!f.props.in;c&&(!u||p)?o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Bs(l,"exit",e),enter:Bs(l,"enter",e)}):!c&&u&&!p?o[s]=E.cloneElement(l,{in:!1}):c&&u&&E.isValidElement(f)&&(o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Bs(l,"exit",e),enter:Bs(l,"enter",e)}))}}),o}var u6=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d6={component:"div",childFactory:function(t){return t}},$g=function(e){nE(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=s.handleExited.bind(s6(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,u=s.handleExited,c=s.firstRender;return{children:c?l6(o,u):c6(o,l,u),firstRender:!1}},n.handleExited=function(o,s){var l=Og(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(u){var c=k({},u.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,l=o.childFactory,u=ge(o,["component","childFactory"]),c=this.state.contextValue,f=u6(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?Z.createElement(pf.Provider,{value:c},f):Z.createElement(pf.Provider,{value:c},Z.createElement(s,u,f))},t}(Z.Component);$g.propTypes={},$g.defaultProps=d6;const hf=e=>e.scrollTop;function Vo(e,t){var n,r;const{timeout:o,easing:s,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:l.transitionDelay}}function f6(e){return Me("MuiCollapse",e)}Ne("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const p6=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],h6=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Le(r,f6,n)},m6=re("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]}})(({theme:e,ownerState:t})=>k({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&k({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g6=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>k({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y6=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>k({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ag=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:l,collapsedSize:u="0px",component:c,easing:f,in:p,onEnter:m,onEntered:g,onEntering:S,onExit:x,onExited:b,onExiting:w,orientation:P="vertical",style:R,timeout:T=qC.standard,TransitionComponent:A=Lr}=r,$=ge(r,p6),O=k({},r,{orientation:P,collapsedSize:u}),_=h6(O),N=br(),D=hi(),F=E.useRef(null),K=E.useRef(),Y=typeof u=="number"?`${u}px`:u,J=P==="horizontal",U=J?"width":"height",oe=E.useRef(null),G=Gt(n,oe),W=he=>Ie=>{if(he){const de=oe.current;Ie===void 0?he(de):he(de,Ie)}},M=()=>F.current?F.current[J?"clientWidth":"clientHeight"]:0,q=W((he,Ie)=>{F.current&&J&&(F.current.style.position="absolute"),he.style[U]=Y,m&&m(he,Ie)}),se=W((he,Ie)=>{const de=M();F.current&&J&&(F.current.style.position="");const{duration:ke,easing:Qe}=Vo({style:R,timeout:T,easing:f},{mode:"enter"});if(T==="auto"){const Ve=N.transitions.getAutoHeightDuration(de);he.style.transitionDuration=`${Ve}ms`,K.current=Ve}else he.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;he.style[U]=`${de}px`,he.style.transitionTimingFunction=Qe,S&&S(he,Ie)}),L=W((he,Ie)=>{he.style[U]="auto",g&&g(he,Ie)}),ie=W(he=>{he.style[U]=`${M()}px`,x&&x(he)}),Oe=W(b),ve=W(he=>{const Ie=M(),{duration:de,easing:ke}=Vo({style:R,timeout:T,easing:f},{mode:"exit"});if(T==="auto"){const Qe=N.transitions.getAutoHeightDuration(Ie);he.style.transitionDuration=`${Qe}ms`,K.current=Qe}else he.style.transitionDuration=typeof de=="string"?de:`${de}ms`;he.style[U]=Y,he.style.transitionTimingFunction=ke,w&&w(he)}),xe=he=>{T==="auto"&&D.start(K.current||0,he),o&&o(oe.current,he)};return y.jsx(A,k({in:p,onEnter:q,onEntered:L,onEntering:se,onExit:ie,onExited:Oe,onExiting:ve,addEndListener:xe,nodeRef:oe,timeout:T==="auto"?null:T},$,{children:(he,Ie)=>y.jsx(m6,k({as:c,className:ye(_.root,l,{entered:_.entered,exited:!p&&Y==="0px"&&_.hidden}[he]),style:k({[J?"minWidth":"minHeight"]:Y},R),ref:G},Ie,{ownerState:k({},O,{state:he}),children:y.jsx(g6,{ownerState:k({},O,{state:he}),className:_.wrapper,ref:F,children:y.jsx(y6,{ownerState:k({},O,{state:he}),className:_.wrapperInner,children:s})})}))}))});Ag.muiSupportAuto=!0;function v6(e){return Me("MuiPaper",e)}Ne("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 b6=["className","component","elevation","square","variant"],x6=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Le(s,v6,o)},w6=re("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}`]]}})(({theme:e,ownerState:t})=>{var n;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",tE(t.elevation))}, ${mt("#fff",tE(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),oo=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=r,f=ge(r,b6),p=k({},r,{component:s,elevation:l,square:u,variant:c}),m=x6(p);return y.jsx(w6,k({as:s,ownerState:p,className:ye(m.root,o),ref:n},f))}),S6=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],C6=["component","slots","slotProps"],E6=["component"];function jg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:l,internalForwardedProps:u}=t,c=ge(t,S6),{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0}}=s,g=ge(s,C6),S=p[e]||r,x=PC(m[e],o),b=kC(k({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:w},internalRef:P}=b,R=ge(b.props,E6),T=Gt(P,x==null?void 0:x.ref,t.ref),A=l?l(R):{},$=k({},o,A),O=e==="root"?w||f:w,_=Da(S,k({},e==="root"&&!f&&!p[e]&&u,e!=="root"&&!p[e]&&u,R,O&&{as:O},{ref:T}),$);return Object.keys(A).forEach(N=>{delete _[N]}),[S,_]}function R6(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=E.useState(!1),g=ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},x=ye(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&m(!0),E.useEffect(()=>{if(!u&&c!=null){const b=setTimeout(c,f);return()=>{clearTimeout(b)}}},[c,u,f]),y.jsx("span",{className:g,style:S,children:y.jsx("span",{className:x})})}const io=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),k6=["center","classes","className"];let mf=e=>e,oE,iE,sE,aE;const _g=550,P6=80,T6=zi(oE||(oE=mf`
22
+ `);return s&&s.insertRule(l,0),r},Dd=function(){return Dd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dd.apply(this,arguments)},tB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nB=eB("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),ui=function(e){return Math.random()*e};function rB(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,o=r===void 0?"#000000":r,s=e.speedMultiplier,l=s===void 0?1:s,u=e.cssOverride,c=u===void 0?{}:u,f=e.size,p=f===void 0?15:f,m=e.margin,g=m===void 0?2:m,S=tB(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),x=Dm(p),b=Dm(g),w=parseFloat(x.value.toString())*3+parseFloat(b.value.toString())*6,P=Dd({width:"".concat(w).concat(x.unit),fontSize:0,display:"inline-block"},c),R=function(T){return{display:"inline-block",backgroundColor:o,width:"".concat(Fm(p)),height:"".concat(Fm(p)),margin:Fm(g),borderRadius:"100%",animationFillMode:"both",animation:"".concat(nB," ").concat((T/100+.6)/l,"s ").concat(T/100-.2,"s infinite ease")}};return n?E.createElement("span",Dd({style:P},S,{ref:function(T){T&&T.style.setProperty("width","".concat(w).concat(x.unit),"important")}}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))})):null}const oB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALMUlEQVR4nOyde1BTZ97Hv5AEUbnESwGRCkGCAi9yUZG2oFYqtn3bnV3W1hZ72Vqdam92esGu2m23VWdtd9Z29tJ1t7P+0+ls2213y/0WuVuxaKlUyjUBCgQCYriThISdcwosYoCc5DznnBA+M46B5Dy/Z/LhOc/9OeKxsTHMRElra3iWUrnnYrs6oUGrDQXgMeOHecQJQObuXyJs5Upe81HZqcETmZnQ6nTT3+oLkkqrY31XKe4LDPw03s+vaqY0nMwJyVGptp4uv3SyQauNI5Bv1kkOCcHvtm3lNQ8FLS04mJuH4dHROT8bJJWWHtkSc2yXTFY8/b2bhBiMRqfXCove/rK+/igAZ/azzT5uEglK9yZjuasrb3nIUanwbF4+DCYTk8tMSXL5qfe2b/uNRCSalCCeeEHJeCY376P85uZ9bGeYJI+HhfIq44vaOrxaWAjjLLf+GXD+sr7+eJ9e73s2cef+CSmTpYAqGfYmw1Ukwv4NG3iLf66qCi8XFFgjYxLqO6e++4mfaSE5KlX8+G3Krng+Ohq3LVnCS+z3KyrwZtkFWK/if1DfPeUAE0JOl186ZS91xgS3u7vjYGQEL7F/W3YBf6i4zGaSzuMOIKaatvbSmppKSsxmuIhEnMY0mkw4UlSMz2prWU+bckC5cM5sVO5hPXXChK9ciQflck5j6o1GHC0uISJjAsqFuFytTiAWgQBUJ/DtuLs4vb8OGQx4Pj8f+c0tRONQLsQNWm0I0Sgss0sWgI0+PpzF69Xp8KvMLFzu7CQei3JB9UM8iUdikeeiojiL1TM8jEfT0/HD9R6uQnraVcsqMSAAEV5enMTq0+nweEYmlzJoxJxGswGqE/jGHbGcxGrq7cXT2dmov6HlJN5U7EbIgQ0b4O9J/u56tasLT2RkomdkhHgsc9iFkOWurjgYFUk8TqVGg+T0dAzoDcRjzYRd1CGHN0bD3cWFaIzvu7vpksGnDNhDCQn09MRjYWFEY+Q1NeFFxXkMGviVAXsQ8tKmjZA4kyvIH1+rxrGSElYGCdlA0EKCpFI8sHYtsfQ/vnYNR0tKiaVvDYKuQ17fEgMxodLxSXU1jgtMBoRcQrb6+SFRJmM9XROA98rL8edvK1lPmw0EKUTk5IS37rqT9XRHTSa8pDiP1MZG1tNmC0Hesh5Zvx5By5axmiZVMl4uKBC0DAixhHi4uOCVmM2spjmg1+Pw+fPIa2pmNV0SCE7I3tAQrFy8mLX0boyM4Nm8PJS1tbOWJkkEJcRNIsGhSPaGSDSDQ9iTloZGLfeDhNYiKCGUDCmLa6yWSMT45IEHJn82jZmgZ7aYbVb++UMNPqxkt7UmGCH+Hh44EMHuGis3Fxf6Hwn+/t1V1mVASELeuCMWrmLBZGdWzlRU4Ay7y4AmEcQ3sNnHh0gnkAQnv/4aZ7+7Six9QQg5FsvNTKAtUDXPuxfLicqAEITcKwtAtI8339mYFaqHn1JYhH/V1RGPxasQJ6r3vGkTn1mYE53RSPdjuOpU8irkZ0FBWL9iBZ9ZmJUhgwH7s3NQ2tbGWUzexrJcnJ3xGstDJGxiMJnoksGlDPBZQsYAPJqWTjd1F4lE9DKfRROvxSIsEt38+v8DAxHpzc2arBsjI/T2tK/buR9u4U0I9Rf4Y3+/RZ+lmsUpHJUm9cAAktMzeBtu4b2VNRcrXF3xl507IeFg60Fbfz8eTk2z+A+FBIKcD5nK6W3b4L2U/C6prqEhPJaRwasMCL2EHN64EYmyAOJxanp68HRWNu8yIGQhD64NxCubyfdRvlGr8WRWFu8L5CYQpJB1y5fhve3bice51K6mT14YsmCzP1dwXoe4zLGsx00iwd8SE7FEIiGaj8pODZ7KzhaUDPAhZPe6dVg6y5f97vZtkEmlRPOQpVThkbQ09Ov1RONYA+dCqNvRz+VBZt87FBlBdKUixlcrHszNFVzJmIBzIX7u7nSvezpxq1cjJSaGaOyPr1XTS0eFso7XHJxX6gGenvR07WKxCMOjRvp3q93c8Kd7EiAiuKj6s5oaHC8V3tLR6XBaQhaLxZB5etIb/qO8fpoDoSrxc/fdi+UsLv2ZzpmKCrxaWASTDWeScAWnQqK8vSYXT69fvpz+/0R8HLEheKPJhFcLConNf5OAUyF3+a6efO3jthQPrQtGUnAwsXjHS0qJnrxAAk7rkF1ThkHi/fzwVHg4kTgjo6NIKSrCf+obiKRPEs6EhK1YgeDx2xT9M6HzEQf0euzLysZFtZpI+qThTMjD69cRj9Gn09EjtpWaLuKxSMFJHUL1zKkeOkmGDAa6ZNizDHBVQh4PDSW6rbljcBD7s7NxtaubWAyuIC5kjbs7DhHc9N/S14eHU1PRPjBILAaXEL9lHY2NxTJCp4ZSJeOx9Ix5IwOkS8gv5EG4f+2t41ZsQJWM5LR0tAhglo9NiAlJ8F+DdwlNMl3p6MSBnBx0DQ8TSZ9PiAhJDPDHh4mJRE5guNDWRp/wNmI0sp62EGD9G0sOCflp2Q4BGd+oO/B0ds68lQE2S4j3kiV4Jz4O9xLa51HS2ooD2TmCnVhiC5uFUP2LQ5ER2BceTmwe/LOaGvy6uITpYfd2iU1C7vT1xQcJO+C9dCl7OZrGuaoq+khvR8FqIbuDg+kFCaQOh8H4lOtbDiQD1gpJWLMGv99xt9kWgdFkop8WYOsx4H+trMSpi+U2pWGPMP7z9vfwwJkdO8xeeLmjkz5a1RYooW+WljmkDDAV4gTg/R13Q+q66Jb3MpVKPPTVV4j08rKpdKQUFeHc999bfb29w+iWdX9goNljvq91d+PFfAW9iODREOtOLqdKxuvFxfi8lvzGSiHDSMiBGZ5mc6y4hD6y4h7/Nbjdw51xJqjm7GGFAumNSsbXzjcsFkLVHea2L/+7rh5XNBr6dvZCdDTjDPTqdPRKQns5rYc0FgvZNMMTCf545Qr9/5NhYYjyZrbffNBgoM/K/VajYXTdfMZiIb5ut3b+Kjs1aNBq6RPg3opn9pAe7cgInszMWpAxDYuF6EZvHdAra2/Dibg4PPF/zA46burtpee/G+zoHCuusFiIuS9vb0io2SbwbCi1Wvo2Nd8mltjC4n5IWVsbtCM3P+OVqQyVthd7UtMWZMyCxUJ0RiPOfmf9gV0116/jodRUdA4NWZ2GI8Cop25tP6Fcrcbur1KhWZAxJ4w6hvF+fowD5KhUOKw4P+8nltiCkZCI225jlHhBSwuey1fQzwBcwDIYCZFJLX/kUKZSiRfyFQ4xy8cmjIR4Wfgg4C/q6uiNMrY8RdlRYSRkkWjuj2c2KvFKQaFdbB8TIoxaWXPVBbmqJjyvyF+QYQOMhMzWbC1rbaNPYBs1LciwBUZCanuum/395Y4O+kGMbB7j7agwEmJuzqK1v58+KHKhn8EOjIQU/thC71SaYECvx1NZWbjO01Mx5yOUkD5LPzxoGMXn49uMqZsT1c+o7blBMn+ORq9zkFRazeSKDy5foSeXTly4AEUL2Qe+OxpBUukPzltWrVIwuah7eBh70zPw0dUqcjlzUCgXzvevDfyU6YVV3fa/uVKIUC6c4/38qoKkUuEfkzPPoRxQLuhW1pEtMUfH6+kF+ME07uCnZu8umawkSS4/xXeuHJUkufwk5YB67TQ2Pu5kMBqdnsnN+yi/uXkf3xl0JO7x9//H2cSd+yUiES1ismNI/YJ6I0kuP7Fw++IEU5Jc/s5UGZhaQqaSo1JtPV1+6WSDVsts9dsCFkFV4Ee2xBzbJZMVT3/PrJAJSlpbw7OUyj0X29UJDVptKAAP0pmdp/RRHfBY31WK+wIDP6VaUzN98L8BAAD//6zjBbZXWKjWAAAAAElFTkSuQmCC",iB=()=>(Z.useEffect(()=>(document.body.style.margin="0",()=>{document.body.style.margin=""}),[]),y.jsxs("div",{style:{height:"100vh",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"1rem"},className:"test",children:[y.jsx("img",{src:oB,alt:"Luminix"}),y.jsx(rB,{color:"#1d9798"})]})),cS={booted:!1,router:null},sB=Z.createContext(cS),uS=Z.createContext({form:null});function zo(){const{form:e}=Z.useContext(uS);return e}function Fi(e="default"){const[t,n]=Z.useState({});return Z.useEffect(()=>{const r=vm().bag(e).on("change",({source:o})=>{n(Object.entries(o.all()).reduce((s,[l,u])=>(s[He.camel(l+"Error")]=u,s),{}))});return()=>{r(),vm().clear(e)}},[e]),t}const aB=e=>{const{label:t,className:n,...r}=e,{checkboxProps:o,errorBag:s}=zo(),{[`${He.camel(e.name)}Error`]:l}=Fi(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[y.jsx("input",{className:`luminix-form-input luminix-form-checkbox-input ${n??""}`.trim(),...o(e.name,e.value),...r}),t&&y.jsx("label",{htmlFor:e.id,className:"luminix-form-label luminix-form-checkbox-label",children:t})]}),l&&y.jsx("p",{children:l})]})},lB=e=>{const{label:t,className:n,...r}=e,{datetimeLocalProps:o,errorBag:s}=zo(),{[`${He.camel(e.name)}Error`]:l}=Fi(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-datetime-local-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-datetime-local-input ${n??""}`.trim(),...o(e.name),...r,type:"datetime-local"})]}),l&&y.jsx("p",{className:"luminix-form-error",children:l})]})},cB=e=>{const{subscribe:t,inputProps:n,errorBag:r}=zo();Z.useEffect(()=>t(f=>f.asForm()),[t]);const{label:o,sanitize:s=f=>f.target.files,className:l,...u}=e,{[`${He.camel(e.name)}Error`]:c}=Fi(r);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[o&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:o}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${l??""}`.trim(),...je.omit(n(e.name,s),"value"),...u})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},uB=e=>{const{label:t,options:n,className:r,id:o,...s}=e,{radioProps:l,errorBag:u}=zo(),{[`${He.camel(e.name)}Error`]:c}=Fi(u);return y.jsxs(y.Fragment,{children:[t&&y.jsx(y.Fragment,{children:y.jsx("label",{className:"luminix-form-label luminix-form-radio-label",children:t})}),n.map(({value:f,label:p})=>y.jsxs("p",{children:[y.jsx("input",{id:o?`${o}::${f}`:void 0,className:`luminix-form-input luminix-form-radio-input ${r??""}`.trim(),...l(e.name,f),...s}),y.jsx("label",{htmlFor:o?`${o}::${f}`:void 0,children:p})]},f)),c&&y.jsx("p",{children:c})]})},dB=e=>{const{label:t,options:n,className:r,...o}=e,{selectProps:s,errorBag:l}=zo(),{[`${He.camel(e.name)}Error`]:u}=Fi(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-select-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("select",{className:`luminix-form-input luminix-form-select-input ${r??""}`.trim(),...s(e.name),...o,children:n.map(c=>y.jsx("option",{value:c.value,children:c.label},c.value))})]}),u&&y.jsx("p",{children:u})]})},fB=e=>{const{label:t,type:n,sanitize:r,className:o,...s}=e,{textareaProps:l,errorBag:u}=zo(),{[`${He.camel(e.name)}Error`]:c}=Fi(u);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-textarea-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("textarea",{className:`luminix-form-input luminix-form-textarea-input ${o??""}`.trim(),...l(e.name,r),...s})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},dS=e=>{const{label:t,sanitize:n,className:r,...o}=e,{inputProps:s,errorBag:l}=zo(),{[`${He.camel(e.name)}Error`]:u}=Fi(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${r??""}`.trim(),...s(e.name,n),...o})]}),u&&y.jsx("p",{className:"luminix-form-error",children:u})]})},pB=e=>{const{className:t,...n}=e,r=document.querySelector('meta[name="csrf-token"]'),{subscribe:o}=zo();return Z.useEffect(()=>o(s=>s.withData({_token:r==null?void 0:r.content})),[r==null?void 0:r.content,o]),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${t??""}`.trim(),...n,value:r==null?void 0:r.content,name:"_token",type:"hidden"})};class hB{constructor(){Lm(this,"includesCsrfToken",!1),Lm(this,"manager"),this.manager=new(xa(class{}))}getFormInputComponent(t){return this.thisAny().replaceFormInputComponent(this.switchInputType(t),t)}getDefaultInputsForModel(t,n=[]){const r=t.getType(),o=Un(rc.schema(r).attributes),s=t.fillable.flatMap(l=>this.thisAny().getDefaultInputProps(this.makeFormAttributesFor(l,{attributes:o,confirmed:n,item:t}),{attributes:o,confirmed:n,item:t,key:l}));return this.includesCsrfToken&&s.unshift({type:"csrf"}),this.thisAny()[`selectDefaultInputsFor${He.studly(r)}`](s,t)}ensureFrontendRequestsAreStateful(){this.includesCsrfToken=!0}thisAny(){return this}switchInputType(t){return{select:dB,radio:uB,checkbox:aB,textarea:fB,"datetime-local":lB,file:cB,text:dS,csrf:pB}[t]||dS}makeFormAttributesFor(t,{attributes:n,item:r,confirmed:o}){const s=(l=>{var u;const c=n.where("name",l).first(),f=`luminix-form-${r.getType()}-${r.getKey()||"new"}-${l}`;if(!c)return null;const p=this.thisAny().mapAttributeCastToInputTypes({date:{type:"date"},datetime:{type:"datetime-local"},timestamp:{type:"datetime-local"},hashed:{type:"password",addedAttributes:{autoComplete:"new-password"}},int:{type:"number"},float:{type:"number"},boolean:{type:"checkbox"}},r,c);if(c.cast&&c.cast in p){const{type:g,addedAttributes:S={}}=p[c.cast];return{name:l,type:g,label:He.human(l),id:f,...S}}const m=this.thisAny().mapAttributeTypeToInputTypes({"tinyint(1)":"checkbox",int:"number",float:"number",timestamp:"datetime-local",text:"textarea",tinytext:"textarea",mediumtext:"textarea",longtext:"textarea",date:"date"},r,c);if(c.type&&c.type in m)return{name:l,type:m[c.type],label:He.human(l),id:f};if((u=c.type)!=null&&u.startsWith("enum(")){const g=c.type.match(/enum\((.*)\)/);if(g)return{name:l,type:"select",label:He.human(l),id:f,options:[{label:"-- Select a value --",value:""},...g[1].split(",").map(S=>{const x=S.replace(/['"]+/g,"");return{label:He.human(x.trim()),value:x.trim()}})]}}return{name:l,type:"text",label:He.human(l),id:f}})(t);return o.includes(t)&&s?[s,{...s,name:`${t}_confirmation`,label:`Confirm ${s.label}`,id:`luminix-form-${r.getType()}-${r.getKey()||"new"}-${t}-confirmation`}]:s}uuid(){return Math.random().toString(36).substring(2)}create(t){const n=this.uuid();return t(n),()=>{this.manager.clearReducer(n)}}subscribe(t,n){return this.manager.reducer(t,n)}listen(t,n){return this.manager.getReducer(t).on("change",n)}applyMiddlewares(t,n){return this.manager[t](n)}}const mB=xa(hB);var fS,pS;class gB extends(pS=Td,fS=Symbol.toStringTag,pS){constructor(){super(...arguments),Lm(this,fS,"ReactServiceProvider")}register(){this.app.singleton("forms",()=>new mB)}boot(){this.registerUrlParamReplacementForReactRouter()}registerUrlParamReplacementForReactRouter(){bm.reducer("replaceRouteParams",t=>{const n=t.replace(/^\/+|\/+$/g,""),r=/{([^}]+)}/g;return`/${n.replace(r,":$1")}`})}}const yB=({routes:e,config:t,providers:n,onInit:r,onBooting:o,onBooted:s,onFlushing:l,onFlushed:u,onReady:c,fallbackElement:f=y.jsx(iB,{}),...p})=>{const[m,g]=Z.useState(cS);return Z.useEffect(()=>{const S=_r.withProviders([gB,...n||[]]);return t&&S.withConfiguration(t),r&&S.on("init",r),o&&S.on("booting",o),s&&S.on("booted",s),c&&S.on("ready",c),l&&S.on("flushing",l),u&&S.on("flushed",u),S.on("ready",()=>{const x=bm.domRouterOptions({});g({booted:!0,router:A4(e(S),x)})}),S.create(),()=>{S.down()}},[t,s,o,u,l,r,c,n,e]),y.jsx(sB.Provider,{value:m,children:m.router?y.jsx(D4,{router:m.router,fallbackElement:f,...p}):f})};function hS(e,t){return t[e]()}function vB(e,t={}){const{method:n="get",page:r=1,id:o}=t,[s,l]=Z.useState({loading:!0,error:null}),u=Z.useCallback(()=>{if(l(({meta:f,links:p})=>({loading:!0,error:null,meta:f,links:p})),!e)return;const c=hS(n,{get:()=>[{page:r,replaceLinks:!0}],all:()=>[],first:()=>[],find:()=>[o]});if(!c){$d().error(`useQuery: method '${n}' is not supported`);return}return e[n](...c).then(f=>{const p=hS(n,{get:()=>f.data,all:()=>f,first:()=>f?Un([f]):null,find:()=>f?Un([f]):null});l({loading:!1,error:null,data:p??void 0,...n==="get"?f:void 0})}).catch(f=>{l({loading:!1,error:f}),$d().error(f)}),()=>{l({loading:!0,error:null})}},[e,r,n,o]);return Z.useEffect(u,[u]),{...s,refresh:u}}function bB(e){const[t,n]=So(),[r,o]=Z.useState(null),s=t.has("page")?Number(t.get("page")):1;Z.useEffect(()=>(o(e().include(t)),()=>{o(null)}),[t,e]);const l=vB(r,{page:s}),{meta:{current_page:u,last_page:c}={}}=l;return Z.useEffect(()=>{u&&c&&u>c&&n(f=>(f.set("page",c.toString()),f),{replace:!0})},[u,c,n]),l}const mS=Z.createContext({refresh:()=>{},loading:!1,error:new Error("Trying to access QueryContext outside of QueryProvider")}),xB=({factory:e,children:t})=>{const n=bB(e);return y.jsx(mS.Provider,{value:n,children:t})};class wB{getFacadeAccessor(){return"forms"}}const Bi=xo(wB,_r);function SB(e,t){if(X1(e)){const n=Object.entries(e.json("errors")).reduce((r,[o,s])=>(r[o]=s.join(", "),r),{});vm().set(n,t)}}function gS(e){return e}const CB=gm.throttle((...e)=>{$d().debug(...e)},1e3);function EB(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u=gS,tap:c=gS,preventDefault:f=!0,errorBag:p="default",method:m,autoSave:g=!1,debounce:S=1e3,debug:x=!1}=e,b=Z.useRef(),[w,P]=Z.useState(null);Z.useEffect(()=>Bi.create(D=>P(D)),[]);const R=Z.useCallback(D=>w?Bi.applyMiddlewares(w,D):D,[w]),[T,A]=Z.useState(t),[$,O]=Z.useState(!1),_=Z.useCallback(gm.debounce(D=>{var F;g&&((F=b.current)==null||F.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},S),[S,g]);Z.useEffect(()=>{_(T)},[_,T]),Z.useEffect(()=>{if(w&&x)return Bi.listen(w,D=>{$d().debug(`Form middleware stack changed to ${D.items.length} items:`,D.items)})},[w,x]);const N=Z.useCallback(D=>w?Bi.subscribe(w,D):()=>{},[w]);return{...Z.useMemo(()=>{const D=(G,W)=>{A(M=>{const q=G==="."?W:Lh.produce(M,se=>{je.set(se,G,W)});return r&&r(q),x&&CB("Form data changed",{form:b.current,path:G,value:W,data:q,prev:M}),q})},F=(G,W=M=>M.target.value)=>({name:G,value:je.get(T,G,"")??"",onChange:M=>{D(G,W(M))}}),K=G=>({name:G,value:(()=>{const W=je.get(T,G);return W?ec.toDateTimeLocal(W):""})(),onChange:W=>{const{value:M}=W.target;D(G,M?new Date(M).toISOString():null)}}),Y=G=>({name:G,value:je.get(T,G,"")??"",onChange:W=>{D(G,W.target.value)}}),J=(G,W)=>{const M=typeof W<"u"&&G.endsWith("[]"),q=M?G.replace(/\[\]$/,""):G,se=M?je.get(T,q,[])??[]:je.get(T,q);return{name:G,checked:M?se.includes(W):!!se,onChange:L=>{if(M){L.target.checked?D(q,[...se,W].flat()):D(q,se.filter(ie=>ie!==W));return}D(q,L.target.checked)},value:W}},U=(G,W)=>({name:G,value:W,checked:je.get(T,G)===W,onChange:M=>{D(G,M.target.value)}}),oe=async G=>{G.preventDefault();try{O(!0);let W=!0;if(n&&(W=await n(T)),W!==!1&&l){const M=R(tF.getClient()),q=await c(M)[m??"get"](l,u(T));q.successful()&&s?s(q):q.failed()&&(SB(q,p),o&&o(q))}}catch(W){o&&o(W)}finally{O(!1)}};return{data:T,setProp:D,formProps:()=>({onSubmit:f?oe:void 0,action:l,method:m==null?void 0:m.toUpperCase(),ref:b}),inputProps:F,textareaProps:F,selectProps:Y,checkboxProps:J,radioProps:U,datetimeLocalProps:K,isSubmitting:$,form:b.current,errorBag:p,...Bi.expandUseFormProps({},T)}},[T,r,$,n,l,m,x,u,s,p,o,f,c,R]),subscribe:N,applyMiddlewares:R}}function Fd(e){const t=Z.useMemo(()=>Bi.getFormInputComponent(e.type),[e.type]),{errorBag:n}=zo(),{[`${He.camel(e.name)}Error`]:r}=Fi(n);return y.jsx("div",{className:`luminix-form-control luminix-form-${e.type}-control ${r?"luminix-form-control-error":""}`,children:y.jsx(t,{...e})})}Fd.displayName="Input";function RB(e,t){const{initialValues:n,onSubmit:r,onChange:o,onError:s,onSuccess:l,action:u,transformPayload:c,preventDefault:f=!0,errorBag:p,method:m,children:g,autoSave:S,debounce:x,debug:b,className:w,tap:P,...R}=e,T=EB({initialValues:n,onSubmit:r,onChange:o,onError:s,onSuccess:l,action:u,transformPayload:c,preventDefault:f,errorBag:p,method:m,autoSave:S,debounce:x,debug:b,tap:P});Z.useImperativeHandle(t,()=>({applyMiddlewares:T.applyMiddlewares}),[T.applyMiddlewares]);const{data:A,...$}=T;return y.jsx(uS.Provider,{value:{form:T},children:y.jsx("form",{className:`luminix-form ${w||""}`.trim(),...R,...T.formProps(),children:typeof g=="function"?g(A,$):g})})}const yS=Z.forwardRef(RB);yS.Input=Fd;const Bm=Z.createContext({item:null});function kB(){const{item:e}=Z.useContext(Bm);return e}function vS({confirmed:e=[]}){const t=kB();return Z.useMemo(()=>Bi.getDefaultInputsForModel(t,e).filter(Boolean).map(({key:n,...r})=>y.jsx(Fd,{...r},n??r.name)),[t,...e])}function zm({children:e,className:t,...n}){return y.jsx("button",{type:"submit",className:`luminix-form-submit ${t??""}`.trim(),...n,children:e})}zm.displayName="Submit";const PB=()=>({});function Um(){const{item:e}=Z.useContext(Bm),{setProp:t}=zo();return Z.useEffect(()=>e.on("save",()=>{t(".",e.toJson())}),[e,t]),null}function Bd({item:e,children:t,onSubmit:n,onSuccess:r,onError:o,getSaveOptions:s=PB,hideSubmit:l=!1,submitText:u="Submit",confirmed:c=[],...f}){const p=e.getRouteForSave(),m=Z.useMemo(()=>typeof c=="string"?[c]:c,[c]),g=Z.useRef({applyMiddlewares:x=>x}),S=Z.useCallback(async x=>{let b=!0;if(n&&(b=await n(x)),e.fill(x),b!==!1){const{additionalPayload:w,...P}=s(x),R={additionalPayload:{...w,...je.pick(x,...m.map(T=>`${T}_confirmation`))},...P};e.save(R,g.current.applyMiddlewares).then(T=>{r&&T&&r(T)}).catch(o)}return!1},[e,n,r,o,s,m]);return y.jsx(Bm.Provider,{value:{item:e},children:y.jsx(yS,{ref:g,initialValues:e.toJson(),onSubmit:S,action:Pw().url(p),method:Pw().methods(p)[0],errorBag:e.getErrorBag(e.exists?"update":"store"),...f,children:(x,b)=>t?typeof t=="function"?y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),t(x,b)]}):y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),t]}):y.jsxs(y.Fragment,{children:[y.jsx(Um,{}),y.jsx(vS,{confirmed:m}),!l&&y.jsx(zm,{style:{marginTop:"1rem"},children:u})]})})})}Bd.Input=Fd,Bd.DefaultInputs=vS,Bd.Submit=zm;function Wm(e,t){const[n,r]=Z.useState(t?t(e.collect()):e.collect()),o=Z.useRef(!1);return Z.useEffect(()=>{o.current=!0},[]),Z.useEffect(()=>(o.current?o.current=!1:r(t?t(e.collect()):e.collect()),e.on("change",({items:s})=>{r(()=>t?t(new zn(s)):new zn(s))})),[e,t]),n}const TB=e=>e.pluck("callback");function Hm(e,t,n,...r){const o=Wm(e.getReducer(t),TB);return Z.useMemo(()=>Lh.isDraftable(n)?Lh.produce(n,s=>o.reduce((l,u)=>u(l,...r),s)):o.reduce((s,l)=>l(s,...r),n),[o,n,...r])}function hc(){return Z.useContext(mS)}function di(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const OB=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),Ra="$$material";function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function bS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $B=/^((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|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)-.*))$/,AB=bS(function(e){return $B.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jB=!1;function _B(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function MB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var IB=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!jB:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(MB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=_B(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Qn="-ms-",zd="-moz-",Ut="-webkit-",xS="comm",Vm="rule",Km="decl",NB="@import",wS="@keyframes",LB="@layer",DB=Math.abs,Ud=String.fromCharCode,FB=Object.assign;function BB(e,t){return Wn(e,0)^45?(((t<<2^Wn(e,0))<<2^Wn(e,1))<<2^Wn(e,2))<<2^Wn(e,3):0}function SS(e){return e.trim()}function zB(e,t){return(e=t.exec(e))?e[0]:e}function Wt(e,t,n){return e.replace(t,n)}function Gm(e,t){return e.indexOf(t)}function Wn(e,t){return e.charCodeAt(t)|0}function mc(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function qm(e){return e.length}function Wd(e,t){return t.push(e),e}function UB(e,t){return e.map(t).join("")}var Hd=1,ka=1,CS=0,yr=0,Pn=0,Pa="";function Vd(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Hd,column:ka,length:l,return:""}}function gc(e,t){return FB(Vd("",null,null,"",null,null,0),e,{length:-e.length},t)}function WB(){return Pn}function HB(){return Pn=yr>0?Wn(Pa,--yr):0,ka--,Pn===10&&(ka=1,Hd--),Pn}function Ir(){return Pn=yr<CS?Wn(Pa,yr++):0,ka++,Pn===10&&(ka=1,Hd++),Pn}function Wo(){return Wn(Pa,yr)}function Kd(){return yr}function yc(e,t){return mc(Pa,e,t)}function vc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ES(e){return Hd=ka=1,CS=Uo(Pa=e),yr=0,[]}function RS(e){return Pa="",e}function Gd(e){return SS(yc(yr-1,Qm(e===91?e+2:e===40?e+1:e)))}function VB(e){for(;(Pn=Wo())&&Pn<33;)Ir();return vc(e)>2||vc(Pn)>3?"":" "}function KB(e,t){for(;--t&&Ir()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return yc(e,Kd()+(t<6&&Wo()==32&&Ir()==32))}function Qm(e){for(;Ir();)switch(Pn){case e:return yr;case 34:case 39:e!==34&&e!==39&&Qm(Pn);break;case 40:e===41&&Qm(e);break;case 92:Ir();break}return yr}function GB(e,t){for(;Ir()&&e+Pn!==57;)if(e+Pn===84&&Wo()===47)break;return"/*"+yc(t,yr-1)+"*"+Ud(e===47?e:Ir())}function qB(e){for(;!vc(Wo());)Ir();return yc(e,yr)}function QB(e){return RS(qd("",null,null,null,[""],e=ES(e),0,[0],e))}function qd(e,t,n,r,o,s,l,u,c){for(var f=0,p=0,m=l,g=0,S=0,x=0,b=1,w=1,P=1,R=0,T="",A=o,$=s,O=r,_=T;w;)switch(x=R,R=Ir()){case 40:if(x!=108&&Wn(_,m-1)==58){Gm(_+=Wt(Gd(R),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:_+=Gd(R);break;case 9:case 10:case 13:case 32:_+=VB(x);break;case 92:_+=KB(Kd()-1,7);continue;case 47:switch(Wo()){case 42:case 47:Wd(YB(GB(Ir(),Kd()),t,n),c);break;default:_+="/"}break;case 123*b:u[f++]=Uo(_)*P;case 125*b:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+p:P==-1&&(_=Wt(_,/\f/g,"")),S>0&&Uo(_)-m&&Wd(S>32?PS(_+";",r,n,m-1):PS(Wt(_," ","")+";",r,n,m-2),c);break;case 59:_+=";";default:if(Wd(O=kS(_,t,n,f,p,o,u,T,A=[],$=[],m),s),R===123)if(p===0)qd(_,t,O,O,A,s,m,u,$);else switch(g===99&&Wn(_,3)===110?100:g){case 100:case 108:case 109:case 115:qd(e,O,O,r&&Wd(kS(e,O,O,0,0,o,u,T,o,A=[],m),$),o,$,m,u,r?A:$);break;default:qd(_,O,O,O,[""],$,0,u,$)}}f=p=S=0,b=P=1,T=_="",m=l;break;case 58:m=1+Uo(_),S=x;default:if(b<1){if(R==123)--b;else if(R==125&&b++==0&&HB()==125)continue}switch(_+=Ud(R),R*b){case 38:P=p>0?1:(_+="\f",-1);break;case 44:u[f++]=(Uo(_)-1)*P,P=1;break;case 64:Wo()===45&&(_+=Gd(Ir())),g=Wo(),p=m=Uo(T=_+=qB(Kd())),R++;break;case 45:x===45&&Uo(_)==2&&(b=0)}}return s}function kS(e,t,n,r,o,s,l,u,c,f,p){for(var m=o-1,g=o===0?s:[""],S=qm(g),x=0,b=0,w=0;x<r;++x)for(var P=0,R=mc(e,m+1,m=DB(b=l[x])),T=e;P<S;++P)(T=SS(b>0?g[P]+" "+R:Wt(R,/&\f/g,g[P])))&&(c[w++]=T);return Vd(e,t,n,o===0?Vm:u,c,f,p)}function YB(e,t,n){return Vd(e,t,n,xS,Ud(WB()),mc(e,2,-2),0)}function PS(e,t,n,r){return Vd(e,t,n,Km,mc(e,0,r),mc(e,r+1,-1),r)}function Ta(e,t){for(var n="",r=qm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function XB(e,t,n,r){switch(e.type){case LB:if(e.children.length)break;case NB:case Km:return e.return=e.return||e.value;case xS:return"";case wS:return e.return=e.value+"{"+Ta(e.children,r)+"}";case Vm:e.value=e.props.join(",")}return Uo(n=Ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function JB(e){var t=qm(e);return function(n,r,o,s){for(var l="",u=0;u<t;u++)l+=e[u](n,r,o,s)||"";return l}}function ZB(e){return function(t){t.root||(t=t.return)&&e(t)}}var e5=function(t,n,r){for(var o=0,s=0;o=s,s=Wo(),o===38&&s===12&&(n[r]=1),!vc(s);)Ir();return yc(t,yr)},t5=function(t,n){var r=-1,o=44;do switch(vc(o)){case 0:o===38&&Wo()===12&&(n[r]=1),t[r]+=e5(yr-1,n,r);break;case 2:t[r]+=Gd(o);break;case 4:if(o===44){t[++r]=Wo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ud(o)}while(o=Ir());return t},n5=function(t,n){return RS(t5(ES(t),n))},TS=new WeakMap,r5=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!TS.get(r))&&!o){TS.set(t,!0);for(var s=[],l=n5(n,s),u=r.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=s[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},o5=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OS(e,t){switch(BB(e,t)){case 5103:return Ut+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+zd+e+Qn+e+e;case 6828:case 4268:return Ut+e+Qn+e+e;case 6165:return Ut+e+Qn+"flex-"+e+e;case 5187:return Ut+e+Wt(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+Qn+"flex-$1$2")+e;case 5443:return Ut+e+Qn+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ut+e+Qn+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+Qn+Wt(e,"shrink","negative")+e;case 5292:return Ut+e+Qn+Wt(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+Wt(e,"-grow","")+Ut+e+Qn+Wt(e,"grow","positive")+e;case 4554:return Ut+Wt(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+Qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ut+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(Wn(e,t+1)){case 109:if(Wn(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+zd+(Wn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gm(e,"stretch")?OS(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wn(e,t+1)!==115)break;case 6444:switch(Wn(e,Uo(e)-3-(~Gm(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ut)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(Wn(e,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+Qn+"$2box$3")+e}break;case 5936:switch(Wn(e,t+11)){case 114:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+Qn+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+Qn+e+e}return e}var i5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Km:t.return=OS(t.value,t.length);break;case wS:return Ta([gc(t,{value:Wt(t.value,"@","@"+Ut)})],o);case Vm:if(t.length)return UB(t.props,function(s){switch(zB(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ta([gc(t,{props:[Wt(s,/:(read-\w+)/,":"+zd+"$1")]})],o);case"::placeholder":return Ta([gc(t,{props:[Wt(s,/:(plac\w+)/,":"+Ut+"input-$1")]}),gc(t,{props:[Wt(s,/:(plac\w+)/,":"+zd+"$1")]}),gc(t,{props:[Wt(s,/:(plac\w+)/,Qn+"input-$1")]})],o)}return""})}},s5=[i5],$S=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(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||s5,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),P=1;P<w.length;P++)s[w[P]]=!0;u.push(b)});var c,f=[r5,o5];{var p,m=[XB,ZB(function(b){p.insert(b)})],g=JB(f.concat(o,m)),S=function(w){return Ta(QB(w),g)};c=function(w,P,R,T){p=R,S(w?w+"{"+P.styles+"}":P.styles),T&&(x.inserted[P.name]=!0)}}var x={key:n,sheet:new IB({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(u),x},AS={exports:{}},Vt={};var jS;function a5(){if(jS)return Vt;jS=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,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function T($){if(typeof $=="object"&&$!==null){var O=$.$$typeof;switch(O){case t:switch($=$.type,$){case c:case f:case r:case s:case o:case m:return $;default:switch($=$&&$.$$typeof,$){case u:case p:case x:case S:case l:return $;default:return O}}case n:return O}}}function A($){return T($)===f}return Vt.AsyncMode=c,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=l,Vt.Element=t,Vt.ForwardRef=p,Vt.Fragment=r,Vt.Lazy=x,Vt.Memo=S,Vt.Portal=n,Vt.Profiler=s,Vt.StrictMode=o,Vt.Suspense=m,Vt.isAsyncMode=function($){return A($)||T($)===c},Vt.isConcurrentMode=A,Vt.isContextConsumer=function($){return T($)===u},Vt.isContextProvider=function($){return T($)===l},Vt.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Vt.isForwardRef=function($){return T($)===p},Vt.isFragment=function($){return T($)===r},Vt.isLazy=function($){return T($)===x},Vt.isMemo=function($){return T($)===S},Vt.isPortal=function($){return T($)===n},Vt.isProfiler=function($){return T($)===s},Vt.isStrictMode=function($){return T($)===o},Vt.isSuspense=function($){return T($)===m},Vt.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===s||$===o||$===m||$===g||typeof $=="object"&&$!==null&&($.$$typeof===x||$.$$typeof===S||$.$$typeof===l||$.$$typeof===u||$.$$typeof===p||$.$$typeof===w||$.$$typeof===P||$.$$typeof===R||$.$$typeof===b)},Vt.typeOf=T,Vt}AS.exports=a5();var l5=AS.exports,_S=l5,c5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MS={};MS[_S.ForwardRef]=c5,MS[_S.Memo]=u5;var d5=!0;function f5(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var IS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||d5===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},NS=function(t,n,r){IS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function p5(e){for(var t=0,n,r=0,o=e.length;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 h5={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,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},m5=!1,g5=/[A-Z]|^ms/g,y5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LS=function(t){return t.charCodeAt(1)===45},DS=function(t){return t!=null&&typeof t!="boolean"},Ym=bS(function(e){return LS(e)?e:e.replace(g5,"-$&").toLowerCase()}),FS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(y5,function(r,o,s){return Ho={name:o,styles:s,next:Ho},o})}return h5[t]!==1&&!LS(t)&&typeof n=="number"&&n!==0?n+"px":n},v5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bc(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 Ho={name:o.name,styles:o.styles,next:Ho},o.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Ho={name:l.name,styles:l.styles,next:Ho},l=l.next;var u=s.styles+";";return u}return b5(e,t,n)}case"function":{if(e!==void 0){var c=Ho,f=n(e);return Ho=c,bc(e,t,f)}break}}var p=n;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function b5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=bc(e,t,n[o])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?r+=s+"{"+t[u]+"}":DS(u)&&(r+=Ym(s)+":"+FS(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&m5)throw new Error(v5);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)DS(l[c])&&(r+=Ym(s)+":"+FS(s,l[c])+";");else{var f=bc(e,t,l);switch(s){case"animation":case"animationName":{r+=Ym(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var BS=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ho;function Xm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ho=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=bc(n,t,s);else{var l=s;o+=l[0]}for(var u=1;u<e.length;u++)if(o+=bc(n,t,e[u]),r){var c=s;o+=c[u]}BS.lastIndex=0;for(var f="",p;(p=BS.exec(o))!==null;)f+="-"+p[1];var m=p5(o)+f;return{name:m,styles:o,next:Ho}}var x5=function(t){return t()},zS=Wu.useInsertionEffect?Wu.useInsertionEffect:!1,w5=zS||x5,US=zS||E.useLayoutEffect,WS=E.createContext(typeof HTMLElement<"u"?$S({key:"css"}):null),S5=WS.Provider,HS=function(t){return E.forwardRef(function(n,r){var o=E.useContext(WS);return t(n,o,r)})},xc=E.createContext({}),Jm={exports:{}},VS;function KS(){return VS||(VS=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jm)),Jm.exports}KS();var C5=HS(function(e,t){var n=e.styles,r=Xm([n],void 0,E.useContext(xc)),o=E.useRef();return US(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",s),l.hydrate([c])),o.current=[l,u],function(){l.flush()}},[t]),US(function(){var s=o.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(r.next!==void 0&&NS(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xm(t)}var zi=function(){var t=Oa.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},E5=AB,R5=function(t){return t!=="theme"},GS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?E5:R5},qS=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},k5=!1,P5=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return IS(n,r,o),w5(function(){return NS(n,r,o)}),null},T5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=qS(t,n,r),c=u||GS(o),f=!c("as");return function(){var p=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{m.push(p[0][0]);for(var g=p.length,S=1;S<g;S++)m.push(p[S],p[0][S])}var x=HS(function(b,w,P){var R=f&&b.as||o,T="",A=[],$=b;if(b.theme==null){$={};for(var O in b)$[O]=b[O];$.theme=E.useContext(xc)}typeof b.className=="string"?T=f5(w.registered,A,b.className):b.className!=null&&(T=b.className+" ");var _=Xm(m.concat(A),w.registered,$);T+=w.key+"-"+_.name,l!==void 0&&(T+=" "+l);var N=f&&u===void 0?GS(R):c,D={};for(var F in b)f&&F==="as"||N(F)&&(D[F]=b[F]);return D.className=T,P&&(D.ref=P),E.createElement(E.Fragment,null,E.createElement(P5,{cache:w,serialized:_,isStringTag:typeof R=="string"}),E.createElement(R,D))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=m,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&k5?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(b,w){return e(b,k({},n,w,{shouldForwardProp:qS(x,w,!0)})).apply(void 0,m)},x}},O5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zm=T5.bind();O5.forEach(function(e){Zm[e]=Zm(e)});let eg;typeof document=="object"&&(eg=$S({key:"css",prepend:!0}));function $5(e){const{injectFirst:t,children:n}=e;return t&&eg?y.jsx(S5,{value:eg,children:n}):n}function A5(e){return e==null||Object.keys(e).length===0}function QS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(A5(o)?n:o):t;return y.jsx(C5,{styles:r})}function tg(e,t){return Zm(e,t)}const YS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:QS,StyledEngineProvider:$5,ThemeContext:xc,css:Oa,default:tg,internal_processStyles:YS,keyframes:zi},Symbol.toStringTag,{value:"Module"}));function fi(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 XS(e){if(!fi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=XS(e[n])}),t}function nr(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return fi(e)&&fi(t)&&Object.keys(t).forEach(o=>{fi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fi(e[o])?r[o]=nr(e[o],t[o],n):n.clone?r[o]=fi(t[o])?XS(t[o]):t[o]:r[o]=t[o]}),r}const _5=Object.freeze(Object.defineProperty({__proto__:null,default:nr,isPlainObject:fi},Symbol.toStringTag,{value:"Module"})),M5=["values","unit","step"],I5=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)=>k({},n,{[r.key]:r.val}),{})};function JS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ge(e,M5),s=I5(t),l=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function f(g,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function p(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):u(g)}function m(g){const S=l.indexOf(g);return S===0?u(l[1]):S===l.length-1?c(l[S]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return k({keys:l,values:s,up:u,down:c,between:f,only:p,not:m,unit:n},o)}const N5={borderRadius:4};function wc(e,t){return t?nr(e,t,{clone:!1}):e}const ng={xs:0,sm:600,md:900,lg:1200,xl:1536},ZS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ng[e]}px)`};function Co(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ZS;return t.reduce((l,u,c)=>(l[s.up(s.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const s=r.breakpoints||ZS;return Object.keys(t).reduce((l,u)=>{if(Object.keys(s.values||ng).indexOf(u)!==-1){const c=s.up(u);l[c]=n(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return n(t)}function eC(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function tC(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function L5(e,...t){const n=eC(e),r=[n,...t].reduce((o,s)=>nr(o,s),{});return tC(Object.keys(n),r)}function D5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function rg({values:e,breakpoints:t,base:n}){const r=n||D5(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((l,u,c)=>(Array.isArray(e)?(l[u]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[s],s=u):l[u]=e,l),{})}function le(e){if(typeof e!="string")throw new Error(di(7));return e.charAt(0).toUpperCase()+e.slice(1)}const F5=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"}));function $a(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Qd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=$a(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=$a(c,r)||{};return Co(l,u,m=>{let g=Qd(f,o,m);return m===g&&typeof m=="string"&&(g=Qd(f,o,`${t}${m==="default"?"":le(m)}`,m)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function B5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const z5={m:"margin",p:"padding"},U5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},W5=B5(e=>{if(e.length>2)if(nC[e])e=nC[e];else return[e];const[t,n]=e.split(""),r=z5[t],o=U5[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),og=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ig=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...og,...ig];function Sc(e,t,n,r){var o;const s=(o=$a(e,t,!1))!=null?o:n;return typeof s=="number"?l=>typeof l=="string"?l:s*l:Array.isArray(s)?l=>typeof l=="string"?l:s[l]:typeof s=="function"?s:()=>{}}function sg(e){return Sc(e,"spacing",8)}function Ls(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function H5(e,t){return n=>e.reduce((r,o)=>(r[o]=Ls(t,n),r),{})}function V5(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=W5(n),s=H5(o,r),l=e[n];return Co(e,l,s)}function rC(e,t){const n=sg(e.theme);return Object.keys(e).map(r=>V5(e,t,r,n)).reduce(wc,{})}function yn(e){return rC(e,og)}yn.propTypes={},yn.filterProps=og;function vn(e){return rC(e,ig)}vn.propTypes={},vn.filterProps=ig;function K5(e=8){if(e.mui)return e;const t=sg({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Yd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?wc(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function eo(e){return typeof e!="number"?e:`${e}px solid`}function to(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const G5=to("border",eo),q5=to("borderTop",eo),Q5=to("borderRight",eo),Y5=to("borderBottom",eo),X5=to("borderLeft",eo),J5=to("borderColor"),Z5=to("borderTopColor"),ez=to("borderRightColor"),tz=to("borderBottomColor"),nz=to("borderLeftColor"),rz=to("outline",eo),oz=to("outlineColor"),Xd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ls(t,r)});return Co(e,e.borderRadius,n)}return null};Xd.propTypes={},Xd.filterProps=["borderRadius"],Yd(G5,q5,Q5,Y5,X5,J5,Z5,ez,tz,nz,Xd,rz,oz);const Jd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({gap:Ls(t,r)});return Co(e,e.gap,n)}return null};Jd.propTypes={},Jd.filterProps=["gap"];const Zd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({columnGap:Ls(t,r)});return Co(e,e.columnGap,n)}return null};Zd.propTypes={},Zd.filterProps=["columnGap"];const ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sc(e.theme,"spacing",8),n=r=>({rowGap:Ls(t,r)});return Co(e,e.rowGap,n)}return null};ef.propTypes={},ef.filterProps=["rowGap"];const iz=Sn({prop:"gridColumn"}),sz=Sn({prop:"gridRow"}),az=Sn({prop:"gridAutoFlow"}),lz=Sn({prop:"gridAutoColumns"}),cz=Sn({prop:"gridAutoRows"}),uz=Sn({prop:"gridTemplateColumns"}),dz=Sn({prop:"gridTemplateRows"}),fz=Sn({prop:"gridTemplateAreas"}),pz=Sn({prop:"gridArea"});Yd(Jd,Zd,ef,iz,sz,az,lz,cz,uz,dz,fz,pz);function Aa(e,t){return t==="grey"?t:e}const hz=Sn({prop:"color",themeKey:"palette",transform:Aa}),mz=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Aa}),gz=Sn({prop:"backgroundColor",themeKey:"palette",transform:Aa});Yd(hz,mz,gz);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const yz=Sn({prop:"width",transform:Nr}),ag=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ng[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Nr(n)}};return Co(e,e.maxWidth,t)}return null};ag.filterProps=["maxWidth"];const vz=Sn({prop:"minWidth",transform:Nr}),bz=Sn({prop:"height",transform:Nr}),xz=Sn({prop:"maxHeight",transform:Nr}),wz=Sn({prop:"minHeight",transform:Nr});Sn({prop:"size",cssProperty:"width",transform:Nr}),Sn({prop:"size",cssProperty:"height",transform:Nr});const Sz=Sn({prop:"boxSizing"});Yd(yz,ag,vz,bz,xz,wz,Sz);const Cc={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xd},color:{themeKey:"palette",transform:Aa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Aa},backgroundColor:{themeKey:"palette",transform:Aa},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:yn},mt:{style:yn},mr:{style:yn},mb:{style:yn},ml:{style:yn},mx:{style:yn},my:{style:yn},margin:{style:yn},marginTop:{style:yn},marginRight:{style:yn},marginBottom:{style:yn},marginLeft:{style:yn},marginX:{style:yn},marginY:{style:yn},marginInline:{style:yn},marginInlineStart:{style:yn},marginInlineEnd:{style:yn},marginBlock:{style:yn},marginBlockStart:{style:yn},marginBlockEnd:{style:yn},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:Jd},rowGap:{style:ef},columnGap:{style:Zd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:ag},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cz(...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 Ez(e,t){return typeof e=="function"?e(t):e}function oC(){function e(n,r,o,s){const l={[n]:r,theme:o},u=s[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:m}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const g=$a(o,f)||{};return m?m(l):Co(l,r,x=>{let b=Qd(g,p,x);return x===b&&typeof x=="string"&&(b=Qd(g,p,`${n}${x==="default"?"":le(x)}`,x)),c===!1?b:{[c]:b}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const l=(r=s.unstable_sxConfig)!=null?r:Cc;function u(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=eC(s.breakpoints),m=Object.keys(p);let g=p;return Object.keys(f).forEach(S=>{const x=Ez(f[S],s);if(x!=null)if(typeof x=="object")if(l[S])g=wc(g,e(S,x,s,l));else{const b=Co({theme:s},x,w=>({[S]:w}));Cz(b,x)?g[S]=t({sx:x,theme:s}):g=wc(g,b)}else g=wc(g,e(S,x,s,l))}),tC(m,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const ja=oC();ja.filterProps=["sx"];function iC(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Rz=["breakpoints","palette","spacing","shape"];function _a(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,l=ge(e,Rz),u=JS(n),c=K5(o);let f=nr({breakpoints:u,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:c,shape:k({},N5,s)},l);return f.applyStyles=iC,f=t.reduce((p,m)=>nr(p,m),f),f.unstable_sxConfig=k({},Cc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return ja({sx:m,theme:this})},f}const kz=Object.freeze(Object.defineProperty({__proto__:null,default:_a,private_createBreakpoints:JS,unstable_applyStyles:iC},Symbol.toStringTag,{value:"Module"}));function Pz(e){return Object.keys(e).length===0}function lg(e=null){const t=E.useContext(xc);return!t||Pz(t)?e:t}const Tz=_a();function Ec(e=Tz){return lg(e)}function Oz({styles:e,themeId:t,defaultTheme:n={}}){const r=Ec(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(QS,{styles:o})}const $z=["sx"],Az=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Cc;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Rc(e){const{sx:t}=e,n=ge(e,$z),{systemProps:r,otherProps:o}=Az(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return fi(u)?k({},r,u):r}:s=k({},r,t),k({},o,{sx:s})}const jz=Object.freeze(Object.defineProperty({__proto__:null,default:ja,extendSxProp:Rc,unstable_createStyleFunctionSx:oC,unstable_defaultSxConfig:Cc},Symbol.toStringTag,{value:"Module"})),sC=e=>e,aC=(()=>{let e=sC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sC}}})();function lC(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;t<o;t++)e[t]&&(n=lC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lC(e))&&(r&&(r+=" "),r+=t);return r}const _z=["className","component"];function Mz(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=tg("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ja);return E.forwardRef(function(c,f){const p=Ec(n),m=Rc(c),{className:g,component:S="div"}=m,x=ge(m,_z);return y.jsx(s,k({as:S,ref:f,className:ye(g,o?o(r):r),theme:t&&p[t]||p},x))})}const Iz={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 Me(e,t,n="Mui"){const r=Iz[t];return r?`${n}-${r}`:`${aC.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Me(e,o,n)}),r}var cC={exports:{}},Kt={};var uC;function Nz(){if(uC)return Kt;uC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case e:switch(w=w.type,w){case n:case o:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case c:case g:case m:case s:return w;default:return P}}case t:return P}}}return Kt.ContextConsumer=l,Kt.ContextProvider=s,Kt.Element=e,Kt.ForwardRef=c,Kt.Fragment=n,Kt.Lazy=g,Kt.Memo=m,Kt.Portal=t,Kt.Profiler=o,Kt.StrictMode=r,Kt.Suspense=f,Kt.SuspenseList=p,Kt.isAsyncMode=function(){return!1},Kt.isConcurrentMode=function(){return!1},Kt.isContextConsumer=function(w){return b(w)===l},Kt.isContextProvider=function(w){return b(w)===s},Kt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Kt.isForwardRef=function(w){return b(w)===c},Kt.isFragment=function(w){return b(w)===n},Kt.isLazy=function(w){return b(w)===g},Kt.isMemo=function(w){return b(w)===m},Kt.isPortal=function(w){return b(w)===t},Kt.isProfiler=function(w){return b(w)===o},Kt.isStrictMode=function(w){return b(w)===r},Kt.isSuspense=function(w){return b(w)===f},Kt.isSuspenseList=function(w){return b(w)===p},Kt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===o||w===r||w===f||w===p||w===S||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},Kt.typeOf=b,Kt}cC.exports=Nz();var dC=cC.exports;const Lz=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fC(e){const t=`${e}`.match(Lz);return t&&t[1]||""}function pC(e,t=""){return e.displayName||e.name||fC(e)||t}function hC(e,t,n){const r=pC(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Dz(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dC.ForwardRef:return hC(e,e.render,"ForwardRef");case dC.Memo:return hC(e,e.type,"memo");default:return}}}const Fz=Object.freeze(Object.defineProperty({__proto__:null,default:Dz,getFunctionName:fC},Symbol.toStringTag,{value:"Module"})),Bz=["ownerState"],zz=["variants"],Uz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wz(e){return Object.keys(e).length===0}function Hz(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vz=_a(),Kz=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function tf({defaultTheme:e,theme:t,themeId:n}){return Wz(t)?e:t[n]||t}function Gz(e){return e?(t,n)=>n[e]:null}function nf(e,t){let{ownerState:n}=t,r=ge(t,Bz);const o=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>nf(s,k({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=ge(o,zz);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(k({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(k({ownerState:n},r,n)):c.style))}),u}return o}function qz(e={}){const{themeId:t,defaultTheme:n=Vz,rootShouldForwardProp:r=cg,slotShouldForwardProp:o=cg}=e,s=l=>ja(k({},l,{theme:tf(k({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{YS(l,$=>$.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=Gz(Kz(f))}=u,S=ge(u,Uz),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=cg;f==="Root"||f==="root"?P=r:f?P=o:Hz(l)&&(P=void 0);const R=tg(l,k({shouldForwardProp:P,label:w},S)),T=$=>typeof $=="function"&&$.__emotion_real!==$||fi($)?O=>nf($,k({},O,{theme:tf({theme:O.theme,defaultTheme:n,themeId:t})})):$,A=($,...O)=>{let _=T($);const N=O?O.map(T):[];c&&g&&N.push(K=>{const Y=tf(k({},K,{defaultTheme:n,themeId:t}));if(!Y.components||!Y.components[c]||!Y.components[c].styleOverrides)return null;const J=Y.components[c].styleOverrides,U={};return Object.entries(J).forEach(([oe,G])=>{U[oe]=nf(G,k({},K,{theme:Y}))}),g(K,U)}),c&&!x&&N.push(K=>{var Y;const J=tf(k({},K,{defaultTheme:n,themeId:t})),U=J==null||(Y=J.components)==null||(Y=Y[c])==null?void 0:Y.variants;return nf({variants:U},k({},K,{theme:J}))}),b||N.push(s);const D=N.length-O.length;if(Array.isArray($)&&D>0){const K=new Array(D).fill("");_=[...$,...K],_.raw=[...$.raw,...K]}const F=R(_,...N);return l.muiName&&(F.muiName=l.muiName),F};return R.withConfig&&(A.withConfig=R.withConfig),A}}const mC=qz();function kc(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=k({},s),Object.keys(o).forEach(l=>{n[r][l]=kc(o[l],s[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function gC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kc(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ec(n);return r&&(o=o[r]||o),gC({theme:o,name:t,props:e})}const vr=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Qz(e,t,n,r,o){const[s,l]=E.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return vr(()=>{let u=!0;if(!n)return;const c=n(e),f=()=>{u&&l(c.matches)};return f(),c.addListener(f),()=>{u=!1,c.removeListener(f)}},[e,n]),s}const vC=E.useSyncExternalStore;function Yz(e,t,n,r,o){const s=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,o,n]),[u,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[s,n,e]);return vC(c,u,l)}function rf(e,t={}){const n=lg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:u=!1}=gC({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(vC!==void 0?Yz:Qz)(c,o,s,l,u)}function ug(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Xz=Object.freeze(Object.defineProperty({__proto__:null,default:ug},Symbol.toStringTag,{value:"Module"}));function Jz(e,t=0,n=1){return ug(e,t,n)}function Zz(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 bC(e){if(e.type)return e;if(e.charAt(0)==="#")return bC(Zz(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(di(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"].indexOf(o)===-1)throw new Error(di(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function e3(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function t3(e,t){return e=bC(e),t=Jz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,e3(e)}function dg(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Pc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ma(e,t){var n,r;return E.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function An(e){return e&&e.ownerDocument||document}function Eo(e){return An(e).defaultView||window}function of(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let xC=0;function n3(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(xC+=1,n(`mui-${xC}`))},[t]),r}const wC=Wu.useId;function Ia(e){if(wC!==void 0){const t=wC();return e??t}return n3(e)}function pi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(e!==void 0),[s,l]=E.useState(t),u=o?e:s,c=E.useCallback(f=>{o||l(f)},[]);return[u,c]}function Nn(e){const t=E.useRef(e);return vr(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{of(n,t)})},e)}const SC={};function r3(e,t){const n=E.useRef(SC);return n.current===SC&&(n.current=e(t)),n}const o3=[];function i3(e){E.useEffect(e,o3)}class Tc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Tc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=r3(Tc.create).current;return i3(e.disposeEffect),e}let sf=!0,fg=!1;const s3=new Tc,a3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&a3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function c3(e){e.metaKey||e.altKey||e.ctrlKey||(sf=!0)}function pg(){sf=!1}function u3(){this.visibilityState==="hidden"&&fg&&(sf=!0)}function d3(e){e.addEventListener("keydown",c3,!0),e.addEventListener("mousedown",pg,!0),e.addEventListener("pointerdown",pg,!0),e.addEventListener("touchstart",pg,!0),e.addEventListener("visibilitychange",u3,!0)}function f3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sf||l3(t)}function hg(){const e=E.useCallback(o=>{o!=null&&d3(o.ownerDocument)},[]),t=E.useRef(!1);function n(){return t.current?(fg=!0,s3.start(100,()=>{fg=!1}),t.current=!1,!0):!1}function r(o){return f3(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function CC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Na;function EC(){if(Na)return Na;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Na="reverse",e.scrollLeft>0?Na="default":(e.scrollLeft=1,e.scrollLeft===0&&(Na="negative")),document.body.removeChild(e),Na}function p3(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(EC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mg=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current};function h3(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}function Le(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,l)=>{if(l){const u=t(l);u!==""&&s.push(u),n&&n[l]&&s.push(n[l])}return s},[]).join(" ")}),r}function La(e){return typeof e=="string"}function Da(e,t,n){return e===void 0||La(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function af(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function RC(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 kC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const S=ye(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=k({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=k({},n,o,r);return S.length>0&&(b.className=S),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const l=af(k({},o,r)),u=RC(r),c=RC(o),f=t(l),p=ye(f==null?void 0:f.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),m=k({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=k({},f,n,c,u);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}function PC(e,t,n){return typeof e=="function"?e(t,n):e}const m3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function rr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,l=ge(e,m3),u=s?{}:PC(r,o),{props:c,internalRef:f}=kC(k({},l,{externalSlotProps:u})),p=Gt(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Da(n,k({},c,{ref:p}),o)}const TC=E.createContext(null);function OC(){return E.useContext(TC)}const g3=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function y3(e,t){return typeof t=="function"?t(e):k({},e,t)}function v3(e){const{children:t,theme:n}=e,r=OC(),o=E.useMemo(()=>{const s=r===null?n:y3(r,n);return s!=null&&(s[g3]=r!==null),s},[n,r]);return y.jsx(TC.Provider,{value:o,children:t})}const b3=["value"],$C=E.createContext();function x3(e){let{value:t}=e,n=ge(e,b3);return y.jsx($C.Provider,k({value:t??!0},n))}const Oc=()=>{const e=E.useContext($C);return e??!1},AC=E.createContext(void 0);function w3({value:e,children:t}){return y.jsx(AC.Provider,{value:e,children:t})}function S3(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?kc(o.defaultProps,r):!o.styleOverrides&&!o.variants?kc(o,r):r}function C3({props:e,name:t}){const n=E.useContext(AC);return S3({props:e,name:t,theme:{components:n}})}const jC={};function _C(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),l=e?k({},t,{[e]:s}):s;return r?()=>l:l}return e?k({},t,{[e]:n}):k({},t,n)},[e,t,n,r])}function E3(e){const{children:t,theme:n,themeId:r}=e,o=lg(jC),s=OC()||jC,l=_C(r,o,n),u=_C(r,s,n,!0),c=l.direction==="rtl";return y.jsx(v3,{theme:u,children:y.jsx(xc.Provider,{value:l,children:y.jsx(x3,{value:c,children:y.jsx(w3,{value:l==null?void 0:l.components,children:t})})})})}const R3=(e,t)=>e.filter(n=>t.includes(n)),Fa=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((l,u)=>{s<=e.keys.length-1&&(s===0?Object.assign(l,u):l[e.up(e.keys[s])]=u)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:R3(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.indexOf(s)!==-1){const l=t[s];l!==void 0&&n((u,c)=>{r===s?Object.assign(u,c):u[e.up(s)]=c},l)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function mi(e){return e?`Level${e}`:""}function $c(e){return e.unstable_level>0&&e.container}function MC(e){return function(n){return`var(--Grid-${n}Spacing${mi(e.unstable_level)})`}}function gg(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${mi(e.unstable_level-1)})`}}function yg(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${mi(e.unstable_level-1)})`}const k3=({theme:e,ownerState:t})=>{const n=MC(t),r={};return Fa(e.breakpoints,t.gridSize,(o,s)=>{let l={};s===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / ${yg(t)}${$c(t)?` + ${n("column")}`:""})`}),o(r,l)}),r},P3=({theme:e,ownerState:t})=>{const n={};return Fa(e.breakpoints,t.gridOffset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / ${yg(t)})`}),r(n,s)}),n},T3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=$c(t)?{[`--Grid-columns${mi(t.unstable_level)}`]:yg(t)}:{"--Grid-columns":12};return Fa(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${mi(t.unstable_level)}`]:o})}),n},O3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=gg(t),r=$c(t)?{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:n("row")}:{};return Fa(e.breakpoints,t.rowSpacing,(o,s)=>{var l;o(r,{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},$3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=gg(t),r=$c(t)?{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:n("column")}:{};return Fa(e.breakpoints,t.columnSpacing,(o,s)=>{var l;o(r,{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},A3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fa(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},j3=({ownerState:e})=>{const t=MC(e),n=gg(e);return k({minWidth:0,boxSizing:"border-box"},e.container&&k({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||$c(e))&&k({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},_3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},M3=(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,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},I3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],N3=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],L3=_a(),D3=mC("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function F3(e){return yC({props:e,name:"MuiGrid",defaultTheme:L3})}function B3(e={}){const{createStyledComponent:t=D3,useThemeProps:n=F3,componentName:r="MuiGrid"}=e,o=E.createContext(void 0),s=(c,f)=>{const{container:p,direction:m,spacing:g,wrap:S,gridSize:x}=c,b={root:["root",p&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...I3(m),..._3(x),...p?M3(g,f.breakpoints.keys[0]):[]]};return Le(b,w=>Me(r,w),{})},l=t(T3,$3,O3,k3,A3,j3,P3),u=E.forwardRef(function(f,p){var m,g,S,x,b,w,P,R;const T=Ec(),A=n(f),$=Rc(A),O=E.useContext(o),{className:_,children:N,columns:D=12,container:F=!1,component:K="div",direction:Y="row",wrap:J="wrap",spacing:U=0,rowSpacing:oe=U,columnSpacing:G=U,disableEqualOverflow:W,unstable_level:M=0}=$,q=ge($,N3);let se=W;M&&W!==void 0&&(se=f.disableEqualOverflow);const L={},ie={},Oe={};Object.entries(q).forEach(([Ve,Be])=>{T.breakpoints.values[Ve]!==void 0?L[Ve]=Be:T.breakpoints.values[Ve.replace("Offset","")]!==void 0?ie[Ve.replace("Offset","")]=Be:Oe[Ve]=Be});const ve=(m=f.columns)!=null?m:M?void 0:D,xe=(g=f.spacing)!=null?g:M?void 0:U,he=(S=(x=f.rowSpacing)!=null?x:f.spacing)!=null?S:M?void 0:oe,Ie=(b=(w=f.columnSpacing)!=null?w:f.spacing)!=null?b:M?void 0:G,de=k({},$,{level:M,columns:ve,container:F,direction:Y,wrap:J,spacing:xe,rowSpacing:he,columnSpacing:Ie,gridSize:L,gridOffset:ie,disableEqualOverflow:(P=(R=se)!=null?R:O)!=null?P:!1,parentDisableEqualOverflow:O}),ke=s(de,T);let Qe=y.jsx(l,k({ref:p,as:K,ownerState:de,className:ye(ke.root,_)},Oe,{children:E.Children.map(N,Ve=>{if(E.isValidElement(Ve)&&Ma(Ve,["Grid"])){var Be;return E.cloneElement(Ve,{unstable_level:(Be=Ve.props.unstable_level)!=null?Be:M+1})}return Ve})}));return se!==void 0&&se!==(O??!1)&&(Qe=y.jsx(o.Provider,{value:se,children:Qe})),Qe});return u.muiName="Grid",u}const z3=["component","direction","spacing","divider","children","className","useFlexGap"],U3=_a(),W3=mC("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function H3(e){return yC({props:e,name:"MuiStack",defaultTheme:U3})}function V3(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(E.cloneElement(t,{key:`separator-${s}`})),r),[])}const K3=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],G3=({ownerState:e,theme:t})=>{let n=k({display:"flex",flexDirection:"column"},Co({theme:t},rg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=sg(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),s=rg({values:e.direction,base:o}),l=rg({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,f,p)=>{if(!s[c]){const g=f>0?s[p[f-1]]:"column";s[c]=g}}),n=nr(n,Co({theme:t},l,(c,f)=>e.useFlexGap?{gap:Ls(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${K3(f?s[f]:e.direction)}`]:Ls(r,c)}}))}return n=L5(t.breakpoints,n),n};function q3(e={}){const{createStyledComponent:t=W3,useThemeProps:n=H3,componentName:r="MuiStack"}=e,o=()=>Le({root:["root"]},c=>Me(r,c),{}),s=t(G3);return E.forwardRef(function(c,f){const p=n(c),m=Rc(p),{component:g="div",direction:S="column",spacing:x=0,divider:b,children:w,className:P,useFlexGap:R=!1}=m,T=ge(m,z3),A={direction:S,spacing:x,useFlexGap:R},$=o();return y.jsx(s,k({as:g,ownerState:A,ref:f,className:ye($.root,P)},T,{children:b?V3(w,b):w}))})}function Q3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},IC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(IC);var NC=IC.exports;const Y3=Or(OB),X3=Or(Xz);var Ac={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_ab00477f-635d-427b-adae-839bd0fc8e81",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"",npm_config_user_agent:"npm/10.8.2 node/v20.19.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_ab00477f-635d-427b-adae-839bd0fc8e81",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.0/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/js-mui-cms/js-mui-cms/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"luminix-cms",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"158327540",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_local_prefix:"/home/runner/work/js-mui-cms/js-mui-cms",SYSTEMD_EXEC_PID:"708",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250406.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.8/x64",JOURNAL_STREAM:"8:6002",GITHUB_WORKFLOW:"Publish beta version to NPM",_:"/opt/hostedtoolcache/node/20.19.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.19.0/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"14455673698",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"a43897a1291d755876f2bd2f8bfeb97422e06bd4",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"luminix-cms/js-mui-cms/.github/workflows/beta.yml@refs/heads/v0.x",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_657c40ee-7849-4184-b0ab-88e6a64104b5",INVOCATION_ID:"f4f198ad34ed483e87d3e62ae5dffe9e",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.19.0/x64/bin/node",npm_package_name:"@luminix/mui-cms",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"33",GITHUB_TRIGGERING_ACTOR:"obrunopolo",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000000014",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v0.x",GITHUB_REPOSITORY:"luminix-cms/js-mui-cms",STATS_D_D:"true",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"751419373",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"",npm_lifecycle_event:"build:bundle",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/js-mui-cms/js-mui-cms",ACCEPT_EULA:"Y",GITHUB_JOB:"publish",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"a43897a1291d755876f2bd2f8bfeb97422e06bd4",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/v0.x",GITHUB_ACTOR:"obrunopolo",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.19.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_ab00477f-635d-427b-adae-839bd0fc8e81",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/js-mui-cms/js-mui-cms",GITHUB_ACTOR_ID:"47830258",RUNNER_WORKSPACE:"/home/runner/work/js-mui-cms",npm_execpath:"/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_ab00477f-635d-427b-adae-839bd0fc8e81",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.19.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_ab00477f-635d-427b-adae-839bd0fc8e81",INIT_CWD:"/home/runner/work/js-mui-cms/js-mui-cms",EDITOR:"vi",NODE_ENV:"production"},LC=NC;Object.defineProperty(Cn,"__esModule",{value:!0});var mt=Cn.alpha=UC;Cn.blend=lU,Cn.colorChannel=void 0;var jc=Cn.darken=bg;Cn.decomposeColor=no;var lf=Cn.emphasize=WC,J3=Cn.getContrastRatio=rU;Cn.getLuminance=cf,Cn.hexToRgb=FC,Cn.hslToRgb=zC;var _c=Cn.lighten=xg;Cn.private_safeAlpha=oU,Cn.private_safeColorChannel=void 0,Cn.private_safeDarken=iU,Cn.private_safeEmphasize=aU,Cn.private_safeLighten=sU,Cn.recomposeColor=Ba,Cn.rgbToHex=nU;var DC=LC(Y3),Z3=LC(X3);function vg(e,t=0,n=1){return(0,Z3.default)(e,t,n)}function FC(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 eU(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function no(e){if(e.type)return e;if(e.charAt(0)==="#")return no(FC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,DC.default)(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"].indexOf(o)===-1)throw new Error((0,DC.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const BC=e=>{const t=no(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=BC;const tU=(e,t)=>{try{return BC(e)}catch{return t&&Ac.NODE_ENV!=="production"&&console.warn(t),e}};Cn.private_safeColorChannel=tU;function Ba(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function nU(e){if(e.indexOf("#")===0)return e;const{values:t}=no(e);return`#${t.map((n,r)=>eU(r===3?Math.round(255*n):n)).join("")}`}function zC(e){e=no(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(f,p=(f+n/30)%12)=>o-s*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Ba({type:u,values:c})}function cf(e){e=no(e);let t=e.type==="hsl"||e.type==="hsla"?no(zC(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 rU(e,t){const n=cf(e),r=cf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function UC(e,t){return e=no(e),t=vg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ba(e)}function oU(e,t,n){try{return UC(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function bg(e,t){if(e=no(e),t=vg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ba(e)}function iU(e,t,n){try{return bg(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function xg(e,t){if(e=no(e),t=vg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ba(e)}function sU(e,t,n){try{return xg(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function WC(e,t=.15){return cf(e)>.5?bg(e,t):xg(e,t)}function aU(e,t,n){try{return WC(e,t)}catch{return n&&Ac.NODE_ENV!=="production"&&console.warn(n),e}}function lU(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),s=no(e),l=no(t),u=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return Ba({type:"rgb",values:u})}const Mc={black:"#000",white:"#fff"},cU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},za={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ua={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ic={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ha={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Va={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},uU=["mode","contrastThreshold","tonalOffset"],HC={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:Mc.white,default:Mc.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}},wg={text:{primary:Mc.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:Mc.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}};function VC(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_c(e.main,o):t==="dark"&&(e.dark=jc(e.main,s)))}function dU(e="light"){return e==="dark"?{main:Wa[200],light:Wa[50],dark:Wa[400]}:{main:Wa[700],light:Wa[400],dark:Wa[800]}}function fU(e="light"){return e==="dark"?{main:za[200],light:za[50],dark:za[400]}:{main:za[500],light:za[300],dark:za[700]}}function pU(e="light"){return e==="dark"?{main:Ua[500],light:Ua[300],dark:Ua[700]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function hU(e="light"){return e==="dark"?{main:Ha[400],light:Ha[300],dark:Ha[700]}:{main:Ha[700],light:Ha[500],dark:Ha[900]}}function mU(e="light"){return e==="dark"?{main:Va[400],light:Va[300],dark:Va[700]}:{main:Va[800],light:Va[500],dark:Va[900]}}function gU(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:"#ed6c02",light:Ic[500],dark:Ic[900]}}function yU(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ge(e,uU),s=e.primary||dU(t),l=e.secondary||fU(t),u=e.error||pU(t),c=e.info||hU(t),f=e.success||mU(t),p=e.warning||gU(t);function m(b){return J3(b,wg.text.primary)>=n?wg.text.primary:HC.text.primary}const g=({color:b,name:w,mainShade:P=500,lightShade:R=300,darkShade:T=700})=>{if(b=k({},b),!b.main&&b[P]&&(b.main=b[P]),!b.hasOwnProperty("main"))throw new Error(di(11,w?` (${w})`:"",P));if(typeof b.main!="string")throw new Error(di(12,w?` (${w})`:"",JSON.stringify(b.main)));return VC(b,"light",R,r),VC(b,"dark",T,r),b.contrastText||(b.contrastText=m(b.main)),b},S={dark:wg,light:HC};return nr(k({common:k({},Mc),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:f,name:"success"}),grey:cU,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r},S[t]),o)}const vU=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bU(e){return Math.round(e*1e5)/1e5}const KC={textTransform:"uppercase"},GC='"Roboto", "Helvetica", "Arial", sans-serif';function xU(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=GC,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=n,g=ge(n,vU),S=o/14,x=m||(P=>`${P/f*S}rem`),b=(P,R,T,A,$)=>k({fontFamily:r,fontWeight:P,fontSize:x(R),lineHeight:T},r===GC?{letterSpacing:`${bU(A/R)}em`}:{},$,p),w={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(u,14,1.75,.4,KC),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,KC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr(k({htmlFontSize:f,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},w),g,{clone:!1})}const wU=.2,SU=.14,CU=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wU})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SU})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CU})`].join(",")}const EU=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],RU=["duration","easing","delay"],kU={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)"},qC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function QC(e){return`${Math.round(e)}ms`}function PU(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function TU(e){const t=k({},kU,e.easing),n=k({},qC,e.duration);return k({getAutoHeightDuration:PU,create:(o=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:c=0}=s;return ge(s,RU),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof l=="string"?l:QC(l)} ${u} ${typeof c=="string"?c:QC(c)}`).join(",")}},e,{easing:t,duration:n})}const OU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$U=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,l=ge(e,$U);if(e.vars)throw new Error(di(18));const u=yU(r),c=_a(e);let f=nr(c,{mixins:Q3(c.breakpoints,n),palette:u,shadows:EU.slice(),typography:xU(u,s),transitions:TU(o),zIndex:k({},OU)});return f=nr(f,l),f=t.reduce((p,m)=>nr(p,m),f),f.unstable_sxConfig=k({},Cc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return ja({sx:m,theme:this})},f}function AU(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function jU(e){return parseFloat(e)}const Cg=Sg();function br(){const e=Ec(Cg);return e[Ra]||e}var Nc={},Eg={exports:{}},YC;function _U(){return YC||(YC=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.includes(s))continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}const XC=Or(j5),MU=Or(_5),IU=Or(F5),NU=Or(Fz),LU=Or(kz),DU=Or(jz);var Ka=NC;Object.defineProperty(Nc,"__esModule",{value:!0});var FU=Nc.default=JU;Nc.shouldForwardProp=uf,Nc.systemDefaultTheme=void 0;var ro=Ka(KS()),Rg=Ka(_U()),JC=KU(XC),BU=MU;Ka(IU),Ka(NU);var zU=Ka(LU),UU=Ka(DU);const WU=["ownerState"],HU=["variants"],VU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ZC=function(r){return r?n:t})(e)}function KU(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ZC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function GU(e){return Object.keys(e).length===0}function qU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QU=Nc.systemDefaultTheme=(0,zU.default)(),YU=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function df({defaultTheme:e,theme:t,themeId:n}){return GU(t)?e:t[n]||t}function XU(e){return e?(t,n)=>n[e]:null}function ff(e,t){let{ownerState:n}=t,r=(0,Rg.default)(t,WU);const o=typeof e=="function"?e((0,ro.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>ff(s,(0,ro.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=(0,Rg.default)(o,HU);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,ro.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,ro.default)({ownerState:n},r,n)):c.style))}),u}return o}function JU(e={}){const{themeId:t,defaultTheme:n=QU,rootShouldForwardProp:r=uf,slotShouldForwardProp:o=uf}=e,s=l=>(0,UU.default)((0,ro.default)({},l,{theme:df((0,ro.default)({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{(0,JC.internal_processStyles)(l,$=>$.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=XU(YU(f))}=u,S=(0,Rg.default)(u,VU),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=uf;f==="Root"||f==="root"?P=r:f?P=o:qU(l)&&(P=void 0);const R=(0,JC.default)(l,(0,ro.default)({shouldForwardProp:P,label:w},S)),T=$=>typeof $=="function"&&$.__emotion_real!==$||(0,BU.isPlainObject)($)?O=>ff($,(0,ro.default)({},O,{theme:df({theme:O.theme,defaultTheme:n,themeId:t})})):$,A=($,...O)=>{let _=T($);const N=O?O.map(T):[];c&&g&&N.push(K=>{const Y=df((0,ro.default)({},K,{defaultTheme:n,themeId:t}));if(!Y.components||!Y.components[c]||!Y.components[c].styleOverrides)return null;const J=Y.components[c].styleOverrides,U={};return Object.entries(J).forEach(([oe,G])=>{U[oe]=ff(G,(0,ro.default)({},K,{theme:Y}))}),g(K,U)}),c&&!x&&N.push(K=>{var Y;const J=df((0,ro.default)({},K,{defaultTheme:n,themeId:t})),U=J==null||(Y=J.components)==null||(Y=Y[c])==null?void 0:Y.variants;return ff({variants:U},(0,ro.default)({},K,{theme:J}))}),b||N.push(s);const D=N.length-O.length;if(Array.isArray($)&&D>0){const K=new Array(D).fill("");_=[...$,...K],_.raw=[...$.raw,...K]}const F=R(_,...N);return l.muiName&&(F.muiName=l.muiName),F};return R.withConfig&&(A.withConfig=R.withConfig),A}}function eE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>eE(e)&&e!=="classes",re=FU({themeId:Ra,defaultTheme:Cg,rootShouldForwardProp:Tn}),ZU=["theme"];function e6(e){let{theme:t}=e,n=ge(e,ZU);const r=t[Ra];return y.jsx(E3,k({},n,{themeId:r?Ra:void 0,theme:r||t}))}const tE=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fe(e){return C3(e)}function t6(e){return Me("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n6=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],r6=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return Le(o,t6,r)},o6=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,l,u,c,f,p,m,g,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),kg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=r,S=ge(r,n6),x=E.isValidElement(o)&&o.type==="svg",b=k({},r,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:x}),w={};p||(w.viewBox=g);const P=r6(b);return y.jsxs(o6,k({as:u,className:ye(P.root,s),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n},w,S,x&&o.props,{ownerState:b,children:[x?o.props.children:o,m?y.jsx("title",{children:m}):null]}))});kg.muiName="SvgIcon";function Rt(e,t){function n(r,o){return y.jsx(kg,k({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=kg.muiName,E.memo(E.forwardRef(n))}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Pg(e,t)}function nE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pg(e,t)}const rE={disabled:!1},pf=Z.createContext(null);var i6=function(t){return t.scrollTop},Lc="unmounted",Ds="exited",Fs="entering",Ga="entered",Tg="exiting",Lr=function(e){nE(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=o,u=l&&!l.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?u?(c=Ds,s.appearStatus=Fs):c=Ga:r.unmountOnExit||r.mountOnEnter?c=Lc:c=Ds,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===Lc?{status:Ds}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Fs&&l!==Ga&&(s=Fs):(l===Fs||l===Ga)&&(s=Tg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,l,u;return s=l=u=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,u=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this);l&&i6(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ds&&this.setState({status:Lc})},n.performEnter=function(o){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[bs.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),g=u?m.appear:m.enter;if(!o&&!l||rE.disabled){this.safeSetState({status:Ga},function(){s.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Fs},function(){s.props.onEntering(f,p),s.onTransitionEnd(g,function(){s.safeSetState({status:Ga},function(){s.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:bs.findDOMNode(this);if(!s||rE.disabled){this.safeSetState({status:Ds},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Tg},function(){o.props.onExiting(u),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Ds},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,o(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Lc)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=ge(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(pf.Provider,{value:null},typeof l=="function"?l(o,u):Z.cloneElement(Z.Children.only(l),u))},t}(Z.Component);Lr.contextType=pf,Lr.propTypes={};function qa(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qa,onEntering:qa,onEntered:qa,onExit:qa,onExiting:qa,onExited:qa},Lr.UNMOUNTED=Lc,Lr.EXITED=Ds,Lr.ENTERING=Fs,Lr.ENTERED=Ga,Lr.EXITING=Tg;function s6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Og(e,t){var n=function(s){return t&&E.isValidElement(s)?t(s):s},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function a6(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var l,u={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var f=r[c][l];u[r[c][l]]=n(f)}u[c]=n(c)}for(l=0;l<o.length;l++)u[o[l]]=n(o[l]);return u}function Bs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function l6(e,t){return Og(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Bs(n,"appear",e),enter:Bs(n,"enter",e),exit:Bs(n,"exit",e)})})}function c6(e,t,n){var r=Og(e.children),o=a6(t,r);return Object.keys(o).forEach(function(s){var l=o[s];if(E.isValidElement(l)){var u=s in t,c=s in r,f=t[s],p=E.isValidElement(f)&&!f.props.in;c&&(!u||p)?o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Bs(l,"exit",e),enter:Bs(l,"enter",e)}):!c&&u&&!p?o[s]=E.cloneElement(l,{in:!1}):c&&u&&E.isValidElement(f)&&(o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Bs(l,"exit",e),enter:Bs(l,"enter",e)}))}}),o}var u6=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d6={component:"div",childFactory:function(t){return t}},$g=function(e){nE(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=s.handleExited.bind(s6(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,u=s.handleExited,c=s.firstRender;return{children:c?l6(o,u):c6(o,l,u),firstRender:!1}},n.handleExited=function(o,s){var l=Og(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(u){var c=k({},u.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,l=o.childFactory,u=ge(o,["component","childFactory"]),c=this.state.contextValue,f=u6(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?Z.createElement(pf.Provider,{value:c},f):Z.createElement(pf.Provider,{value:c},Z.createElement(s,u,f))},t}(Z.Component);$g.propTypes={},$g.defaultProps=d6;const hf=e=>e.scrollTop;function Vo(e,t){var n,r;const{timeout:o,easing:s,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:l.transitionDelay}}function f6(e){return Me("MuiCollapse",e)}Ne("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const p6=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],h6=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Le(r,f6,n)},m6=re("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]}})(({theme:e,ownerState:t})=>k({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&k({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g6=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>k({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y6=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>k({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ag=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:l,collapsedSize:u="0px",component:c,easing:f,in:p,onEnter:m,onEntered:g,onEntering:S,onExit:x,onExited:b,onExiting:w,orientation:P="vertical",style:R,timeout:T=qC.standard,TransitionComponent:A=Lr}=r,$=ge(r,p6),O=k({},r,{orientation:P,collapsedSize:u}),_=h6(O),N=br(),D=hi(),F=E.useRef(null),K=E.useRef(),Y=typeof u=="number"?`${u}px`:u,J=P==="horizontal",U=J?"width":"height",oe=E.useRef(null),G=Gt(n,oe),W=he=>Ie=>{if(he){const de=oe.current;Ie===void 0?he(de):he(de,Ie)}},M=()=>F.current?F.current[J?"clientWidth":"clientHeight"]:0,q=W((he,Ie)=>{F.current&&J&&(F.current.style.position="absolute"),he.style[U]=Y,m&&m(he,Ie)}),se=W((he,Ie)=>{const de=M();F.current&&J&&(F.current.style.position="");const{duration:ke,easing:Qe}=Vo({style:R,timeout:T,easing:f},{mode:"enter"});if(T==="auto"){const Ve=N.transitions.getAutoHeightDuration(de);he.style.transitionDuration=`${Ve}ms`,K.current=Ve}else he.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;he.style[U]=`${de}px`,he.style.transitionTimingFunction=Qe,S&&S(he,Ie)}),L=W((he,Ie)=>{he.style[U]="auto",g&&g(he,Ie)}),ie=W(he=>{he.style[U]=`${M()}px`,x&&x(he)}),Oe=W(b),ve=W(he=>{const Ie=M(),{duration:de,easing:ke}=Vo({style:R,timeout:T,easing:f},{mode:"exit"});if(T==="auto"){const Qe=N.transitions.getAutoHeightDuration(Ie);he.style.transitionDuration=`${Qe}ms`,K.current=Qe}else he.style.transitionDuration=typeof de=="string"?de:`${de}ms`;he.style[U]=Y,he.style.transitionTimingFunction=ke,w&&w(he)}),xe=he=>{T==="auto"&&D.start(K.current||0,he),o&&o(oe.current,he)};return y.jsx(A,k({in:p,onEnter:q,onEntered:L,onEntering:se,onExit:ie,onExited:Oe,onExiting:ve,addEndListener:xe,nodeRef:oe,timeout:T==="auto"?null:T},$,{children:(he,Ie)=>y.jsx(m6,k({as:c,className:ye(_.root,l,{entered:_.entered,exited:!p&&Y==="0px"&&_.hidden}[he]),style:k({[J?"minWidth":"minHeight"]:Y},R),ref:G},Ie,{ownerState:k({},O,{state:he}),children:y.jsx(g6,{ownerState:k({},O,{state:he}),className:_.wrapper,ref:F,children:y.jsx(y6,{ownerState:k({},O,{state:he}),className:_.wrapperInner,children:s})})}))}))});Ag.muiSupportAuto=!0;function v6(e){return Me("MuiPaper",e)}Ne("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 b6=["className","component","elevation","square","variant"],x6=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Le(s,v6,o)},w6=re("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}`]]}})(({theme:e,ownerState:t})=>{var n;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",tE(t.elevation))}, ${mt("#fff",tE(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),oo=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=r,f=ge(r,b6),p=k({},r,{component:s,elevation:l,square:u,variant:c}),m=x6(p);return y.jsx(w6,k({as:s,ownerState:p,className:ye(m.root,o),ref:n},f))}),S6=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],C6=["component","slots","slotProps"],E6=["component"];function jg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:l,internalForwardedProps:u}=t,c=ge(t,S6),{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0}}=s,g=ge(s,C6),S=p[e]||r,x=PC(m[e],o),b=kC(k({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:w},internalRef:P}=b,R=ge(b.props,E6),T=Gt(P,x==null?void 0:x.ref,t.ref),A=l?l(R):{},$=k({},o,A),O=e==="root"?w||f:w,_=Da(S,k({},e==="root"&&!f&&!p[e]&&u,e!=="root"&&!p[e]&&u,R,O&&{as:O},{ref:T}),$);return Object.keys(A).forEach(N=>{delete _[N]}),[S,_]}function R6(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=E.useState(!1),g=ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},x=ye(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&m(!0),E.useEffect(()=>{if(!u&&c!=null){const b=setTimeout(c,f);return()=>{clearTimeout(b)}}},[c,u,f]),y.jsx("span",{className:g,style:S,children:y.jsx("span",{className:x})})}const io=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),k6=["center","classes","className"];let mf=e=>e,oE,iE,sE,aE;const _g=550,P6=80,T6=zi(oE||(oE=mf`
23
23
  0% {
24
24
  transform: scale(0);
25
25
  opacity: 0.1;
@@ -92,8 +92,8 @@ Error generating stack: `+C.message+`
92
92
  animation-iteration-count: infinite;
93
93
  animation-delay: 200ms;
94
94
  }
95
- `),io.rippleVisible,T6,_g,({theme:e})=>e.transitions.easing.easeInOut,io.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,io.child,io.childLeaving,O6,_g,({theme:e})=>e.transitions.easing.easeInOut,io.childPulsate,$6,({theme:e})=>e.transitions.easing.easeInOut),_6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l}=r,u=ge(r,k6),[c,f]=E.useState([]),p=E.useRef(0),m=E.useRef(null);E.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const g=E.useRef(!1),S=hi(),x=E.useRef(null),b=E.useRef(null),w=E.useCallback(A=>{const{pulsate:$,rippleX:O,rippleY:_,rippleSize:N,cb:D}=A;f(F=>[...F,y.jsx(j6,{classes:{ripple:ye(s.ripple,io.ripple),rippleVisible:ye(s.rippleVisible,io.rippleVisible),ripplePulsate:ye(s.ripplePulsate,io.ripplePulsate),child:ye(s.child,io.child),childLeaving:ye(s.childLeaving,io.childLeaving),childPulsate:ye(s.childPulsate,io.childPulsate)},timeout:_g,pulsate:$,rippleX:O,rippleY:_,rippleSize:N},p.current)]),p.current+=1,m.current=D},[s]),P=E.useCallback((A={},$={},O=()=>{})=>{const{pulsate:_=!1,center:N=o||$.pulsate,fakeElement:D=!1}=$;if((A==null?void 0:A.type)==="mousedown"&&g.current){g.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(g.current=!0);const F=D?null:b.current,K=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,J,U;if(N||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)Y=Math.round(K.width/2),J=Math.round(K.height/2);else{const{clientX:oe,clientY:G}=A.touches&&A.touches.length>0?A.touches[0]:A;Y=Math.round(oe-K.left),J=Math.round(G-K.top)}if(N)U=Math.sqrt((2*K.width**2+K.height**2)/3),U%2===0&&(U+=1);else{const oe=Math.max(Math.abs((F?F.clientWidth:0)-Y),Y)*2+2,G=Math.max(Math.abs((F?F.clientHeight:0)-J),J)*2+2;U=Math.sqrt(oe**2+G**2)}A!=null&&A.touches?x.current===null&&(x.current=()=>{w({pulsate:_,rippleX:Y,rippleY:J,rippleSize:U,cb:O})},S.start(P6,()=>{x.current&&(x.current(),x.current=null)})):w({pulsate:_,rippleX:Y,rippleY:J,rippleSize:U,cb:O})},[o,w,S]),R=E.useCallback(()=>{P({},{pulsate:!0})},[P]),T=E.useCallback((A,$)=>{if(S.clear(),(A==null?void 0:A.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{T(A,$)});return}x.current=null,f(O=>O.length>0?O.slice(1):O),m.current=$},[S]);return E.useImperativeHandle(n,()=>({pulsate:R,start:P,stop:T}),[R,P,T]),y.jsx(A6,k({className:ye(io.root,s.root,l),ref:b},u,{children:y.jsx($g,{component:null,exit:!0,children:c})}))});function M6(e){return Me("MuiButtonBase",e)}const I6=Ne("MuiButtonBase",["root","disabled","focusVisible"]),N6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],L6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Le({root:["root",t&&"disabled",n&&"focusVisible"]},M6,o);return n&&r&&(l.root+=` ${r}`),l},D6=re("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"},[`&.${I6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:g=!1,LinkComponent:S="a",onBlur:x,onClick:b,onContextMenu:w,onDragLeave:P,onFocus:R,onFocusVisible:T,onKeyDown:A,onKeyUp:$,onMouseDown:O,onMouseLeave:_,onMouseUp:N,onTouchEnd:D,onTouchMove:F,onTouchStart:K,tabIndex:Y=0,TouchRippleProps:J,touchRippleRef:U,type:oe}=r,G=ge(r,N6),W=E.useRef(null),M=E.useRef(null),q=Gt(M,U),{isFocusVisibleRef:se,onFocus:L,onBlur:ie,ref:Oe}=hg(),[ve,xe]=E.useState(!1);f&&ve&&xe(!1),E.useImperativeHandle(o,()=>({focusVisible:()=>{xe(!0),W.current.focus()}}),[]);const[he,Ie]=E.useState(!1);E.useEffect(()=>{Ie(!0)},[]);const de=he&&!p&&!f;E.useEffect(()=>{ve&&g&&!p&&he&&M.current.pulsate()},[p,g,ve,he]);function ke(Pe,xt,Ht=m){return Nn(fn=>(xt&&xt(fn),!Ht&&M.current&&M.current[Pe](fn),!0))}const Qe=ke("start",O),Ve=ke("stop",w),Be=ke("stop",P),Je=ke("stop",N),ct=ke("stop",Pe=>{ve&&Pe.preventDefault(),_&&_(Pe)}),ot=ke("start",K),ze=ke("stop",D),Ot=ke("stop",F),Ze=ke("stop",Pe=>{ie(Pe),se.current===!1&&xe(!1),x&&x(Pe)},!1),$t=Nn(Pe=>{W.current||(W.current=Pe.currentTarget),L(Pe),se.current===!0&&(xe(!0),T&&T(Pe)),R&&R(Pe)}),gt=()=>{const Pe=W.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},dt=E.useRef(!1),_t=Nn(Pe=>{g&&!dt.current&&ve&&M.current&&Pe.key===" "&&(dt.current=!0,M.current.stop(Pe,()=>{M.current.start(Pe)})),Pe.target===Pe.currentTarget&&gt()&&Pe.key===" "&&Pe.preventDefault(),A&&A(Pe),Pe.target===Pe.currentTarget&&gt()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),b&&b(Pe))}),Pt=Nn(Pe=>{g&&Pe.key===" "&&M.current&&ve&&!Pe.defaultPrevented&&(dt.current=!1,M.current.stop(Pe,()=>{M.current.pulsate(Pe)})),$&&$(Pe),b&&Pe.target===Pe.currentTarget&&gt()&&Pe.key===" "&&!Pe.defaultPrevented&&b(Pe)});let pt=c;pt==="button"&&(G.href||G.to)&&(pt=S);const Ft={};pt==="button"?(Ft.type=oe===void 0?"button":oe,Ft.disabled=f):(!G.href&&!G.to&&(Ft.role="button"),f&&(Ft["aria-disabled"]=f));const Yt=Gt(n,Oe,W),qt=k({},r,{centerRipple:s,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:g,tabIndex:Y,focusVisible:ve}),et=L6(qt);return y.jsxs(D6,k({as:pt,className:ye(et.root,u),ownerState:qt,onBlur:Ze,onClick:b,onContextMenu:Ve,onFocus:$t,onKeyDown:_t,onKeyUp:Pt,onMouseDown:Qe,onMouseLeave:ct,onMouseUp:Je,onDragLeave:Be,onTouchEnd:ze,onTouchMove:Ot,onTouchStart:ot,ref:Yt,tabIndex:f?-1:Y,type:oe},Ft,G,{children:[l,de?y.jsx(_6,k({ref:q,center:s},J)):null]}))});function F6(e){return Me("MuiAlert",e)}const lE=Ne("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 B6(e){return Me("MuiIconButton",e)}const z6=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),U6=["edge","children","className","color","disabled","disableFocusRipple","size"],W6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`]};return Le(l,B6,t)},H6=re(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":k({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${z6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,m=ge(r,U6),g=k({},r,{edge:o,color:u,disabled:c,disableFocusRipple:f,size:p}),S=W6(g);return y.jsx(H6,k({className:ye(S.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:n},m,{ownerState:g,children:s}))}),V6=Rt(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),K6=Rt(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),G6=Rt(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),q6=Rt(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),cE=Rt(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Q6=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Y6=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`color${le(n||r)}`,`${t}${le(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(s,F6,o)},X6=re(oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?jc:_c,n=e.palette.mode==="light"?_c:jc;return k({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.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),[`& .${lE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.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}`,[`& .${lE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:k({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)})}))]})}),J6=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Z6=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),uE=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),dE={success:y.jsx(V6,{fontSize:"inherit"}),warning:y.jsx(K6,{fontSize:"inherit"}),error:y.jsx(G6,{fontSize:"inherit"}),info:y.jsx(q6,{fontSize:"inherit"})},e8=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:u="Close",color:c,components:f={},componentsProps:p={},icon:m,iconMapping:g=dE,onClose:S,role:x="alert",severity:b="success",slotProps:w={},slots:P={},variant:R="standard"}=r,T=ge(r,Q6),A=k({},r,{color:c,severity:b,variant:R,colorSeverity:c||b}),$=Y6(A),O={slots:k({closeButton:f.CloseButton,closeIcon:f.CloseIcon},P),slotProps:k({},p,w)},[_,N]=jg("closeButton",{elementType:Hn,externalForwardedProps:O,ownerState:A}),[D,F]=jg("closeIcon",{elementType:cE,externalForwardedProps:O,ownerState:A});return y.jsxs(X6,k({role:x,elevation:0,ownerState:A,className:ye($.root,l),ref:n},T,{children:[m!==!1?y.jsx(J6,{ownerState:A,className:$.icon,children:m||g[b]||dE[b]}):null,y.jsx(Z6,{ownerState:A,className:$.message,children:s}),o!=null?y.jsx(uE,{ownerState:A,className:$.action,children:o}):null,o==null&&S?y.jsx(uE,{ownerState:A,className:$.action,children:y.jsx(_,k({size:"small","aria-label":u,title:u,color:"inherit",onClick:S},N,{children:y.jsx(D,k({fontSize:"small"},F))}))}):null]}))});function t8(e){return Me("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const n8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],r8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Le(u,t8,l)},o8=re("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),fE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},i8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},s8=e=>i8[e]||e,bn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTypography"}),o=s8(r.color),s=Rc(k({},r,{color:o})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:S=fE}=s,x=ge(s,n8),b=k({},s,{align:l,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:S}),w=c||(m?"p":S[g]||fE[g])||"span",P=r8(b);return y.jsx(o8,k({as:w,ref:n,ownerState:b,className:ye(P.root,u)},x))});function a8(e){return Me("MuiAlertTitle",e)}Ne("MuiAlertTitle",["root"]);const l8=["className"],c8=e=>{const{classes:t}=e;return Le({root:["root"]},a8,t)},u8=re(bn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),d8=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlertTitle"}),{className:o}=r,s=ge(r,l8),l=r,u=c8(l);return y.jsx(u8,k({gutterBottom:!0,component:"div",ownerState:l,ref:n,className:ye(u.root,o)},s))});function f8(e){return Me("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const p8=["className","color","enableColorOnDark","position"],h8=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${le(t)}`,`position${le(n)}`]};return Le(o,f8,r)},gf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,m8=re(oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),pE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,c=ge(r,p8),f=k({},r,{color:s,position:u,enableColorOnDark:l}),p=h8(f);return y.jsx(m8,k({square:!0,component:"header",ownerState:f,elevation:4,className:ye(p.root,o,u==="fixed"&&"mui-fixed"),ref:n},c))});function hE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function g8(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:l=!1}=e;return(u,{inputValue:c,getOptionLabel:f})=>{let p=l?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=hE(p));const m=p?u.filter(g=>{let S=(s||f)(g);return n&&(S=S.toLowerCase()),t&&(S=hE(S)),o==="start"?S.indexOf(p)===0:S.indexOf(p)>-1}):u;return typeof r=="number"?m.slice(0,r):m}}function yf(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const y8=g8(),mE=5,v8=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function b8(e){const{unstable_isActiveElementInListbox:t=v8,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:S,disabledItemsFocusable:x=!1,disableListWrap:b=!1,filterOptions:w=y8,filterSelectedOptions:P=!1,freeSolo:R=!1,getOptionDisabled:T,getOptionKey:A,getOptionLabel:$=X=>{var Q;return(Q=X.label)!=null?Q:X},groupBy:O,handleHomeEndKeys:_=!e.freeSolo,id:N,includeInputInList:D=!1,inputValue:F,isOptionEqualToValue:K=(X,Q)=>X===Q,multiple:Y=!1,onChange:J,onClose:U,onHighlightChange:oe,onInputChange:G,onOpen:W,open:M,openOnFocus:q=!1,options:se,readOnly:L=!1,selectOnFocus:ie=!e.freeSolo,value:Oe}=e,ve=Ia(N);let xe=$;xe=X=>{const Q=$(X);return typeof Q!="string"?String(Q):Q};const he=E.useRef(!1),Ie=E.useRef(!0),de=E.useRef(null),ke=E.useRef(null),[Qe,Ve]=E.useState(null),[Be,Je]=E.useState(-1),ct=o?0:-1,ot=E.useRef(ct),[ze,Ot]=pi({controlled:Oe,default:p,name:f}),[Ze,$t]=pi({controlled:F,default:"",name:f,state:"inputValue"}),[gt,dt]=E.useState(!1),_t=E.useCallback((X,Q)=>{if(!(Y?ze.length<Q.length:Q!==null)&&!u)return;let be;if(Y)be="";else if(Q==null)be="";else{const De=xe(Q);be=typeof De=="string"?De:""}Ze!==be&&($t(be),G&&G(X,be,"reset"))},[xe,Ze,Y,G,$t,u,ze]),[Pt,pt]=pi({controlled:M,default:!1,name:f,state:"open"}),[Ft,Yt]=E.useState(!0),qt=!Y&&ze!=null&&Ze===xe(ze),et=Pt&&!L,Pe=et?w(se.filter(X=>!(P&&(Y?ze:[ze]).some(Q=>Q!==null&&K(X,Q)))),{inputValue:qt&&Ft?"":Ze,getOptionLabel:xe}):[],xt=mg({filteredOptions:Pe,value:ze,inputValue:Ze});E.useEffect(()=>{const X=ze!==xt.value;gt&&!X||R&&!X||_t(null,ze)},[ze,_t,gt,xt.value,R]);const Ht=Pt&&Pe.length>0&&!L,fn=Nn(X=>{X===-1?de.current.focus():Qe.querySelector(`[data-tag-index="${X}"]`).focus()});E.useEffect(()=>{Y&&Be>ze.length-1&&(Je(-1),fn(-1))},[ze,Y,Be,fn]);function Ue(X,Q){if(!ke.current||X<0||X>=Pe.length)return-1;let we=X;for(;;){const be=ke.current.querySelector(`[data-option-index="${we}"]`),De=x?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!De)return we;if(Q==="next"?we=(we+1)%Pe.length:we=(we-1+Pe.length)%Pe.length,we===X)return-1}}const ut=Nn(({event:X,index:Q,reason:we="auto"})=>{if(ot.current=Q,Q===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ve}-option-${Q}`),oe&&oe(X,Q===-1?null:Pe[Q],we),!ke.current)return;const be=ke.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let De=ke.current;if(ke.current.getAttribute("role")!=="listbox"&&(De=ke.current.parentElement.querySelector('[role="listbox"]')),!De)return;if(Q===-1){De.scrollTop=0;return}const Ee=ke.current.querySelector(`[data-option-index="${Q}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),we==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),De.scrollHeight>De.clientHeight&&we!=="mouse"&&we!=="touch")){const nt=Ee,At=De.clientHeight+De.scrollTop,uo=nt.offsetTop+nt.offsetHeight;uo>At?De.scrollTop=uo-De.clientHeight:nt.offsetTop-nt.offsetHeight*(O?1.3:0)<De.scrollTop&&(De.scrollTop=nt.offsetTop-nt.offsetHeight*(O?1.3:0))}}),Re=Nn(({event:X,diff:Q,direction:we="next",reason:be="auto"})=>{if(!et)return;const Ee=Ue((()=>{const nt=Pe.length-1;if(Q==="reset")return ct;if(Q==="start")return 0;if(Q==="end")return nt;const At=ot.current+Q;return At<0?At===-1&&D?-1:b&&ot.current!==-1||Math.abs(Q)>1?0:nt:At>nt?At===nt+1&&D?-1:b||Math.abs(Q)>1?nt:0:At})(),we);if(ut({index:Ee,reason:be,event:X}),r&&Q!=="reset")if(Ee===-1)de.current.value=Ze;else{const nt=xe(Pe[Ee]);de.current.value=nt,nt.toLowerCase().indexOf(Ze.toLowerCase())===0&&Ze.length>0&&de.current.setSelectionRange(Ze.length,nt.length)}}),We=()=>{const X=(Q,we)=>{const be=Q?xe(Q):"",De=we?xe(we):"";return be===De};if(ot.current!==-1&&xt.filteredOptions&&xt.filteredOptions.length!==Pe.length&&xt.inputValue===Ze&&(Y?ze.length===xt.value.length&&xt.value.every((Q,we)=>xe(ze[we])===xe(Q)):X(xt.value,ze))){const Q=xt.filteredOptions[ot.current];if(Q)return yf(Pe,we=>xe(we)===xe(Q))}return-1},ft=E.useCallback(()=>{if(!et)return;const X=We();if(X!==-1){ot.current=X;return}const Q=Y?ze[0]:ze;if(Pe.length===0||Q==null){Re({diff:"reset"});return}if(ke.current){if(Q!=null){const we=Pe[ot.current];if(Y&&we&&yf(ze,De=>K(we,De))!==-1)return;const be=yf(Pe,De=>K(De,Q));be===-1?Re({diff:"reset"}):ut({index:be});return}if(ot.current>=Pe.length-1){ut({index:Pe.length-1});return}ut({index:ot.current})}},[Pe.length,Y?!1:ze,P,Re,ut,et,Ze,Y]),yt=Nn(X=>{of(ke,X),X&&ft()});E.useEffect(()=>{ft()},[ft]);const bt=X=>{Pt||(pt(!0),Yt(!0),W&&W(X))},Mt=(X,Q)=>{Pt&&(pt(!1),U&&U(X,Q))},It=(X,Q,we,be)=>{if(Y){if(ze.length===Q.length&&ze.every((De,Ee)=>De===Q[Ee]))return}else if(ze===Q)return;J&&J(X,Q,we,be),Ot(Q)},en=E.useRef(!1),rn=(X,Q,we="selectOption",be="options")=>{let De=we,Ee=Q;if(Y){Ee=Array.isArray(ze)?ze.slice():[];const nt=yf(Ee,At=>K(Q,At));nt===-1?Ee.push(Q):be!=="freeSolo"&&(Ee.splice(nt,1),De="removeOption")}_t(X,Ee),It(X,Ee,De,{option:Q}),!g&&(!X||!X.ctrlKey&&!X.metaKey)&&Mt(X,De),(l===!0||l==="touch"&&en.current||l==="mouse"&&!en.current)&&de.current.blur()};function Yn(X,Q){if(X===-1)return-1;let we=X;for(;;){if(Q==="next"&&we===ze.length||Q==="previous"&&we===-1)return-1;const be=Qe.querySelector(`[data-tag-index="${we}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")we+=Q==="next"?1:-1;else return we}}const Vr=(X,Q)=>{if(!Y)return;Ze===""&&Mt(X,"toggleInput");let we=Be;Be===-1?Ze===""&&Q==="previous"&&(we=ze.length-1):(we+=Q==="next"?1:-1,we<0&&(we=0),we===ze.length&&(we=-1)),we=Yn(we,Q),Je(we),fn(we)},Po=X=>{he.current=!0,$t(""),G&&G(X,"","clear"),It(X,Y?[]:null,"clear")},To=X=>Q=>{if(X.onKeyDown&&X.onKeyDown(Q),!Q.defaultMuiPrevented&&(Be!==-1&&["ArrowLeft","ArrowRight"].indexOf(Q.key)===-1&&(Je(-1),fn(-1)),Q.which!==229))switch(Q.key){case"Home":et&&_&&(Q.preventDefault(),Re({diff:"start",direction:"next",reason:"keyboard",event:Q}));break;case"End":et&&_&&(Q.preventDefault(),Re({diff:"end",direction:"previous",reason:"keyboard",event:Q}));break;case"PageUp":Q.preventDefault(),Re({diff:-mE,direction:"previous",reason:"keyboard",event:Q}),bt(Q);break;case"PageDown":Q.preventDefault(),Re({diff:mE,direction:"next",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowDown":Q.preventDefault(),Re({diff:1,direction:"next",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowUp":Q.preventDefault(),Re({diff:-1,direction:"previous",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowLeft":Vr(Q,"previous");break;case"ArrowRight":Vr(Q,"next");break;case"Enter":if(ot.current!==-1&&et){const we=Pe[ot.current],be=T?T(we):!1;if(Q.preventDefault(),be)return;rn(Q,we,"selectOption"),r&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else R&&Ze!==""&&qt===!1&&(Y&&Q.preventDefault(),rn(Q,Ze,"createOption","freeSolo"));break;case"Escape":et?(Q.preventDefault(),Q.stopPropagation(),Mt(Q,"escape")):c&&(Ze!==""||Y&&ze.length>0)&&(Q.preventDefault(),Q.stopPropagation(),Po(Q));break;case"Backspace":if(Y&&!L&&Ze===""&&ze.length>0){const we=Be===-1?ze.length-1:Be,be=ze.slice();be.splice(we,1),It(Q,be,"removeOption",{option:ze[we]})}break;case"Delete":if(Y&&!L&&Ze===""&&ze.length>0&&Be!==-1){const we=Be,be=ze.slice();be.splice(we,1),It(Q,be,"removeOption",{option:ze[we]})}break}},co=X=>{dt(!0),q&&!he.current&&bt(X)},Ln=X=>{if(t(ke)){de.current.focus();return}dt(!1),Ie.current=!0,he.current=!1,s&&ot.current!==-1&&et?rn(X,Pe[ot.current],"blur"):s&&R&&Ze!==""?rn(X,Ze,"blur","freeSolo"):u&&_t(X,ze),Mt(X,"blur")},on=X=>{const Q=X.target.value;Ze!==Q&&($t(Q),Yt(!1),G&&G(X,Q,"input")),Q===""?!m&&!Y&&It(X,null,"clear"):bt(X)},Qt=X=>{const Q=Number(X.currentTarget.getAttribute("data-option-index"));ot.current!==Q&&ut({event:X,index:Q,reason:"mouse"})},B=X=>{ut({event:X,index:Number(X.currentTarget.getAttribute("data-option-index")),reason:"touch"}),en.current=!0},H=X=>{const Q=Number(X.currentTarget.getAttribute("data-option-index"));rn(X,Pe[Q],"selectOption"),en.current=!1},ae=X=>Q=>{const we=ze.slice();we.splice(X,1),It(Q,we,"removeOption",{option:ze[X]})},me=X=>{Pt?Mt(X,"toggleInput"):bt(X)},_e=X=>{X.currentTarget.contains(X.target)&&X.target.getAttribute("id")!==ve&&X.preventDefault()},Ge=X=>{X.currentTarget.contains(X.target)&&(de.current.focus(),ie&&Ie.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),Ie.current=!1)},it=X=>{!S&&(Ze===""||!Pt)&&me(X)};let $e=R&&Ze.length>0;$e=$e||(Y?ze.length>0:ze!==null);let st=Pe;return O&&(st=Pe.reduce((X,Q,we)=>{const be=O(Q);return X.length>0&&X[X.length-1].group===be?X[X.length-1].options.push(Q):X.push({key:we,index:we,group:be,options:[Q]}),X},[])),S&&gt&&Ln(),{getRootProps:(X={})=>k({"aria-owns":Ht?`${ve}-listbox`:null},X,{onKeyDown:To(X),onMouseDown:_e,onClick:Ge}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:Ze,onBlur:Ln,onFocus:co,onChange:on,onMouseDown:it,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${ve}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Po}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:me}),getTagProps:({index:X})=>k({key:X,"data-tag-index":X,tabIndex:-1},!L&&{onDelete:ae(X)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:yt,onMouseDown:X=>{X.preventDefault()}}),getOptionProps:({index:X,option:Q})=>{var we;const be=(Y?ze:[ze]).some(Ee=>Ee!=null&&K(Q,Ee)),De=T?T(Q):!1;return{key:(we=A==null?void 0:A(Q))!=null?we:xe(Q),tabIndex:-1,role:"option",id:`${ve}-option-${X}`,onMouseMove:Qt,onClick:H,onTouchStart:B,"data-option-index":X,"aria-disabled":De,"aria-selected":be}},id:ve,inputValue:Ze,value:ze,dirty:$e,expanded:et&&Qe,popupOpen:et,focused:gt||Be!==-1,anchorEl:Qe,setAnchorEl:Ve,focusedTag:Be,groupedOptions:st}}var Mg={};Object.defineProperty(Mg,"__esModule",{value:!0});var gE=Mg.default=void 0,x8=S8(E),w8=XC;function yE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yE=function(r){return r?n:t})(e)}function S8(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function C8(e){return Object.keys(e).length===0}function E8(e=null){const t=x8.useContext(w8.ThemeContext);return!t||C8(t)?e:t}gE=Mg.default=E8;var xr="top",so="bottom",ao="right",wr="left",Ig="auto",Dc=[xr,so,ao,wr],Qa="start",Fc="end",R8="clippingParents",vE="viewport",Bc="popper",k8="reference",bE=Dc.reduce(function(e,t){return e.concat([t+"-"+Qa,t+"-"+Fc])},[]),xE=[].concat(Dc,[Ig]).reduce(function(e,t){return e.concat([t,t+"-"+Qa,t+"-"+Fc])},[]),P8="beforeRead",T8="read",O8="afterRead",$8="beforeMain",A8="main",j8="afterMain",_8="beforeWrite",M8="write",I8="afterWrite",N8=[P8,T8,O8,$8,A8,j8,_8,M8,I8];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ng(e){if(typeof ShadowRoot>"u")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!lo(s)||!Ko(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var u=o[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function D8(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],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(c,f){return c[f]="",c},{});!lo(o)||!Ko(o)||(Object.assign(o.style,u),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const F8={name:"applyStyles",enabled:!0,phase:"write",fn:L8,effect:D8,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var Us=Math.max,vf=Math.min,Ya=Math.round;function Lg(){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 wE(){return!/^((?!chrome|android).)*safari/i.test(Lg())}function Xa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&lo(e)&&(o=e.offsetWidth>0&&Ya(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ya(r.height)/e.offsetHeight||1);var l=zs(e)?Fr(e):window,u=l.visualViewport,c=!wE()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/s,m=r.width/o,g=r.height/s;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function Dg(e){var t=Xa(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 SE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ng(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gi(e){return Fr(e).getComputedStyle(e)}function B8(e){return["table","td","th"].indexOf(Ko(e))>=0}function Ui(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(Ng(e)?e.host:null)||Ui(e)}function CE(e){return!lo(e)||gi(e).position==="fixed"?null:e.offsetParent}function z8(e){var t=/firefox/i.test(Lg()),n=/Trident/i.test(Lg());if(n&&lo(e)){var r=gi(e);if(r.position==="fixed")return null}var o=bf(e);for(Ng(o)&&(o=o.host);lo(o)&&["html","body"].indexOf(Ko(o))<0;){var s=gi(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function zc(e){for(var t=Fr(e),n=CE(e);n&&B8(n)&&gi(n).position==="static";)n=CE(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&gi(n).position==="static")?t:n||z8(e)||t}function Fg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Uc(e,t,n){return Us(e,vf(t,n))}function U8(e,t,n){var r=Uc(e,t,n);return r>n?n:r}function EE(){return{top:0,right:0,bottom:0,left:0}}function RE(e){return Object.assign({},EE(),e)}function kE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var W8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RE(typeof t!="number"?t:kE(t,Dc))};function H8(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,u=Go(n.placement),c=Fg(u),f=[wr,ao].indexOf(u)>=0,p=f?"height":"width";if(!(!s||!l)){var m=W8(o.padding,n),g=Dg(s),S=c==="y"?xr:wr,x=c==="y"?so:ao,b=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],w=l[c]-n.rects.reference[c],P=zc(s),R=P?c==="y"?P.clientHeight||0:P.clientWidth||0:0,T=b/2-w/2,A=m[S],$=R-g[p]-m[x],O=R/2-g[p]/2+T,_=Uc(A,O,$),N=c;n.modifiersData[r]=(t={},t[N]=_,t.centerOffset=_-O,t)}}function V8(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)||SE(t.elements.popper,o)&&(t.elements.arrow=o))}const K8={name:"arrow",enabled:!0,phase:"main",fn:H8,effect:V8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ja(e){return e.split("-")[1]}var G8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q8(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ya(n*o)/o||0,y:Ya(r*o)/o||0}}function PE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=l.x,S=g===void 0?0:g,x=l.y,b=x===void 0?0:x,w=typeof p=="function"?p({x:S,y:b}):{x:S,y:b};S=w.x,b=w.y;var P=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),T=wr,A=xr,$=window;if(f){var O=zc(n),_="clientHeight",N="clientWidth";if(O===Fr(n)&&(O=Ui(n),gi(O).position!=="static"&&u==="absolute"&&(_="scrollHeight",N="scrollWidth")),O=O,o===xr||(o===wr||o===ao)&&s===Fc){A=so;var D=m&&O===$&&$.visualViewport?$.visualViewport.height:O[_];b-=D-r.height,b*=c?1:-1}if(o===wr||(o===xr||o===so)&&s===Fc){T=ao;var F=m&&O===$&&$.visualViewport?$.visualViewport.width:O[N];S-=F-r.width,S*=c?1:-1}}var K=Object.assign({position:u},f&&G8),Y=p===!0?q8({x:S,y:b},Fr(n)):{x:S,y:b};if(S=Y.x,b=Y.y,c){var J;return Object.assign({},K,(J={},J[A]=R?"0":"",J[T]=P?"0":"",J.transform=($.devicePixelRatio||1)<=1?"translate("+S+"px, "+b+"px)":"translate3d("+S+"px, "+b+"px, 0)",J))}return Object.assign({},K,(t={},t[A]=R?b+"px":"",t[T]=P?S+"px":"",t.transform="",t))}function Q8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Go(t.placement),variation:Ja(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,PE(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PE(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Y8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q8,data:{}};var xf={passive:!0};function X8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,u=l===void 0?!0:l,c=Fr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,xf)}),u&&c.addEventListener("resize",n.update,xf),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,xf)}),u&&c.removeEventListener("resize",n.update,xf)}}const J8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:X8,data:{}};var Z8={left:"right",right:"left",bottom:"top",top:"bottom"};function wf(e){return e.replace(/left|right|bottom|top/g,function(t){return Z8[t]})}var e9={start:"end",end:"start"};function TE(e){return e.replace(/start|end/g,function(t){return e9[t]})}function Bg(e){var t=Fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zg(e){return Xa(Ui(e)).left+Bg(e).scrollLeft}function t9(e,t){var n=Fr(e),r=Ui(e),o=n.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){s=o.width,l=o.height;var f=wE();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:s,height:l,x:u+zg(e),y:c}}function n9(e){var t,n=Ui(e),r=Bg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Us(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Us(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+zg(e),c=-r.scrollTop;return gi(o||n).direction==="rtl"&&(u+=Us(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:u,y:c}}function Ug(e){var t=gi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function OE(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:lo(e)&&Ug(e)?e:OE(bf(e))}function Wc(e,t){var n;t===void 0&&(t=[]);var r=OE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Fr(r),l=o?[s].concat(s.visualViewport||[],Ug(r)?r:[]):r,u=t.concat(l);return o?u:u.concat(Wc(bf(l)))}function Wg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r9(e,t){var n=Xa(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 $E(e,t,n){return t===vE?Wg(t9(e,n)):zs(t)?r9(t,n):Wg(n9(Ui(e)))}function o9(e){var t=Wc(bf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&lo(e)?zc(e):e;return zs(r)?t.filter(function(o){return zs(o)&&SE(o,r)&&Ko(o)!=="body"}):[]}function i9(e,t,n,r){var o=t==="clippingParents"?o9(e):[].concat(t),s=[].concat(o,[n]),l=s[0],u=s.reduce(function(c,f){var p=$E(e,f,r);return c.top=Us(p.top,c.top),c.right=vf(p.right,c.right),c.bottom=vf(p.bottom,c.bottom),c.left=Us(p.left,c.left),c},$E(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function AE(e){var t=e.reference,n=e.element,r=e.placement,o=r?Go(r):null,s=r?Ja(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case xr:c={x:l,y:t.y-n.height};break;case so:c={x:l,y:t.y+t.height};break;case ao:c={x:t.x+t.width,y:u};break;case wr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?Fg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qa:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Fc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Hc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,u=n.boundary,c=u===void 0?R8:u,f=n.rootBoundary,p=f===void 0?vE:f,m=n.elementContext,g=m===void 0?Bc:m,S=n.altBoundary,x=S===void 0?!1:S,b=n.padding,w=b===void 0?0:b,P=RE(typeof w!="number"?w:kE(w,Dc)),R=g===Bc?k8:Bc,T=e.rects.popper,A=e.elements[x?R:g],$=i9(zs(A)?A:A.contextElement||Ui(e.elements.popper),c,p,l),O=Xa(e.elements.reference),_=AE({reference:O,element:T,strategy:"absolute",placement:o}),N=Wg(Object.assign({},T,_)),D=g===Bc?N:O,F={top:$.top-D.top+P.top,bottom:D.bottom-$.bottom+P.bottom,left:$.left-D.left+P.left,right:D.right-$.right+P.right},K=e.modifiersData.offset;if(g===Bc&&K){var Y=K[o];Object.keys(F).forEach(function(J){var U=[ao,so].indexOf(J)>=0?1:-1,oe=[xr,so].indexOf(J)>=0?"y":"x";F[J]+=Y[oe]*U})}return F}function s9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?xE:c,p=Ja(r),m=p?u?bE:bE.filter(function(x){return Ja(x)===p}):Dc,g=m.filter(function(x){return f.indexOf(x)>=0});g.length===0&&(g=m);var S=g.reduce(function(x,b){return x[b]=Hc(e,{placement:b,boundary:o,rootBoundary:s,padding:l})[Go(b)],x},{});return Object.keys(S).sort(function(x,b){return S[x]-S[b]})}function a9(e){if(Go(e)===Ig)return[];var t=wf(e);return[TE(e),t,TE(t)]}function l9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,S=n.flipVariations,x=S===void 0?!0:S,b=n.allowedAutoPlacements,w=t.options.placement,P=Go(w),R=P===w,T=c||(R||!x?[wf(w)]:a9(w)),A=[w].concat(T).reduce(function(ve,xe){return ve.concat(Go(xe)===Ig?s9(t,{placement:xe,boundary:p,rootBoundary:m,padding:f,flipVariations:x,allowedAutoPlacements:b}):xe)},[]),$=t.rects.reference,O=t.rects.popper,_=new Map,N=!0,D=A[0],F=0;F<A.length;F++){var K=A[F],Y=Go(K),J=Ja(K)===Qa,U=[xr,so].indexOf(Y)>=0,oe=U?"width":"height",G=Hc(t,{placement:K,boundary:p,rootBoundary:m,altBoundary:g,padding:f}),W=U?J?ao:wr:J?so:xr;$[oe]>O[oe]&&(W=wf(W));var M=wf(W),q=[];if(s&&q.push(G[Y]<=0),u&&q.push(G[W]<=0,G[M]<=0),q.every(function(ve){return ve})){D=K,N=!1;break}_.set(K,q)}if(N)for(var se=x?3:1,L=function(xe){var he=A.find(function(Ie){var de=_.get(Ie);if(de)return de.slice(0,xe).every(function(ke){return ke})});if(he)return D=he,"break"},ie=se;ie>0;ie--){var Oe=L(ie);if(Oe==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const c9={name:"flip",enabled:!0,phase:"main",fn:l9,requiresIfExists:["offset"],data:{_skip:!1}};function jE(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 _E(e){return[xr,ao,so,wr].some(function(t){return e[t]>=0})}function u9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Hc(t,{elementContext:"reference"}),u=Hc(t,{altBoundary:!0}),c=jE(l,r),f=jE(u,o,s),p=_E(c),m=_E(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const d9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u9};function f9(e,t,n){var r=Go(e),o=[wr,xr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],u=s[1];return l=l||0,u=(u||0)*o,[wr,ao].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function p9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=xE.reduce(function(p,m){return p[m]=f9(m,t.rects,s),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}const h9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p9};function m9(e){var t=e.state,n=e.name;t.modifiersData[n]=AE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const g9={name:"popperOffsets",enabled:!0,phase:"read",fn:m9,data:{}};function y9(e){return e==="x"?"y":"x"}function v9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.padding,g=n.tether,S=g===void 0?!0:g,x=n.tetherOffset,b=x===void 0?0:x,w=Hc(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),P=Go(t.placement),R=Ja(t.placement),T=!R,A=Fg(P),$=y9(A),O=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,D=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(O){if(s){var J,U=A==="y"?xr:wr,oe=A==="y"?so:ao,G=A==="y"?"height":"width",W=O[A],M=W+w[U],q=W-w[oe],se=S?-N[G]/2:0,L=R===Qa?_[G]:N[G],ie=R===Qa?-N[G]:-_[G],Oe=t.elements.arrow,ve=S&&Oe?Dg(Oe):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EE(),he=xe[U],Ie=xe[oe],de=Uc(0,_[G],ve[G]),ke=T?_[G]/2-se-de-he-F.mainAxis:L-de-he-F.mainAxis,Qe=T?-_[G]/2+se+de+Ie+F.mainAxis:ie+de+Ie+F.mainAxis,Ve=t.elements.arrow&&zc(t.elements.arrow),Be=Ve?A==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,Je=(J=K==null?void 0:K[A])!=null?J:0,ct=W+ke-Je-Be,ot=W+Qe-Je,ze=Uc(S?vf(M,ct):M,W,S?Us(q,ot):q);O[A]=ze,Y[A]=ze-W}if(u){var Ot,Ze=A==="x"?xr:wr,$t=A==="x"?so:ao,gt=O[$],dt=$==="y"?"height":"width",_t=gt+w[Ze],Pt=gt-w[$t],pt=[xr,wr].indexOf(P)!==-1,Ft=(Ot=K==null?void 0:K[$])!=null?Ot:0,Yt=pt?_t:gt-_[dt]-N[dt]-Ft+F.altAxis,qt=pt?gt+_[dt]+N[dt]-Ft-F.altAxis:Pt,et=S&&pt?U8(Yt,gt,qt):Uc(S?Yt:_t,gt,S?qt:Pt);O[$]=et,Y[$]=et-gt}t.modifiersData[r]=Y}}const b9={name:"preventOverflow",enabled:!0,phase:"main",fn:v9,requiresIfExists:["offset"]};function x9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function w9(e){return e===Fr(e)||!lo(e)?Bg(e):x9(e)}function S9(e){var t=e.getBoundingClientRect(),n=Ya(t.width)/e.offsetWidth||1,r=Ya(t.height)/e.offsetHeight||1;return n!==1||r!==1}function C9(e,t,n){n===void 0&&(n=!1);var r=lo(t),o=lo(t)&&S9(t),s=Ui(t),l=Xa(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ko(t)!=="body"||Ug(s))&&(u=w9(t)),lo(t)?(c=Xa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=zg(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function E9(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function R9(e){var t=E9(e);return N8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function k9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function P9(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 ME={placement:"bottom",modifiers:[],strategy:"absolute"};function IE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function T9(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?ME:o;return function(u,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ME,s),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],g=!1,S={state:p,setOptions:function(P){var R=typeof P=="function"?P(p.options):P;b(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:zs(u)?Wc(u):u.contextElement?Wc(u.contextElement):[],popper:Wc(c)};var T=R9(P9([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(A){return A.enabled}),x(),S.update()},forceUpdate:function(){if(!g){var P=p.elements,R=P.reference,T=P.popper;if(IE(R,T)){p.rects={reference:C9(R,zc(T),p.options.strategy==="fixed"),popper:Dg(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(F){return p.modifiersData[F.name]=Object.assign({},F.data)});for(var A=0;A<p.orderedModifiers.length;A++){if(p.reset===!0){p.reset=!1,A=-1;continue}var $=p.orderedModifiers[A],O=$.fn,_=$.options,N=_===void 0?{}:_,D=$.name;typeof O=="function"&&(p=O({state:p,options:N,name:D,instance:S})||p)}}}},update:k9(function(){return new Promise(function(w){S.forceUpdate(),w(p)})}),destroy:function(){b(),g=!0}};if(!IE(u,c))return S;S.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function x(){p.orderedModifiers.forEach(function(w){var P=w.name,R=w.options,T=R===void 0?{}:R,A=w.effect;if(typeof A=="function"){var $=A({state:p,name:P,instance:S,options:T}),O=function(){};m.push($||O)}})}function b(){m.forEach(function(w){return w()}),m=[]}return S}}var O9=[J8,g9,Y8,F8,h9,c9,b9,K8,d9],$9=T9({defaultModifiers:O9});function A9(e){return typeof e=="function"?e():e}const NE=E.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[l,u]=E.useState(null),c=Gt(E.isValidElement(r)?r.ref:null,n);if(vr(()=>{s||u(A9(o)||document.body)},[o,s]),vr(()=>{if(l&&!s)return of(n,l),()=>{of(n,null)}},[n,l,s]),s){if(E.isValidElement(r)){const f={ref:c};return E.cloneElement(r,f)}return y.jsx(E.Fragment,{children:r})}return y.jsx(E.Fragment,{children:l&&Hu.createPortal(r,l)})});function j9(e){return Me("MuiPopper",e)}Ne("MuiPopper",["root"]);const _9=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],M9=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function I9(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Hg(e){return typeof e=="function"?e():e}function N9(e){return e.nodeType!==void 0}const L9=e=>{const{classes:t}=e;return Le({root:["root"]},j9,t)},D9={},F9=E.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:g,slotProps:S={},slots:x={},TransitionProps:b}=t,w=ge(t,_9),P=E.useRef(null),R=Gt(P,n),T=E.useRef(null),A=Gt(T,g),$=E.useRef(A);vr(()=>{$.current=A},[A]),E.useImperativeHandle(g,()=>T.current,[]);const O=I9(p,l),[_,N]=E.useState(O),[D,F]=E.useState(Hg(o));E.useEffect(()=>{T.current&&T.current.forceUpdate()}),E.useEffect(()=>{o&&F(Hg(o))},[o]),vr(()=>{if(!D||!f)return;const oe=M=>{N(M.placement)};let G=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{oe(M)}}];c!=null&&(G=G.concat(c)),m&&m.modifiers!=null&&(G=G.concat(m.modifiers));const W=$9(D,P.current,k({placement:O},m,{modifiers:G}));return $.current(W),()=>{W.destroy(),$.current(null)}},[D,u,c,f,m,O]);const K={placement:_};b!==null&&(K.TransitionProps=b);const Y=L9(t),J=(r=x.root)!=null?r:"div",U=rr({elementType:J,externalSlotProps:S.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:Y.root});return y.jsx(J,k({},U,{children:typeof s=="function"?s(K):s}))}),B9=E.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:g=D9,popperRef:S,style:x,transition:b=!1,slotProps:w={},slots:P={}}=t,R=ge(t,M9),[T,A]=E.useState(!0),$=()=>{A(!1)},O=()=>{A(!0)};if(!c&&!p&&(!b||T))return null;let _;if(s)_=s;else if(r){const F=Hg(r);_=F&&N9(F)?An(F).body:An(null).body}const N=!p&&c&&(!b||T)?"none":void 0,D=b?{in:p,onEnter:$,onExited:O}:void 0;return y.jsx(NE,{disablePortal:u,container:_,children:y.jsx(F9,k({anchorEl:r,direction:l,disablePortal:u,modifiers:f,ref:n,open:b?!T:p,placement:m,popperOptions:g,popperRef:S,slotProps:w,slots:P},R,{style:k({position:"fixed",top:0,left:0,display:N},x),TransitionProps:D,children:o}))})}),z9=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],U9=re(B9,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vc=E.forwardRef(function(t,n){var r;const o=gE(),s=Fe({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R,slots:T,slotProps:A}=s,$=ge(s,z9),O=(r=T==null?void 0:T.root)!=null?r:c==null?void 0:c.Root,_=k({anchorEl:l,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R},$);return y.jsx(U9,k({as:u,direction:o==null?void 0:o.direction,slots:{root:O},slotProps:A??f},_,{ref:n}))});function W9(e){return Me("MuiListSubheader",e)}Ne("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const H9=["className","color","component","disableGutters","disableSticky","inset"],V9=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,l={root:["root",n!=="default"&&`color${le(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Le(l,W9,t)},K9=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>k({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),LE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=r,p=ge(r,H9),m=k({},r,{color:s,component:l,disableGutters:u,disableSticky:c,inset:f}),g=V9(m);return y.jsx(K9,k({as:l,className:ye(g.root,o),ref:n,ownerState:m},p))});LE.muiSkipListHighlight=!0;const G9=Rt(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function q9(e){return Me("MuiChip",e)}const Dt=Ne("MuiChip",["root","sizeSmall","sizeMedium","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"]),Q9=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Y9=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:l,clickable:u,variant:c}=e,f={root:["root",c,n&&"disabled",`size${le(r)}`,`color${le(o)}`,u&&"clickable",u&&`clickableColor${le(o)}`,l&&"deletable",l&&`deletableColor${le(o)}`,`${c}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(c)}Color${le(o)}`]};return Le(f,q9,t)},X9=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:l,size:u,variant:c}=n;return[{[`& .${Dt.avatar}`]:t.avatar},{[`& .${Dt.avatar}`]:t[`avatar${le(u)}`]},{[`& .${Dt.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${Dt.icon}`]:t.icon},{[`& .${Dt.icon}`]:t[`icon${le(u)}`]},{[`& .${Dt.icon}`]:t[`iconColor${le(o)}`]},{[`& .${Dt.deleteIcon}`]:t.deleteIcon},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${le(u)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(r)}`]},t.root,t[`size${le(u)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${le(r)}`],t[c],t[`${c}${le(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({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",[`&.${Dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Dt.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Dt.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(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)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{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}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{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]}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Dt.avatar}`]:{marginLeft:4},[`& .${Dt.avatarSmall}`]:{marginLeft:2},[`& .${Dt.icon}`]:{marginLeft:4},[`& .${Dt.iconSmall}`]:{marginLeft:2},[`& .${Dt.deleteIcon}`]:{marginRight:5},[`& .${Dt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),J9=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(r)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function DE(e){return e.key==="Backspace"||e.key==="Delete"}const Z9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:l,color:u="default",component:c,deleteIcon:f,disabled:p=!1,icon:m,label:g,onClick:S,onDelete:x,onKeyDown:b,onKeyUp:w,size:P="medium",variant:R="filled",tabIndex:T,skipFocusWhenDisabled:A=!1}=r,$=ge(r,Q9),O=E.useRef(null),_=Gt(O,n),N=q=>{q.stopPropagation(),x&&x(q)},D=q=>{q.currentTarget===q.target&&DE(q)&&q.preventDefault(),b&&b(q)},F=q=>{q.currentTarget===q.target&&(x&&DE(q)?x(q):q.key==="Escape"&&O.current&&O.current.blur()),w&&w(q)},K=l!==!1&&S?!0:l,Y=K||x?Dr:c||"div",J=k({},r,{component:Y,disabled:p,size:P,color:u,iconColor:E.isValidElement(m)&&m.props.color||u,onDelete:!!x,clickable:K,variant:R}),U=Y9(J),oe=Y===Dr?k({component:c||"div",focusVisibleClassName:U.focusVisible},x&&{disableRipple:!0}):{};let G=null;x&&(G=f&&E.isValidElement(f)?E.cloneElement(f,{className:ye(f.props.className,U.deleteIcon),onClick:N}):y.jsx(G9,{className:ye(U.deleteIcon),onClick:N}));let W=null;o&&E.isValidElement(o)&&(W=E.cloneElement(o,{className:ye(U.avatar,o.props.className)}));let M=null;return m&&E.isValidElement(m)&&(M=E.cloneElement(m,{className:ye(U.icon,m.props.className)})),y.jsxs(X9,k({as:Y,className:ye(U.root,s),disabled:K&&p?!0:void 0,onClick:S,onKeyDown:D,onKeyUp:F,ref:_,tabIndex:A&&p?-1:T,ownerState:J},oe,$,{children:[W||M,y.jsx(J9,{className:ye(U.label),ownerState:J,children:g}),G]}))}),eW=["onChange","maxRows","minRows","style","value"];function Sf(e){return parseInt(e,10)||0}const tW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nW(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const rW=E.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:l,value:u}=t,c=ge(t,eW),{current:f}=E.useRef(u!=null),p=E.useRef(null),m=Gt(n,p),g=E.useRef(null),S=E.useRef(null),x=E.useCallback(()=>{const P=p.current,T=Eo(P).getComputedStyle(P);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};const A=S.current;A.style.width=T.width,A.value=P.value||t.placeholder||"x",A.value.slice(-1)===`
96
- `&&(A.value+=" ");const $=T.boxSizing,O=Sf(T.paddingBottom)+Sf(T.paddingTop),_=Sf(T.borderBottomWidth)+Sf(T.borderTopWidth),N=A.scrollHeight;A.value="x";const D=A.scrollHeight;let F=N;s&&(F=Math.max(Number(s)*D,F)),o&&(F=Math.min(Number(o)*D,F)),F=Math.max(F,D);const K=F+($==="border-box"?O+_:0),Y=Math.abs(F-N)<=1;return{outerHeightStyle:K,overflowing:Y}},[o,s,t.placeholder]),b=E.useCallback(()=>{const P=x();if(nW(P))return;const R=P.outerHeightStyle,T=p.current;g.current!==R&&(g.current=R,T.style.height=`${R}px`),T.style.overflow=P.overflowing?"hidden":""},[x]);vr(()=>{const P=()=>{b()};let R;const T=Pc(P),A=p.current,$=Eo(A);$.addEventListener("resize",T);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(P),O.observe(A)),()=>{T.clear(),cancelAnimationFrame(R),$.removeEventListener("resize",T),O&&O.disconnect()}},[x,b]),vr(()=>{b()});const w=P=>{f||b(),r&&r(P)};return y.jsxs(E.Fragment,{children:[y.jsx("textarea",k({value:u,onChange:w,ref:m,rows:s,style:l},c)),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:k({},tW.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function Wi({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 Vg=E.createContext(void 0);function yi(){return E.useContext(Vg)}function FE(e){return y.jsx(Oz,k({},e,{defaultTheme:Cg,themeId:Ra}))}function BE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Cf(e,t=!1){return e&&(BE(e.value)&&e.value!==""||t&&BE(e.defaultValue)&&e.defaultValue!=="")}function oW(e){return e.startAdornment}function iW(e){return Me("MuiInputBase",e)}const Br=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),sW=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ef=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rf=(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]},aW=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:l,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:m,size:g,startAdornment:S,type:x}=e,b={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",u&&"formControl",g&&g!=="medium"&&`size${le(g)}`,p&&"multiline",S&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return Le(b,iW,t)},kf=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>k({},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",[`&.${Br.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Pf=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return k({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Br.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Br.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),lW=y.jsx(FE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kg=E.forwardRef(function(t,n){var r;const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:l,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:S,endAdornment:x,fullWidth:b=!1,id:w,inputComponent:P="input",inputProps:R={},inputRef:T,maxRows:A,minRows:$,multiline:O=!1,name:_,onBlur:N,onChange:D,onClick:F,onFocus:K,onKeyDown:Y,onKeyUp:J,placeholder:U,readOnly:oe,renderSuffix:G,rows:W,slotProps:M={},slots:q={},startAdornment:se,type:L="text",value:ie}=o,Oe=ge(o,sW),ve=R.value!=null?R.value:ie,{current:xe}=E.useRef(ve!=null),he=E.useRef(),Ie=E.useCallback(et=>{},[]),de=Gt(he,T,R.ref,Ie),[ke,Qe]=E.useState(!1),Ve=yi(),Be=Wi({props:o,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ve?Ve.focused:ke,E.useEffect(()=>{!Ve&&g&&ke&&(Qe(!1),N&&N())},[Ve,g,ke,N]);const Je=Ve&&Ve.onFilled,ct=Ve&&Ve.onEmpty,ot=E.useCallback(et=>{Cf(et)?Je&&Je():ct&&ct()},[Je,ct]);vr(()=>{xe&&ot({value:ve})},[ve,ot,xe]);const ze=et=>{if(Be.disabled){et.stopPropagation();return}K&&K(et),R.onFocus&&R.onFocus(et),Ve&&Ve.onFocus?Ve.onFocus(et):Qe(!0)},Ot=et=>{N&&N(et),R.onBlur&&R.onBlur(et),Ve&&Ve.onBlur?Ve.onBlur(et):Qe(!1)},Ze=(et,...Pe)=>{if(!xe){const xt=et.target||he.current;if(xt==null)throw new Error(di(1));ot({value:xt.value})}R.onChange&&R.onChange(et,...Pe),D&&D(et,...Pe)};E.useEffect(()=>{ot(he.current)},[]);const $t=et=>{he.current&&et.currentTarget===et.target&&he.current.focus(),F&&F(et)};let gt=P,dt=R;O&&gt==="input"&&(W?dt=k({type:void 0,minRows:W,maxRows:W},dt):dt=k({type:void 0,maxRows:A,minRows:$},dt),gt=rW);const _t=et=>{ot(et.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};E.useEffect(()=>{Ve&&Ve.setAdornedStart(!!se)},[Ve,se]);const Pt=k({},o,{color:Be.color||"primary",disabled:Be.disabled,endAdornment:x,error:Be.error,focused:Be.focused,formControl:Ve,fullWidth:b,hiddenLabel:Be.hiddenLabel,multiline:O,size:Be.size,startAdornment:se,type:L}),pt=aW(Pt),Ft=q.root||f.Root||kf,Yt=M.root||p.root||{},qt=q.input||f.Input||Pf;return dt=k({},dt,(r=M.input)!=null?r:p.input),y.jsxs(E.Fragment,{children:[!S&&lW,y.jsxs(Ft,k({},Yt,!La(Ft)&&{ownerState:k({},Pt,Yt.ownerState)},{ref:n,onClick:$t},Oe,{className:ye(pt.root,Yt.className,c,oe&&"MuiInputBase-readOnly"),children:[se,y.jsx(Vg.Provider,{value:null,children:y.jsx(qt,k({ownerState:Pt,"aria-invalid":Be.error,"aria-describedby":s,autoComplete:l,autoFocus:u,defaultValue:m,disabled:Be.disabled,id:w,onAnimationStart:_t,name:_,placeholder:U,readOnly:oe,required:Be.required,rows:W,value:ve,onKeyDown:Y,onKeyUp:J,type:L},dt,!La(qt)&&{as:gt,ownerState:k({},Pt,dt.ownerState)},{ref:de,className:ye(pt.input,dt.className,oe&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:Ze,onFocus:ze}))}),x,G?G(k({},Be,{startAdornment:se})):null]}))]})});function cW(e){return Me("MuiInput",e)}const Hi=k({},Br,Ne("MuiInput",["root","underline","input"]));function uW(e){return Me("MuiOutlinedInput",e)}const qo=k({},Br,Ne("MuiOutlinedInput",["root","notchedOutline","input"]));function dW(e){return Me("MuiFilledInput",e)}const zr=k({},Br,Ne("MuiFilledInput",["root","underline","input"])),zE=Rt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function fW(e){return Me("MuiAutocomplete",e)}const Et=Ne("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 UE,WE;const pW=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],hW=["ref"],mW=["key"],gW=["key"],yW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:l,hasPopupIcon:u,inputFocused:c,popupOpen:f,size:p}=e,m={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${le(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Le(m,fW,t)},vW=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,size:u}=n;return[{[`& .${Et.tag}`]:t.tag},{[`& .${Et.tag}`]:t[`tagSize${le(u)}`]},{[`& .${Et.inputRoot}`]:t.inputRoot},{[`& .${Et.input}`]:t.input},{[`& .${Et.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Et.focused} .${Et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Et.clearIndicator}`]:{visibility:"visible"}},[`& .${Et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Et.inputRoot}`]:{[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:30},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:56},[`& .${Et.input}`]:{width:0,minWidth:30}},[`& .${Hi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Hi.root}.${Br.sizeSmall}`]:{[`& .${Hi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${qo.root}`]:{padding:9,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${qo.root}.${Br.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${zr.input}`]:{padding:"7px 4px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${zr.root}.${Br.sizeSmall}`]:{paddingBottom:1,[`& .${zr.input}`]:{padding:"2.5px 4px"}},[`& .${Br.hiddenLabel}`]:{paddingTop:8},[`& .${zr.root}.${Br.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zr.root}.${Br.hiddenLabel}.${Br.sizeSmall}`]:{[`& .${Et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Et.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Et.inputRoot}`]:{flexWrap:"wrap"}}}]}),bW=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),xW=re(Hn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),wW=re(Hn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>k({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),SW=re(Vc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Et.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),CW=re(oo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>k({},e.typography.body1,{overflow:"auto"})),EW=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),RW=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),kW=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Et.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"},[`&.${Et.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"},[`&.${Et.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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Et.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),PW=re(LE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),TW=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Et.option}`]:{paddingLeft:24}}),OW=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:m=!1,ChipProps:g,className:S,clearIcon:x=UE||(UE=y.jsx(cE,{fontSize:"small"})),clearOnBlur:b=!u.freeSolo,clearOnEscape:w=!1,clearText:P="Clear",closeText:R="Close",componentsProps:T={},defaultValue:A=u.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:O=!1,disabled:_=!1,disabledItemsFocusable:N=!1,disableListWrap:D=!1,disablePortal:F=!1,filterSelectedOptions:K=!1,forcePopupIcon:Y="auto",freeSolo:J=!1,fullWidth:U=!1,getLimitTagsText:oe=be=>`+${be}`,getOptionLabel:G,groupBy:W,handleHomeEndKeys:M=!u.freeSolo,includeInputInList:q=!1,limitTags:se=-1,ListboxComponent:L="ul",ListboxProps:ie,loading:Oe=!1,loadingText:ve="Loading…",multiple:xe=!1,noOptionsText:he="No options",openOnFocus:Ie=!1,openText:de="Open",PaperComponent:ke=oo,PopperComponent:Qe=Vc,popupIcon:Ve=WE||(WE=y.jsx(zE,{})),readOnly:Be=!1,renderGroup:Je,renderInput:ct,renderOption:ot,renderTags:ze,selectOnFocus:Ot=!u.freeSolo,size:Ze="medium",slotProps:$t={}}=u,gt=ge(u,pW),{getRootProps:dt,getInputProps:_t,getInputLabelProps:Pt,getPopupIndicatorProps:pt,getClearProps:Ft,getTagProps:Yt,getListboxProps:qt,getOptionProps:et,value:Pe,dirty:xt,expanded:Ht,id:fn,popupOpen:Ue,focused:ut,focusedTag:Re,anchorEl:We,setAnchorEl:ft,inputValue:yt,groupedOptions:bt}=b8(k({},u,{componentName:"Autocomplete"})),Mt=!$&&!_&&xt&&!Be,It=(!J||Y===!0)&&Y!==!1,{onMouseDown:en}=_t(),{ref:rn}=ie??{},Yn=qt(),{ref:Vr}=Yn,Po=ge(Yn,hW),To=Gt(Vr,rn),Ln=G||(be=>{var De;return(De=be.label)!=null?De:be}),on=k({},u,{disablePortal:F,expanded:Ht,focused:ut,fullWidth:U,getOptionLabel:Ln,hasClearIcon:Mt,hasPopupIcon:It,inputFocused:Re===-1,popupOpen:Ue,size:Ze}),Qt=yW(on);let B;if(xe&&Pe.length>0){const be=De=>k({className:Qt.tag,disabled:_},Yt(De));ze?B=ze(Pe,be,on):B=Pe.map((De,Ee)=>{const nt=be({index:Ee}),{key:At}=nt,uo=ge(nt,mW);return y.jsx(Z9,k({label:Ln(De),size:Ze},uo,g),At)})}if(se>-1&&Array.isArray(B)){const be=B.length-se;!ut&&be>0&&(B=B.splice(0,se),B.push(y.jsx("span",{className:Qt.tag,children:oe(be)},B.length)))}const ae=Je||(be=>y.jsxs("li",{children:[y.jsx(PW,{className:Qt.groupLabel,ownerState:on,component:"div",children:be.group}),y.jsx(TW,{className:Qt.groupUl,ownerState:on,children:be.children})]},be.key)),_e=ot||((be,De)=>{const{key:Ee}=be,nt=ge(be,gW);return y.jsx("li",k({},nt,{children:Ln(De)}),Ee)}),Ge=(be,De)=>{const Ee=et({option:be,index:De});return _e(k({},Ee,{className:Qt.option}),be,{selected:Ee["aria-selected"],index:De,inputValue:yt},on)},it=(r=$t.clearIndicator)!=null?r:T.clearIndicator,$e=(o=$t.paper)!=null?o:T.paper,st=(s=$t.popper)!=null?s:T.popper,X=(l=$t.popupIndicator)!=null?l:T.popupIndicator,Q=be=>y.jsx(SW,k({as:Qe,disablePortal:F,style:{width:We?We.clientWidth:null},ownerState:on,role:"presentation",anchorEl:We,open:Ue},st,{className:ye(Qt.popper,st==null?void 0:st.className),children:y.jsx(CW,k({ownerState:on,as:ke},$e,{className:ye(Qt.paper,$e==null?void 0:$e.className),children:be}))}));let we=null;return bt.length>0?we=Q(y.jsx(kW,k({as:L,className:Qt.listbox,ownerState:on},Po,ie,{ref:To,children:bt.map((be,De)=>W?ae({key:be.key,group:be.group,children:be.options.map((Ee,nt)=>Ge(Ee,be.index+nt))}):Ge(be,De))}))):Oe&&bt.length===0?we=Q(y.jsx(EW,{className:Qt.loading,ownerState:on,children:ve})):bt.length===0&&!J&&!Oe&&(we=Q(y.jsx(RW,{className:Qt.noOptions,ownerState:on,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:he}))),y.jsxs(E.Fragment,{children:[y.jsx(vW,k({ref:n,className:ye(Qt.root,S),ownerState:on},dt(gt),{children:ct({id:fn,disabled:_,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:k({ref:ft,className:Qt.inputRoot,startAdornment:B,onClick:be=>{be.target===be.currentTarget&&en(be)}},(Mt||It)&&{endAdornment:y.jsxs(bW,{className:Qt.endAdornment,ownerState:on,children:[Mt?y.jsx(xW,k({},Ft(),{"aria-label":P,title:P,ownerState:on},it,{className:ye(Qt.clearIndicator,it==null?void 0:it.className),children:x})):null,It?y.jsx(wW,k({},pt(),{disabled:_,"aria-label":Ue?R:de,title:Ue?R:de,ownerState:on},X,{className:ye(Qt.popupIndicator,X==null?void 0:X.className),children:Ve})):null]})}),inputProps:k({className:Qt.input,disabled:_,readOnly:Be},_t())})})),We?we:null]})}),$W=Rt(y.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"}),"Person");function AW(e){return Me("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const jW=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],_W=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},AW,t)},MW=re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({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:k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:k({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),IW=re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),NW=re($W,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function LW({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&s("loaded")},u.onerror=()=>{l&&s("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const DW=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:u="div",slots:c={},slotProps:f={},imgProps:p,sizes:m,src:g,srcSet:S,variant:x="circular"}=r,b=ge(r,jW);let w=null;const P=LW(k({},p,{src:g,srcSet:S})),R=g||S,T=R&&P!=="error",A=k({},r,{colorDefault:!T,component:u,variant:x}),$=_W(A),[O,_]=jg("img",{className:$.img,elementType:IW,externalForwardedProps:{slots:c,slotProps:{img:k({},p,f.img)}},additionalProps:{alt:o,src:g,srcSet:S,sizes:m},ownerState:A});return T?w=y.jsx(O,k({},_)):s||s===0?w=s:R&&o?w=o[0]:w=y.jsx(NW,{ownerState:A,className:$.fallback}),y.jsx(MW,k({as:u,ownerState:A,className:ye($.root,l),ref:n},b,{children:w}))}),FW=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],BW={entering:{opacity:1},entered:{opacity:1}},HE=E.forwardRef(function(t,n){const r=br(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,T=ge(t,FW),A=E.useRef(null),$=Gt(A,u.ref,n),O=U=>oe=>{if(U){const G=A.current;oe===void 0?U(G):U(G,oe)}},_=O(g),N=O((U,oe)=>{hf(U);const G=Vo({style:w,timeout:P,easing:c},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",G),U.style.transition=r.transitions.create("opacity",G),p&&p(U,oe)}),D=O(m),F=O(b),K=O(U=>{const oe=Vo({style:w,timeout:P,easing:c},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",oe),U.style.transition=r.transitions.create("opacity",oe),S&&S(U)}),Y=O(x),J=U=>{s&&s(A.current,U)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:N,onEntered:D,onEntering:_,onExit:K,onExited:Y,onExiting:F,addEndListener:J,timeout:P},T,{children:(U,oe)=>E.cloneElement(u,k({style:k({opacity:0,visibility:U==="exited"&&!f?"hidden":void 0},BW[U],w,u.props.style),ref:$},oe))}))});function zW(e){return Me("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const UW=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],WW=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},zW,t)},HW=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({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"},e.invisible&&{backgroundColor:"transparent"})),VE=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:g=!1,open:S,slotProps:x={},slots:b={},TransitionComponent:w=HE,transitionDuration:P}=l,R=ge(l,UW),T=k({},l,{component:f,invisible:g}),A=WW(T),$=(r=x.root)!=null?r:m.root;return y.jsx(w,k({in:S,timeout:P},R,{children:y.jsx(HW,k({"aria-hidden":!0},$,{as:(o=(s=b.root)!=null?s:p.Root)!=null?o:f,className:ye(A.root,c,$==null?void 0:$.className),ownerState:k({},T,$==null?void 0:$.ownerState),classes:A,ref:n,children:u}))}))});function VW(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=mg({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:u,max:c=r}=l?s:e,f=u&&Number(u)>c?`${c}+`:u;return{badgeContent:u,invisible:l,max:c,displayValue:f}}function KW(e){return Me("MuiBadge",e)}const Vi=Ne("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"]),GW=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Gg=10,qg=4,qW=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:l={}}=e,u={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`,`anchorOrigin${le(n.vertical)}${le(n.horizontal)}${le(o)}`,`overlap${le(o)}`,t!=="default"&&`color${le(t)}`]};return Le(u,KW,l)},QW=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),YW=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}${le(n.overlap)}`],n.color!=="default"&&t[`color${le(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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:Gg*2,lineHeight:1,padding:"0 6px",height:Gg*2,borderRadius:Gg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:qg,height:qg*2,minWidth:qg*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vi.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})}}]}}),Qg=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:m,component:g,components:S={},componentsProps:x={},children:b,overlap:w="rectangular",color:P="default",invisible:R=!1,max:T=99,badgeContent:A,slots:$,slotProps:O,showZero:_=!1,variant:N="standard"}=f,D=ge(f,GW),{badgeContent:F,invisible:K,max:Y,displayValue:J}=VW({max:T,invisible:R,badgeContent:A,showZero:_}),U=mg({anchorOrigin:p,color:P,overlap:w,variant:N,badgeContent:A}),oe=K||F==null&&N!=="dot",{color:G=P,overlap:W=w,anchorOrigin:M=p,variant:q=N}=oe?U:f,se=q!=="dot"?J:void 0,L=k({},f,{badgeContent:F,invisible:oe,max:Y,displayValue:se,showZero:_,anchorOrigin:M,color:G,overlap:W,variant:q}),ie=qW(L),Oe=(r=(o=$==null?void 0:$.root)!=null?o:S.Root)!=null?r:QW,ve=(s=(l=$==null?void 0:$.badge)!=null?l:S.Badge)!=null?s:YW,xe=(u=O==null?void 0:O.root)!=null?u:x.root,he=(c=O==null?void 0:O.badge)!=null?c:x.badge,Ie=rr({elementType:Oe,externalSlotProps:xe,externalForwardedProps:D,additionalProps:{ref:n,as:g},ownerState:L,className:ye(xe==null?void 0:xe.className,ie.root,m)}),de=rr({elementType:ve,externalSlotProps:he,ownerState:L,className:ye(ie.badge,he==null?void 0:he.className)});return y.jsxs(Oe,k({},Ie,{children:[b,y.jsx(ve,k({},de,{children:se}))]}))}),XW=Ne("MuiBox",["root"]),JW=Sg(),Ur=Mz({themeId:Ra,defaultTheme:JW,defaultClassName:XW.root,generateClassName:aC.generate}),ZW=Rt(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),eH=["slots","slotProps"],tH=re(Dr)(({theme:e})=>k({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":k({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":k({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:lf(e.palette.grey[200],.12)}:{backgroundColor:lf(e.palette.grey[600],.12)})})),nH=re(ZW)({width:24,height:16});function rH(e){const{slots:t={},slotProps:n={}}=e,r=ge(e,eH),o=e;return y.jsx("li",{children:y.jsx(tH,k({focusRipple:!0},r,{ownerState:o,children:y.jsx(nH,k({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function oH(e){return Me("MuiBreadcrumbs",e)}const iH=Ne("MuiBreadcrumbs",["root","ol","li","separator"]),sH=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],aH=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},oH,t)},lH=re(bn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${iH.li}`]:t.li},t.root]})({}),cH=re("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),uH=re("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function dH(e,t,n,r){return e.reduce((o,s,l)=>(l<e.length-1?o=o.concat(s,y.jsx(uH,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):o.push(s),o),[])}const fH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:S="/"}=r,x=ge(r,sH),[b,w]=E.useState(!1),P=k({},r,{component:l,expanded:b,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:g,separator:S}),R=aH(P),T=rr({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:P}),A=E.useRef(null),$=_=>{const N=()=>{w(!0);const D=A.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return m+p>=_.length?_:[..._.slice(0,m),y.jsx(rH,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:N},"ellipsis"),..._.slice(_.length-p,_.length)]},O=E.Children.toArray(o).filter(_=>E.isValidElement(_)).map((_,N)=>y.jsx("li",{className:R.li,children:_},`child-${N}`));return y.jsx(lH,k({ref:n,component:l,color:"text.secondary",className:ye(R.root,s),ownerState:P},x,{children:y.jsx(cH,{className:R.ol,ref:A,ownerState:P,children:dH(b||g&&O.length<=g?O:$(O),R.separator,S,P)})}))});function pH(e){return Me("MuiButton",e)}const Tf=Ne("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"]),KE=E.createContext({}),GE=E.createContext(void 0),hH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:l}=e,u={root:["root",s,`${s}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`]},c=Le(u,pH,l);return k({},l,c)},qE=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),gH=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Tf.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Tf.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Tf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Tf.disabled}`]:{boxShadow:"none"}}),yH=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${le(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},qE(e))),vH=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${le(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},qE(e))),or=E.forwardRef(function(t,n){const r=E.useContext(KE),o=E.useContext(GE),s=kc(r,t),l=Fe({props:s,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:b,fullWidth:w=!1,size:P="medium",startIcon:R,type:T,variant:A="text"}=l,$=ge(l,hH),O=k({},l,{color:c,component:f,disabled:m,disableElevation:g,disableFocusRipple:S,fullWidth:w,size:P,type:T,variant:A}),_=mH(O),N=R&&y.jsx(yH,{className:_.startIcon,ownerState:O,children:R}),D=x&&y.jsx(vH,{className:_.endIcon,ownerState:O,children:x}),F=o||"";return y.jsxs(gH,k({ownerState:O,className:ye(r.className,_.root,p,F),component:f,disabled:m,focusRipple:!S,focusVisibleClassName:ye(_.focusVisible,b),ref:n,type:T},$,{classes:_,children:[N,u,D]}))});function bH(e){return Me("MuiButtonGroup",e)}const Vn=Ne("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),xH=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],wH=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vn.grouped}`]:t.grouped},{[`& .${Vn.grouped}`]:t[`grouped${le(n.orientation)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}${le(n.orientation)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}${le(n.color)}`]},{[`& .${Vn.firstButton}`]:t.firstButton},{[`& .${Vn.lastButton}`]:t.lastButton},{[`& .${Vn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},SH=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:s,orientation:l,variant:u}=e,c={root:["root",u,l==="vertical"&&"vertical",s&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${le(l)}`,`grouped${le(u)}`,`grouped${le(u)}${le(l)}`,`grouped${le(u)}${le(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(c,bH,t)},CH=re("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:wH})(({theme:e,ownerState:t})=>k({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Vn.grouped}`]:k({minWidth:40,"&:hover":k({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Vn.firstButton},& .${Vn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{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)"}`,[`&.${Vn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{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)"}`,[`&.${Vn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:mt(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Vn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Vn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":k({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Vn.lastButton},& .${Vn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),EH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonGroup"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,disableRipple:m=!1,fullWidth:g=!1,orientation:S="horizontal",size:x="medium",variant:b="outlined"}=r,w=ge(r,xH),P=k({},r,{color:l,component:u,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,orientation:S,size:x,variant:b}),R=SH(P),T=E.useMemo(()=>({className:R.grouped,color:l,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,size:x,variant:b}),[l,c,f,p,m,g,x,b,R.grouped]),A=h3(o),$=A.length,O=_=>{const N=_===0,D=_===$-1;return N&&D?"":N?R.firstButton:D?R.lastButton:R.middleButton};return y.jsx(CH,k({as:u,role:"group",className:ye(R.root,s),ref:n,ownerState:P},w,{children:y.jsx(KE.Provider,{value:T,children:A.map((_,N)=>y.jsx(GE.Provider,{value:O(N),children:_},N))})}))});function RH(e){return Me("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kH=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],PH=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${le(o)}`],input:["input"]};return Le(s,RH,t)},TH=re(Dr)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),OH=re("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yg=E.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:l,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:m,id:g,inputProps:S,inputRef:x,name:b,onBlur:w,onChange:P,onFocus:R,readOnly:T,required:A=!1,tabIndex:$,type:O,value:_}=t,N=ge(t,kH),[D,F]=pi({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),K=yi(),Y=q=>{R&&R(q),K&&K.onFocus&&K.onFocus(q)},J=q=>{w&&w(q),K&&K.onBlur&&K.onBlur(q)},U=q=>{if(q.nativeEvent.defaultPrevented)return;const se=q.target.checked;F(se),P&&P(q,se)};let oe=c;K&&typeof oe>"u"&&(oe=K.disabled);const G=O==="checkbox"||O==="radio",W=k({},t,{checked:D,disabled:oe,disableFocusRipple:f,edge:p}),M=PH(W);return y.jsxs(TH,k({component:"span",className:ye(M.root,l),centerRipple:!0,focusRipple:!f,disabled:oe,tabIndex:null,role:void 0,onFocus:Y,onBlur:J,ownerState:W,ref:n},N,{children:[y.jsx(OH,k({autoFocus:r,checked:o,defaultChecked:u,className:M.input,disabled:oe,id:G?g:void 0,name:b,onChange:U,readOnly:T,ref:x,required:A,ownerState:W,tabIndex:$,type:O},O==="checkbox"&&_===void 0?{}:{value:_},S)),D?s:m]}))}),$H=Rt(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),AH=Rt(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),jH=Rt(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _H(e){return Me("MuiCheckbox",e)}const Xg=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),MH=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],IH=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${le(r)}`,`size${le(o)}`]},l=Le(s,_H,t);return k({},t,l)},NH=re(Yg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xg.checked}, &.${Xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LH=y.jsx(AH,{}),DH=y.jsx($H,{}),FH=y.jsx(jH,{}),Jg=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=LH,color:u="primary",icon:c=DH,indeterminate:f=!1,indeterminateIcon:p=FH,inputProps:m,size:g="medium",className:S}=s,x=ge(s,MH),b=f?p:c,w=f?p:l,P=k({},s,{color:u,indeterminate:f,size:g}),R=IH(P);return y.jsx(NH,k({type:"checkbox",inputProps:k({"data-indeterminate":f},m),icon:E.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:g}),ownerState:P,ref:n,className:ye(R.root,S)},x,{classes:R}))});function BH(e){return Me("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zH=["className","color","disableShrink","size","style","thickness","value","variant"];let Of=e=>e,QE,YE,XE,JE;const Ki=44,UH=zi(QE||(QE=Of`
95
+ `),io.rippleVisible,T6,_g,({theme:e})=>e.transitions.easing.easeInOut,io.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,io.child,io.childLeaving,O6,_g,({theme:e})=>e.transitions.easing.easeInOut,io.childPulsate,$6,({theme:e})=>e.transitions.easing.easeInOut),_6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l}=r,u=ge(r,k6),[c,f]=E.useState([]),p=E.useRef(0),m=E.useRef(null);E.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const g=E.useRef(!1),S=hi(),x=E.useRef(null),b=E.useRef(null),w=E.useCallback(A=>{const{pulsate:$,rippleX:O,rippleY:_,rippleSize:N,cb:D}=A;f(F=>[...F,y.jsx(j6,{classes:{ripple:ye(s.ripple,io.ripple),rippleVisible:ye(s.rippleVisible,io.rippleVisible),ripplePulsate:ye(s.ripplePulsate,io.ripplePulsate),child:ye(s.child,io.child),childLeaving:ye(s.childLeaving,io.childLeaving),childPulsate:ye(s.childPulsate,io.childPulsate)},timeout:_g,pulsate:$,rippleX:O,rippleY:_,rippleSize:N},p.current)]),p.current+=1,m.current=D},[s]),P=E.useCallback((A={},$={},O=()=>{})=>{const{pulsate:_=!1,center:N=o||$.pulsate,fakeElement:D=!1}=$;if((A==null?void 0:A.type)==="mousedown"&&g.current){g.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(g.current=!0);const F=D?null:b.current,K=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,J,U;if(N||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)Y=Math.round(K.width/2),J=Math.round(K.height/2);else{const{clientX:oe,clientY:G}=A.touches&&A.touches.length>0?A.touches[0]:A;Y=Math.round(oe-K.left),J=Math.round(G-K.top)}if(N)U=Math.sqrt((2*K.width**2+K.height**2)/3),U%2===0&&(U+=1);else{const oe=Math.max(Math.abs((F?F.clientWidth:0)-Y),Y)*2+2,G=Math.max(Math.abs((F?F.clientHeight:0)-J),J)*2+2;U=Math.sqrt(oe**2+G**2)}A!=null&&A.touches?x.current===null&&(x.current=()=>{w({pulsate:_,rippleX:Y,rippleY:J,rippleSize:U,cb:O})},S.start(P6,()=>{x.current&&(x.current(),x.current=null)})):w({pulsate:_,rippleX:Y,rippleY:J,rippleSize:U,cb:O})},[o,w,S]),R=E.useCallback(()=>{P({},{pulsate:!0})},[P]),T=E.useCallback((A,$)=>{if(S.clear(),(A==null?void 0:A.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{T(A,$)});return}x.current=null,f(O=>O.length>0?O.slice(1):O),m.current=$},[S]);return E.useImperativeHandle(n,()=>({pulsate:R,start:P,stop:T}),[R,P,T]),y.jsx(A6,k({className:ye(io.root,s.root,l),ref:b},u,{children:y.jsx($g,{component:null,exit:!0,children:c})}))});function M6(e){return Me("MuiButtonBase",e)}const I6=Ne("MuiButtonBase",["root","disabled","focusVisible"]),N6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],L6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Le({root:["root",t&&"disabled",n&&"focusVisible"]},M6,o);return n&&r&&(l.root+=` ${r}`),l},D6=re("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"},[`&.${I6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:g=!1,LinkComponent:S="a",onBlur:x,onClick:b,onContextMenu:w,onDragLeave:P,onFocus:R,onFocusVisible:T,onKeyDown:A,onKeyUp:$,onMouseDown:O,onMouseLeave:_,onMouseUp:N,onTouchEnd:D,onTouchMove:F,onTouchStart:K,tabIndex:Y=0,TouchRippleProps:J,touchRippleRef:U,type:oe}=r,G=ge(r,N6),W=E.useRef(null),M=E.useRef(null),q=Gt(M,U),{isFocusVisibleRef:se,onFocus:L,onBlur:ie,ref:Oe}=hg(),[ve,xe]=E.useState(!1);f&&ve&&xe(!1),E.useImperativeHandle(o,()=>({focusVisible:()=>{xe(!0),W.current.focus()}}),[]);const[he,Ie]=E.useState(!1);E.useEffect(()=>{Ie(!0)},[]);const de=he&&!p&&!f;E.useEffect(()=>{ve&&g&&!p&&he&&M.current.pulsate()},[p,g,ve,he]);function ke(Pe,xt,Ht=m){return Nn(fn=>(xt&&xt(fn),!Ht&&M.current&&M.current[Pe](fn),!0))}const Qe=ke("start",O),Ve=ke("stop",w),Be=ke("stop",P),Je=ke("stop",N),ct=ke("stop",Pe=>{ve&&Pe.preventDefault(),_&&_(Pe)}),ot=ke("start",K),ze=ke("stop",D),Ot=ke("stop",F),Ze=ke("stop",Pe=>{ie(Pe),se.current===!1&&xe(!1),x&&x(Pe)},!1),$t=Nn(Pe=>{W.current||(W.current=Pe.currentTarget),L(Pe),se.current===!0&&(xe(!0),T&&T(Pe)),R&&R(Pe)}),gt=()=>{const Pe=W.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},dt=E.useRef(!1),_t=Nn(Pe=>{g&&!dt.current&&ve&&M.current&&Pe.key===" "&&(dt.current=!0,M.current.stop(Pe,()=>{M.current.start(Pe)})),Pe.target===Pe.currentTarget&&gt()&&Pe.key===" "&&Pe.preventDefault(),A&&A(Pe),Pe.target===Pe.currentTarget&&gt()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),b&&b(Pe))}),Pt=Nn(Pe=>{g&&Pe.key===" "&&M.current&&ve&&!Pe.defaultPrevented&&(dt.current=!1,M.current.stop(Pe,()=>{M.current.pulsate(Pe)})),$&&$(Pe),b&&Pe.target===Pe.currentTarget&&gt()&&Pe.key===" "&&!Pe.defaultPrevented&&b(Pe)});let pt=c;pt==="button"&&(G.href||G.to)&&(pt=S);const Ft={};pt==="button"?(Ft.type=oe===void 0?"button":oe,Ft.disabled=f):(!G.href&&!G.to&&(Ft.role="button"),f&&(Ft["aria-disabled"]=f));const Yt=Gt(n,Oe,W),qt=k({},r,{centerRipple:s,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:g,tabIndex:Y,focusVisible:ve}),et=L6(qt);return y.jsxs(D6,k({as:pt,className:ye(et.root,u),ownerState:qt,onBlur:Ze,onClick:b,onContextMenu:Ve,onFocus:$t,onKeyDown:_t,onKeyUp:Pt,onMouseDown:Qe,onMouseLeave:ct,onMouseUp:Je,onDragLeave:Be,onTouchEnd:ze,onTouchMove:Ot,onTouchStart:ot,ref:Yt,tabIndex:f?-1:Y,type:oe},Ft,G,{children:[l,de?y.jsx(_6,k({ref:q,center:s},J)):null]}))});function F6(e){return Me("MuiAlert",e)}const lE=Ne("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 B6(e){return Me("MuiIconButton",e)}const z6=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),U6=["edge","children","className","color","disabled","disableFocusRipple","size"],W6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`]};return Le(l,B6,t)},H6=re(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":k({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${z6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,m=ge(r,U6),g=k({},r,{edge:o,color:u,disabled:c,disableFocusRipple:f,size:p}),S=W6(g);return y.jsx(H6,k({className:ye(S.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:n},m,{ownerState:g,children:s}))}),V6=Rt(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),K6=Rt(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),G6=Rt(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),q6=Rt(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),cE=Rt(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Q6=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Y6=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`color${le(n||r)}`,`${t}${le(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(s,F6,o)},X6=re(oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?jc:_c,n=e.palette.mode==="light"?_c:jc;return k({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.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),[`& .${lE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.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}`,[`& .${lE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:k({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)})}))]})}),J6=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Z6=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),uE=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),dE={success:y.jsx(V6,{fontSize:"inherit"}),warning:y.jsx(K6,{fontSize:"inherit"}),error:y.jsx(G6,{fontSize:"inherit"}),info:y.jsx(q6,{fontSize:"inherit"})},e8=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:u="Close",color:c,components:f={},componentsProps:p={},icon:m,iconMapping:g=dE,onClose:S,role:x="alert",severity:b="success",slotProps:w={},slots:P={},variant:R="standard"}=r,T=ge(r,Q6),A=k({},r,{color:c,severity:b,variant:R,colorSeverity:c||b}),$=Y6(A),O={slots:k({closeButton:f.CloseButton,closeIcon:f.CloseIcon},P),slotProps:k({},p,w)},[_,N]=jg("closeButton",{elementType:Hn,externalForwardedProps:O,ownerState:A}),[D,F]=jg("closeIcon",{elementType:cE,externalForwardedProps:O,ownerState:A});return y.jsxs(X6,k({role:x,elevation:0,ownerState:A,className:ye($.root,l),ref:n},T,{children:[m!==!1?y.jsx(J6,{ownerState:A,className:$.icon,children:m||g[b]||dE[b]}):null,y.jsx(Z6,{ownerState:A,className:$.message,children:s}),o!=null?y.jsx(uE,{ownerState:A,className:$.action,children:o}):null,o==null&&S?y.jsx(uE,{ownerState:A,className:$.action,children:y.jsx(_,k({size:"small","aria-label":u,title:u,color:"inherit",onClick:S},N,{children:y.jsx(D,k({fontSize:"small"},F))}))}):null]}))});function t8(e){return Me("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const n8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],r8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Le(u,t8,l)},o8=re("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),fE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},i8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},s8=e=>i8[e]||e,bn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTypography"}),o=s8(r.color),s=Rc(k({},r,{color:o})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:S=fE}=s,x=ge(s,n8),b=k({},s,{align:l,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:S}),w=c||(m?"p":S[g]||fE[g])||"span",P=r8(b);return y.jsx(o8,k({as:w,ref:n,ownerState:b,className:ye(P.root,u)},x))});function a8(e){return Me("MuiAlertTitle",e)}Ne("MuiAlertTitle",["root"]);const l8=["className"],c8=e=>{const{classes:t}=e;return Le({root:["root"]},a8,t)},u8=re(bn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),d8=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlertTitle"}),{className:o}=r,s=ge(r,l8),l=r,u=c8(l);return y.jsx(u8,k({gutterBottom:!0,component:"div",ownerState:l,ref:n,className:ye(u.root,o)},s))});function f8(e){return Me("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const p8=["className","color","enableColorOnDark","position"],h8=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${le(t)}`,`position${le(n)}`]};return Le(o,f8,r)},gf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,m8=re(oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),pE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,c=ge(r,p8),f=k({},r,{color:s,position:u,enableColorOnDark:l}),p=h8(f);return y.jsx(m8,k({square:!0,component:"header",ownerState:f,elevation:4,className:ye(p.root,o,u==="fixed"&&"mui-fixed"),ref:n},c))});function hE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function g8(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:l=!1}=e;return(u,{inputValue:c,getOptionLabel:f})=>{let p=l?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=hE(p));const m=p?u.filter(g=>{let S=(s||f)(g);return n&&(S=S.toLowerCase()),t&&(S=hE(S)),o==="start"?S.indexOf(p)===0:S.indexOf(p)>-1}):u;return typeof r=="number"?m.slice(0,r):m}}function yf(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const y8=g8(),mE=5,v8=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function b8(e){const{unstable_isActiveElementInListbox:t=v8,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:S,disabledItemsFocusable:x=!1,disableListWrap:b=!1,filterOptions:w=y8,filterSelectedOptions:P=!1,freeSolo:R=!1,getOptionDisabled:T,getOptionKey:A,getOptionLabel:$=X=>{var Q;return(Q=X.label)!=null?Q:X},groupBy:O,handleHomeEndKeys:_=!e.freeSolo,id:N,includeInputInList:D=!1,inputValue:F,isOptionEqualToValue:K=(X,Q)=>X===Q,multiple:Y=!1,onChange:J,onClose:U,onHighlightChange:oe,onInputChange:G,onOpen:W,open:M,openOnFocus:q=!1,options:se,readOnly:L=!1,selectOnFocus:ie=!e.freeSolo,value:Oe}=e,ve=Ia(N);let xe=$;xe=X=>{const Q=$(X);return typeof Q!="string"?String(Q):Q};const he=E.useRef(!1),Ie=E.useRef(!0),de=E.useRef(null),ke=E.useRef(null),[Qe,Ve]=E.useState(null),[Be,Je]=E.useState(-1),ct=o?0:-1,ot=E.useRef(ct),[ze,Ot]=pi({controlled:Oe,default:p,name:f}),[Ze,$t]=pi({controlled:F,default:"",name:f,state:"inputValue"}),[gt,dt]=E.useState(!1),_t=E.useCallback((X,Q)=>{if(!(Y?ze.length<Q.length:Q!==null)&&!u)return;let be;if(Y)be="";else if(Q==null)be="";else{const De=xe(Q);be=typeof De=="string"?De:""}Ze!==be&&($t(be),G&&G(X,be,"reset"))},[xe,Ze,Y,G,$t,u,ze]),[Pt,pt]=pi({controlled:M,default:!1,name:f,state:"open"}),[Ft,Yt]=E.useState(!0),qt=!Y&&ze!=null&&Ze===xe(ze),et=Pt&&!L,Pe=et?w(se.filter(X=>!(P&&(Y?ze:[ze]).some(Q=>Q!==null&&K(X,Q)))),{inputValue:qt&&Ft?"":Ze,getOptionLabel:xe}):[],xt=mg({filteredOptions:Pe,value:ze,inputValue:Ze});E.useEffect(()=>{const X=ze!==xt.value;gt&&!X||R&&!X||_t(null,ze)},[ze,_t,gt,xt.value,R]);const Ht=Pt&&Pe.length>0&&!L,fn=Nn(X=>{X===-1?de.current.focus():Qe.querySelector(`[data-tag-index="${X}"]`).focus()});E.useEffect(()=>{Y&&Be>ze.length-1&&(Je(-1),fn(-1))},[ze,Y,Be,fn]);function Ue(X,Q){if(!ke.current||X<0||X>=Pe.length)return-1;let we=X;for(;;){const be=ke.current.querySelector(`[data-option-index="${we}"]`),De=x?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!De)return we;if(Q==="next"?we=(we+1)%Pe.length:we=(we-1+Pe.length)%Pe.length,we===X)return-1}}const ut=Nn(({event:X,index:Q,reason:we="auto"})=>{if(ot.current=Q,Q===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ve}-option-${Q}`),oe&&oe(X,Q===-1?null:Pe[Q],we),!ke.current)return;const be=ke.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let De=ke.current;if(ke.current.getAttribute("role")!=="listbox"&&(De=ke.current.parentElement.querySelector('[role="listbox"]')),!De)return;if(Q===-1){De.scrollTop=0;return}const Ee=ke.current.querySelector(`[data-option-index="${Q}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),we==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),De.scrollHeight>De.clientHeight&&we!=="mouse"&&we!=="touch")){const nt=Ee,At=De.clientHeight+De.scrollTop,uo=nt.offsetTop+nt.offsetHeight;uo>At?De.scrollTop=uo-De.clientHeight:nt.offsetTop-nt.offsetHeight*(O?1.3:0)<De.scrollTop&&(De.scrollTop=nt.offsetTop-nt.offsetHeight*(O?1.3:0))}}),Re=Nn(({event:X,diff:Q,direction:we="next",reason:be="auto"})=>{if(!et)return;const Ee=Ue((()=>{const nt=Pe.length-1;if(Q==="reset")return ct;if(Q==="start")return 0;if(Q==="end")return nt;const At=ot.current+Q;return At<0?At===-1&&D?-1:b&&ot.current!==-1||Math.abs(Q)>1?0:nt:At>nt?At===nt+1&&D?-1:b||Math.abs(Q)>1?nt:0:At})(),we);if(ut({index:Ee,reason:be,event:X}),r&&Q!=="reset")if(Ee===-1)de.current.value=Ze;else{const nt=xe(Pe[Ee]);de.current.value=nt,nt.toLowerCase().indexOf(Ze.toLowerCase())===0&&Ze.length>0&&de.current.setSelectionRange(Ze.length,nt.length)}}),We=()=>{const X=(Q,we)=>{const be=Q?xe(Q):"",De=we?xe(we):"";return be===De};if(ot.current!==-1&&xt.filteredOptions&&xt.filteredOptions.length!==Pe.length&&xt.inputValue===Ze&&(Y?ze.length===xt.value.length&&xt.value.every((Q,we)=>xe(ze[we])===xe(Q)):X(xt.value,ze))){const Q=xt.filteredOptions[ot.current];if(Q)return yf(Pe,we=>xe(we)===xe(Q))}return-1},ft=E.useCallback(()=>{if(!et)return;const X=We();if(X!==-1){ot.current=X;return}const Q=Y?ze[0]:ze;if(Pe.length===0||Q==null){Re({diff:"reset"});return}if(ke.current){if(Q!=null){const we=Pe[ot.current];if(Y&&we&&yf(ze,De=>K(we,De))!==-1)return;const be=yf(Pe,De=>K(De,Q));be===-1?Re({diff:"reset"}):ut({index:be});return}if(ot.current>=Pe.length-1){ut({index:Pe.length-1});return}ut({index:ot.current})}},[Pe.length,Y?!1:ze,P,Re,ut,et,Ze,Y]),yt=Nn(X=>{of(ke,X),X&&ft()});E.useEffect(()=>{ft()},[ft]);const bt=X=>{Pt||(pt(!0),Yt(!0),W&&W(X))},Mt=(X,Q)=>{Pt&&(pt(!1),U&&U(X,Q))},It=(X,Q,we,be)=>{if(Y){if(ze.length===Q.length&&ze.every((De,Ee)=>De===Q[Ee]))return}else if(ze===Q)return;J&&J(X,Q,we,be),Ot(Q)},en=E.useRef(!1),rn=(X,Q,we="selectOption",be="options")=>{let De=we,Ee=Q;if(Y){Ee=Array.isArray(ze)?ze.slice():[];const nt=yf(Ee,At=>K(Q,At));nt===-1?Ee.push(Q):be!=="freeSolo"&&(Ee.splice(nt,1),De="removeOption")}_t(X,Ee),It(X,Ee,De,{option:Q}),!g&&(!X||!X.ctrlKey&&!X.metaKey)&&Mt(X,De),(l===!0||l==="touch"&&en.current||l==="mouse"&&!en.current)&&de.current.blur()};function Yn(X,Q){if(X===-1)return-1;let we=X;for(;;){if(Q==="next"&&we===ze.length||Q==="previous"&&we===-1)return-1;const be=Qe.querySelector(`[data-tag-index="${we}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")we+=Q==="next"?1:-1;else return we}}const Vr=(X,Q)=>{if(!Y)return;Ze===""&&Mt(X,"toggleInput");let we=Be;Be===-1?Ze===""&&Q==="previous"&&(we=ze.length-1):(we+=Q==="next"?1:-1,we<0&&(we=0),we===ze.length&&(we=-1)),we=Yn(we,Q),Je(we),fn(we)},Po=X=>{he.current=!0,$t(""),G&&G(X,"","clear"),It(X,Y?[]:null,"clear")},To=X=>Q=>{if(X.onKeyDown&&X.onKeyDown(Q),!Q.defaultMuiPrevented&&(Be!==-1&&["ArrowLeft","ArrowRight"].indexOf(Q.key)===-1&&(Je(-1),fn(-1)),Q.which!==229))switch(Q.key){case"Home":et&&_&&(Q.preventDefault(),Re({diff:"start",direction:"next",reason:"keyboard",event:Q}));break;case"End":et&&_&&(Q.preventDefault(),Re({diff:"end",direction:"previous",reason:"keyboard",event:Q}));break;case"PageUp":Q.preventDefault(),Re({diff:-mE,direction:"previous",reason:"keyboard",event:Q}),bt(Q);break;case"PageDown":Q.preventDefault(),Re({diff:mE,direction:"next",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowDown":Q.preventDefault(),Re({diff:1,direction:"next",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowUp":Q.preventDefault(),Re({diff:-1,direction:"previous",reason:"keyboard",event:Q}),bt(Q);break;case"ArrowLeft":Vr(Q,"previous");break;case"ArrowRight":Vr(Q,"next");break;case"Enter":if(ot.current!==-1&&et){const we=Pe[ot.current],be=T?T(we):!1;if(Q.preventDefault(),be)return;rn(Q,we,"selectOption"),r&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else R&&Ze!==""&&qt===!1&&(Y&&Q.preventDefault(),rn(Q,Ze,"createOption","freeSolo"));break;case"Escape":et?(Q.preventDefault(),Q.stopPropagation(),Mt(Q,"escape")):c&&(Ze!==""||Y&&ze.length>0)&&(Q.preventDefault(),Q.stopPropagation(),Po(Q));break;case"Backspace":if(Y&&!L&&Ze===""&&ze.length>0){const we=Be===-1?ze.length-1:Be,be=ze.slice();be.splice(we,1),It(Q,be,"removeOption",{option:ze[we]})}break;case"Delete":if(Y&&!L&&Ze===""&&ze.length>0&&Be!==-1){const we=Be,be=ze.slice();be.splice(we,1),It(Q,be,"removeOption",{option:ze[we]})}break}},co=X=>{dt(!0),q&&!he.current&&bt(X)},Ln=X=>{if(t(ke)){de.current.focus();return}dt(!1),Ie.current=!0,he.current=!1,s&&ot.current!==-1&&et?rn(X,Pe[ot.current],"blur"):s&&R&&Ze!==""?rn(X,Ze,"blur","freeSolo"):u&&_t(X,ze),Mt(X,"blur")},on=X=>{const Q=X.target.value;Ze!==Q&&($t(Q),Yt(!1),G&&G(X,Q,"input")),Q===""?!m&&!Y&&It(X,null,"clear"):bt(X)},Qt=X=>{const Q=Number(X.currentTarget.getAttribute("data-option-index"));ot.current!==Q&&ut({event:X,index:Q,reason:"mouse"})},B=X=>{ut({event:X,index:Number(X.currentTarget.getAttribute("data-option-index")),reason:"touch"}),en.current=!0},H=X=>{const Q=Number(X.currentTarget.getAttribute("data-option-index"));rn(X,Pe[Q],"selectOption"),en.current=!1},ae=X=>Q=>{const we=ze.slice();we.splice(X,1),It(Q,we,"removeOption",{option:ze[X]})},me=X=>{Pt?Mt(X,"toggleInput"):bt(X)},_e=X=>{X.currentTarget.contains(X.target)&&X.target.getAttribute("id")!==ve&&X.preventDefault()},Ge=X=>{X.currentTarget.contains(X.target)&&(de.current.focus(),ie&&Ie.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),Ie.current=!1)},it=X=>{!S&&(Ze===""||!Pt)&&me(X)};let $e=R&&Ze.length>0;$e=$e||(Y?ze.length>0:ze!==null);let st=Pe;return O&&(st=Pe.reduce((X,Q,we)=>{const be=O(Q);return X.length>0&&X[X.length-1].group===be?X[X.length-1].options.push(Q):X.push({key:we,index:we,group:be,options:[Q]}),X},[])),S&&gt&&Ln(),{getRootProps:(X={})=>k({"aria-owns":Ht?`${ve}-listbox`:null},X,{onKeyDown:To(X),onMouseDown:_e,onClick:Ge}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:Ze,onBlur:Ln,onFocus:co,onChange:on,onMouseDown:it,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${ve}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Po}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:me}),getTagProps:({index:X})=>k({key:X,"data-tag-index":X,tabIndex:-1},!L&&{onDelete:ae(X)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:yt,onMouseDown:X=>{X.preventDefault()}}),getOptionProps:({index:X,option:Q})=>{var we;const be=(Y?ze:[ze]).some(Ee=>Ee!=null&&K(Q,Ee)),De=T?T(Q):!1;return{key:(we=A==null?void 0:A(Q))!=null?we:xe(Q),tabIndex:-1,role:"option",id:`${ve}-option-${X}`,onMouseMove:Qt,onClick:H,onTouchStart:B,"data-option-index":X,"aria-disabled":De,"aria-selected":be}},id:ve,inputValue:Ze,value:ze,dirty:$e,expanded:et&&Qe,popupOpen:et,focused:gt||Be!==-1,anchorEl:Qe,setAnchorEl:Ve,focusedTag:Be,groupedOptions:st}}var Mg={};Object.defineProperty(Mg,"__esModule",{value:!0});var gE=Mg.default=void 0,x8=S8(E),w8=XC;function yE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yE=function(r){return r?n:t})(e)}function S8(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function C8(e){return Object.keys(e).length===0}function E8(e=null){const t=x8.useContext(w8.ThemeContext);return!t||C8(t)?e:t}gE=Mg.default=E8;var xr="top",so="bottom",ao="right",wr="left",Ig="auto",Dc=[xr,so,ao,wr],Qa="start",Fc="end",R8="clippingParents",vE="viewport",Bc="popper",k8="reference",bE=Dc.reduce(function(e,t){return e.concat([t+"-"+Qa,t+"-"+Fc])},[]),xE=[].concat(Dc,[Ig]).reduce(function(e,t){return e.concat([t,t+"-"+Qa,t+"-"+Fc])},[]),P8="beforeRead",T8="read",O8="afterRead",$8="beforeMain",A8="main",j8="afterMain",_8="beforeWrite",M8="write",I8="afterWrite",N8=[P8,T8,O8,$8,A8,j8,_8,M8,I8];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ng(e){if(typeof ShadowRoot>"u")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!lo(s)||!Ko(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var u=o[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function D8(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],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(c,f){return c[f]="",c},{});!lo(o)||!Ko(o)||(Object.assign(o.style,u),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const F8={name:"applyStyles",enabled:!0,phase:"write",fn:L8,effect:D8,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var Us=Math.max,vf=Math.min,Ya=Math.round;function Lg(){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 wE(){return!/^((?!chrome|android).)*safari/i.test(Lg())}function Xa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&lo(e)&&(o=e.offsetWidth>0&&Ya(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ya(r.height)/e.offsetHeight||1);var l=zs(e)?Fr(e):window,u=l.visualViewport,c=!wE()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/s,m=r.width/o,g=r.height/s;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function Dg(e){var t=Xa(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 SE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ng(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gi(e){return Fr(e).getComputedStyle(e)}function B8(e){return["table","td","th"].indexOf(Ko(e))>=0}function Ui(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(Ng(e)?e.host:null)||Ui(e)}function CE(e){return!lo(e)||gi(e).position==="fixed"?null:e.offsetParent}function z8(e){var t=/firefox/i.test(Lg()),n=/Trident/i.test(Lg());if(n&&lo(e)){var r=gi(e);if(r.position==="fixed")return null}var o=bf(e);for(Ng(o)&&(o=o.host);lo(o)&&["html","body"].indexOf(Ko(o))<0;){var s=gi(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function zc(e){for(var t=Fr(e),n=CE(e);n&&B8(n)&&gi(n).position==="static";)n=CE(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&gi(n).position==="static")?t:n||z8(e)||t}function Fg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Uc(e,t,n){return Us(e,vf(t,n))}function U8(e,t,n){var r=Uc(e,t,n);return r>n?n:r}function EE(){return{top:0,right:0,bottom:0,left:0}}function RE(e){return Object.assign({},EE(),e)}function kE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var W8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RE(typeof t!="number"?t:kE(t,Dc))};function H8(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,u=Go(n.placement),c=Fg(u),f=[wr,ao].indexOf(u)>=0,p=f?"height":"width";if(!(!s||!l)){var m=W8(o.padding,n),g=Dg(s),S=c==="y"?xr:wr,x=c==="y"?so:ao,b=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],w=l[c]-n.rects.reference[c],P=zc(s),R=P?c==="y"?P.clientHeight||0:P.clientWidth||0:0,T=b/2-w/2,A=m[S],$=R-g[p]-m[x],O=R/2-g[p]/2+T,_=Uc(A,O,$),N=c;n.modifiersData[r]=(t={},t[N]=_,t.centerOffset=_-O,t)}}function V8(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)||SE(t.elements.popper,o)&&(t.elements.arrow=o))}const K8={name:"arrow",enabled:!0,phase:"main",fn:H8,effect:V8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ja(e){return e.split("-")[1]}var G8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q8(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ya(n*o)/o||0,y:Ya(r*o)/o||0}}function PE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=l.x,S=g===void 0?0:g,x=l.y,b=x===void 0?0:x,w=typeof p=="function"?p({x:S,y:b}):{x:S,y:b};S=w.x,b=w.y;var P=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),T=wr,A=xr,$=window;if(f){var O=zc(n),_="clientHeight",N="clientWidth";if(O===Fr(n)&&(O=Ui(n),gi(O).position!=="static"&&u==="absolute"&&(_="scrollHeight",N="scrollWidth")),O=O,o===xr||(o===wr||o===ao)&&s===Fc){A=so;var D=m&&O===$&&$.visualViewport?$.visualViewport.height:O[_];b-=D-r.height,b*=c?1:-1}if(o===wr||(o===xr||o===so)&&s===Fc){T=ao;var F=m&&O===$&&$.visualViewport?$.visualViewport.width:O[N];S-=F-r.width,S*=c?1:-1}}var K=Object.assign({position:u},f&&G8),Y=p===!0?q8({x:S,y:b},Fr(n)):{x:S,y:b};if(S=Y.x,b=Y.y,c){var J;return Object.assign({},K,(J={},J[A]=R?"0":"",J[T]=P?"0":"",J.transform=($.devicePixelRatio||1)<=1?"translate("+S+"px, "+b+"px)":"translate3d("+S+"px, "+b+"px, 0)",J))}return Object.assign({},K,(t={},t[A]=R?b+"px":"",t[T]=P?S+"px":"",t.transform="",t))}function Q8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Go(t.placement),variation:Ja(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,PE(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PE(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Y8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q8,data:{}};var xf={passive:!0};function X8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,u=l===void 0?!0:l,c=Fr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,xf)}),u&&c.addEventListener("resize",n.update,xf),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,xf)}),u&&c.removeEventListener("resize",n.update,xf)}}const J8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:X8,data:{}};var Z8={left:"right",right:"left",bottom:"top",top:"bottom"};function wf(e){return e.replace(/left|right|bottom|top/g,function(t){return Z8[t]})}var eW={start:"end",end:"start"};function TE(e){return e.replace(/start|end/g,function(t){return eW[t]})}function Bg(e){var t=Fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zg(e){return Xa(Ui(e)).left+Bg(e).scrollLeft}function tW(e,t){var n=Fr(e),r=Ui(e),o=n.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){s=o.width,l=o.height;var f=wE();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:s,height:l,x:u+zg(e),y:c}}function nW(e){var t,n=Ui(e),r=Bg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Us(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Us(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+zg(e),c=-r.scrollTop;return gi(o||n).direction==="rtl"&&(u+=Us(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:u,y:c}}function Ug(e){var t=gi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function OE(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:lo(e)&&Ug(e)?e:OE(bf(e))}function Wc(e,t){var n;t===void 0&&(t=[]);var r=OE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Fr(r),l=o?[s].concat(s.visualViewport||[],Ug(r)?r:[]):r,u=t.concat(l);return o?u:u.concat(Wc(bf(l)))}function Wg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rW(e,t){var n=Xa(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 $E(e,t,n){return t===vE?Wg(tW(e,n)):zs(t)?rW(t,n):Wg(nW(Ui(e)))}function oW(e){var t=Wc(bf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&lo(e)?zc(e):e;return zs(r)?t.filter(function(o){return zs(o)&&SE(o,r)&&Ko(o)!=="body"}):[]}function iW(e,t,n,r){var o=t==="clippingParents"?oW(e):[].concat(t),s=[].concat(o,[n]),l=s[0],u=s.reduce(function(c,f){var p=$E(e,f,r);return c.top=Us(p.top,c.top),c.right=vf(p.right,c.right),c.bottom=vf(p.bottom,c.bottom),c.left=Us(p.left,c.left),c},$E(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function AE(e){var t=e.reference,n=e.element,r=e.placement,o=r?Go(r):null,s=r?Ja(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case xr:c={x:l,y:t.y-n.height};break;case so:c={x:l,y:t.y+t.height};break;case ao:c={x:t.x+t.width,y:u};break;case wr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?Fg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qa:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Fc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Hc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,u=n.boundary,c=u===void 0?R8:u,f=n.rootBoundary,p=f===void 0?vE:f,m=n.elementContext,g=m===void 0?Bc:m,S=n.altBoundary,x=S===void 0?!1:S,b=n.padding,w=b===void 0?0:b,P=RE(typeof w!="number"?w:kE(w,Dc)),R=g===Bc?k8:Bc,T=e.rects.popper,A=e.elements[x?R:g],$=iW(zs(A)?A:A.contextElement||Ui(e.elements.popper),c,p,l),O=Xa(e.elements.reference),_=AE({reference:O,element:T,strategy:"absolute",placement:o}),N=Wg(Object.assign({},T,_)),D=g===Bc?N:O,F={top:$.top-D.top+P.top,bottom:D.bottom-$.bottom+P.bottom,left:$.left-D.left+P.left,right:D.right-$.right+P.right},K=e.modifiersData.offset;if(g===Bc&&K){var Y=K[o];Object.keys(F).forEach(function(J){var U=[ao,so].indexOf(J)>=0?1:-1,oe=[xr,so].indexOf(J)>=0?"y":"x";F[J]+=Y[oe]*U})}return F}function sW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?xE:c,p=Ja(r),m=p?u?bE:bE.filter(function(x){return Ja(x)===p}):Dc,g=m.filter(function(x){return f.indexOf(x)>=0});g.length===0&&(g=m);var S=g.reduce(function(x,b){return x[b]=Hc(e,{placement:b,boundary:o,rootBoundary:s,padding:l})[Go(b)],x},{});return Object.keys(S).sort(function(x,b){return S[x]-S[b]})}function aW(e){if(Go(e)===Ig)return[];var t=wf(e);return[TE(e),t,TE(t)]}function lW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,S=n.flipVariations,x=S===void 0?!0:S,b=n.allowedAutoPlacements,w=t.options.placement,P=Go(w),R=P===w,T=c||(R||!x?[wf(w)]:aW(w)),A=[w].concat(T).reduce(function(ve,xe){return ve.concat(Go(xe)===Ig?sW(t,{placement:xe,boundary:p,rootBoundary:m,padding:f,flipVariations:x,allowedAutoPlacements:b}):xe)},[]),$=t.rects.reference,O=t.rects.popper,_=new Map,N=!0,D=A[0],F=0;F<A.length;F++){var K=A[F],Y=Go(K),J=Ja(K)===Qa,U=[xr,so].indexOf(Y)>=0,oe=U?"width":"height",G=Hc(t,{placement:K,boundary:p,rootBoundary:m,altBoundary:g,padding:f}),W=U?J?ao:wr:J?so:xr;$[oe]>O[oe]&&(W=wf(W));var M=wf(W),q=[];if(s&&q.push(G[Y]<=0),u&&q.push(G[W]<=0,G[M]<=0),q.every(function(ve){return ve})){D=K,N=!1;break}_.set(K,q)}if(N)for(var se=x?3:1,L=function(xe){var he=A.find(function(Ie){var de=_.get(Ie);if(de)return de.slice(0,xe).every(function(ke){return ke})});if(he)return D=he,"break"},ie=se;ie>0;ie--){var Oe=L(ie);if(Oe==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const cW={name:"flip",enabled:!0,phase:"main",fn:lW,requiresIfExists:["offset"],data:{_skip:!1}};function jE(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 _E(e){return[xr,ao,so,wr].some(function(t){return e[t]>=0})}function uW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Hc(t,{elementContext:"reference"}),u=Hc(t,{altBoundary:!0}),c=jE(l,r),f=jE(u,o,s),p=_E(c),m=_E(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const dW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uW};function fW(e,t,n){var r=Go(e),o=[wr,xr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],u=s[1];return l=l||0,u=(u||0)*o,[wr,ao].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function pW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=xE.reduce(function(p,m){return p[m]=fW(m,t.rects,s),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}const hW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pW};function mW(e){var t=e.state,n=e.name;t.modifiersData[n]=AE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gW={name:"popperOffsets",enabled:!0,phase:"read",fn:mW,data:{}};function yW(e){return e==="x"?"y":"x"}function vW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.padding,g=n.tether,S=g===void 0?!0:g,x=n.tetherOffset,b=x===void 0?0:x,w=Hc(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),P=Go(t.placement),R=Ja(t.placement),T=!R,A=Fg(P),$=yW(A),O=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,D=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(O){if(s){var J,U=A==="y"?xr:wr,oe=A==="y"?so:ao,G=A==="y"?"height":"width",W=O[A],M=W+w[U],q=W-w[oe],se=S?-N[G]/2:0,L=R===Qa?_[G]:N[G],ie=R===Qa?-N[G]:-_[G],Oe=t.elements.arrow,ve=S&&Oe?Dg(Oe):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EE(),he=xe[U],Ie=xe[oe],de=Uc(0,_[G],ve[G]),ke=T?_[G]/2-se-de-he-F.mainAxis:L-de-he-F.mainAxis,Qe=T?-_[G]/2+se+de+Ie+F.mainAxis:ie+de+Ie+F.mainAxis,Ve=t.elements.arrow&&zc(t.elements.arrow),Be=Ve?A==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,Je=(J=K==null?void 0:K[A])!=null?J:0,ct=W+ke-Je-Be,ot=W+Qe-Je,ze=Uc(S?vf(M,ct):M,W,S?Us(q,ot):q);O[A]=ze,Y[A]=ze-W}if(u){var Ot,Ze=A==="x"?xr:wr,$t=A==="x"?so:ao,gt=O[$],dt=$==="y"?"height":"width",_t=gt+w[Ze],Pt=gt-w[$t],pt=[xr,wr].indexOf(P)!==-1,Ft=(Ot=K==null?void 0:K[$])!=null?Ot:0,Yt=pt?_t:gt-_[dt]-N[dt]-Ft+F.altAxis,qt=pt?gt+_[dt]+N[dt]-Ft-F.altAxis:Pt,et=S&&pt?U8(Yt,gt,qt):Uc(S?Yt:_t,gt,S?qt:Pt);O[$]=et,Y[$]=et-gt}t.modifiersData[r]=Y}}const bW={name:"preventOverflow",enabled:!0,phase:"main",fn:vW,requiresIfExists:["offset"]};function xW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wW(e){return e===Fr(e)||!lo(e)?Bg(e):xW(e)}function SW(e){var t=e.getBoundingClientRect(),n=Ya(t.width)/e.offsetWidth||1,r=Ya(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CW(e,t,n){n===void 0&&(n=!1);var r=lo(t),o=lo(t)&&SW(t),s=Ui(t),l=Xa(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ko(t)!=="body"||Ug(s))&&(u=wW(t)),lo(t)?(c=Xa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=zg(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function EW(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function RW(e){var t=EW(e);return N8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function kW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PW(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 ME={placement:"bottom",modifiers:[],strategy:"absolute"};function IE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function TW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?ME:o;return function(u,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ME,s),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],g=!1,S={state:p,setOptions:function(P){var R=typeof P=="function"?P(p.options):P;b(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:zs(u)?Wc(u):u.contextElement?Wc(u.contextElement):[],popper:Wc(c)};var T=RW(PW([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(A){return A.enabled}),x(),S.update()},forceUpdate:function(){if(!g){var P=p.elements,R=P.reference,T=P.popper;if(IE(R,T)){p.rects={reference:CW(R,zc(T),p.options.strategy==="fixed"),popper:Dg(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(F){return p.modifiersData[F.name]=Object.assign({},F.data)});for(var A=0;A<p.orderedModifiers.length;A++){if(p.reset===!0){p.reset=!1,A=-1;continue}var $=p.orderedModifiers[A],O=$.fn,_=$.options,N=_===void 0?{}:_,D=$.name;typeof O=="function"&&(p=O({state:p,options:N,name:D,instance:S})||p)}}}},update:kW(function(){return new Promise(function(w){S.forceUpdate(),w(p)})}),destroy:function(){b(),g=!0}};if(!IE(u,c))return S;S.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function x(){p.orderedModifiers.forEach(function(w){var P=w.name,R=w.options,T=R===void 0?{}:R,A=w.effect;if(typeof A=="function"){var $=A({state:p,name:P,instance:S,options:T}),O=function(){};m.push($||O)}})}function b(){m.forEach(function(w){return w()}),m=[]}return S}}var OW=[J8,gW,Y8,F8,hW,cW,bW,K8,dW],$W=TW({defaultModifiers:OW});function AW(e){return typeof e=="function"?e():e}const NE=E.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[l,u]=E.useState(null),c=Gt(E.isValidElement(r)?r.ref:null,n);if(vr(()=>{s||u(AW(o)||document.body)},[o,s]),vr(()=>{if(l&&!s)return of(n,l),()=>{of(n,null)}},[n,l,s]),s){if(E.isValidElement(r)){const f={ref:c};return E.cloneElement(r,f)}return y.jsx(E.Fragment,{children:r})}return y.jsx(E.Fragment,{children:l&&Hu.createPortal(r,l)})});function jW(e){return Me("MuiPopper",e)}Ne("MuiPopper",["root"]);const _W=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],MW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function IW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Hg(e){return typeof e=="function"?e():e}function NW(e){return e.nodeType!==void 0}const LW=e=>{const{classes:t}=e;return Le({root:["root"]},jW,t)},DW={},FW=E.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:g,slotProps:S={},slots:x={},TransitionProps:b}=t,w=ge(t,_W),P=E.useRef(null),R=Gt(P,n),T=E.useRef(null),A=Gt(T,g),$=E.useRef(A);vr(()=>{$.current=A},[A]),E.useImperativeHandle(g,()=>T.current,[]);const O=IW(p,l),[_,N]=E.useState(O),[D,F]=E.useState(Hg(o));E.useEffect(()=>{T.current&&T.current.forceUpdate()}),E.useEffect(()=>{o&&F(Hg(o))},[o]),vr(()=>{if(!D||!f)return;const oe=M=>{N(M.placement)};let G=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{oe(M)}}];c!=null&&(G=G.concat(c)),m&&m.modifiers!=null&&(G=G.concat(m.modifiers));const W=$W(D,P.current,k({placement:O},m,{modifiers:G}));return $.current(W),()=>{W.destroy(),$.current(null)}},[D,u,c,f,m,O]);const K={placement:_};b!==null&&(K.TransitionProps=b);const Y=LW(t),J=(r=x.root)!=null?r:"div",U=rr({elementType:J,externalSlotProps:S.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:Y.root});return y.jsx(J,k({},U,{children:typeof s=="function"?s(K):s}))}),BW=E.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:g=DW,popperRef:S,style:x,transition:b=!1,slotProps:w={},slots:P={}}=t,R=ge(t,MW),[T,A]=E.useState(!0),$=()=>{A(!1)},O=()=>{A(!0)};if(!c&&!p&&(!b||T))return null;let _;if(s)_=s;else if(r){const F=Hg(r);_=F&&NW(F)?An(F).body:An(null).body}const N=!p&&c&&(!b||T)?"none":void 0,D=b?{in:p,onEnter:$,onExited:O}:void 0;return y.jsx(NE,{disablePortal:u,container:_,children:y.jsx(FW,k({anchorEl:r,direction:l,disablePortal:u,modifiers:f,ref:n,open:b?!T:p,placement:m,popperOptions:g,popperRef:S,slotProps:w,slots:P},R,{style:k({position:"fixed",top:0,left:0,display:N},x),TransitionProps:D,children:o}))})}),zW=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],UW=re(BW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vc=E.forwardRef(function(t,n){var r;const o=gE(),s=Fe({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R,slots:T,slotProps:A}=s,$=ge(s,zW),O=(r=T==null?void 0:T.root)!=null?r:c==null?void 0:c.Root,_=k({anchorEl:l,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R},$);return y.jsx(UW,k({as:u,direction:o==null?void 0:o.direction,slots:{root:O},slotProps:A??f},_,{ref:n}))});function WW(e){return Me("MuiListSubheader",e)}Ne("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const HW=["className","color","component","disableGutters","disableSticky","inset"],VW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,l={root:["root",n!=="default"&&`color${le(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Le(l,WW,t)},KW=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>k({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),LE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=r,p=ge(r,HW),m=k({},r,{color:s,component:l,disableGutters:u,disableSticky:c,inset:f}),g=VW(m);return y.jsx(KW,k({as:l,className:ye(g.root,o),ref:n,ownerState:m},p))});LE.muiSkipListHighlight=!0;const GW=Rt(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qW(e){return Me("MuiChip",e)}const Dt=Ne("MuiChip",["root","sizeSmall","sizeMedium","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"]),QW=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],YW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:l,clickable:u,variant:c}=e,f={root:["root",c,n&&"disabled",`size${le(r)}`,`color${le(o)}`,u&&"clickable",u&&`clickableColor${le(o)}`,l&&"deletable",l&&`deletableColor${le(o)}`,`${c}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(c)}Color${le(o)}`]};return Le(f,qW,t)},XW=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:l,size:u,variant:c}=n;return[{[`& .${Dt.avatar}`]:t.avatar},{[`& .${Dt.avatar}`]:t[`avatar${le(u)}`]},{[`& .${Dt.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${Dt.icon}`]:t.icon},{[`& .${Dt.icon}`]:t[`icon${le(u)}`]},{[`& .${Dt.icon}`]:t[`iconColor${le(o)}`]},{[`& .${Dt.deleteIcon}`]:t.deleteIcon},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${le(u)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(r)}`]},t.root,t[`size${le(u)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${le(r)}`],t[c],t[`${c}${le(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({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",[`&.${Dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Dt.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Dt.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(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)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{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}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{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]}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Dt.avatar}`]:{marginLeft:4},[`& .${Dt.avatarSmall}`]:{marginLeft:2},[`& .${Dt.icon}`]:{marginLeft:4},[`& .${Dt.iconSmall}`]:{marginLeft:2},[`& .${Dt.deleteIcon}`]:{marginRight:5},[`& .${Dt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),JW=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(r)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function DE(e){return e.key==="Backspace"||e.key==="Delete"}const ZW=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:l,color:u="default",component:c,deleteIcon:f,disabled:p=!1,icon:m,label:g,onClick:S,onDelete:x,onKeyDown:b,onKeyUp:w,size:P="medium",variant:R="filled",tabIndex:T,skipFocusWhenDisabled:A=!1}=r,$=ge(r,QW),O=E.useRef(null),_=Gt(O,n),N=q=>{q.stopPropagation(),x&&x(q)},D=q=>{q.currentTarget===q.target&&DE(q)&&q.preventDefault(),b&&b(q)},F=q=>{q.currentTarget===q.target&&(x&&DE(q)?x(q):q.key==="Escape"&&O.current&&O.current.blur()),w&&w(q)},K=l!==!1&&S?!0:l,Y=K||x?Dr:c||"div",J=k({},r,{component:Y,disabled:p,size:P,color:u,iconColor:E.isValidElement(m)&&m.props.color||u,onDelete:!!x,clickable:K,variant:R}),U=YW(J),oe=Y===Dr?k({component:c||"div",focusVisibleClassName:U.focusVisible},x&&{disableRipple:!0}):{};let G=null;x&&(G=f&&E.isValidElement(f)?E.cloneElement(f,{className:ye(f.props.className,U.deleteIcon),onClick:N}):y.jsx(GW,{className:ye(U.deleteIcon),onClick:N}));let W=null;o&&E.isValidElement(o)&&(W=E.cloneElement(o,{className:ye(U.avatar,o.props.className)}));let M=null;return m&&E.isValidElement(m)&&(M=E.cloneElement(m,{className:ye(U.icon,m.props.className)})),y.jsxs(XW,k({as:Y,className:ye(U.root,s),disabled:K&&p?!0:void 0,onClick:S,onKeyDown:D,onKeyUp:F,ref:_,tabIndex:A&&p?-1:T,ownerState:J},oe,$,{children:[W||M,y.jsx(JW,{className:ye(U.label),ownerState:J,children:g}),G]}))}),e9=["onChange","maxRows","minRows","style","value"];function Sf(e){return parseInt(e,10)||0}const t9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function n9(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const r9=E.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:l,value:u}=t,c=ge(t,e9),{current:f}=E.useRef(u!=null),p=E.useRef(null),m=Gt(n,p),g=E.useRef(null),S=E.useRef(null),x=E.useCallback(()=>{const P=p.current,T=Eo(P).getComputedStyle(P);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};const A=S.current;A.style.width=T.width,A.value=P.value||t.placeholder||"x",A.value.slice(-1)===`
96
+ `&&(A.value+=" ");const $=T.boxSizing,O=Sf(T.paddingBottom)+Sf(T.paddingTop),_=Sf(T.borderBottomWidth)+Sf(T.borderTopWidth),N=A.scrollHeight;A.value="x";const D=A.scrollHeight;let F=N;s&&(F=Math.max(Number(s)*D,F)),o&&(F=Math.min(Number(o)*D,F)),F=Math.max(F,D);const K=F+($==="border-box"?O+_:0),Y=Math.abs(F-N)<=1;return{outerHeightStyle:K,overflowing:Y}},[o,s,t.placeholder]),b=E.useCallback(()=>{const P=x();if(n9(P))return;const R=P.outerHeightStyle,T=p.current;g.current!==R&&(g.current=R,T.style.height=`${R}px`),T.style.overflow=P.overflowing?"hidden":""},[x]);vr(()=>{const P=()=>{b()};let R;const T=Pc(P),A=p.current,$=Eo(A);$.addEventListener("resize",T);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(P),O.observe(A)),()=>{T.clear(),cancelAnimationFrame(R),$.removeEventListener("resize",T),O&&O.disconnect()}},[x,b]),vr(()=>{b()});const w=P=>{f||b(),r&&r(P)};return y.jsxs(E.Fragment,{children:[y.jsx("textarea",k({value:u,onChange:w,ref:m,rows:s,style:l},c)),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:k({},t9.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function Wi({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 Vg=E.createContext(void 0);function yi(){return E.useContext(Vg)}function FE(e){return y.jsx(Oz,k({},e,{defaultTheme:Cg,themeId:Ra}))}function BE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Cf(e,t=!1){return e&&(BE(e.value)&&e.value!==""||t&&BE(e.defaultValue)&&e.defaultValue!=="")}function o9(e){return e.startAdornment}function i9(e){return Me("MuiInputBase",e)}const Br=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),s9=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ef=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rf=(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]},a9=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:l,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:m,size:g,startAdornment:S,type:x}=e,b={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",u&&"formControl",g&&g!=="medium"&&`size${le(g)}`,p&&"multiline",S&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return Le(b,i9,t)},kf=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>k({},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",[`&.${Br.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Pf=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return k({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Br.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Br.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),l9=y.jsx(FE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kg=E.forwardRef(function(t,n){var r;const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:l,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:S,endAdornment:x,fullWidth:b=!1,id:w,inputComponent:P="input",inputProps:R={},inputRef:T,maxRows:A,minRows:$,multiline:O=!1,name:_,onBlur:N,onChange:D,onClick:F,onFocus:K,onKeyDown:Y,onKeyUp:J,placeholder:U,readOnly:oe,renderSuffix:G,rows:W,slotProps:M={},slots:q={},startAdornment:se,type:L="text",value:ie}=o,Oe=ge(o,s9),ve=R.value!=null?R.value:ie,{current:xe}=E.useRef(ve!=null),he=E.useRef(),Ie=E.useCallback(et=>{},[]),de=Gt(he,T,R.ref,Ie),[ke,Qe]=E.useState(!1),Ve=yi(),Be=Wi({props:o,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ve?Ve.focused:ke,E.useEffect(()=>{!Ve&&g&&ke&&(Qe(!1),N&&N())},[Ve,g,ke,N]);const Je=Ve&&Ve.onFilled,ct=Ve&&Ve.onEmpty,ot=E.useCallback(et=>{Cf(et)?Je&&Je():ct&&ct()},[Je,ct]);vr(()=>{xe&&ot({value:ve})},[ve,ot,xe]);const ze=et=>{if(Be.disabled){et.stopPropagation();return}K&&K(et),R.onFocus&&R.onFocus(et),Ve&&Ve.onFocus?Ve.onFocus(et):Qe(!0)},Ot=et=>{N&&N(et),R.onBlur&&R.onBlur(et),Ve&&Ve.onBlur?Ve.onBlur(et):Qe(!1)},Ze=(et,...Pe)=>{if(!xe){const xt=et.target||he.current;if(xt==null)throw new Error(di(1));ot({value:xt.value})}R.onChange&&R.onChange(et,...Pe),D&&D(et,...Pe)};E.useEffect(()=>{ot(he.current)},[]);const $t=et=>{he.current&&et.currentTarget===et.target&&he.current.focus(),F&&F(et)};let gt=P,dt=R;O&&gt==="input"&&(W?dt=k({type:void 0,minRows:W,maxRows:W},dt):dt=k({type:void 0,maxRows:A,minRows:$},dt),gt=r9);const _t=et=>{ot(et.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};E.useEffect(()=>{Ve&&Ve.setAdornedStart(!!se)},[Ve,se]);const Pt=k({},o,{color:Be.color||"primary",disabled:Be.disabled,endAdornment:x,error:Be.error,focused:Be.focused,formControl:Ve,fullWidth:b,hiddenLabel:Be.hiddenLabel,multiline:O,size:Be.size,startAdornment:se,type:L}),pt=a9(Pt),Ft=q.root||f.Root||kf,Yt=M.root||p.root||{},qt=q.input||f.Input||Pf;return dt=k({},dt,(r=M.input)!=null?r:p.input),y.jsxs(E.Fragment,{children:[!S&&l9,y.jsxs(Ft,k({},Yt,!La(Ft)&&{ownerState:k({},Pt,Yt.ownerState)},{ref:n,onClick:$t},Oe,{className:ye(pt.root,Yt.className,c,oe&&"MuiInputBase-readOnly"),children:[se,y.jsx(Vg.Provider,{value:null,children:y.jsx(qt,k({ownerState:Pt,"aria-invalid":Be.error,"aria-describedby":s,autoComplete:l,autoFocus:u,defaultValue:m,disabled:Be.disabled,id:w,onAnimationStart:_t,name:_,placeholder:U,readOnly:oe,required:Be.required,rows:W,value:ve,onKeyDown:Y,onKeyUp:J,type:L},dt,!La(qt)&&{as:gt,ownerState:k({},Pt,dt.ownerState)},{ref:de,className:ye(pt.input,dt.className,oe&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:Ze,onFocus:ze}))}),x,G?G(k({},Be,{startAdornment:se})):null]}))]})});function c9(e){return Me("MuiInput",e)}const Hi=k({},Br,Ne("MuiInput",["root","underline","input"]));function u9(e){return Me("MuiOutlinedInput",e)}const qo=k({},Br,Ne("MuiOutlinedInput",["root","notchedOutline","input"]));function d9(e){return Me("MuiFilledInput",e)}const zr=k({},Br,Ne("MuiFilledInput",["root","underline","input"])),zE=Rt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function f9(e){return Me("MuiAutocomplete",e)}const Et=Ne("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 UE,WE;const p9=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],h9=["ref"],m9=["key"],g9=["key"],y9=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:l,hasPopupIcon:u,inputFocused:c,popupOpen:f,size:p}=e,m={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${le(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Le(m,f9,t)},v9=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,size:u}=n;return[{[`& .${Et.tag}`]:t.tag},{[`& .${Et.tag}`]:t[`tagSize${le(u)}`]},{[`& .${Et.inputRoot}`]:t.inputRoot},{[`& .${Et.input}`]:t.input},{[`& .${Et.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Et.focused} .${Et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Et.clearIndicator}`]:{visibility:"visible"}},[`& .${Et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Et.inputRoot}`]:{[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:30},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:56},[`& .${Et.input}`]:{width:0,minWidth:30}},[`& .${Hi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Hi.root}.${Br.sizeSmall}`]:{[`& .${Hi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${qo.root}`]:{padding:9,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${qo.root}.${Br.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${zr.input}`]:{padding:"7px 4px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${zr.root}.${Br.sizeSmall}`]:{paddingBottom:1,[`& .${zr.input}`]:{padding:"2.5px 4px"}},[`& .${Br.hiddenLabel}`]:{paddingTop:8},[`& .${zr.root}.${Br.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zr.root}.${Br.hiddenLabel}.${Br.sizeSmall}`]:{[`& .${Et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Et.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Et.inputRoot}`]:{flexWrap:"wrap"}}}]}),b9=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),x9=re(Hn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),w9=re(Hn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>k({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),S9=re(Vc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Et.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),C9=re(oo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>k({},e.typography.body1,{overflow:"auto"})),E9=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),R9=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),k9=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Et.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"},[`&.${Et.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"},[`&.${Et.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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Et.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),P9=re(LE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),T9=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Et.option}`]:{paddingLeft:24}}),O9=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:m=!1,ChipProps:g,className:S,clearIcon:x=UE||(UE=y.jsx(cE,{fontSize:"small"})),clearOnBlur:b=!u.freeSolo,clearOnEscape:w=!1,clearText:P="Clear",closeText:R="Close",componentsProps:T={},defaultValue:A=u.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:O=!1,disabled:_=!1,disabledItemsFocusable:N=!1,disableListWrap:D=!1,disablePortal:F=!1,filterSelectedOptions:K=!1,forcePopupIcon:Y="auto",freeSolo:J=!1,fullWidth:U=!1,getLimitTagsText:oe=be=>`+${be}`,getOptionLabel:G,groupBy:W,handleHomeEndKeys:M=!u.freeSolo,includeInputInList:q=!1,limitTags:se=-1,ListboxComponent:L="ul",ListboxProps:ie,loading:Oe=!1,loadingText:ve="Loading…",multiple:xe=!1,noOptionsText:he="No options",openOnFocus:Ie=!1,openText:de="Open",PaperComponent:ke=oo,PopperComponent:Qe=Vc,popupIcon:Ve=WE||(WE=y.jsx(zE,{})),readOnly:Be=!1,renderGroup:Je,renderInput:ct,renderOption:ot,renderTags:ze,selectOnFocus:Ot=!u.freeSolo,size:Ze="medium",slotProps:$t={}}=u,gt=ge(u,p9),{getRootProps:dt,getInputProps:_t,getInputLabelProps:Pt,getPopupIndicatorProps:pt,getClearProps:Ft,getTagProps:Yt,getListboxProps:qt,getOptionProps:et,value:Pe,dirty:xt,expanded:Ht,id:fn,popupOpen:Ue,focused:ut,focusedTag:Re,anchorEl:We,setAnchorEl:ft,inputValue:yt,groupedOptions:bt}=b8(k({},u,{componentName:"Autocomplete"})),Mt=!$&&!_&&xt&&!Be,It=(!J||Y===!0)&&Y!==!1,{onMouseDown:en}=_t(),{ref:rn}=ie??{},Yn=qt(),{ref:Vr}=Yn,Po=ge(Yn,h9),To=Gt(Vr,rn),Ln=G||(be=>{var De;return(De=be.label)!=null?De:be}),on=k({},u,{disablePortal:F,expanded:Ht,focused:ut,fullWidth:U,getOptionLabel:Ln,hasClearIcon:Mt,hasPopupIcon:It,inputFocused:Re===-1,popupOpen:Ue,size:Ze}),Qt=y9(on);let B;if(xe&&Pe.length>0){const be=De=>k({className:Qt.tag,disabled:_},Yt(De));ze?B=ze(Pe,be,on):B=Pe.map((De,Ee)=>{const nt=be({index:Ee}),{key:At}=nt,uo=ge(nt,m9);return y.jsx(ZW,k({label:Ln(De),size:Ze},uo,g),At)})}if(se>-1&&Array.isArray(B)){const be=B.length-se;!ut&&be>0&&(B=B.splice(0,se),B.push(y.jsx("span",{className:Qt.tag,children:oe(be)},B.length)))}const ae=Je||(be=>y.jsxs("li",{children:[y.jsx(P9,{className:Qt.groupLabel,ownerState:on,component:"div",children:be.group}),y.jsx(T9,{className:Qt.groupUl,ownerState:on,children:be.children})]},be.key)),_e=ot||((be,De)=>{const{key:Ee}=be,nt=ge(be,g9);return y.jsx("li",k({},nt,{children:Ln(De)}),Ee)}),Ge=(be,De)=>{const Ee=et({option:be,index:De});return _e(k({},Ee,{className:Qt.option}),be,{selected:Ee["aria-selected"],index:De,inputValue:yt},on)},it=(r=$t.clearIndicator)!=null?r:T.clearIndicator,$e=(o=$t.paper)!=null?o:T.paper,st=(s=$t.popper)!=null?s:T.popper,X=(l=$t.popupIndicator)!=null?l:T.popupIndicator,Q=be=>y.jsx(S9,k({as:Qe,disablePortal:F,style:{width:We?We.clientWidth:null},ownerState:on,role:"presentation",anchorEl:We,open:Ue},st,{className:ye(Qt.popper,st==null?void 0:st.className),children:y.jsx(C9,k({ownerState:on,as:ke},$e,{className:ye(Qt.paper,$e==null?void 0:$e.className),children:be}))}));let we=null;return bt.length>0?we=Q(y.jsx(k9,k({as:L,className:Qt.listbox,ownerState:on},Po,ie,{ref:To,children:bt.map((be,De)=>W?ae({key:be.key,group:be.group,children:be.options.map((Ee,nt)=>Ge(Ee,be.index+nt))}):Ge(be,De))}))):Oe&&bt.length===0?we=Q(y.jsx(E9,{className:Qt.loading,ownerState:on,children:ve})):bt.length===0&&!J&&!Oe&&(we=Q(y.jsx(R9,{className:Qt.noOptions,ownerState:on,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:he}))),y.jsxs(E.Fragment,{children:[y.jsx(v9,k({ref:n,className:ye(Qt.root,S),ownerState:on},dt(gt),{children:ct({id:fn,disabled:_,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:k({ref:ft,className:Qt.inputRoot,startAdornment:B,onClick:be=>{be.target===be.currentTarget&&en(be)}},(Mt||It)&&{endAdornment:y.jsxs(b9,{className:Qt.endAdornment,ownerState:on,children:[Mt?y.jsx(x9,k({},Ft(),{"aria-label":P,title:P,ownerState:on},it,{className:ye(Qt.clearIndicator,it==null?void 0:it.className),children:x})):null,It?y.jsx(w9,k({},pt(),{disabled:_,"aria-label":Ue?R:de,title:Ue?R:de,ownerState:on},X,{className:ye(Qt.popupIndicator,X==null?void 0:X.className),children:Ve})):null]})}),inputProps:k({className:Qt.input,disabled:_,readOnly:Be},_t())})})),We?we:null]})}),$9=Rt(y.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"}),"Person");function A9(e){return Me("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const j9=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],_9=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},A9,t)},M9=re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({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:k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:k({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),I9=re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),N9=re($9,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function L9({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&s("loaded")},u.onerror=()=>{l&&s("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const D9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:u="div",slots:c={},slotProps:f={},imgProps:p,sizes:m,src:g,srcSet:S,variant:x="circular"}=r,b=ge(r,j9);let w=null;const P=L9(k({},p,{src:g,srcSet:S})),R=g||S,T=R&&P!=="error",A=k({},r,{colorDefault:!T,component:u,variant:x}),$=_9(A),[O,_]=jg("img",{className:$.img,elementType:I9,externalForwardedProps:{slots:c,slotProps:{img:k({},p,f.img)}},additionalProps:{alt:o,src:g,srcSet:S,sizes:m},ownerState:A});return T?w=y.jsx(O,k({},_)):s||s===0?w=s:R&&o?w=o[0]:w=y.jsx(N9,{ownerState:A,className:$.fallback}),y.jsx(M9,k({as:u,ownerState:A,className:ye($.root,l),ref:n},b,{children:w}))}),F9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B9={entering:{opacity:1},entered:{opacity:1}},HE=E.forwardRef(function(t,n){const r=br(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,T=ge(t,F9),A=E.useRef(null),$=Gt(A,u.ref,n),O=U=>oe=>{if(U){const G=A.current;oe===void 0?U(G):U(G,oe)}},_=O(g),N=O((U,oe)=>{hf(U);const G=Vo({style:w,timeout:P,easing:c},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",G),U.style.transition=r.transitions.create("opacity",G),p&&p(U,oe)}),D=O(m),F=O(b),K=O(U=>{const oe=Vo({style:w,timeout:P,easing:c},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",oe),U.style.transition=r.transitions.create("opacity",oe),S&&S(U)}),Y=O(x),J=U=>{s&&s(A.current,U)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:N,onEntered:D,onEntering:_,onExit:K,onExited:Y,onExiting:F,addEndListener:J,timeout:P},T,{children:(U,oe)=>E.cloneElement(u,k({style:k({opacity:0,visibility:U==="exited"&&!f?"hidden":void 0},B9[U],w,u.props.style),ref:$},oe))}))});function z9(e){return Me("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const U9=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],W9=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},z9,t)},H9=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({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"},e.invisible&&{backgroundColor:"transparent"})),VE=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:g=!1,open:S,slotProps:x={},slots:b={},TransitionComponent:w=HE,transitionDuration:P}=l,R=ge(l,U9),T=k({},l,{component:f,invisible:g}),A=W9(T),$=(r=x.root)!=null?r:m.root;return y.jsx(w,k({in:S,timeout:P},R,{children:y.jsx(H9,k({"aria-hidden":!0},$,{as:(o=(s=b.root)!=null?s:p.Root)!=null?o:f,className:ye(A.root,c,$==null?void 0:$.className),ownerState:k({},T,$==null?void 0:$.ownerState),classes:A,ref:n,children:u}))}))});function V9(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=mg({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:u,max:c=r}=l?s:e,f=u&&Number(u)>c?`${c}+`:u;return{badgeContent:u,invisible:l,max:c,displayValue:f}}function K9(e){return Me("MuiBadge",e)}const Vi=Ne("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"]),G9=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Gg=10,qg=4,q9=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:l={}}=e,u={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`,`anchorOrigin${le(n.vertical)}${le(n.horizontal)}${le(o)}`,`overlap${le(o)}`,t!=="default"&&`color${le(t)}`]};return Le(u,K9,l)},Q9=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Y9=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}${le(n.overlap)}`],n.color!=="default"&&t[`color${le(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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:Gg*2,lineHeight:1,padding:"0 6px",height:Gg*2,borderRadius:Gg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:qg,height:qg*2,minWidth:qg*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vi.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})}}]}}),Qg=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:m,component:g,components:S={},componentsProps:x={},children:b,overlap:w="rectangular",color:P="default",invisible:R=!1,max:T=99,badgeContent:A,slots:$,slotProps:O,showZero:_=!1,variant:N="standard"}=f,D=ge(f,G9),{badgeContent:F,invisible:K,max:Y,displayValue:J}=V9({max:T,invisible:R,badgeContent:A,showZero:_}),U=mg({anchorOrigin:p,color:P,overlap:w,variant:N,badgeContent:A}),oe=K||F==null&&N!=="dot",{color:G=P,overlap:W=w,anchorOrigin:M=p,variant:q=N}=oe?U:f,se=q!=="dot"?J:void 0,L=k({},f,{badgeContent:F,invisible:oe,max:Y,displayValue:se,showZero:_,anchorOrigin:M,color:G,overlap:W,variant:q}),ie=q9(L),Oe=(r=(o=$==null?void 0:$.root)!=null?o:S.Root)!=null?r:Q9,ve=(s=(l=$==null?void 0:$.badge)!=null?l:S.Badge)!=null?s:Y9,xe=(u=O==null?void 0:O.root)!=null?u:x.root,he=(c=O==null?void 0:O.badge)!=null?c:x.badge,Ie=rr({elementType:Oe,externalSlotProps:xe,externalForwardedProps:D,additionalProps:{ref:n,as:g},ownerState:L,className:ye(xe==null?void 0:xe.className,ie.root,m)}),de=rr({elementType:ve,externalSlotProps:he,ownerState:L,className:ye(ie.badge,he==null?void 0:he.className)});return y.jsxs(Oe,k({},Ie,{children:[b,y.jsx(ve,k({},de,{children:se}))]}))}),X9=Ne("MuiBox",["root"]),J9=Sg(),Ur=Mz({themeId:Ra,defaultTheme:J9,defaultClassName:X9.root,generateClassName:aC.generate}),Z9=Rt(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),eH=["slots","slotProps"],tH=re(Dr)(({theme:e})=>k({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":k({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":k({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:lf(e.palette.grey[200],.12)}:{backgroundColor:lf(e.palette.grey[600],.12)})})),nH=re(Z9)({width:24,height:16});function rH(e){const{slots:t={},slotProps:n={}}=e,r=ge(e,eH),o=e;return y.jsx("li",{children:y.jsx(tH,k({focusRipple:!0},r,{ownerState:o,children:y.jsx(nH,k({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function oH(e){return Me("MuiBreadcrumbs",e)}const iH=Ne("MuiBreadcrumbs",["root","ol","li","separator"]),sH=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],aH=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},oH,t)},lH=re(bn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${iH.li}`]:t.li},t.root]})({}),cH=re("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),uH=re("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function dH(e,t,n,r){return e.reduce((o,s,l)=>(l<e.length-1?o=o.concat(s,y.jsx(uH,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):o.push(s),o),[])}const fH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:S="/"}=r,x=ge(r,sH),[b,w]=E.useState(!1),P=k({},r,{component:l,expanded:b,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:g,separator:S}),R=aH(P),T=rr({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:P}),A=E.useRef(null),$=_=>{const N=()=>{w(!0);const D=A.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return m+p>=_.length?_:[..._.slice(0,m),y.jsx(rH,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:N},"ellipsis"),..._.slice(_.length-p,_.length)]},O=E.Children.toArray(o).filter(_=>E.isValidElement(_)).map((_,N)=>y.jsx("li",{className:R.li,children:_},`child-${N}`));return y.jsx(lH,k({ref:n,component:l,color:"text.secondary",className:ye(R.root,s),ownerState:P},x,{children:y.jsx(cH,{className:R.ol,ref:A,ownerState:P,children:dH(b||g&&O.length<=g?O:$(O),R.separator,S,P)})}))});function pH(e){return Me("MuiButton",e)}const Tf=Ne("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"]),KE=E.createContext({}),GE=E.createContext(void 0),hH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:l}=e,u={root:["root",s,`${s}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`]},c=Le(u,pH,l);return k({},l,c)},qE=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),gH=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Tf.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Tf.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Tf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Tf.disabled}`]:{boxShadow:"none"}}),yH=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${le(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},qE(e))),vH=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${le(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},qE(e))),or=E.forwardRef(function(t,n){const r=E.useContext(KE),o=E.useContext(GE),s=kc(r,t),l=Fe({props:s,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:b,fullWidth:w=!1,size:P="medium",startIcon:R,type:T,variant:A="text"}=l,$=ge(l,hH),O=k({},l,{color:c,component:f,disabled:m,disableElevation:g,disableFocusRipple:S,fullWidth:w,size:P,type:T,variant:A}),_=mH(O),N=R&&y.jsx(yH,{className:_.startIcon,ownerState:O,children:R}),D=x&&y.jsx(vH,{className:_.endIcon,ownerState:O,children:x}),F=o||"";return y.jsxs(gH,k({ownerState:O,className:ye(r.className,_.root,p,F),component:f,disabled:m,focusRipple:!S,focusVisibleClassName:ye(_.focusVisible,b),ref:n,type:T},$,{classes:_,children:[N,u,D]}))});function bH(e){return Me("MuiButtonGroup",e)}const Vn=Ne("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),xH=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],wH=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vn.grouped}`]:t.grouped},{[`& .${Vn.grouped}`]:t[`grouped${le(n.orientation)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}${le(n.orientation)}`]},{[`& .${Vn.grouped}`]:t[`grouped${le(n.variant)}${le(n.color)}`]},{[`& .${Vn.firstButton}`]:t.firstButton},{[`& .${Vn.lastButton}`]:t.lastButton},{[`& .${Vn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},SH=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:s,orientation:l,variant:u}=e,c={root:["root",u,l==="vertical"&&"vertical",s&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${le(l)}`,`grouped${le(u)}`,`grouped${le(u)}${le(l)}`,`grouped${le(u)}${le(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(c,bH,t)},CH=re("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:wH})(({theme:e,ownerState:t})=>k({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Vn.grouped}`]:k({minWidth:40,"&:hover":k({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Vn.firstButton},& .${Vn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{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)"}`,[`&.${Vn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{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)"}`,[`&.${Vn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:mt(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Vn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Vn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":k({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Vn.lastButton},& .${Vn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),EH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonGroup"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,disableRipple:m=!1,fullWidth:g=!1,orientation:S="horizontal",size:x="medium",variant:b="outlined"}=r,w=ge(r,xH),P=k({},r,{color:l,component:u,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,orientation:S,size:x,variant:b}),R=SH(P),T=E.useMemo(()=>({className:R.grouped,color:l,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,size:x,variant:b}),[l,c,f,p,m,g,x,b,R.grouped]),A=h3(o),$=A.length,O=_=>{const N=_===0,D=_===$-1;return N&&D?"":N?R.firstButton:D?R.lastButton:R.middleButton};return y.jsx(CH,k({as:u,role:"group",className:ye(R.root,s),ref:n,ownerState:P},w,{children:y.jsx(KE.Provider,{value:T,children:A.map((_,N)=>y.jsx(GE.Provider,{value:O(N),children:_},N))})}))});function RH(e){return Me("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kH=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],PH=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${le(o)}`],input:["input"]};return Le(s,RH,t)},TH=re(Dr)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),OH=re("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yg=E.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:l,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:m,id:g,inputProps:S,inputRef:x,name:b,onBlur:w,onChange:P,onFocus:R,readOnly:T,required:A=!1,tabIndex:$,type:O,value:_}=t,N=ge(t,kH),[D,F]=pi({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),K=yi(),Y=q=>{R&&R(q),K&&K.onFocus&&K.onFocus(q)},J=q=>{w&&w(q),K&&K.onBlur&&K.onBlur(q)},U=q=>{if(q.nativeEvent.defaultPrevented)return;const se=q.target.checked;F(se),P&&P(q,se)};let oe=c;K&&typeof oe>"u"&&(oe=K.disabled);const G=O==="checkbox"||O==="radio",W=k({},t,{checked:D,disabled:oe,disableFocusRipple:f,edge:p}),M=PH(W);return y.jsxs(TH,k({component:"span",className:ye(M.root,l),centerRipple:!0,focusRipple:!f,disabled:oe,tabIndex:null,role:void 0,onFocus:Y,onBlur:J,ownerState:W,ref:n},N,{children:[y.jsx(OH,k({autoFocus:r,checked:o,defaultChecked:u,className:M.input,disabled:oe,id:G?g:void 0,name:b,onChange:U,readOnly:T,ref:x,required:A,ownerState:W,tabIndex:$,type:O},O==="checkbox"&&_===void 0?{}:{value:_},S)),D?s:m]}))}),$H=Rt(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),AH=Rt(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),jH=Rt(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _H(e){return Me("MuiCheckbox",e)}const Xg=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),MH=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],IH=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${le(r)}`,`size${le(o)}`]},l=Le(s,_H,t);return k({},t,l)},NH=re(Yg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xg.checked}, &.${Xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LH=y.jsx(AH,{}),DH=y.jsx($H,{}),FH=y.jsx(jH,{}),Jg=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=LH,color:u="primary",icon:c=DH,indeterminate:f=!1,indeterminateIcon:p=FH,inputProps:m,size:g="medium",className:S}=s,x=ge(s,MH),b=f?p:c,w=f?p:l,P=k({},s,{color:u,indeterminate:f,size:g}),R=IH(P);return y.jsx(NH,k({type:"checkbox",inputProps:k({"data-indeterminate":f},m),icon:E.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:g}),ownerState:P,ref:n,className:ye(R.root,S)},x,{classes:R}))});function BH(e){return Me("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zH=["className","color","disableShrink","size","style","thickness","value","variant"];let Of=e=>e,QE,YE,XE,JE;const Ki=44,UH=zi(QE||(QE=Of`
97
97
  0% {
98
98
  transform: rotate(0deg);
99
99
  }
@@ -120,7 +120,7 @@ Error generating stack: `+C.message+`
120
120
  animation: ${0} 1.4s linear infinite;
121
121
  `),UH)),KH=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),GH=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>k({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Oa(JE||(JE=Of`
122
122
  animation: ${0} 1.4s ease-in-out infinite;
123
- `),WH)),qH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:m="indeterminate"}=r,g=ge(r,zH),S=k({},r,{color:s,disableShrink:l,size:u,thickness:f,value:p,variant:m}),x=HH(S),b={},w={},P={};if(m==="determinate"){const R=2*Math.PI*((Ki-f)/2);b.strokeDasharray=R.toFixed(3),P["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*R).toFixed(3)}px`,w.transform="rotate(-90deg)"}return y.jsx(VH,k({className:ye(x.root,o),style:k({width:u,height:u},w,c),ownerState:S,ref:n,role:"progressbar"},P,g,{children:y.jsx(KH,{className:x.svg,ownerState:S,viewBox:`${Ki/2} ${Ki/2} ${Ki} ${Ki}`,children:y.jsx(GH,{className:x.circle,style:b,ownerState:S,cx:Ki,cy:Ki,r:(Ki-f)/2,fill:"none",strokeWidth:f})})}))});function ZE(e){return e.substring(2).toLowerCase()}function QH(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function eR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Gt(t.ref,u),m=Nn(x=>{const b=f.current;f.current=!1;const w=An(u.current);if(!c.current||!u.current||"clientX"in x&&QH(x,w))return;if(l.current){l.current=!1;return}let P;x.composedPath?P=x.composedPath().indexOf(u.current)>-1:P=!w.documentElement.contains(x.target)||u.current.contains(x.target),!P&&(n||!b)&&o(x)}),g=x=>b=>{f.current=!0;const w=t.props[x];w&&w(b)},S={ref:p};return s!==!1&&(S[s]=g(s)),E.useEffect(()=>{if(s!==!1){const x=ZE(s),b=An(u.current),w=()=>{l.current=!0};return b.addEventListener(x,m),b.addEventListener("touchmove",w),()=>{b.removeEventListener(x,m),b.removeEventListener("touchmove",w)}}},[m,s]),r!==!1&&(S[r]=g(r)),E.useEffect(()=>{if(r!==!1){const x=ZE(r),b=An(u.current);return b.addEventListener(x,m),()=>{b.removeEventListener(x,m)}}},[m,r]),y.jsx(E.Fragment,{children:E.cloneElement(t,S)})}const YH=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),XH=e=>k({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),JH=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=k({html:YH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},XH(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(o=[o,s]),o};function ZH(e){const t=Fe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(E.Fragment,{children:[y.jsx(FE,{styles:o=>JH(o,r)}),n]})}function eV(e){const t=An(e);return t.body===e?Eo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Kc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tR(e){return parseInt(Eo(e).getComputedStyle(e).paddingRight,10)||0}function tV(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,l=>{const u=s.indexOf(l)===-1,c=!tV(l);u&&c&&Kc(l,o)})}function Zg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function nV(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(eV(r)){const l=CC(An(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tR(r)+l}px`;const u=An(r).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${tR(c)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=An(r).body;else{const l=r.parentElement,u=Eo(r);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function rV(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class oV{constructor(){this.containers=void 0,this.modals=void 0,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&&Kc(t.modalRef,!1);const o=rV(n);nR(n,t.mount,t.modalRef,o,!0);const s=Zg(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Zg(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=nV(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Zg(this.containers,l=>l.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Kc(t.modalRef,n),nR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&Kc(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const iV=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sV(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 aV(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 lV(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||aV(e))}function cV(e){const t=[],n=[];return Array.from(e.querySelectorAll(iV)).forEach((r,o)=>{const s=sV(r);s===-1||!lV(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 uV(){return!0}function dV(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=cV,isEnabled:l=uV,open:u}=e,c=E.useRef(!1),f=E.useRef(null),p=E.useRef(null),m=E.useRef(null),g=E.useRef(null),S=E.useRef(!1),x=E.useRef(null),b=Gt(t.ref,x),w=E.useRef(null);E.useEffect(()=>{!u||!x.current||(S.current=!n)},[n,u]),E.useEffect(()=>{if(!u||!x.current)return;const T=An(x.current);return x.current.contains(T.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{o||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),E.useEffect(()=>{if(!u||!x.current)return;const T=An(x.current),A=_=>{w.current=_,!(r||!l()||_.key!=="Tab")&&T.activeElement===x.current&&_.shiftKey&&(c.current=!0,p.current&&p.current.focus())},$=()=>{const _=x.current;if(_===null)return;if(!T.hasFocus()||!l()||c.current){c.current=!1;return}if(_.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==p.current)return;if(T.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!S.current)return;let N=[];if((T.activeElement===f.current||T.activeElement===p.current)&&(N=s(x.current)),N.length>0){var D,F;const K=!!((D=w.current)!=null&&D.shiftKey&&((F=w.current)==null?void 0:F.key)==="Tab"),Y=N[0],J=N[N.length-1];typeof Y!="string"&&typeof J!="string"&&(K?J.focus():Y.focus())}else _.focus()};T.addEventListener("focusin",$),T.addEventListener("keydown",A,!0);const O=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(O),T.removeEventListener("focusin",$),T.removeEventListener("keydown",A,!0)}},[n,r,o,l,u,s]);const P=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0,g.current=T.target;const A=t.props.onFocus;A&&A(T)},R=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0};return y.jsxs(E.Fragment,{children:[y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:f,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:b,onFocus:P}),y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}function fV(e){return typeof e=="function"?e():e}function pV(e){return e?e.props.hasOwnProperty("in"):!1}const hV=new oV;function mV(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=hV,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,g=E.useRef({}),S=E.useRef(null),x=E.useRef(null),b=Gt(x,m),[w,P]=E.useState(!p),R=pV(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const A=()=>An(S.current),$=()=>(g.current.modalRef=x.current,g.current.mount=S.current,g.current),O=()=>{o.mount($(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},_=Nn(()=>{const G=fV(t)||A().body;o.add($(),G),x.current&&O()}),N=E.useCallback(()=>o.isTopModal($()),[o]),D=Nn(G=>{S.current=G,G&&(p&&N()?O():x.current&&Kc(x.current,T))}),F=E.useCallback(()=>{o.remove($(),T)},[T,o]);E.useEffect(()=>()=>{F()},[F]),E.useEffect(()=>{p?_():(!R||!s)&&F()},[p,F,R,s,_]);const K=G=>W=>{var M;(M=G.onKeyDown)==null||M.call(G,W),!(W.key!=="Escape"||W.which===229||!N())&&(n||(W.stopPropagation(),f&&f(W,"escapeKeyDown")))},Y=G=>W=>{var M;(M=G.onClick)==null||M.call(G,W),W.target===W.currentTarget&&f&&f(W,"backdropClick")};return{getRootProps:(G={})=>{const W=af(e);delete W.onTransitionEnter,delete W.onTransitionExited;const M=k({},W,G);return k({role:"presentation"},M,{onKeyDown:K(M),ref:b})},getBackdropProps:(G={})=>{const W=G;return k({"aria-hidden":!0},W,{onClick:Y(W),open:p})},getTransitionProps:()=>{const G=()=>{P(!1),l&&l()},W=()=>{P(!0),u&&u(),s&&F()};return{onEnter:dg(G,c==null?void 0:c.props.onEnter),onExited:dg(W,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:D,isTopModal:N,exited:w,hasTransition:R}}function gV(e){return Me("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const yV=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],vV=e=>{const{open:t,exited:n,classes:r}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gV,r)},bV=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),xV=re(VE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ey=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({name:"MuiModal",props:t}),{BackdropComponent:p=xV,BackdropProps:m,className:g,closeAfterTransition:S=!1,children:x,container:b,component:w,components:P={},componentsProps:R={},disableAutoFocus:T=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:$=!1,disablePortal:O=!1,disableRestoreFocus:_=!1,disableScrollLock:N=!1,hideBackdrop:D=!1,keepMounted:F=!1,onBackdropClick:K,open:Y,slotProps:J,slots:U}=f,oe=ge(f,yV),G=k({},f,{closeAfterTransition:S,disableAutoFocus:T,disableEnforceFocus:A,disableEscapeKeyDown:$,disablePortal:O,disableRestoreFocus:_,disableScrollLock:N,hideBackdrop:D,keepMounted:F}),{getRootProps:W,getBackdropProps:M,getTransitionProps:q,portalRef:se,isTopModal:L,exited:ie,hasTransition:Oe}=mV(k({},G,{rootRef:n})),ve=k({},G,{exited:ie}),xe=vV(ve),he={};if(x.props.tabIndex===void 0&&(he.tabIndex="-1"),Oe){const{onEnter:Je,onExited:ct}=q();he.onEnter=Je,he.onExited=ct}const Ie=(r=(o=U==null?void 0:U.root)!=null?o:P.Root)!=null?r:bV,de=(s=(l=U==null?void 0:U.backdrop)!=null?l:P.Backdrop)!=null?s:p,ke=(u=J==null?void 0:J.root)!=null?u:R.root,Qe=(c=J==null?void 0:J.backdrop)!=null?c:R.backdrop,Ve=rr({elementType:Ie,externalSlotProps:ke,externalForwardedProps:oe,getSlotProps:W,additionalProps:{ref:n,as:w},ownerState:ve,className:ye(g,ke==null?void 0:ke.className,xe==null?void 0:xe.root,!ve.open&&ve.exited&&(xe==null?void 0:xe.hidden))}),Be=rr({elementType:de,externalSlotProps:Qe,additionalProps:m,getSlotProps:Je=>M(k({},Je,{onClick:ct=>{K&&K(ct),Je!=null&&Je.onClick&&Je.onClick(ct)}})),className:ye(Qe==null?void 0:Qe.className,m==null?void 0:m.className,xe==null?void 0:xe.backdrop),ownerState:ve});return!F&&!Y&&(!Oe||ie)?null:y.jsx(NE,{ref:se,container:b,disablePortal:O,children:y.jsxs(Ie,k({},Ve,{children:[!D&&p?y.jsx(de,k({},Be)):null,y.jsx(dV,{disableEnforceFocus:A,disableAutoFocus:T,disableRestoreFocus:_,isEnabled:L,open:Y,children:E.cloneElement(x,he)})]}))})});function wV(e){return Me("MuiDialog",e)}const ty=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rR=E.createContext({}),SV=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],CV=re(VE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),EV=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Le(l,wV,t)},RV=re(ey,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),kV=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),PV=re(oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ty.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ty.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ty.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),ny=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),o=br(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,BackdropComponent:c,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:b="sm",onBackdropClick:w,onClick:P,onClose:R,open:T,PaperComponent:A=oo,PaperProps:$={},scroll:O="paper",TransitionComponent:_=HE,transitionDuration:N=s,TransitionProps:D}=r,F=ge(r,SV),K=k({},r,{disableEscapeKeyDown:g,fullScreen:S,fullWidth:x,maxWidth:b,scroll:O}),Y=EV(K),J=E.useRef(),U=M=>{J.current=M.target===M.currentTarget},oe=M=>{P&&P(M),J.current&&(J.current=null,w&&w(M),R&&R(M,"backdropClick"))},G=Ia(u),W=E.useMemo(()=>({titleId:G}),[G]);return y.jsx(RV,k({className:ye(Y.root,m),closeAfterTransition:!0,components:{Backdrop:CV},componentsProps:{backdrop:k({transitionDuration:N,as:c},f)},disableEscapeKeyDown:g,onClose:R,open:T,ref:n,onClick:oe,ownerState:K},F,{children:y.jsx(_,k({appear:!0,in:T,timeout:N,role:"presentation"},D,{children:y.jsx(kV,{className:ye(Y.container),onMouseDown:U,ownerState:K,children:y.jsx(PV,k({as:A,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":G},$,{className:ye(Y.paper,$.className),ownerState:K,children:y.jsx(rR.Provider,{value:W,children:p})}))})}))}))});function TV(e){return Me("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const OV=["className","disableSpacing"],$V=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},TV,t)},AV=re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ry=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,l=ge(r,OV),u=k({},r,{disableSpacing:s}),c=$V(u);return y.jsx(AV,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function jV(e){return Me("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function _V(e){return Me("MuiDialogTitle",e)}const MV=Ne("MuiDialogTitle",["root"]),IV=["className","dividers"],NV=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},jV,t)},LV=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${MV.root} + &`]:{paddingTop:0}})),oy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,l=ge(r,IV),u=k({},r,{dividers:s}),c=NV(u);return y.jsx(LV,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function DV(e){return Me("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const FV=["children","className"],BV=e=>{const{classes:t}=e,r=Le({root:["root"]},DV,t);return k({},t,r)},zV=re(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContentText"}),{className:o}=r,s=ge(r,FV),l=BV(s);return y.jsx(zV,k({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:s,className:ye(l.root,o)},r,{classes:l}))}),WV=["className","id"],HV=e=>{const{classes:t}=e;return Le({root:["root"]},_V,t)},VV=re(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,l=ge(r,WV),u=r,c=HV(u),{titleId:f=s}=E.useContext(rR);return y.jsx(VV,k({component:"h2",className:ye(c.root,o),ownerState:u,ref:n,variant:"h6",id:s??f},l))});function KV(e){return Me("MuiDivider",e)}const oR=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),GV=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qV=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:l,textAlign:u,variant:c}=e;return Le({root:["root",t&&"absolute",c,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},KV,r)},QV=re("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]}})(({theme:e,ownerState:t})=>k({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),YV=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>k({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Gc=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,component:u=s?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:S="fullWidth"}=r,x=ge(r,GV),b=k({},r,{absolute:o,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:g,variant:S}),w=qV(b);return y.jsx(QV,k({as:u,className:ye(w.root,l),role:m,ref:n,ownerState:b},x,{children:s?y.jsx(YV,{className:w.wrapper,ownerState:b,children:s}):null}))});Gc.muiSkipListHighlight=!0;const XV=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function JV(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Eo(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const f=s.getComputedStyle(t);l=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let u=0,c=0;if(l&&l!=="none"&&typeof l=="string"){const f=l.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+u-r.left}px)`:`translateX(${s.innerWidth+u-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${s.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function ZV(e){return typeof e=="function"?e():e}function $f(e,t,n){const r=ZV(n),o=JV(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const e7=E.forwardRef(function(t,n){const r=br(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:c,container:f,direction:p="down",easing:m=o,in:g,onEnter:S,onEntered:x,onEntering:b,onExit:w,onExited:P,onExiting:R,style:T,timeout:A=s,TransitionComponent:$=Lr}=t,O=ge(t,XV),_=E.useRef(null),N=Gt(c.ref,_,n),D=M=>q=>{M&&(q===void 0?M(_.current):M(_.current,q))},F=D((M,q)=>{$f(p,M,f),hf(M),S&&S(M,q)}),K=D((M,q)=>{const se=Vo({timeout:A,style:T,easing:m},{mode:"enter"});M.style.webkitTransition=r.transitions.create("-webkit-transform",k({},se)),M.style.transition=r.transitions.create("transform",k({},se)),M.style.webkitTransform="none",M.style.transform="none",b&&b(M,q)}),Y=D(x),J=D(R),U=D(M=>{const q=Vo({timeout:A,style:T,easing:m},{mode:"exit"});M.style.webkitTransition=r.transitions.create("-webkit-transform",q),M.style.transition=r.transitions.create("transform",q),$f(p,M,f),w&&w(M)}),oe=D(M=>{M.style.webkitTransition="",M.style.transition="",P&&P(M)}),G=M=>{l&&l(_.current,M)},W=E.useCallback(()=>{_.current&&$f(p,_.current,f)},[p,f]);return E.useEffect(()=>{if(g||p==="down"||p==="right")return;const M=Pc(()=>{_.current&&$f(p,_.current,f)}),q=Eo(_.current);return q.addEventListener("resize",M),()=>{M.clear(),q.removeEventListener("resize",M)}},[p,g,f]),E.useEffect(()=>{g||W()},[g,W]),y.jsx($,k({nodeRef:_,onEnter:F,onEntered:Y,onEntering:K,onExit:U,onExited:oe,onExiting:J,addEndListener:G,appear:u,in:g,timeout:A},O,{children:(M,q)=>E.cloneElement(c,k({ref:N,style:k({visibility:M==="exited"&&!g?"hidden":void 0},T,c.props.style)},q))}))});function t7(e){return Me("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const n7=["BackdropProps"],r7=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],iR=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},o7=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${le(n)}`,r!=="temporary"&&`paperAnchorDocked${le(n)}`]};return Le(o,t7,t)},i7=re(ey,{name:"MuiDrawer",slot:"Root",overridesResolver:iR})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),sR=re("div",{shouldForwardProp:Tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:iR})({flex:"0 0 auto"}),s7=re(oo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${le(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${le(n.anchor)}`]]}})(({theme:e,ownerState:t})=>k({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),aR={left:"right",right:"left",top:"down",bottom:"up"};function a7(e){return["left","right"].indexOf(e)!==-1}function l7({direction:e},t){return e==="rtl"&&a7(t)?aR[t]:t}const lR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDrawer"}),o=br(),s=Oc(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:c,children:f,className:p,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:S}={},onClose:x,open:b=!1,PaperProps:w={},SlideProps:P,TransitionComponent:R=e7,transitionDuration:T=l,variant:A="temporary"}=r,$=ge(r.ModalProps,n7),O=ge(r,r7),_=E.useRef(!1);E.useEffect(()=>{_.current=!0},[]);const N=l7({direction:s?"rtl":"ltr"},u),F=k({},r,{anchor:u,elevation:m,open:b,variant:A},O),K=o7(F),Y=y.jsx(s7,k({elevation:A==="temporary"?m:0,square:!0},w,{className:ye(K.paper,w.className),ownerState:F,children:f}));if(A==="permanent")return y.jsx(sR,k({className:ye(K.root,K.docked,p),ownerState:F,ref:n},O,{children:Y}));const J=y.jsx(R,k({in:b,direction:aR[N],timeout:T,appear:_.current},P,{children:Y}));return A==="persistent"?y.jsx(sR,k({className:ye(K.root,K.docked,p),ownerState:F,ref:n},O,{children:J})):y.jsx(i7,k({BackdropProps:k({},c,S,{transitionDuration:T}),className:ye(K.root,K.modal,p),open:b,ownerState:F,onClose:x,hideBackdrop:g,ref:n},O,$,{children:J}))});function c7(e){return Me("MuiFab",e)}const cR=Ne("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),u7=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],d7=e=>{const{color:t,variant:n,classes:r,size:o}=e,s={root:["root",n,`size${le(o)}`,t==="inherit"?"colorInherit":t]},l=Le(s,c7,r);return k({},r,l)},f7=re(Dr,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,t[le(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return k({},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.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,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"},[`&.${cR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>k({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${cR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),sy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFab"}),{children:o,className:s,color:l="default",component:u="button",disabled:c=!1,disableFocusRipple:f=!1,focusVisibleClassName:p,size:m="large",variant:g="circular"}=r,S=ge(r,u7),x=k({},r,{color:l,component:u,disabled:c,disableFocusRipple:f,size:m,variant:g}),b=d7(x);return y.jsx(f7,k({className:ye(b.root,s),component:u,disabled:c,focusRipple:!f,focusVisibleClassName:ye(b.focusVisible,p),ownerState:x,ref:n},S,{classes:b,children:o}))}),p7=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h7=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},dW,t);return k({},t,o)},m7=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${zr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${zr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${zr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zr.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})`:o}`,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(.${zr.disabled}, .${zr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),g7=re(Pf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ay=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:m="input",multiline:g=!1,slotProps:S,slots:x={},type:b="text"}=u,w=ge(u,p7),P=k({},u,{fullWidth:p,inputComponent:m,multiline:g,type:b}),R=h7(u),T={root:{ownerState:P},input:{ownerState:P}},A=S??f?nr(T,S??f):T,$=(r=(o=x.root)!=null?o:c.Root)!=null?r:m7,O=(s=(l=x.input)!=null?l:c.Input)!=null?s:g7;return y.jsx(Kg,k({slots:{root:$,input:O},componentsProps:A,fullWidth:p,inputComponent:m,multiline:g,ref:n,type:b},w,{classes:R}))});ay.muiName="Input";function y7(e){return Me("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const v7=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b7=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return Le(o,y7,t)},x7=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Af=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:m=!1,hiddenLabel:g=!1,margin:S="none",required:x=!1,size:b="medium",variant:w="outlined"}=r,P=ge(r,v7),R=k({},r,{color:l,component:u,disabled:c,error:f,fullWidth:m,hiddenLabel:g,margin:S,required:x,size:b,variant:w}),T=b7(R),[A,$]=E.useState(()=>{let J=!1;return o&&E.Children.forEach(o,U=>{if(!Ma(U,["Input","Select"]))return;const oe=Ma(U,["Select"])?U.props.input:U;oe&&oW(oe.props)&&(J=!0)}),J}),[O,_]=E.useState(()=>{let J=!1;return o&&E.Children.forEach(o,U=>{Ma(U,["Input","Select"])&&(Cf(U.props,!0)||Cf(U.props.inputProps,!0))&&(J=!0)}),J}),[N,D]=E.useState(!1);c&&N&&D(!1);const F=p!==void 0&&!c?p:N;let K;const Y=E.useMemo(()=>({adornedStart:A,setAdornedStart:$,color:l,disabled:c,error:f,filled:O,focused:F,fullWidth:m,hiddenLabel:g,size:b,onBlur:()=>{D(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{D(!0)},registerEffect:K,required:x,variant:w}),[A,l,c,f,O,F,m,g,K,x,b,w]);return y.jsx(Vg.Provider,{value:Y,children:y.jsx(x7,k({as:u,ownerState:R,className:ye(T.root,s),ref:n},P,{children:o}))})}),ir=q3({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});function w7(e){return Me("MuiFormControlLabel",e)}const qc=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),S7=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],C7=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${le(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Le(l,w7,t)},E7=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qc.label}`]:t.label},t.root,t[`labelPlacement${le(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qc.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${qc.label}`]:{[`&.${qc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),R7=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qc.error}`]:{color:(e.vars||e).palette.error.main}})),ly=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:u={},control:c,disabled:f,disableTypography:p,label:m,labelPlacement:g="end",required:S,slotProps:x={}}=s,b=ge(s,S7),w=yi(),P=(r=f??c.props.disabled)!=null?r:w==null?void 0:w.disabled,R=S??c.props.required,T={disabled:P,required:R};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof s[D]<"u"&&(T[D]=s[D])});const A=Wi({props:s,muiFormControl:w,states:["error"]}),$=k({},s,{disabled:P,labelPlacement:g,required:R,error:A.error}),O=C7($),_=(o=x.typography)!=null?o:u.typography;let N=m;return N!=null&&N.type!==bn&&!p&&(N=y.jsx(bn,k({component:"span"},_,{className:ye(O.label,_==null?void 0:_.className),children:N}))),y.jsxs(E7,k({className:ye(O.root,l),ownerState:$,ref:n},b,{children:[E.cloneElement(c,T),R?y.jsxs(ir,{display:"block",children:[N,y.jsxs(R7,{ownerState:$,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):N]}))});function k7(e){return Me("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const P7=["className","row"],T7=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},k7,t)},O7=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),$7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,l=ge(r,P7),u=yi(),c=Wi({props:r,muiFormControl:u,states:["error"]}),f=k({},r,{row:s,error:c.error}),p=T7(f);return y.jsx(O7,k({className:ye(p.root,o),ownerState:f,ref:n},l))});function A7(e){return Me("MuiFormHelperText",e)}const uR=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var dR;const j7=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_7=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:l,focused:u,required:c}=e,f={root:["root",o&&"disabled",s&&"error",r&&`size${le(r)}`,n&&"contained",u&&"focused",l&&"filled",c&&"required"]};return Le(f,A7,t)},M7=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${uR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),I7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p"}=r,u=ge(r,j7),c=yi(),f=Wi({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=k({},r,{component:l,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=_7(p);return y.jsx(M7,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:o===" "?dR||(dR=y.jsx("span",{className:"notranslate",children:"​"})):o}))});function N7(e){return Me("MuiFormLabel",e)}const Qc=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),L7=["children","className","color","component","disabled","error","filled","focused","required"],D7=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:l,required:u}=e,c={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return Le(c,N7,t)},F7=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Qc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Qc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qc.error}`]:{color:(e.vars||e).palette.error.main}})),B7=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qc.error}`]:{color:(e.vars||e).palette.error.main}})),z7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:l="label"}=r,u=ge(r,L7),c=yi(),f=Wi({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=k({},r,{color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=D7(p);return y.jsxs(F7,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:[o,f.required&&y.jsxs(B7,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}))}),vi=B3({createStyledComponent:re("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Fe({props:e,name:"MuiGrid2"})}),U7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cy(e){return`scale(${e}, ${e**2})`}const W7={entering:{opacity:1,transform:cy(1)},entered:{opacity:1,transform:"none"}},uy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Za=E.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:S,style:x,timeout:b="auto",TransitionComponent:w=Lr}=t,P=ge(t,U7),R=hi(),T=E.useRef(),A=br(),$=E.useRef(null),O=Gt($,s.ref,n),_=oe=>G=>{if(oe){const W=$.current;G===void 0?oe(W):oe(W,G)}},N=_(p),D=_((oe,G)=>{hf(oe);const{duration:W,delay:M,easing:q}=Vo({style:x,timeout:b,easing:l},{mode:"enter"});let se;b==="auto"?(se=A.transitions.getAutoHeightDuration(oe.clientHeight),T.current=se):se=W,oe.style.transition=[A.transitions.create("opacity",{duration:se,delay:M}),A.transitions.create("transform",{duration:uy?se:se*.666,delay:M,easing:q})].join(","),c&&c(oe,G)}),F=_(f),K=_(S),Y=_(oe=>{const{duration:G,delay:W,easing:M}=Vo({style:x,timeout:b,easing:l},{mode:"exit"});let q;b==="auto"?(q=A.transitions.getAutoHeightDuration(oe.clientHeight),T.current=q):q=G,oe.style.transition=[A.transitions.create("opacity",{duration:q,delay:W}),A.transitions.create("transform",{duration:uy?q:q*.666,delay:uy?W:W||q*.333,easing:M})].join(","),oe.style.opacity=0,oe.style.transform=cy(.75),m&&m(oe)}),J=_(g),U=oe=>{b==="auto"&&R.start(T.current||0,oe),r&&r($.current,oe)};return y.jsx(w,k({appear:o,in:u,nodeRef:$,onEnter:D,onEntered:F,onEntering:N,onExit:Y,onExited:J,onExiting:K,addEndListener:U,timeout:b==="auto"?null:b},P,{children:(oe,G)=>E.cloneElement(s,k({style:k({opacity:0,transform:cy(.75),visibility:oe==="exited"&&!u?"hidden":void 0},W7[oe],x,s.props.style),ref:O},G))}))});Za.muiSupportAuto=!0;const H7=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],V7=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},cW,t);return k({},t,o)},K7=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Hi.disabled}, .${Hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),G7=re(Pf,{name:"MuiInput",slot:"Input",overridesResolver:Rf})({}),dy=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiInput"}),{disableUnderline:c,components:f={},componentsProps:p,fullWidth:m=!1,inputComponent:g="input",multiline:S=!1,slotProps:x,slots:b={},type:w="text"}=u,P=ge(u,H7),R=V7(u),A={root:{ownerState:{disableUnderline:c}}},$=x??p?nr(x??p,A):A,O=(r=(o=b.root)!=null?o:f.Root)!=null?r:K7,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:G7;return y.jsx(Kg,k({slots:{root:O,input:_},slotProps:$,fullWidth:m,inputComponent:g,multiline:S,ref:n,type:w},P,{classes:R}))});dy.muiName="Input";function q7(e){return Me("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Q7=["disableAnimation","margin","shrink","variant","className"],Y7=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:u}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${le(r)}`,l],asterisk:[u&&"asterisk"]},f=Le(c,q7,t);return k({},t,f)},X7=re(z7,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qc.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]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jf=E.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:l}=r,u=ge(r,Q7),c=yi();let f=s;typeof f>"u"&&c&&(f=c.filled||c.focused||c.adornedStart);const p=Wi({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),m=k({},r,{disableAnimation:o,formControl:c,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=Y7(m);return y.jsx(X7,k({"data-shrink":f,ownerState:m,ref:n,className:ye(g.root,l)},u,{classes:g}))});function J7(e){return Me("MuiLink",e)}const Z7=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),fR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eK=e=>fR[e]||e,tK=({theme:e,ownerState:t})=>{const n=eK(t.color),r=$a(e,`palette.${n}`,!1)||t.color,o=$a(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},nK=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rK=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${le(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Le(s,J7,t)},oK=re(bn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${le(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:tK({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Z7.focusVisible}`]:{outline:"auto"}})),fy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:l="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:m="inherit",sx:g}=r,S=ge(r,nK),{isFocusVisibleRef:x,onBlur:b,onFocus:w,ref:P}=hg(),[R,T]=E.useState(!1),A=Gt(n,P),$=D=>{b(D),x.current===!1&&T(!1),u&&u(D)},O=D=>{w(D),x.current===!0&&T(!0),c&&c(D)},_=k({},r,{color:s,component:l,focusVisible:R,underline:p,variant:m}),N=rK(_);return y.jsx(oK,k({color:s,className:ye(N.root,o),classes:f,component:l,onBlur:$,onFocus:O,ref:A,ownerState:_,variant:m,sx:[...Object.keys(fR).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},S))}),Ro=E.createContext({});function iK(e){return Me("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const sK=["children","className","component","dense","disablePadding","subheader"],aK=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},iK,t)},lK=re("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]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=ge(r,sK),m=E.useMemo(()=>({dense:u}),[u]),g=k({},r,{component:l,dense:u,disablePadding:c}),S=aK(g);return y.jsx(Ro.Provider,{value:m,children:y.jsxs(lK,k({as:l,className:ye(S.root,s),ref:n,ownerState:g},p,{children:[f,o]}))})});function cK(e){return Me("MuiListItem",e)}const el=Ne("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function uK(e){return Me("MuiListItemButton",e)}const tl=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),dK=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],fK=(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]},pK=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:l,selected:u}=e,f=Le({root:["root",r&&"dense",!s&&"gutters",l&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},uK,n);return k({},n,f)},hK=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fK})(({theme:e,ownerState:t})=>k({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"}},[`&.${tl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),mK=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:l="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:m,selected:g=!1,className:S}=r,x=ge(r,dK),b=E.useContext(Ro),w=E.useMemo(()=>({dense:c||b.dense||!1,alignItems:o,disableGutters:f}),[o,b.dense,c,f]),P=E.useRef(null);vr(()=>{s&&P.current&&P.current.focus()},[s]);const R=k({},r,{alignItems:o,dense:w.dense,disableGutters:f,divider:p,selected:g}),T=pK(R),A=Gt(P,n);return y.jsx(Ro.Provider,{value:w,children:y.jsx(hK,k({ref:A,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:ye(T.focusVisible,m),ownerState:R,className:ye(T.root,S)},x,{classes:T,children:u}))})});function gK(e){return Me("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const yK=["className"],vK=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},gK,n)},bK=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),hR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ge(r,yK),l=E.useContext(Ro),u=k({},r,{disableGutters:l.disableGutters}),c=vK(u);return y.jsx(bK,k({className:ye(c.root,o),ownerState:u,ref:n},s))});hR.muiName="ListItemSecondaryAction";const xK=["className"],wK=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],SK=(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.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},CK=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:l,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return Le({root:["root",o&&"dense",!l&&"gutters",!u&&"padding",c&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},cK,r)},EK=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:SK})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${tl.root}`]:{paddingRight:48}},{[`&.${el.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${el.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${el.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${el.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),RK=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kK=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:l=!1,children:u,className:c,component:f,components:p={},componentsProps:m={},ContainerComponent:g="li",ContainerProps:{className:S}={},dense:x=!1,disabled:b=!1,disableGutters:w=!1,disablePadding:P=!1,divider:R=!1,focusVisibleClassName:T,secondaryAction:A,selected:$=!1,slotProps:O={},slots:_={}}=r,N=ge(r.ContainerProps,xK),D=ge(r,wK),F=E.useContext(Ro),K=E.useMemo(()=>({dense:x||F.dense||!1,alignItems:o,disableGutters:w}),[o,F.dense,x,w]),Y=E.useRef(null);vr(()=>{s&&Y.current&&Y.current.focus()},[s]);const J=E.Children.toArray(u),U=J.length&&Ma(J[J.length-1],["ListItemSecondaryAction"]),oe=k({},r,{alignItems:o,autoFocus:s,button:l,dense:K.dense,disabled:b,disableGutters:w,disablePadding:P,divider:R,hasSecondaryAction:U,selected:$}),G=CK(oe),W=Gt(Y,n),M=_.root||p.Root||EK,q=O.root||m.root||{},se=k({className:ye(G.root,q.className,c),disabled:b},D);let L=f||"li";return l&&(se.component=f||"div",se.focusVisibleClassName=ye(el.focusVisible,T),L=Dr),U?(L=!se.component&&!f?"div":L,g==="li"&&(L==="li"?L="div":se.component==="li"&&(se.component="div")),y.jsx(Ro.Provider,{value:K,children:y.jsxs(RK,k({as:g,className:ye(G.container,S),ref:W,ownerState:oe},N,{children:[y.jsx(M,k({},q,!La(M)&&{as:L,ownerState:k({},oe,q.ownerState)},se,{children:J})),J.pop()]}))})):y.jsx(Ro.Provider,{value:K,children:y.jsxs(M,k({},q,{as:L,ref:W},!La(M)&&{ownerState:k({},oe,q.ownerState)},se,{children:[J,A&&y.jsx(hR,{children:A})]}))})});function PK(e){return Me("MuiListItemIcon",e)}const mR=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),TK=["className"],OK=e=>{const{alignItems:t,classes:n}=e;return Le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PK,n)},$K=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),gR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ge(r,TK),l=E.useContext(Ro),u=k({},r,{alignItems:l.alignItems}),c=OK(u);return y.jsx($K,k({className:ye(c.root,o),ownerState:u,ref:n},s))});function AK(e){return Me("MuiListItemText",e)}const _f=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jK=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_K=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},AK,t)},MK=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_f.primary}`]:t.primary},{[`& .${_f.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),yR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:m}=r,g=ge(r,jK),{dense:S}=E.useContext(Ro);let x=c??o,b=p;const w=k({},r,{disableTypography:l,inset:u,primary:!!x,secondary:!!b,dense:S}),P=_K(w);return x!=null&&x.type!==bn&&!l&&(x=y.jsx(bn,k({variant:S?"body2":"body1",className:P.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:x}))),b!=null&&b.type!==bn&&!l&&(b=y.jsx(bn,k({variant:"body2",className:P.secondary,color:"text.secondary",display:"block"},m,{children:b}))),y.jsxs(MK,k({className:ye(P.root,s),ownerState:w,ref:n},g,{children:[x,b]}))}),IK=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function py(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bR(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.indexOf(t.keys.join(""))===0}function Yc(e,t,n,r,o,s){let l=!1,u=o(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!bR(u,s)||c)u=o(e,u,n);else return u.focus(),!0}return!1}const xR=E.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,g=ge(t,IK),S=E.useRef(null),x=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vr(()=>{o&&S.current.focus()},[o]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:A})=>{const $=!S.current.style.width;if(T.clientHeight<S.current.clientHeight&&$){const O=`${CC(An(T))}px`;S.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=O,S.current.style.width=`calc(100% + ${O})`}return S.current}}),[]);const b=T=>{const A=S.current,$=T.key,O=An(A).activeElement;if($==="ArrowDown")T.preventDefault(),Yc(A,O,f,c,py);else if($==="ArrowUp")T.preventDefault(),Yc(A,O,f,c,vR);else if($==="Home")T.preventDefault(),Yc(A,null,f,c,py);else if($==="End")T.preventDefault(),Yc(A,null,f,c,vR);else if($.length===1){const _=x.current,N=$.toLowerCase(),D=performance.now();_.keys.length>0&&(D-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&N!==_.keys[0]&&(_.repeating=!1)),_.lastTime=D,_.keys.push(N);const F=O&&!_.repeating&&bR(O,_);_.previousKeyMatched&&(F||Yc(A,O,!1,c,py,_))?T.preventDefault():_.previousKeyMatched=!1}p&&p(T)},w=Gt(S,n);let P=-1;E.Children.forEach(l,(T,A)=>{if(!E.isValidElement(T)){P===A&&(P+=1,P>=l.length&&(P=-1));return}T.props.disabled||(m==="selectedMenu"&&T.props.selected||P===-1)&&(P=A),P===A&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(P+=1,P>=l.length&&(P=-1))});const R=E.Children.map(l,(T,A)=>{if(A===P){const $={};return s&&($.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),E.cloneElement(T,$)}return T});return y.jsx(pR,k({role:"menu",ref:w,className:u,onKeyDown:b,tabIndex:o?0:-1},g,{children:R}))});function NK(e){return Me("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const LK=["onEntering"],DK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],FK=["slotProps"];function wR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function CR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hy(e){return typeof e=="function"?e():e}const BK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},NK,t)},zK=re(ey,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ER=re(oo,{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}),RR=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:g,className:S,container:x,elevation:b=8,marginThreshold:w=16,open:P,PaperProps:R={},slots:T,slotProps:A,transformOrigin:$={vertical:"top",horizontal:"left"},TransitionComponent:O=Za,transitionDuration:_="auto",TransitionProps:{onEntering:N}={},disableScrollLock:D=!1}=l,F=ge(l.TransitionProps,LK),K=ge(l,DK),Y=(r=A==null?void 0:A.paper)!=null?r:R,J=E.useRef(),U=Gt(J,Y.ref),oe=k({},l,{anchorOrigin:f,anchorReference:m,elevation:b,marginThreshold:w,externalPaperSlotProps:Y,transformOrigin:$,TransitionComponent:O,transitionDuration:_,TransitionProps:F}),G=BK(oe),W=E.useCallback(()=>{if(m==="anchorPosition")return p;const Je=hy(c),ot=(Je&&Je.nodeType===1?Je:An(J.current).body).getBoundingClientRect();return{top:ot.top+wR(ot,f.vertical),left:ot.left+SR(ot,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),M=E.useCallback(Je=>({vertical:wR(Je,$.vertical),horizontal:SR(Je,$.horizontal)}),[$.horizontal,$.vertical]),q=E.useCallback(Je=>{const ct={width:Je.offsetWidth,height:Je.offsetHeight},ot=M(ct);if(m==="none")return{top:null,left:null,transformOrigin:CR(ot)};const ze=W();let Ot=ze.top-ot.vertical,Ze=ze.left-ot.horizontal;const $t=Ot+ct.height,gt=Ze+ct.width,dt=Eo(hy(c)),_t=dt.innerHeight-w,Pt=dt.innerWidth-w;if(w!==null&&Ot<w){const pt=Ot-w;Ot-=pt,ot.vertical+=pt}else if(w!==null&&$t>_t){const pt=$t-_t;Ot-=pt,ot.vertical+=pt}if(w!==null&&Ze<w){const pt=Ze-w;Ze-=pt,ot.horizontal+=pt}else if(gt>Pt){const pt=gt-Pt;Ze-=pt,ot.horizontal+=pt}return{top:`${Math.round(Ot)}px`,left:`${Math.round(Ze)}px`,transformOrigin:CR(ot)}},[c,m,W,M,w]),[se,L]=E.useState(P),ie=E.useCallback(()=>{const Je=J.current;if(!Je)return;const ct=q(Je);ct.top!==null&&(Je.style.top=ct.top),ct.left!==null&&(Je.style.left=ct.left),Je.style.transformOrigin=ct.transformOrigin,L(!0)},[q]);E.useEffect(()=>(D&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,D,ie]);const Oe=(Je,ct)=>{N&&N(Je,ct),ie()},ve=()=>{L(!1)};E.useEffect(()=>{P&&ie()}),E.useImperativeHandle(u,()=>P?{updatePosition:()=>{ie()}}:null,[P,ie]),E.useEffect(()=>{if(!P)return;const Je=Pc(()=>{ie()}),ct=Eo(c);return ct.addEventListener("resize",Je),()=>{Je.clear(),ct.removeEventListener("resize",Je)}},[c,P,ie]);let xe=_;_==="auto"&&!O.muiSupportAuto&&(xe=void 0);const he=x||(c?An(hy(c)).body:void 0),Ie=(o=T==null?void 0:T.root)!=null?o:zK,de=(s=T==null?void 0:T.paper)!=null?s:ER,ke=rr({elementType:de,externalSlotProps:k({},Y,{style:se?Y.style:k({},Y.style,{opacity:0})}),additionalProps:{elevation:b,ref:U},ownerState:oe,className:ye(G.paper,Y==null?void 0:Y.className)}),Qe=rr({elementType:Ie,externalSlotProps:(A==null?void 0:A.root)||{},externalForwardedProps:K,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:P},ownerState:oe,className:ye(G.root,S)}),{slotProps:Ve}=Qe,Be=ge(Qe,FK);return y.jsx(Ie,k({},Be,!La(Ie)&&{slotProps:Ve,disableScrollLock:D},{children:y.jsx(O,k({appear:!0,in:P,onEntering:Oe,onExited:ve,timeout:xe},F,{children:y.jsx(de,k({},ke,{children:g}))}))}))});function UK(e){return Me("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const WK=["onEntering"],HK=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],VK={vertical:"top",horizontal:"right"},KK={vertical:"top",horizontal:"left"},GK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},UK,t)},qK=re(RR,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QK=re(ER,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),YK=re(xR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),my=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:g,PaperProps:S={},PopoverClasses:x,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:P="selectedMenu",slots:R={},slotProps:T={}}=s,A=ge(s.TransitionProps,WK),$=ge(s,HK),O=Oc(),_=k({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:w,PaperProps:S,transitionDuration:b,TransitionProps:A,variant:P}),N=GK(_),D=l&&!f&&g,F=E.useRef(null),K=(M,q)=>{F.current&&F.current.adjustStyleForScrollbar(M,{direction:O?"rtl":"ltr"}),w&&w(M,q)},Y=M=>{M.key==="Tab"&&(M.preventDefault(),m&&m(M,"tabKeyDown"))};let J=-1;E.Children.map(u,(M,q)=>{E.isValidElement(M)&&(M.props.disabled||(P==="selectedMenu"&&M.props.selected||J===-1)&&(J=q))});const U=(r=R.paper)!=null?r:QK,oe=(o=T.paper)!=null?o:S,G=rr({elementType:R.root,externalSlotProps:T.root,ownerState:_,className:[N.root,c]}),W=rr({elementType:U,externalSlotProps:oe,ownerState:_,className:N.paper});return y.jsx(qK,k({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?VK:KK,slots:{paper:U,root:R.root},slotProps:{root:G,paper:W},open:g,ref:n,transitionDuration:b,TransitionProps:k({onEntering:K},A),ownerState:_},$,{classes:x,children:y.jsx(YK,k({onKeyDown:Y,actions:F,autoFocus:l&&(J===-1||f),autoFocusItem:D,variant:P},p,{className:ye(N.list,p.className),children:u}))}))});function XK(e){return Me("MuiMenuItem",e)}const Xc=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),JK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ZK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},eG=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:l}=e,c=Le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},XK,l);return k({},l,c)},tG=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ZK})(({theme:e,ownerState:t})=>k({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oR.inset}`]:{marginLeft:52},[`& .${_f.root}`]:{marginTop:0,marginBottom:0},[`& .${_f.inset}`]:{paddingLeft:36},[`& .${mR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mR.root} svg`]:{fontSize:"1.25rem"}}))),Gi=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:g}=r,S=ge(r,JK),x=E.useContext(Ro),b=E.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),w=E.useRef(null);vr(()=>{o&&w.current&&w.current.focus()},[o]);const P=k({},r,{dense:b.dense,divider:u,disableGutters:c}),R=eG(r),T=Gt(w,n);let A;return r.disabled||(A=m!==void 0?m:-1),y.jsx(Ro.Provider,{value:b,children:y.jsx(tG,k({ref:T,role:p,tabIndex:A,component:s,focusVisibleClassName:ye(R.focusVisible,f),className:ye(R.root,g)},S,{ownerState:P,classes:R}))})});function nG(e){return Me("MuiNativeSelect",e)}const gy=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rG=["className","disabled","error","IconComponent","inputRef","variant"],oG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"]};return Le(u,nG,t)},kR=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${gy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),iG=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gy.multiple}`]:t.multiple}]}})(kR),PR=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${gy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),sG=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})(PR),aG=E.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:l,inputRef:u,variant:c="standard"}=t,f=ge(t,rG),p=k({},t,{disabled:o,variant:c,error:s}),m=oG(p);return y.jsxs(E.Fragment,{children:[y.jsx(iG,k({ownerState:p,className:ye(m.select,r),disabled:o,ref:u||n},f)),t.multiple?null:y.jsx(sG,{as:l,ownerState:p,className:m.icon})]})});var TR;const lG=["children","classes","className","label","notched"],cG=re("fieldset",{shouldForwardProp:Tn})({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%"}),uG=re("legend",{shouldForwardProp:Tn})(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function dG(e){const{className:t,label:n,notched:r}=e,o=ge(e,lG),s=n!=null&&n!=="",l=k({},e,{notched:r,withLabel:s});return y.jsx(cG,k({"aria-hidden":!0,className:t,ownerState:l},o,{children:y.jsx(uG,{ownerState:l,children:s?y.jsx("span",{children:n}):TR||(TR=y.jsx("span",{className:"notranslate",children:"​"}))})}))}const fG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pG=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},uW,t);return k({},t,r)},hG=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qo.focused} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qo.error} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qo.disabled} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),mG=re(dG,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),gG=re(Pf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),yy=E.forwardRef(function(t,n){var r,o,s,l,u;const c=Fe({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:m="input",label:g,multiline:S=!1,notched:x,slots:b={},type:w="text"}=c,P=ge(c,fG),R=pG(c),T=yi(),A=Wi({props:c,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$=k({},c,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:T,fullWidth:p,hiddenLabel:A.hiddenLabel,multiline:S,size:A.size,type:w}),O=(r=(o=b.root)!=null?o:f.Root)!=null?r:hG,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:gG;return y.jsx(Kg,k({slots:{root:O,input:_},renderSuffix:N=>y.jsx(mG,{ownerState:$,className:R.notchedOutline,label:g!=null&&g!==""&&A.required?u||(u=y.jsxs(E.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:p,inputComponent:m,multiline:S,ref:n,type:w},P,{classes:k({},R,{notchedOutline:null})}))});yy.muiName="Input";const yG=Rt(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),vG=Rt(y.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),bG=re("span",{shouldForwardProp:Tn})({position:"relative",display:"flex"}),xG=re(yG)({transform:"scale(1)"}),wG=re(vG)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function OR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return y.jsxs(bG,{className:n.root,ownerState:o,children:[y.jsx(xG,{fontSize:r,className:n.background,ownerState:o}),y.jsx(wG,{fontSize:r,className:n.dot,ownerState:o})]})}const $R=E.createContext(void 0);function SG(){return E.useContext($R)}function CG(e){return Me("MuiRadio",e)}const AR=Ne("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),EG=["checked","checkedIcon","color","icon","name","onChange","size","className"],RG=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${le(n)}`,r!=="medium"&&`size${le(r)}`]};return k({},t,Le(o,CG,t))},kG=re(Yg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${le(n.size)}`],t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${AR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${AR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function PG(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const jR=y.jsx(OR,{checked:!0}),_R=y.jsx(OR,{}),vy=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiRadio"}),{checked:l,checkedIcon:u=jR,color:c="primary",icon:f=_R,name:p,onChange:m,size:g="medium",className:S}=s,x=ge(s,EG),b=k({},s,{color:c,size:g}),w=RG(b),P=SG();let R=l;const T=dg(m,P&&P.onChange);let A=p;return P&&(typeof R>"u"&&(R=PG(P.value,s.value)),typeof A>"u"&&(A=P.name)),y.jsx(kG,k({type:"radio",icon:E.cloneElement(f,{fontSize:(r=_R.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(u,{fontSize:(o=jR.props.fontSize)!=null?o:g}),ownerState:b,classes:w,name:A,checked:R,onChange:T,ref:n,className:ye(w.root,S)},x))});function TG(e){return Me("MuiRadioGroup",e)}Ne("MuiRadioGroup",["root","row","error"]);const OG=["actions","children","className","defaultValue","name","onChange","value"],$G=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},TG,t)},MR=E.forwardRef(function(t,n){const{actions:r,children:o,className:s,defaultValue:l,name:u,onChange:c,value:f}=t,p=ge(t,OG),m=E.useRef(null),g=$G(t),[S,x]=pi({controlled:f,default:l,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let R=m.current.querySelector("input:not(:disabled):checked");R||(R=m.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const b=Gt(n,m),w=Ia(u),P=E.useMemo(()=>({name:w,onChange(R){x(R.target.value),c&&c(R,R.target.value)},value:S}),[w,c,x,S]);return y.jsx($R.Provider,{value:P,children:y.jsx($7,k({role:"radiogroup",ref:b,className:ye(g.root,s)},p,{children:o}))})});function AG(e){return Me("MuiSelect",e)}const Jc=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var IR;const jG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_G=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Jc.select}`]:t.select},{[`&.${Jc.select}`]:t[n.variant]},{[`&.${Jc.error}`]:t.error},{[`&.${Jc.multiple}`]:t.multiple}]}})(kR,{[`&.${Jc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),MG=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})(PR),IG=re("input",{shouldForwardProp:e=>eE(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 NR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NG(e){return e==null||typeof e=="string"&&!e.trim()}const LG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Le(u,AG,t)},DG=E.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:l,autoWidth:u,children:c,className:f,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:S,error:x=!1,IconComponent:b,inputRef:w,labelId:P,MenuProps:R={},multiple:T,name:A,onBlur:$,onChange:O,onClose:_,onFocus:N,onOpen:D,open:F,readOnly:K,renderValue:Y,SelectDisplayProps:J={},tabIndex:U,value:oe,variant:G="standard"}=t,W=ge(t,jG),[M,q]=pi({controlled:oe,default:m,name:"Select"}),[se,L]=pi({controlled:F,default:p,name:"Select"}),ie=E.useRef(null),Oe=E.useRef(null),[ve,xe]=E.useState(null),{current:he}=E.useRef(F!=null),[Ie,de]=E.useState(),ke=Gt(n,w),Qe=E.useCallback(Ue=>{Oe.current=Ue,Ue&&xe(Ue)},[]),Ve=ve==null?void 0:ve.parentNode;E.useImperativeHandle(ke,()=>({focus:()=>{Oe.current.focus()},node:ie.current,value:M}),[M]),E.useEffect(()=>{p&&se&&ve&&!he&&(de(u?null:Ve.clientWidth),Oe.current.focus())},[ve,u]),E.useEffect(()=>{l&&Oe.current.focus()},[l]),E.useEffect(()=>{if(!P)return;const Ue=An(Oe.current).getElementById(P);if(Ue){const ut=()=>{getSelection().isCollapsed&&Oe.current.focus()};return Ue.addEventListener("click",ut),()=>{Ue.removeEventListener("click",ut)}}},[P]);const Be=(Ue,ut)=>{Ue?D&&D(ut):_&&_(ut),he||(de(u?null:Ve.clientWidth),L(Ue))},Je=Ue=>{Ue.button===0&&(Ue.preventDefault(),Oe.current.focus(),Be(!0,Ue))},ct=Ue=>{Be(!1,Ue)},ot=E.Children.toArray(c),ze=Ue=>{const ut=ot.find(Re=>Re.props.value===Ue.target.value);ut!==void 0&&(q(ut.props.value),O&&O(Ue,ut))},Ot=Ue=>ut=>{let Re;if(ut.currentTarget.hasAttribute("tabindex")){if(T){Re=Array.isArray(M)?M.slice():[];const We=M.indexOf(Ue.props.value);We===-1?Re.push(Ue.props.value):Re.splice(We,1)}else Re=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(ut),M!==Re&&(q(Re),O)){const We=ut.nativeEvent||ut,ft=new We.constructor(We.type,We);Object.defineProperty(ft,"target",{writable:!0,value:{value:Re,name:A}}),O(ft,Ue)}T||Be(!1,ut)}},Ze=Ue=>{K||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),Be(!0,Ue))},$t=ve!==null&&se,gt=Ue=>{!$t&&$&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:M,name:A}}),$(Ue))};delete W["aria-invalid"];let dt,_t;const Pt=[];let pt=!1;(Cf({value:M})||S)&&(Y?dt=Y(M):pt=!0);const Ft=ot.map(Ue=>{if(!E.isValidElement(Ue))return null;let ut;if(T){if(!Array.isArray(M))throw new Error(di(2));ut=M.some(Re=>NR(Re,Ue.props.value)),ut&&pt&&Pt.push(Ue.props.children)}else ut=NR(M,Ue.props.value),ut&&pt&&(_t=Ue.props.children);return E.cloneElement(Ue,{"aria-selected":ut?"true":"false",onClick:Ot(Ue),onKeyUp:Re=>{Re.key===" "&&Re.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(Re)},role:"option",selected:ut,value:void 0,"data-value":Ue.props.value})});pt&&(T?Pt.length===0?dt=null:dt=Pt.reduce((Ue,ut,Re)=>(Ue.push(ut),Re<Pt.length-1&&Ue.push(", "),Ue),[]):dt=_t);let Yt=Ie;!u&&he&&ve&&(Yt=Ve.clientWidth);let qt;typeof U<"u"?qt=U:qt=g?null:0;const et=J.id||(A?`mui-component-select-${A}`:void 0),Pe=k({},t,{variant:G,value:M,open:$t,error:x}),xt=LG(Pe),Ht=k({},R.PaperProps,(r=R.slotProps)==null?void 0:r.paper),fn=Ia();return y.jsxs(E.Fragment,{children:[y.jsx(_G,k({ref:Qe,tabIndex:qt,role:"combobox","aria-controls":fn,"aria-disabled":g?"true":void 0,"aria-expanded":$t?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[P,et].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:Ze,onMouseDown:g||K?null:Je,onBlur:gt,onFocus:N},J,{ownerState:Pe,className:ye(J.className,xt.select,f),id:et,children:NG(dt)?IR||(IR=y.jsx("span",{className:"notranslate",children:"​"})):dt})),y.jsx(IG,k({"aria-invalid":x,value:Array.isArray(M)?M.join(","):M,name:A,ref:ie,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:g,className:xt.nativeInput,autoFocus:l,ownerState:Pe},W)),y.jsx(MG,{as:b,className:xt.icon,ownerState:Pe}),y.jsx(my,k({id:`menu-${A||""}`,anchorEl:Ve,open:$t,onClose:ct,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},R,{MenuListProps:k({"aria-labelledby":P,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:fn},R.MenuListProps),slotProps:k({},R.slotProps,{paper:k({},Ht,{style:k({minWidth:Yt},Ht!=null?Ht.style:null)})}),children:Ft}))]})}),FG=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],BG=["root"],zG=e=>{const{classes:t}=e;return t},by={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},UG=re(dy,by)(""),WG=re(yy,by)(""),HG=re(ay,by)(""),nl=E.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:u,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=zE,id:m,input:g,inputProps:S,label:x,labelId:b,MenuProps:w,multiple:P=!1,native:R=!1,onClose:T,onOpen:A,open:$,renderValue:O,SelectDisplayProps:_,variant:N="outlined"}=r,D=ge(r,FG),F=R?aG:DG,K=yi(),Y=Wi({props:r,muiFormControl:K,states:["variant","error"]}),J=Y.variant||N,U=k({},r,{variant:J,classes:l}),oe=zG(U),G=ge(oe,BG),W=g||{standard:y.jsx(UG,{ownerState:U}),outlined:y.jsx(WG,{label:x,ownerState:U}),filled:y.jsx(HG,{ownerState:U})}[J],M=Gt(n,W.ref);return y.jsx(E.Fragment,{children:E.cloneElement(W,k({inputComponent:F,inputProps:k({children:s,error:Y.error,IconComponent:p,variant:J,type:void 0,multiple:P},R?{id:m}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:b,MenuProps:w,onClose:T,onOpen:A,open:$,renderValue:O,SelectDisplayProps:k({id:m},_)},S,{classes:S?nr(G,S.classes):G},g?g.props.inputProps:{})},(P&&R||f)&&J==="outlined"?{notched:!0}:{},{ref:M,className:ye(W.props.className,u,oe.root)},!g&&{variant:J},D))})});nl.muiName="Select";function VG(e){return Me("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const KG=["animation","className","component","height","style","variant","width"];let Mf=e=>e,LR,DR,FR,BR;const GG=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:l}=e;return Le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!l&&"heightAuto"]},VG,t)},qG=zi(LR||(LR=Mf`
123
+ `),WH)),qH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:m="indeterminate"}=r,g=ge(r,zH),S=k({},r,{color:s,disableShrink:l,size:u,thickness:f,value:p,variant:m}),x=HH(S),b={},w={},P={};if(m==="determinate"){const R=2*Math.PI*((Ki-f)/2);b.strokeDasharray=R.toFixed(3),P["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*R).toFixed(3)}px`,w.transform="rotate(-90deg)"}return y.jsx(VH,k({className:ye(x.root,o),style:k({width:u,height:u},w,c),ownerState:S,ref:n,role:"progressbar"},P,g,{children:y.jsx(KH,{className:x.svg,ownerState:S,viewBox:`${Ki/2} ${Ki/2} ${Ki} ${Ki}`,children:y.jsx(GH,{className:x.circle,style:b,ownerState:S,cx:Ki,cy:Ki,r:(Ki-f)/2,fill:"none",strokeWidth:f})})}))});function ZE(e){return e.substring(2).toLowerCase()}function QH(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function eR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Gt(t.ref,u),m=Nn(x=>{const b=f.current;f.current=!1;const w=An(u.current);if(!c.current||!u.current||"clientX"in x&&QH(x,w))return;if(l.current){l.current=!1;return}let P;x.composedPath?P=x.composedPath().indexOf(u.current)>-1:P=!w.documentElement.contains(x.target)||u.current.contains(x.target),!P&&(n||!b)&&o(x)}),g=x=>b=>{f.current=!0;const w=t.props[x];w&&w(b)},S={ref:p};return s!==!1&&(S[s]=g(s)),E.useEffect(()=>{if(s!==!1){const x=ZE(s),b=An(u.current),w=()=>{l.current=!0};return b.addEventListener(x,m),b.addEventListener("touchmove",w),()=>{b.removeEventListener(x,m),b.removeEventListener("touchmove",w)}}},[m,s]),r!==!1&&(S[r]=g(r)),E.useEffect(()=>{if(r!==!1){const x=ZE(r),b=An(u.current);return b.addEventListener(x,m),()=>{b.removeEventListener(x,m)}}},[m,r]),y.jsx(E.Fragment,{children:E.cloneElement(t,S)})}const YH=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),XH=e=>k({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),JH=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=k({html:YH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},XH(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(o=[o,s]),o};function ZH(e){const t=Fe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(E.Fragment,{children:[y.jsx(FE,{styles:o=>JH(o,r)}),n]})}function e7(e){const t=An(e);return t.body===e?Eo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Kc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tR(e){return parseInt(Eo(e).getComputedStyle(e).paddingRight,10)||0}function t7(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,l=>{const u=s.indexOf(l)===-1,c=!t7(l);u&&c&&Kc(l,o)})}function Zg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function n7(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(e7(r)){const l=CC(An(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tR(r)+l}px`;const u=An(r).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${tR(c)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=An(r).body;else{const l=r.parentElement,u=Eo(r);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function r7(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o7{constructor(){this.containers=void 0,this.modals=void 0,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&&Kc(t.modalRef,!1);const o=r7(n);nR(n,t.mount,t.modalRef,o,!0);const s=Zg(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Zg(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=n7(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Zg(this.containers,l=>l.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Kc(t.modalRef,n),nR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&Kc(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const i7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function s7(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 a7(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 l7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||a7(e))}function c7(e){const t=[],n=[];return Array.from(e.querySelectorAll(i7)).forEach((r,o)=>{const s=s7(r);s===-1||!l7(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 u7(){return!0}function d7(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=c7,isEnabled:l=u7,open:u}=e,c=E.useRef(!1),f=E.useRef(null),p=E.useRef(null),m=E.useRef(null),g=E.useRef(null),S=E.useRef(!1),x=E.useRef(null),b=Gt(t.ref,x),w=E.useRef(null);E.useEffect(()=>{!u||!x.current||(S.current=!n)},[n,u]),E.useEffect(()=>{if(!u||!x.current)return;const T=An(x.current);return x.current.contains(T.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{o||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),E.useEffect(()=>{if(!u||!x.current)return;const T=An(x.current),A=_=>{w.current=_,!(r||!l()||_.key!=="Tab")&&T.activeElement===x.current&&_.shiftKey&&(c.current=!0,p.current&&p.current.focus())},$=()=>{const _=x.current;if(_===null)return;if(!T.hasFocus()||!l()||c.current){c.current=!1;return}if(_.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==p.current)return;if(T.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!S.current)return;let N=[];if((T.activeElement===f.current||T.activeElement===p.current)&&(N=s(x.current)),N.length>0){var D,F;const K=!!((D=w.current)!=null&&D.shiftKey&&((F=w.current)==null?void 0:F.key)==="Tab"),Y=N[0],J=N[N.length-1];typeof Y!="string"&&typeof J!="string"&&(K?J.focus():Y.focus())}else _.focus()};T.addEventListener("focusin",$),T.addEventListener("keydown",A,!0);const O=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(O),T.removeEventListener("focusin",$),T.removeEventListener("keydown",A,!0)}},[n,r,o,l,u,s]);const P=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0,g.current=T.target;const A=t.props.onFocus;A&&A(T)},R=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0};return y.jsxs(E.Fragment,{children:[y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:f,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:b,onFocus:P}),y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}function f7(e){return typeof e=="function"?e():e}function p7(e){return e?e.props.hasOwnProperty("in"):!1}const h7=new o7;function m7(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=h7,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,g=E.useRef({}),S=E.useRef(null),x=E.useRef(null),b=Gt(x,m),[w,P]=E.useState(!p),R=p7(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const A=()=>An(S.current),$=()=>(g.current.modalRef=x.current,g.current.mount=S.current,g.current),O=()=>{o.mount($(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},_=Nn(()=>{const G=f7(t)||A().body;o.add($(),G),x.current&&O()}),N=E.useCallback(()=>o.isTopModal($()),[o]),D=Nn(G=>{S.current=G,G&&(p&&N()?O():x.current&&Kc(x.current,T))}),F=E.useCallback(()=>{o.remove($(),T)},[T,o]);E.useEffect(()=>()=>{F()},[F]),E.useEffect(()=>{p?_():(!R||!s)&&F()},[p,F,R,s,_]);const K=G=>W=>{var M;(M=G.onKeyDown)==null||M.call(G,W),!(W.key!=="Escape"||W.which===229||!N())&&(n||(W.stopPropagation(),f&&f(W,"escapeKeyDown")))},Y=G=>W=>{var M;(M=G.onClick)==null||M.call(G,W),W.target===W.currentTarget&&f&&f(W,"backdropClick")};return{getRootProps:(G={})=>{const W=af(e);delete W.onTransitionEnter,delete W.onTransitionExited;const M=k({},W,G);return k({role:"presentation"},M,{onKeyDown:K(M),ref:b})},getBackdropProps:(G={})=>{const W=G;return k({"aria-hidden":!0},W,{onClick:Y(W),open:p})},getTransitionProps:()=>{const G=()=>{P(!1),l&&l()},W=()=>{P(!0),u&&u(),s&&F()};return{onEnter:dg(G,c==null?void 0:c.props.onEnter),onExited:dg(W,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:D,isTopModal:N,exited:w,hasTransition:R}}function g7(e){return Me("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const y7=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],v7=e=>{const{open:t,exited:n,classes:r}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},g7,r)},b7=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),x7=re(VE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ey=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({name:"MuiModal",props:t}),{BackdropComponent:p=x7,BackdropProps:m,className:g,closeAfterTransition:S=!1,children:x,container:b,component:w,components:P={},componentsProps:R={},disableAutoFocus:T=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:$=!1,disablePortal:O=!1,disableRestoreFocus:_=!1,disableScrollLock:N=!1,hideBackdrop:D=!1,keepMounted:F=!1,onBackdropClick:K,open:Y,slotProps:J,slots:U}=f,oe=ge(f,y7),G=k({},f,{closeAfterTransition:S,disableAutoFocus:T,disableEnforceFocus:A,disableEscapeKeyDown:$,disablePortal:O,disableRestoreFocus:_,disableScrollLock:N,hideBackdrop:D,keepMounted:F}),{getRootProps:W,getBackdropProps:M,getTransitionProps:q,portalRef:se,isTopModal:L,exited:ie,hasTransition:Oe}=m7(k({},G,{rootRef:n})),ve=k({},G,{exited:ie}),xe=v7(ve),he={};if(x.props.tabIndex===void 0&&(he.tabIndex="-1"),Oe){const{onEnter:Je,onExited:ct}=q();he.onEnter=Je,he.onExited=ct}const Ie=(r=(o=U==null?void 0:U.root)!=null?o:P.Root)!=null?r:b7,de=(s=(l=U==null?void 0:U.backdrop)!=null?l:P.Backdrop)!=null?s:p,ke=(u=J==null?void 0:J.root)!=null?u:R.root,Qe=(c=J==null?void 0:J.backdrop)!=null?c:R.backdrop,Ve=rr({elementType:Ie,externalSlotProps:ke,externalForwardedProps:oe,getSlotProps:W,additionalProps:{ref:n,as:w},ownerState:ve,className:ye(g,ke==null?void 0:ke.className,xe==null?void 0:xe.root,!ve.open&&ve.exited&&(xe==null?void 0:xe.hidden))}),Be=rr({elementType:de,externalSlotProps:Qe,additionalProps:m,getSlotProps:Je=>M(k({},Je,{onClick:ct=>{K&&K(ct),Je!=null&&Je.onClick&&Je.onClick(ct)}})),className:ye(Qe==null?void 0:Qe.className,m==null?void 0:m.className,xe==null?void 0:xe.backdrop),ownerState:ve});return!F&&!Y&&(!Oe||ie)?null:y.jsx(NE,{ref:se,container:b,disablePortal:O,children:y.jsxs(Ie,k({},Ve,{children:[!D&&p?y.jsx(de,k({},Be)):null,y.jsx(d7,{disableEnforceFocus:A,disableAutoFocus:T,disableRestoreFocus:_,isEnabled:L,open:Y,children:E.cloneElement(x,he)})]}))})});function w7(e){return Me("MuiDialog",e)}const ty=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),rR=E.createContext({}),S7=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],C7=re(VE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),E7=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Le(l,w7,t)},R7=re(ey,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),k7=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),P7=re(oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ty.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ty.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ty.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),ny=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),o=br(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,BackdropComponent:c,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:b="sm",onBackdropClick:w,onClick:P,onClose:R,open:T,PaperComponent:A=oo,PaperProps:$={},scroll:O="paper",TransitionComponent:_=HE,transitionDuration:N=s,TransitionProps:D}=r,F=ge(r,S7),K=k({},r,{disableEscapeKeyDown:g,fullScreen:S,fullWidth:x,maxWidth:b,scroll:O}),Y=E7(K),J=E.useRef(),U=M=>{J.current=M.target===M.currentTarget},oe=M=>{P&&P(M),J.current&&(J.current=null,w&&w(M),R&&R(M,"backdropClick"))},G=Ia(u),W=E.useMemo(()=>({titleId:G}),[G]);return y.jsx(R7,k({className:ye(Y.root,m),closeAfterTransition:!0,components:{Backdrop:C7},componentsProps:{backdrop:k({transitionDuration:N,as:c},f)},disableEscapeKeyDown:g,onClose:R,open:T,ref:n,onClick:oe,ownerState:K},F,{children:y.jsx(_,k({appear:!0,in:T,timeout:N,role:"presentation"},D,{children:y.jsx(k7,{className:ye(Y.container),onMouseDown:U,ownerState:K,children:y.jsx(P7,k({as:A,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":G},$,{className:ye(Y.paper,$.className),ownerState:K,children:y.jsx(rR.Provider,{value:W,children:p})}))})}))}))});function T7(e){return Me("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const O7=["className","disableSpacing"],$7=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},T7,t)},A7=re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ry=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,l=ge(r,O7),u=k({},r,{disableSpacing:s}),c=$7(u);return y.jsx(A7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function j7(e){return Me("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function _7(e){return Me("MuiDialogTitle",e)}const M7=Ne("MuiDialogTitle",["root"]),I7=["className","dividers"],N7=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},j7,t)},L7=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${M7.root} + &`]:{paddingTop:0}})),oy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,l=ge(r,I7),u=k({},r,{dividers:s}),c=N7(u);return y.jsx(L7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function D7(e){return Me("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const F7=["children","className"],B7=e=>{const{classes:t}=e,r=Le({root:["root"]},D7,t);return k({},t,r)},z7=re(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContentText"}),{className:o}=r,s=ge(r,F7),l=B7(s);return y.jsx(z7,k({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:s,className:ye(l.root,o)},r,{classes:l}))}),W7=["className","id"],H7=e=>{const{classes:t}=e;return Le({root:["root"]},_7,t)},V7=re(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,l=ge(r,W7),u=r,c=H7(u),{titleId:f=s}=E.useContext(rR);return y.jsx(V7,k({component:"h2",className:ye(c.root,o),ownerState:u,ref:n,variant:"h6",id:s??f},l))});function K7(e){return Me("MuiDivider",e)}const oR=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),G7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],q7=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:l,textAlign:u,variant:c}=e;return Le({root:["root",t&&"absolute",c,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},K7,r)},Q7=re("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]}})(({theme:e,ownerState:t})=>k({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Y7=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>k({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Gc=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,component:u=s?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:S="fullWidth"}=r,x=ge(r,G7),b=k({},r,{absolute:o,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:g,variant:S}),w=q7(b);return y.jsx(Q7,k({as:u,className:ye(w.root,l),role:m,ref:n,ownerState:b},x,{children:s?y.jsx(Y7,{className:w.wrapper,ownerState:b,children:s}):null}))});Gc.muiSkipListHighlight=!0;const X7=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function J7(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Eo(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const f=s.getComputedStyle(t);l=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let u=0,c=0;if(l&&l!=="none"&&typeof l=="string"){const f=l.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+u-r.left}px)`:`translateX(${s.innerWidth+u-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${s.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function Z7(e){return typeof e=="function"?e():e}function $f(e,t,n){const r=Z7(n),o=J7(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const eV=E.forwardRef(function(t,n){const r=br(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:c,container:f,direction:p="down",easing:m=o,in:g,onEnter:S,onEntered:x,onEntering:b,onExit:w,onExited:P,onExiting:R,style:T,timeout:A=s,TransitionComponent:$=Lr}=t,O=ge(t,X7),_=E.useRef(null),N=Gt(c.ref,_,n),D=M=>q=>{M&&(q===void 0?M(_.current):M(_.current,q))},F=D((M,q)=>{$f(p,M,f),hf(M),S&&S(M,q)}),K=D((M,q)=>{const se=Vo({timeout:A,style:T,easing:m},{mode:"enter"});M.style.webkitTransition=r.transitions.create("-webkit-transform",k({},se)),M.style.transition=r.transitions.create("transform",k({},se)),M.style.webkitTransform="none",M.style.transform="none",b&&b(M,q)}),Y=D(x),J=D(R),U=D(M=>{const q=Vo({timeout:A,style:T,easing:m},{mode:"exit"});M.style.webkitTransition=r.transitions.create("-webkit-transform",q),M.style.transition=r.transitions.create("transform",q),$f(p,M,f),w&&w(M)}),oe=D(M=>{M.style.webkitTransition="",M.style.transition="",P&&P(M)}),G=M=>{l&&l(_.current,M)},W=E.useCallback(()=>{_.current&&$f(p,_.current,f)},[p,f]);return E.useEffect(()=>{if(g||p==="down"||p==="right")return;const M=Pc(()=>{_.current&&$f(p,_.current,f)}),q=Eo(_.current);return q.addEventListener("resize",M),()=>{M.clear(),q.removeEventListener("resize",M)}},[p,g,f]),E.useEffect(()=>{g||W()},[g,W]),y.jsx($,k({nodeRef:_,onEnter:F,onEntered:Y,onEntering:K,onExit:U,onExited:oe,onExiting:J,addEndListener:G,appear:u,in:g,timeout:A},O,{children:(M,q)=>E.cloneElement(c,k({ref:N,style:k({visibility:M==="exited"&&!g?"hidden":void 0},T,c.props.style)},q))}))});function tV(e){return Me("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const nV=["BackdropProps"],rV=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],iR=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},oV=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${le(n)}`,r!=="temporary"&&`paperAnchorDocked${le(n)}`]};return Le(o,tV,t)},iV=re(ey,{name:"MuiDrawer",slot:"Root",overridesResolver:iR})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),sR=re("div",{shouldForwardProp:Tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:iR})({flex:"0 0 auto"}),sV=re(oo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${le(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${le(n.anchor)}`]]}})(({theme:e,ownerState:t})=>k({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),aR={left:"right",right:"left",top:"down",bottom:"up"};function aV(e){return["left","right"].indexOf(e)!==-1}function lV({direction:e},t){return e==="rtl"&&aV(t)?aR[t]:t}const lR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDrawer"}),o=br(),s=Oc(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:c,children:f,className:p,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:S}={},onClose:x,open:b=!1,PaperProps:w={},SlideProps:P,TransitionComponent:R=eV,transitionDuration:T=l,variant:A="temporary"}=r,$=ge(r.ModalProps,nV),O=ge(r,rV),_=E.useRef(!1);E.useEffect(()=>{_.current=!0},[]);const N=lV({direction:s?"rtl":"ltr"},u),F=k({},r,{anchor:u,elevation:m,open:b,variant:A},O),K=oV(F),Y=y.jsx(sV,k({elevation:A==="temporary"?m:0,square:!0},w,{className:ye(K.paper,w.className),ownerState:F,children:f}));if(A==="permanent")return y.jsx(sR,k({className:ye(K.root,K.docked,p),ownerState:F,ref:n},O,{children:Y}));const J=y.jsx(R,k({in:b,direction:aR[N],timeout:T,appear:_.current},P,{children:Y}));return A==="persistent"?y.jsx(sR,k({className:ye(K.root,K.docked,p),ownerState:F,ref:n},O,{children:J})):y.jsx(iV,k({BackdropProps:k({},c,S,{transitionDuration:T}),className:ye(K.root,K.modal,p),open:b,ownerState:F,onClose:x,hideBackdrop:g,ref:n},O,$,{children:J}))});function cV(e){return Me("MuiFab",e)}const cR=Ne("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),uV=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],dV=e=>{const{color:t,variant:n,classes:r,size:o}=e,s={root:["root",n,`size${le(o)}`,t==="inherit"?"colorInherit":t]},l=Le(s,cV,r);return k({},r,l)},fV=re(Dr,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,t[le(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return k({},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.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,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"},[`&.${cR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>k({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${cR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),sy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFab"}),{children:o,className:s,color:l="default",component:u="button",disabled:c=!1,disableFocusRipple:f=!1,focusVisibleClassName:p,size:m="large",variant:g="circular"}=r,S=ge(r,uV),x=k({},r,{color:l,component:u,disabled:c,disableFocusRipple:f,size:m,variant:g}),b=dV(x);return y.jsx(fV,k({className:ye(b.root,s),component:u,disabled:c,focusRipple:!f,focusVisibleClassName:ye(b.focusVisible,p),ownerState:x,ref:n},S,{classes:b,children:o}))}),pV=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hV=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},d9,t);return k({},t,o)},mV=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${zr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${zr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${zr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zr.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})`:o}`,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(.${zr.disabled}, .${zr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),gV=re(Pf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ay=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:m="input",multiline:g=!1,slotProps:S,slots:x={},type:b="text"}=u,w=ge(u,pV),P=k({},u,{fullWidth:p,inputComponent:m,multiline:g,type:b}),R=hV(u),T={root:{ownerState:P},input:{ownerState:P}},A=S??f?nr(T,S??f):T,$=(r=(o=x.root)!=null?o:c.Root)!=null?r:mV,O=(s=(l=x.input)!=null?l:c.Input)!=null?s:gV;return y.jsx(Kg,k({slots:{root:$,input:O},componentsProps:A,fullWidth:p,inputComponent:m,multiline:g,ref:n,type:b},w,{classes:R}))});ay.muiName="Input";function yV(e){return Me("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vV=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],bV=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return Le(o,yV,t)},xV=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Af=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:m=!1,hiddenLabel:g=!1,margin:S="none",required:x=!1,size:b="medium",variant:w="outlined"}=r,P=ge(r,vV),R=k({},r,{color:l,component:u,disabled:c,error:f,fullWidth:m,hiddenLabel:g,margin:S,required:x,size:b,variant:w}),T=bV(R),[A,$]=E.useState(()=>{let J=!1;return o&&E.Children.forEach(o,U=>{if(!Ma(U,["Input","Select"]))return;const oe=Ma(U,["Select"])?U.props.input:U;oe&&o9(oe.props)&&(J=!0)}),J}),[O,_]=E.useState(()=>{let J=!1;return o&&E.Children.forEach(o,U=>{Ma(U,["Input","Select"])&&(Cf(U.props,!0)||Cf(U.props.inputProps,!0))&&(J=!0)}),J}),[N,D]=E.useState(!1);c&&N&&D(!1);const F=p!==void 0&&!c?p:N;let K;const Y=E.useMemo(()=>({adornedStart:A,setAdornedStart:$,color:l,disabled:c,error:f,filled:O,focused:F,fullWidth:m,hiddenLabel:g,size:b,onBlur:()=>{D(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{D(!0)},registerEffect:K,required:x,variant:w}),[A,l,c,f,O,F,m,g,K,x,b,w]);return y.jsx(Vg.Provider,{value:Y,children:y.jsx(xV,k({as:u,ownerState:R,className:ye(T.root,s),ref:n},P,{children:o}))})}),ir=q3({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});function wV(e){return Me("MuiFormControlLabel",e)}const qc=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),SV=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],CV=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${le(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Le(l,wV,t)},EV=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qc.label}`]:t.label},t.root,t[`labelPlacement${le(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qc.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${qc.label}`]:{[`&.${qc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),RV=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qc.error}`]:{color:(e.vars||e).palette.error.main}})),ly=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:u={},control:c,disabled:f,disableTypography:p,label:m,labelPlacement:g="end",required:S,slotProps:x={}}=s,b=ge(s,SV),w=yi(),P=(r=f??c.props.disabled)!=null?r:w==null?void 0:w.disabled,R=S??c.props.required,T={disabled:P,required:R};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof s[D]<"u"&&(T[D]=s[D])});const A=Wi({props:s,muiFormControl:w,states:["error"]}),$=k({},s,{disabled:P,labelPlacement:g,required:R,error:A.error}),O=CV($),_=(o=x.typography)!=null?o:u.typography;let N=m;return N!=null&&N.type!==bn&&!p&&(N=y.jsx(bn,k({component:"span"},_,{className:ye(O.label,_==null?void 0:_.className),children:N}))),y.jsxs(EV,k({className:ye(O.root,l),ownerState:$,ref:n},b,{children:[E.cloneElement(c,T),R?y.jsxs(ir,{display:"block",children:[N,y.jsxs(RV,{ownerState:$,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):N]}))});function kV(e){return Me("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const PV=["className","row"],TV=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},kV,t)},OV=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),$V=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,l=ge(r,PV),u=yi(),c=Wi({props:r,muiFormControl:u,states:["error"]}),f=k({},r,{row:s,error:c.error}),p=TV(f);return y.jsx(OV,k({className:ye(p.root,o),ownerState:f,ref:n},l))});function AV(e){return Me("MuiFormHelperText",e)}const uR=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var dR;const jV=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_V=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:l,focused:u,required:c}=e,f={root:["root",o&&"disabled",s&&"error",r&&`size${le(r)}`,n&&"contained",u&&"focused",l&&"filled",c&&"required"]};return Le(f,AV,t)},MV=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${uR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),IV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p"}=r,u=ge(r,jV),c=yi(),f=Wi({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=k({},r,{component:l,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=_V(p);return y.jsx(MV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:o===" "?dR||(dR=y.jsx("span",{className:"notranslate",children:"​"})):o}))});function NV(e){return Me("MuiFormLabel",e)}const Qc=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),LV=["children","className","color","component","disabled","error","filled","focused","required"],DV=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:l,required:u}=e,c={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return Le(c,NV,t)},FV=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Qc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Qc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qc.error}`]:{color:(e.vars||e).palette.error.main}})),BV=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qc.error}`]:{color:(e.vars||e).palette.error.main}})),zV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:l="label"}=r,u=ge(r,LV),c=yi(),f=Wi({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=k({},r,{color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=DV(p);return y.jsxs(FV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:[o,f.required&&y.jsxs(BV,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}))}),vi=B3({createStyledComponent:re("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Fe({props:e,name:"MuiGrid2"})}),UV=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cy(e){return`scale(${e}, ${e**2})`}const WV={entering:{opacity:1,transform:cy(1)},entered:{opacity:1,transform:"none"}},uy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Za=E.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:S,style:x,timeout:b="auto",TransitionComponent:w=Lr}=t,P=ge(t,UV),R=hi(),T=E.useRef(),A=br(),$=E.useRef(null),O=Gt($,s.ref,n),_=oe=>G=>{if(oe){const W=$.current;G===void 0?oe(W):oe(W,G)}},N=_(p),D=_((oe,G)=>{hf(oe);const{duration:W,delay:M,easing:q}=Vo({style:x,timeout:b,easing:l},{mode:"enter"});let se;b==="auto"?(se=A.transitions.getAutoHeightDuration(oe.clientHeight),T.current=se):se=W,oe.style.transition=[A.transitions.create("opacity",{duration:se,delay:M}),A.transitions.create("transform",{duration:uy?se:se*.666,delay:M,easing:q})].join(","),c&&c(oe,G)}),F=_(f),K=_(S),Y=_(oe=>{const{duration:G,delay:W,easing:M}=Vo({style:x,timeout:b,easing:l},{mode:"exit"});let q;b==="auto"?(q=A.transitions.getAutoHeightDuration(oe.clientHeight),T.current=q):q=G,oe.style.transition=[A.transitions.create("opacity",{duration:q,delay:W}),A.transitions.create("transform",{duration:uy?q:q*.666,delay:uy?W:W||q*.333,easing:M})].join(","),oe.style.opacity=0,oe.style.transform=cy(.75),m&&m(oe)}),J=_(g),U=oe=>{b==="auto"&&R.start(T.current||0,oe),r&&r($.current,oe)};return y.jsx(w,k({appear:o,in:u,nodeRef:$,onEnter:D,onEntered:F,onEntering:N,onExit:Y,onExited:J,onExiting:K,addEndListener:U,timeout:b==="auto"?null:b},P,{children:(oe,G)=>E.cloneElement(s,k({style:k({opacity:0,transform:cy(.75),visibility:oe==="exited"&&!u?"hidden":void 0},WV[oe],x,s.props.style),ref:O},G))}))});Za.muiSupportAuto=!0;const HV=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],VV=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},c9,t);return k({},t,o)},KV=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Hi.disabled}, .${Hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),GV=re(Pf,{name:"MuiInput",slot:"Input",overridesResolver:Rf})({}),dy=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiInput"}),{disableUnderline:c,components:f={},componentsProps:p,fullWidth:m=!1,inputComponent:g="input",multiline:S=!1,slotProps:x,slots:b={},type:w="text"}=u,P=ge(u,HV),R=VV(u),A={root:{ownerState:{disableUnderline:c}}},$=x??p?nr(x??p,A):A,O=(r=(o=b.root)!=null?o:f.Root)!=null?r:KV,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:GV;return y.jsx(Kg,k({slots:{root:O,input:_},slotProps:$,fullWidth:m,inputComponent:g,multiline:S,ref:n,type:w},P,{classes:R}))});dy.muiName="Input";function qV(e){return Me("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const QV=["disableAnimation","margin","shrink","variant","className"],YV=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:u}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${le(r)}`,l],asterisk:[u&&"asterisk"]},f=Le(c,qV,t);return k({},t,f)},XV=re(zV,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qc.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]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jf=E.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:l}=r,u=ge(r,QV),c=yi();let f=s;typeof f>"u"&&c&&(f=c.filled||c.focused||c.adornedStart);const p=Wi({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),m=k({},r,{disableAnimation:o,formControl:c,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=YV(m);return y.jsx(XV,k({"data-shrink":f,ownerState:m,ref:n,className:ye(g.root,l)},u,{classes:g}))});function JV(e){return Me("MuiLink",e)}const ZV=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),fR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eK=e=>fR[e]||e,tK=({theme:e,ownerState:t})=>{const n=eK(t.color),r=$a(e,`palette.${n}`,!1)||t.color,o=$a(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},nK=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rK=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${le(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Le(s,JV,t)},oK=re(bn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${le(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:tK({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ZV.focusVisible}`]:{outline:"auto"}})),fy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:l="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:m="inherit",sx:g}=r,S=ge(r,nK),{isFocusVisibleRef:x,onBlur:b,onFocus:w,ref:P}=hg(),[R,T]=E.useState(!1),A=Gt(n,P),$=D=>{b(D),x.current===!1&&T(!1),u&&u(D)},O=D=>{w(D),x.current===!0&&T(!0),c&&c(D)},_=k({},r,{color:s,component:l,focusVisible:R,underline:p,variant:m}),N=rK(_);return y.jsx(oK,k({color:s,className:ye(N.root,o),classes:f,component:l,onBlur:$,onFocus:O,ref:A,ownerState:_,variant:m,sx:[...Object.keys(fR).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},S))}),Ro=E.createContext({});function iK(e){return Me("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const sK=["children","className","component","dense","disablePadding","subheader"],aK=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},iK,t)},lK=re("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]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=ge(r,sK),m=E.useMemo(()=>({dense:u}),[u]),g=k({},r,{component:l,dense:u,disablePadding:c}),S=aK(g);return y.jsx(Ro.Provider,{value:m,children:y.jsxs(lK,k({as:l,className:ye(S.root,s),ref:n,ownerState:g},p,{children:[f,o]}))})});function cK(e){return Me("MuiListItem",e)}const el=Ne("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function uK(e){return Me("MuiListItemButton",e)}const tl=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),dK=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],fK=(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]},pK=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:l,selected:u}=e,f=Le({root:["root",r&&"dense",!s&&"gutters",l&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},uK,n);return k({},n,f)},hK=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fK})(({theme:e,ownerState:t})=>k({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"}},[`&.${tl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),mK=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:l="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:m,selected:g=!1,className:S}=r,x=ge(r,dK),b=E.useContext(Ro),w=E.useMemo(()=>({dense:c||b.dense||!1,alignItems:o,disableGutters:f}),[o,b.dense,c,f]),P=E.useRef(null);vr(()=>{s&&P.current&&P.current.focus()},[s]);const R=k({},r,{alignItems:o,dense:w.dense,disableGutters:f,divider:p,selected:g}),T=pK(R),A=Gt(P,n);return y.jsx(Ro.Provider,{value:w,children:y.jsx(hK,k({ref:A,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:ye(T.focusVisible,m),ownerState:R,className:ye(T.root,S)},x,{classes:T,children:u}))})});function gK(e){return Me("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const yK=["className"],vK=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},gK,n)},bK=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),hR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ge(r,yK),l=E.useContext(Ro),u=k({},r,{disableGutters:l.disableGutters}),c=vK(u);return y.jsx(bK,k({className:ye(c.root,o),ownerState:u,ref:n},s))});hR.muiName="ListItemSecondaryAction";const xK=["className"],wK=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],SK=(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.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},CK=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:l,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return Le({root:["root",o&&"dense",!l&&"gutters",!u&&"padding",c&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},cK,r)},EK=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:SK})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${tl.root}`]:{paddingRight:48}},{[`&.${el.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${el.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${el.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${el.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),RK=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kK=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:l=!1,children:u,className:c,component:f,components:p={},componentsProps:m={},ContainerComponent:g="li",ContainerProps:{className:S}={},dense:x=!1,disabled:b=!1,disableGutters:w=!1,disablePadding:P=!1,divider:R=!1,focusVisibleClassName:T,secondaryAction:A,selected:$=!1,slotProps:O={},slots:_={}}=r,N=ge(r.ContainerProps,xK),D=ge(r,wK),F=E.useContext(Ro),K=E.useMemo(()=>({dense:x||F.dense||!1,alignItems:o,disableGutters:w}),[o,F.dense,x,w]),Y=E.useRef(null);vr(()=>{s&&Y.current&&Y.current.focus()},[s]);const J=E.Children.toArray(u),U=J.length&&Ma(J[J.length-1],["ListItemSecondaryAction"]),oe=k({},r,{alignItems:o,autoFocus:s,button:l,dense:K.dense,disabled:b,disableGutters:w,disablePadding:P,divider:R,hasSecondaryAction:U,selected:$}),G=CK(oe),W=Gt(Y,n),M=_.root||p.Root||EK,q=O.root||m.root||{},se=k({className:ye(G.root,q.className,c),disabled:b},D);let L=f||"li";return l&&(se.component=f||"div",se.focusVisibleClassName=ye(el.focusVisible,T),L=Dr),U?(L=!se.component&&!f?"div":L,g==="li"&&(L==="li"?L="div":se.component==="li"&&(se.component="div")),y.jsx(Ro.Provider,{value:K,children:y.jsxs(RK,k({as:g,className:ye(G.container,S),ref:W,ownerState:oe},N,{children:[y.jsx(M,k({},q,!La(M)&&{as:L,ownerState:k({},oe,q.ownerState)},se,{children:J})),J.pop()]}))})):y.jsx(Ro.Provider,{value:K,children:y.jsxs(M,k({},q,{as:L,ref:W},!La(M)&&{ownerState:k({},oe,q.ownerState)},se,{children:[J,A&&y.jsx(hR,{children:A})]}))})});function PK(e){return Me("MuiListItemIcon",e)}const mR=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),TK=["className"],OK=e=>{const{alignItems:t,classes:n}=e;return Le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PK,n)},$K=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),gR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ge(r,TK),l=E.useContext(Ro),u=k({},r,{alignItems:l.alignItems}),c=OK(u);return y.jsx($K,k({className:ye(c.root,o),ownerState:u,ref:n},s))});function AK(e){return Me("MuiListItemText",e)}const _f=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jK=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_K=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},AK,t)},MK=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_f.primary}`]:t.primary},{[`& .${_f.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),yR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:m}=r,g=ge(r,jK),{dense:S}=E.useContext(Ro);let x=c??o,b=p;const w=k({},r,{disableTypography:l,inset:u,primary:!!x,secondary:!!b,dense:S}),P=_K(w);return x!=null&&x.type!==bn&&!l&&(x=y.jsx(bn,k({variant:S?"body2":"body1",className:P.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:x}))),b!=null&&b.type!==bn&&!l&&(b=y.jsx(bn,k({variant:"body2",className:P.secondary,color:"text.secondary",display:"block"},m,{children:b}))),y.jsxs(MK,k({className:ye(P.root,s),ownerState:w,ref:n},g,{children:[x,b]}))}),IK=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function py(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bR(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.indexOf(t.keys.join(""))===0}function Yc(e,t,n,r,o,s){let l=!1,u=o(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!bR(u,s)||c)u=o(e,u,n);else return u.focus(),!0}return!1}const xR=E.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,g=ge(t,IK),S=E.useRef(null),x=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vr(()=>{o&&S.current.focus()},[o]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:A})=>{const $=!S.current.style.width;if(T.clientHeight<S.current.clientHeight&&$){const O=`${CC(An(T))}px`;S.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=O,S.current.style.width=`calc(100% + ${O})`}return S.current}}),[]);const b=T=>{const A=S.current,$=T.key,O=An(A).activeElement;if($==="ArrowDown")T.preventDefault(),Yc(A,O,f,c,py);else if($==="ArrowUp")T.preventDefault(),Yc(A,O,f,c,vR);else if($==="Home")T.preventDefault(),Yc(A,null,f,c,py);else if($==="End")T.preventDefault(),Yc(A,null,f,c,vR);else if($.length===1){const _=x.current,N=$.toLowerCase(),D=performance.now();_.keys.length>0&&(D-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&N!==_.keys[0]&&(_.repeating=!1)),_.lastTime=D,_.keys.push(N);const F=O&&!_.repeating&&bR(O,_);_.previousKeyMatched&&(F||Yc(A,O,!1,c,py,_))?T.preventDefault():_.previousKeyMatched=!1}p&&p(T)},w=Gt(S,n);let P=-1;E.Children.forEach(l,(T,A)=>{if(!E.isValidElement(T)){P===A&&(P+=1,P>=l.length&&(P=-1));return}T.props.disabled||(m==="selectedMenu"&&T.props.selected||P===-1)&&(P=A),P===A&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(P+=1,P>=l.length&&(P=-1))});const R=E.Children.map(l,(T,A)=>{if(A===P){const $={};return s&&($.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),E.cloneElement(T,$)}return T});return y.jsx(pR,k({role:"menu",ref:w,className:u,onKeyDown:b,tabIndex:o?0:-1},g,{children:R}))});function NK(e){return Me("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const LK=["onEntering"],DK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],FK=["slotProps"];function wR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function CR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hy(e){return typeof e=="function"?e():e}const BK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},NK,t)},zK=re(ey,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ER=re(oo,{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}),RR=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:g,className:S,container:x,elevation:b=8,marginThreshold:w=16,open:P,PaperProps:R={},slots:T,slotProps:A,transformOrigin:$={vertical:"top",horizontal:"left"},TransitionComponent:O=Za,transitionDuration:_="auto",TransitionProps:{onEntering:N}={},disableScrollLock:D=!1}=l,F=ge(l.TransitionProps,LK),K=ge(l,DK),Y=(r=A==null?void 0:A.paper)!=null?r:R,J=E.useRef(),U=Gt(J,Y.ref),oe=k({},l,{anchorOrigin:f,anchorReference:m,elevation:b,marginThreshold:w,externalPaperSlotProps:Y,transformOrigin:$,TransitionComponent:O,transitionDuration:_,TransitionProps:F}),G=BK(oe),W=E.useCallback(()=>{if(m==="anchorPosition")return p;const Je=hy(c),ot=(Je&&Je.nodeType===1?Je:An(J.current).body).getBoundingClientRect();return{top:ot.top+wR(ot,f.vertical),left:ot.left+SR(ot,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),M=E.useCallback(Je=>({vertical:wR(Je,$.vertical),horizontal:SR(Je,$.horizontal)}),[$.horizontal,$.vertical]),q=E.useCallback(Je=>{const ct={width:Je.offsetWidth,height:Je.offsetHeight},ot=M(ct);if(m==="none")return{top:null,left:null,transformOrigin:CR(ot)};const ze=W();let Ot=ze.top-ot.vertical,Ze=ze.left-ot.horizontal;const $t=Ot+ct.height,gt=Ze+ct.width,dt=Eo(hy(c)),_t=dt.innerHeight-w,Pt=dt.innerWidth-w;if(w!==null&&Ot<w){const pt=Ot-w;Ot-=pt,ot.vertical+=pt}else if(w!==null&&$t>_t){const pt=$t-_t;Ot-=pt,ot.vertical+=pt}if(w!==null&&Ze<w){const pt=Ze-w;Ze-=pt,ot.horizontal+=pt}else if(gt>Pt){const pt=gt-Pt;Ze-=pt,ot.horizontal+=pt}return{top:`${Math.round(Ot)}px`,left:`${Math.round(Ze)}px`,transformOrigin:CR(ot)}},[c,m,W,M,w]),[se,L]=E.useState(P),ie=E.useCallback(()=>{const Je=J.current;if(!Je)return;const ct=q(Je);ct.top!==null&&(Je.style.top=ct.top),ct.left!==null&&(Je.style.left=ct.left),Je.style.transformOrigin=ct.transformOrigin,L(!0)},[q]);E.useEffect(()=>(D&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,D,ie]);const Oe=(Je,ct)=>{N&&N(Je,ct),ie()},ve=()=>{L(!1)};E.useEffect(()=>{P&&ie()}),E.useImperativeHandle(u,()=>P?{updatePosition:()=>{ie()}}:null,[P,ie]),E.useEffect(()=>{if(!P)return;const Je=Pc(()=>{ie()}),ct=Eo(c);return ct.addEventListener("resize",Je),()=>{Je.clear(),ct.removeEventListener("resize",Je)}},[c,P,ie]);let xe=_;_==="auto"&&!O.muiSupportAuto&&(xe=void 0);const he=x||(c?An(hy(c)).body:void 0),Ie=(o=T==null?void 0:T.root)!=null?o:zK,de=(s=T==null?void 0:T.paper)!=null?s:ER,ke=rr({elementType:de,externalSlotProps:k({},Y,{style:se?Y.style:k({},Y.style,{opacity:0})}),additionalProps:{elevation:b,ref:U},ownerState:oe,className:ye(G.paper,Y==null?void 0:Y.className)}),Qe=rr({elementType:Ie,externalSlotProps:(A==null?void 0:A.root)||{},externalForwardedProps:K,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:P},ownerState:oe,className:ye(G.root,S)}),{slotProps:Ve}=Qe,Be=ge(Qe,FK);return y.jsx(Ie,k({},Be,!La(Ie)&&{slotProps:Ve,disableScrollLock:D},{children:y.jsx(O,k({appear:!0,in:P,onEntering:Oe,onExited:ve,timeout:xe},F,{children:y.jsx(de,k({},ke,{children:g}))}))}))});function UK(e){return Me("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const WK=["onEntering"],HK=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],VK={vertical:"top",horizontal:"right"},KK={vertical:"top",horizontal:"left"},GK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},UK,t)},qK=re(RR,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QK=re(ER,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),YK=re(xR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),my=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:g,PaperProps:S={},PopoverClasses:x,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:P="selectedMenu",slots:R={},slotProps:T={}}=s,A=ge(s.TransitionProps,WK),$=ge(s,HK),O=Oc(),_=k({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:w,PaperProps:S,transitionDuration:b,TransitionProps:A,variant:P}),N=GK(_),D=l&&!f&&g,F=E.useRef(null),K=(M,q)=>{F.current&&F.current.adjustStyleForScrollbar(M,{direction:O?"rtl":"ltr"}),w&&w(M,q)},Y=M=>{M.key==="Tab"&&(M.preventDefault(),m&&m(M,"tabKeyDown"))};let J=-1;E.Children.map(u,(M,q)=>{E.isValidElement(M)&&(M.props.disabled||(P==="selectedMenu"&&M.props.selected||J===-1)&&(J=q))});const U=(r=R.paper)!=null?r:QK,oe=(o=T.paper)!=null?o:S,G=rr({elementType:R.root,externalSlotProps:T.root,ownerState:_,className:[N.root,c]}),W=rr({elementType:U,externalSlotProps:oe,ownerState:_,className:N.paper});return y.jsx(qK,k({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?VK:KK,slots:{paper:U,root:R.root},slotProps:{root:G,paper:W},open:g,ref:n,transitionDuration:b,TransitionProps:k({onEntering:K},A),ownerState:_},$,{classes:x,children:y.jsx(YK,k({onKeyDown:Y,actions:F,autoFocus:l&&(J===-1||f),autoFocusItem:D,variant:P},p,{className:ye(N.list,p.className),children:u}))}))});function XK(e){return Me("MuiMenuItem",e)}const Xc=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),JK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ZK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},eG=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:l}=e,c=Le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},XK,l);return k({},l,c)},tG=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ZK})(({theme:e,ownerState:t})=>k({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oR.inset}`]:{marginLeft:52},[`& .${_f.root}`]:{marginTop:0,marginBottom:0},[`& .${_f.inset}`]:{paddingLeft:36},[`& .${mR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mR.root} svg`]:{fontSize:"1.25rem"}}))),Gi=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:g}=r,S=ge(r,JK),x=E.useContext(Ro),b=E.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),w=E.useRef(null);vr(()=>{o&&w.current&&w.current.focus()},[o]);const P=k({},r,{dense:b.dense,divider:u,disableGutters:c}),R=eG(r),T=Gt(w,n);let A;return r.disabled||(A=m!==void 0?m:-1),y.jsx(Ro.Provider,{value:b,children:y.jsx(tG,k({ref:T,role:p,tabIndex:A,component:s,focusVisibleClassName:ye(R.focusVisible,f),className:ye(R.root,g)},S,{ownerState:P,classes:R}))})});function nG(e){return Me("MuiNativeSelect",e)}const gy=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rG=["className","disabled","error","IconComponent","inputRef","variant"],oG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"]};return Le(u,nG,t)},kR=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${gy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),iG=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gy.multiple}`]:t.multiple}]}})(kR),PR=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${gy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),sG=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})(PR),aG=E.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:l,inputRef:u,variant:c="standard"}=t,f=ge(t,rG),p=k({},t,{disabled:o,variant:c,error:s}),m=oG(p);return y.jsxs(E.Fragment,{children:[y.jsx(iG,k({ownerState:p,className:ye(m.select,r),disabled:o,ref:u||n},f)),t.multiple?null:y.jsx(sG,{as:l,ownerState:p,className:m.icon})]})});var TR;const lG=["children","classes","className","label","notched"],cG=re("fieldset",{shouldForwardProp:Tn})({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%"}),uG=re("legend",{shouldForwardProp:Tn})(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function dG(e){const{className:t,label:n,notched:r}=e,o=ge(e,lG),s=n!=null&&n!=="",l=k({},e,{notched:r,withLabel:s});return y.jsx(cG,k({"aria-hidden":!0,className:t,ownerState:l},o,{children:y.jsx(uG,{ownerState:l,children:s?y.jsx("span",{children:n}):TR||(TR=y.jsx("span",{className:"notranslate",children:"​"}))})}))}const fG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pG=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},u9,t);return k({},t,r)},hG=re(kf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qo.focused} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qo.error} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qo.disabled} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),mG=re(dG,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),gG=re(Pf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),yy=E.forwardRef(function(t,n){var r,o,s,l,u;const c=Fe({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:m="input",label:g,multiline:S=!1,notched:x,slots:b={},type:w="text"}=c,P=ge(c,fG),R=pG(c),T=yi(),A=Wi({props:c,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$=k({},c,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:T,fullWidth:p,hiddenLabel:A.hiddenLabel,multiline:S,size:A.size,type:w}),O=(r=(o=b.root)!=null?o:f.Root)!=null?r:hG,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:gG;return y.jsx(Kg,k({slots:{root:O,input:_},renderSuffix:N=>y.jsx(mG,{ownerState:$,className:R.notchedOutline,label:g!=null&&g!==""&&A.required?u||(u=y.jsxs(E.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:p,inputComponent:m,multiline:S,ref:n,type:w},P,{classes:k({},R,{notchedOutline:null})}))});yy.muiName="Input";const yG=Rt(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),vG=Rt(y.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),bG=re("span",{shouldForwardProp:Tn})({position:"relative",display:"flex"}),xG=re(yG)({transform:"scale(1)"}),wG=re(vG)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function OR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return y.jsxs(bG,{className:n.root,ownerState:o,children:[y.jsx(xG,{fontSize:r,className:n.background,ownerState:o}),y.jsx(wG,{fontSize:r,className:n.dot,ownerState:o})]})}const $R=E.createContext(void 0);function SG(){return E.useContext($R)}function CG(e){return Me("MuiRadio",e)}const AR=Ne("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),EG=["checked","checkedIcon","color","icon","name","onChange","size","className"],RG=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${le(n)}`,r!=="medium"&&`size${le(r)}`]};return k({},t,Le(o,CG,t))},kG=re(Yg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${le(n.size)}`],t[`color${le(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${AR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${AR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function PG(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const jR=y.jsx(OR,{checked:!0}),_R=y.jsx(OR,{}),vy=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiRadio"}),{checked:l,checkedIcon:u=jR,color:c="primary",icon:f=_R,name:p,onChange:m,size:g="medium",className:S}=s,x=ge(s,EG),b=k({},s,{color:c,size:g}),w=RG(b),P=SG();let R=l;const T=dg(m,P&&P.onChange);let A=p;return P&&(typeof R>"u"&&(R=PG(P.value,s.value)),typeof A>"u"&&(A=P.name)),y.jsx(kG,k({type:"radio",icon:E.cloneElement(f,{fontSize:(r=_R.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(u,{fontSize:(o=jR.props.fontSize)!=null?o:g}),ownerState:b,classes:w,name:A,checked:R,onChange:T,ref:n,className:ye(w.root,S)},x))});function TG(e){return Me("MuiRadioGroup",e)}Ne("MuiRadioGroup",["root","row","error"]);const OG=["actions","children","className","defaultValue","name","onChange","value"],$G=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},TG,t)},MR=E.forwardRef(function(t,n){const{actions:r,children:o,className:s,defaultValue:l,name:u,onChange:c,value:f}=t,p=ge(t,OG),m=E.useRef(null),g=$G(t),[S,x]=pi({controlled:f,default:l,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let R=m.current.querySelector("input:not(:disabled):checked");R||(R=m.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const b=Gt(n,m),w=Ia(u),P=E.useMemo(()=>({name:w,onChange(R){x(R.target.value),c&&c(R,R.target.value)},value:S}),[w,c,x,S]);return y.jsx($R.Provider,{value:P,children:y.jsx($V,k({role:"radiogroup",ref:b,className:ye(g.root,s)},p,{children:o}))})});function AG(e){return Me("MuiSelect",e)}const Jc=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var IR;const jG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_G=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Jc.select}`]:t.select},{[`&.${Jc.select}`]:t[n.variant]},{[`&.${Jc.error}`]:t.error},{[`&.${Jc.multiple}`]:t.multiple}]}})(kR,{[`&.${Jc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),MG=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})(PR),IG=re("input",{shouldForwardProp:e=>eE(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 NR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NG(e){return e==null||typeof e=="string"&&!e.trim()}const LG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Le(u,AG,t)},DG=E.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:l,autoWidth:u,children:c,className:f,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:S,error:x=!1,IconComponent:b,inputRef:w,labelId:P,MenuProps:R={},multiple:T,name:A,onBlur:$,onChange:O,onClose:_,onFocus:N,onOpen:D,open:F,readOnly:K,renderValue:Y,SelectDisplayProps:J={},tabIndex:U,value:oe,variant:G="standard"}=t,W=ge(t,jG),[M,q]=pi({controlled:oe,default:m,name:"Select"}),[se,L]=pi({controlled:F,default:p,name:"Select"}),ie=E.useRef(null),Oe=E.useRef(null),[ve,xe]=E.useState(null),{current:he}=E.useRef(F!=null),[Ie,de]=E.useState(),ke=Gt(n,w),Qe=E.useCallback(Ue=>{Oe.current=Ue,Ue&&xe(Ue)},[]),Ve=ve==null?void 0:ve.parentNode;E.useImperativeHandle(ke,()=>({focus:()=>{Oe.current.focus()},node:ie.current,value:M}),[M]),E.useEffect(()=>{p&&se&&ve&&!he&&(de(u?null:Ve.clientWidth),Oe.current.focus())},[ve,u]),E.useEffect(()=>{l&&Oe.current.focus()},[l]),E.useEffect(()=>{if(!P)return;const Ue=An(Oe.current).getElementById(P);if(Ue){const ut=()=>{getSelection().isCollapsed&&Oe.current.focus()};return Ue.addEventListener("click",ut),()=>{Ue.removeEventListener("click",ut)}}},[P]);const Be=(Ue,ut)=>{Ue?D&&D(ut):_&&_(ut),he||(de(u?null:Ve.clientWidth),L(Ue))},Je=Ue=>{Ue.button===0&&(Ue.preventDefault(),Oe.current.focus(),Be(!0,Ue))},ct=Ue=>{Be(!1,Ue)},ot=E.Children.toArray(c),ze=Ue=>{const ut=ot.find(Re=>Re.props.value===Ue.target.value);ut!==void 0&&(q(ut.props.value),O&&O(Ue,ut))},Ot=Ue=>ut=>{let Re;if(ut.currentTarget.hasAttribute("tabindex")){if(T){Re=Array.isArray(M)?M.slice():[];const We=M.indexOf(Ue.props.value);We===-1?Re.push(Ue.props.value):Re.splice(We,1)}else Re=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(ut),M!==Re&&(q(Re),O)){const We=ut.nativeEvent||ut,ft=new We.constructor(We.type,We);Object.defineProperty(ft,"target",{writable:!0,value:{value:Re,name:A}}),O(ft,Ue)}T||Be(!1,ut)}},Ze=Ue=>{K||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),Be(!0,Ue))},$t=ve!==null&&se,gt=Ue=>{!$t&&$&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:M,name:A}}),$(Ue))};delete W["aria-invalid"];let dt,_t;const Pt=[];let pt=!1;(Cf({value:M})||S)&&(Y?dt=Y(M):pt=!0);const Ft=ot.map(Ue=>{if(!E.isValidElement(Ue))return null;let ut;if(T){if(!Array.isArray(M))throw new Error(di(2));ut=M.some(Re=>NR(Re,Ue.props.value)),ut&&pt&&Pt.push(Ue.props.children)}else ut=NR(M,Ue.props.value),ut&&pt&&(_t=Ue.props.children);return E.cloneElement(Ue,{"aria-selected":ut?"true":"false",onClick:Ot(Ue),onKeyUp:Re=>{Re.key===" "&&Re.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(Re)},role:"option",selected:ut,value:void 0,"data-value":Ue.props.value})});pt&&(T?Pt.length===0?dt=null:dt=Pt.reduce((Ue,ut,Re)=>(Ue.push(ut),Re<Pt.length-1&&Ue.push(", "),Ue),[]):dt=_t);let Yt=Ie;!u&&he&&ve&&(Yt=Ve.clientWidth);let qt;typeof U<"u"?qt=U:qt=g?null:0;const et=J.id||(A?`mui-component-select-${A}`:void 0),Pe=k({},t,{variant:G,value:M,open:$t,error:x}),xt=LG(Pe),Ht=k({},R.PaperProps,(r=R.slotProps)==null?void 0:r.paper),fn=Ia();return y.jsxs(E.Fragment,{children:[y.jsx(_G,k({ref:Qe,tabIndex:qt,role:"combobox","aria-controls":fn,"aria-disabled":g?"true":void 0,"aria-expanded":$t?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[P,et].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:Ze,onMouseDown:g||K?null:Je,onBlur:gt,onFocus:N},J,{ownerState:Pe,className:ye(J.className,xt.select,f),id:et,children:NG(dt)?IR||(IR=y.jsx("span",{className:"notranslate",children:"​"})):dt})),y.jsx(IG,k({"aria-invalid":x,value:Array.isArray(M)?M.join(","):M,name:A,ref:ie,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:g,className:xt.nativeInput,autoFocus:l,ownerState:Pe},W)),y.jsx(MG,{as:b,className:xt.icon,ownerState:Pe}),y.jsx(my,k({id:`menu-${A||""}`,anchorEl:Ve,open:$t,onClose:ct,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},R,{MenuListProps:k({"aria-labelledby":P,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:fn},R.MenuListProps),slotProps:k({},R.slotProps,{paper:k({},Ht,{style:k({minWidth:Yt},Ht!=null?Ht.style:null)})}),children:Ft}))]})}),FG=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],BG=["root"],zG=e=>{const{classes:t}=e;return t},by={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},UG=re(dy,by)(""),WG=re(yy,by)(""),HG=re(ay,by)(""),nl=E.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:u,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=zE,id:m,input:g,inputProps:S,label:x,labelId:b,MenuProps:w,multiple:P=!1,native:R=!1,onClose:T,onOpen:A,open:$,renderValue:O,SelectDisplayProps:_,variant:N="outlined"}=r,D=ge(r,FG),F=R?aG:DG,K=yi(),Y=Wi({props:r,muiFormControl:K,states:["variant","error"]}),J=Y.variant||N,U=k({},r,{variant:J,classes:l}),oe=zG(U),G=ge(oe,BG),W=g||{standard:y.jsx(UG,{ownerState:U}),outlined:y.jsx(WG,{label:x,ownerState:U}),filled:y.jsx(HG,{ownerState:U})}[J],M=Gt(n,W.ref);return y.jsx(E.Fragment,{children:E.cloneElement(W,k({inputComponent:F,inputProps:k({children:s,error:Y.error,IconComponent:p,variant:J,type:void 0,multiple:P},R?{id:m}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:b,MenuProps:w,onClose:T,onOpen:A,open:$,renderValue:O,SelectDisplayProps:k({id:m},_)},S,{classes:S?nr(G,S.classes):G},g?g.props.inputProps:{})},(P&&R||f)&&J==="outlined"?{notched:!0}:{},{ref:M,className:ye(W.props.className,u,oe.root)},!g&&{variant:J},D))})});nl.muiName="Select";function VG(e){return Me("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const KG=["animation","className","component","height","style","variant","width"];let Mf=e=>e,LR,DR,FR,BR;const GG=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:l}=e;return Le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!l&&"heightAuto"]},VG,t)},qG=zi(LR||(LR=Mf`
124
124
  0% {
125
125
  opacity: 1;
126
126
  }
@@ -171,9 +171,9 @@ Error generating stack: `+C.message+`
171
171
  top: 0;
172
172
  }
173
173
  `),QG,(t.vars||t).palette.action.hover)),zR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:l="span",height:u,style:c,variant:f="text",width:p}=r,m=ge(r,KG),g=k({},r,{animation:o,component:l,variant:f,hasChildren:!!m.children}),S=GG(g);return y.jsx(YG,k({as:l,ref:n,className:ye(S.root,s),ownerState:g},m,{style:k({width:p,height:u},c)}))});function XG(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,l=hi();E.useEffect(()=>{if(!o)return;function P(R){R.defaultPrevented||(R.key==="Escape"||R.key==="Esc")&&(r==null||r(R,"escapeKeyDown"))}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[o,r]);const u=Nn((P,R)=>{r==null||r(P,R)}),c=Nn(P=>{!r||P==null||l.start(P,()=>{u(null,"timeout")})});E.useEffect(()=>(o&&c(t),l.clear),[o,t,c,l]);const f=P=>{r==null||r(P,"clickaway")},p=l.clear,m=E.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),g=P=>R=>{const T=P.onBlur;T==null||T(R),m()},S=P=>R=>{const T=P.onFocus;T==null||T(R),p()},x=P=>R=>{const T=P.onMouseEnter;T==null||T(R),p()},b=P=>R=>{const T=P.onMouseLeave;T==null||T(R),m()};return E.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[n,o,m,p]),{getRootProps:(P={})=>{const R=k({},af(e),af(P));return k({role:"presentation"},P,R,{onBlur:g(R),onFocus:S(R),onMouseEnter:x(R),onMouseLeave:b(R)})},onClickAway:f}}function JG(e){return Me("MuiSnackbarContent",e)}Ne("MuiSnackbarContent",["root","message","action"]);const ZG=["action","className","message","role"],eq=e=>{const{classes:t}=e;return Le({root:["root"],action:["action"],message:["message"]},JG,t)},tq=re(oo,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=lf(e.palette.background.default,t);return k({},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}})}),nq=re("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),rq=re("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),oq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:u="alert"}=r,c=ge(r,ZG),f=r,p=eq(f);return y.jsxs(tq,k({role:u,square:!0,elevation:6,className:ye(p.root,s),ownerState:f,ref:n},c,{children:[y.jsx(nq,{className:p.message,ownerState:f,children:l}),o?y.jsx(rq,{className:p.action,ownerState:f,children:o}):null]}))});function iq(e){return Me("MuiSnackbar",e)}Ne("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const sq=["onEnter","onExited"],aq=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],lq=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`]};return Le(r,iq,t)},UR=re("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return k({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:k({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),cq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbar"}),o=br(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:u,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:p,className:m,ClickAwayListenerProps:g,ContentProps:S,disableWindowBlurListener:x=!1,message:b,open:w,TransitionComponent:P=Za,transitionDuration:R=s,TransitionProps:{onEnter:T,onExited:A}={}}=r,$=ge(r.TransitionProps,sq),O=ge(r,aq),_=k({},r,{anchorOrigin:{vertical:u,horizontal:c},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:P,transitionDuration:R}),N=lq(_),{getRootProps:D,onClickAway:F}=XG(k({},_)),[K,Y]=E.useState(!0),J=rr({elementType:UR,getSlotProps:D,externalForwardedProps:O,ownerState:_,additionalProps:{ref:n},className:[N.root,m]}),U=G=>{Y(!0),A&&A(G)},oe=(G,W)=>{Y(!1),T&&T(G,W)};return!w&&K?null:y.jsx(eR,k({onClickAway:F},g,{children:y.jsx(UR,k({},J,{children:y.jsx(P,k({appear:!0,in:w,timeout:R,direction:u==="top"?"down":"up",onEnter:oe,onExited:U},$,{children:p||y.jsx(oq,k({message:b,action:l},S))}))}))}))}),uq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dq={entering:{transform:"none"},entered:{transform:"none"}},fq=E.forwardRef(function(t,n){const r=br(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,T=ge(t,uq),A=E.useRef(null),$=Gt(A,u.ref,n),O=U=>oe=>{if(U){const G=A.current;oe===void 0?U(G):U(G,oe)}},_=O(g),N=O((U,oe)=>{hf(U);const G=Vo({style:w,timeout:P,easing:c},{mode:"enter"});U.style.webkitTransition=r.transitions.create("transform",G),U.style.transition=r.transitions.create("transform",G),p&&p(U,oe)}),D=O(m),F=O(b),K=O(U=>{const oe=Vo({style:w,timeout:P,easing:c},{mode:"exit"});U.style.webkitTransition=r.transitions.create("transform",oe),U.style.transition=r.transitions.create("transform",oe),S&&S(U)}),Y=O(x),J=U=>{s&&s(A.current,U)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:N,onEntered:D,onEntering:_,onExit:K,onExited:Y,onExiting:F,addEndListener:J,timeout:P},T,{children:(U,oe)=>E.cloneElement(u,k({style:k({transform:"scale(0)",visibility:U==="exited"&&!f?"hidden":void 0},dq[U],w,u.props.style),ref:$},oe))}))});function pq(e){return Me("MuiSpeedDial",e)}const If=Ne("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),hq=["ref"],mq=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],gq=["ref"],yq=e=>{const{classes:t,open:n,direction:r}=e,o={root:["root",`direction${le(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return Le(o,pq,t)};function Zc(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const qi=32,Nf=16,vq=re("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${le(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},t.direction==="up"&&{flexDirection:"column-reverse",[`& .${If.actions}`]:{flexDirection:"column-reverse",marginBottom:-qi,paddingBottom:Nf+qi}},t.direction==="down"&&{flexDirection:"column",[`& .${If.actions}`]:{flexDirection:"column",marginTop:-qi,paddingTop:Nf+qi}},t.direction==="left"&&{flexDirection:"row-reverse",[`& .${If.actions}`]:{flexDirection:"row-reverse",marginRight:-qi,paddingRight:Nf+qi}},t.direction==="right"&&{flexDirection:"row",[`& .${If.actions}`]:{flexDirection:"row",marginLeft:-qi,paddingLeft:Nf+qi}})),bq=re(sy,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),xq=re("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})(({ownerState:e})=>k({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})),wq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDial"}),o=br(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{ariaLabel:l,FabProps:{ref:u}={},children:c,className:f,direction:p="up",hidden:m=!1,icon:g,onBlur:S,onClose:x,onFocus:b,onKeyDown:w,onMouseEnter:P,onMouseLeave:R,onOpen:T,open:A,TransitionComponent:$=fq,transitionDuration:O=s,TransitionProps:_}=r,N=ge(r.FabProps,hq),D=ge(r,mq),[F,K]=pi({controlled:A,default:!1,name:"SpeedDial",state:"open"}),Y=k({},r,{open:F,direction:p}),J=yq(Y),U=hi(),oe=E.useRef(0),G=E.useRef(),W=E.useRef([]);W.current=[W.current[0]];const M=E.useCallback(de=>{W.current[0]=de},[]),q=Gt(u,M),se=(de,ke)=>Qe=>{W.current[de+1]=Qe,ke&&ke(Qe)},L=de=>{w&&w(de);const ke=de.key.replace("Arrow","").toLowerCase(),{current:Qe=ke}=G;if(de.key==="Escape"){K(!1),W.current[0].focus(),x&&x(de,"escapeKeyDown");return}if(Zc(ke)===Zc(Qe)&&Zc(ke)!==void 0){de.preventDefault();const Ve=ke===Qe?1:-1,Be=ug(oe.current+Ve,0,W.current.length-1);W.current[Be].focus(),oe.current=Be,G.current=Qe}};E.useEffect(()=>{F||(oe.current=0,G.current=void 0)},[F]);const ie=de=>{de.type==="mouseleave"&&R&&R(de),de.type==="blur"&&S&&S(de),U.clear(),de.type==="blur"?U.start(0,()=>{K(!1),x&&x(de,"blur")}):(K(!1),x&&x(de,"mouseLeave"))},Oe=de=>{N.onClick&&N.onClick(de),U.clear(),F?(K(!1),x&&x(de,"toggle")):(K(!0),T&&T(de,"toggle"))},ve=de=>{de.type==="mouseenter"&&P&&P(de),de.type==="focus"&&b&&b(de),U.clear(),F||U.start(0,()=>{K(!0),T&&T(de,{focus:"focus",mouseenter:"mouseEnter"}[de.type])})},xe=l.replace(/^[^a-z]+|[^\w:.-]+/gi,""),he=E.Children.toArray(c).filter(de=>E.isValidElement(de)),Ie=he.map((de,ke)=>{const Qe=de.props,{FabProps:{ref:Ve}={},tooltipPlacement:Be}=Qe,Je=ge(Qe.FabProps,gq),ct=Be||(Zc(p)==="vertical"?"left":"top");return E.cloneElement(de,{FabProps:k({},Je,{ref:se(ke,Ve)}),delay:30*(F?ke:he.length-ke),open:F,tooltipPlacement:ct,id:`${xe}-action-${ke}`})});return y.jsxs(vq,k({className:ye(J.root,f),ref:n,role:"presentation",onKeyDown:L,onBlur:ie,onFocus:ve,onMouseEnter:ve,onMouseLeave:ie,ownerState:Y},D,{children:[y.jsx($,k({in:!m,timeout:O,unmountOnExit:!0},_,{children:y.jsx(bq,k({color:"primary","aria-label":l,"aria-haspopup":"true","aria-expanded":F,"aria-controls":`${xe}-actions`},N,{onClick:Oe,className:ye(J.fab,N.className),ref:q,ownerState:Y,children:E.isValidElement(g)&&Ma(g,["SpeedDialIcon"])?E.cloneElement(g,{open:F}):g}))})),y.jsx(xq,{id:`${xe}-actions`,role:"menu","aria-orientation":Zc(p),className:ye(J.actions,!F&&J.actionsClosed),ownerState:Y,children:Ie})]}))});function Sq(e){return Me("MuiTooltip",e)}const Qi=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Eq(e){return Math.round(e*1e5)/1e5}const Rq=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${le(s.split("-")[0])}`],arrow:["arrow"]};return Le(l,Sq,t)},kq=re(Vc,{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]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qi.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Qi.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Pq=re("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${le(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Eq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Qi.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qi.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qi.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qi.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Tq=re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Lf=!1;const WR=new Tc;let eu={x:0,y:0};function Df(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Oq=E.forwardRef(function(t,n){var r,o,s,l,u,c,f,p,m,g,S,x,b,w,P,R,T,A,$;const O=Fe({props:t,name:"MuiTooltip"}),{arrow:_=!1,children:N,components:D={},componentsProps:F={},describeChild:K=!1,disableFocusListener:Y=!1,disableHoverListener:J=!1,disableInteractive:U=!1,disableTouchListener:oe=!1,enterDelay:G=100,enterNextDelay:W=0,enterTouchDelay:M=700,followCursor:q=!1,id:se,leaveDelay:L=0,leaveTouchDelay:ie=1500,onClose:Oe,onOpen:ve,open:xe,placement:he="bottom",PopperComponent:Ie,PopperProps:de={},slotProps:ke={},slots:Qe={},title:Ve,TransitionComponent:Be=Za,TransitionProps:Je}=O,ct=ge(O,Cq),ot=E.isValidElement(N)?N:y.jsx("span",{children:N}),ze=br(),Ot=Oc(),[Ze,$t]=E.useState(),[gt,dt]=E.useState(null),_t=E.useRef(!1),Pt=U||q,pt=hi(),Ft=hi(),Yt=hi(),qt=hi(),[et,Pe]=pi({controlled:xe,default:!1,name:"Tooltip",state:"open"});let xt=et;const Ht=Ia(se),fn=E.useRef(),Ue=Nn(()=>{fn.current!==void 0&&(document.body.style.WebkitUserSelect=fn.current,fn.current=void 0),qt.clear()});E.useEffect(()=>Ue,[Ue]);const ut=Ee=>{WR.clear(),Lf=!0,Pe(!0),ve&&!xt&&ve(Ee)},Re=Nn(Ee=>{WR.start(800+L,()=>{Lf=!1}),Pe(!1),Oe&&xt&&Oe(Ee),pt.start(ze.transitions.duration.shortest,()=>{_t.current=!1})}),We=Ee=>{_t.current&&Ee.type!=="touchstart"||(Ze&&Ze.removeAttribute("title"),Ft.clear(),Yt.clear(),G||Lf&&W?Ft.start(Lf?W:G,()=>{ut(Ee)}):ut(Ee))},ft=Ee=>{Ft.clear(),Yt.start(L,()=>{Re(Ee)})},{isFocusVisibleRef:yt,onBlur:bt,onFocus:Mt,ref:It}=hg(),[,en]=E.useState(!1),rn=Ee=>{bt(Ee),yt.current===!1&&(en(!1),ft(Ee))},Yn=Ee=>{Ze||$t(Ee.currentTarget),Mt(Ee),yt.current===!0&&(en(!0),We(Ee))},Vr=Ee=>{_t.current=!0;const nt=ot.props;nt.onTouchStart&&nt.onTouchStart(Ee)},Po=Ee=>{Vr(Ee),Yt.clear(),pt.clear(),Ue(),fn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qt.start(M,()=>{document.body.style.WebkitUserSelect=fn.current,We(Ee)})},To=Ee=>{ot.props.onTouchEnd&&ot.props.onTouchEnd(Ee),Ue(),Yt.start(ie,()=>{Re(Ee)})};E.useEffect(()=>{if(!xt)return;function Ee(nt){(nt.key==="Escape"||nt.key==="Esc")&&Re(nt)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[Re,xt]);const co=Gt(ot.ref,It,$t,n);!Ve&&Ve!==0&&(xt=!1);const Ln=E.useRef(),on=Ee=>{const nt=ot.props;nt.onMouseMove&&nt.onMouseMove(Ee),eu={x:Ee.clientX,y:Ee.clientY},Ln.current&&Ln.current.update()},Qt={},B=typeof Ve=="string";K?(Qt.title=!xt&&B&&!J?Ve:null,Qt["aria-describedby"]=xt?Ht:null):(Qt["aria-label"]=B?Ve:null,Qt["aria-labelledby"]=xt&&!B?Ht:null);const H=k({},Qt,ct,ot.props,{className:ye(ct.className,ot.props.className),onTouchStart:Vr,ref:co},q?{onMouseMove:on}:{}),ae={};oe||(H.onTouchStart=Po,H.onTouchEnd=To),J||(H.onMouseOver=Df(We,H.onMouseOver),H.onMouseLeave=Df(ft,H.onMouseLeave),Pt||(ae.onMouseOver=We,ae.onMouseLeave=ft)),Y||(H.onFocus=Df(Yn,H.onFocus),H.onBlur=Df(rn,H.onBlur),Pt||(ae.onFocus=Yn,ae.onBlur=rn));const me=E.useMemo(()=>{var Ee;let nt=[{name:"arrow",enabled:!!gt,options:{element:gt,padding:4}}];return(Ee=de.popperOptions)!=null&&Ee.modifiers&&(nt=nt.concat(de.popperOptions.modifiers)),k({},de.popperOptions,{modifiers:nt})},[gt,de]),_e=k({},O,{isRtl:Ot,arrow:_,disableInteractive:Pt,placement:he,PopperComponentProp:Ie,touch:_t.current}),Ge=Rq(_e),it=(r=(o=Qe.popper)!=null?o:D.Popper)!=null?r:kq,$e=(s=(l=(u=Qe.transition)!=null?u:D.Transition)!=null?l:Be)!=null?s:Za,st=(c=(f=Qe.tooltip)!=null?f:D.Tooltip)!=null?c:Pq,X=(p=(m=Qe.arrow)!=null?m:D.Arrow)!=null?p:Tq,Q=Da(it,k({},de,(g=ke.popper)!=null?g:F.popper,{className:ye(Ge.popper,de==null?void 0:de.className,(S=(x=ke.popper)!=null?x:F.popper)==null?void 0:S.className)}),_e),we=Da($e,k({},Je,(b=ke.transition)!=null?b:F.transition),_e),be=Da(st,k({},(w=ke.tooltip)!=null?w:F.tooltip,{className:ye(Ge.tooltip,(P=(R=ke.tooltip)!=null?R:F.tooltip)==null?void 0:P.className)}),_e),De=Da(X,k({},(T=ke.arrow)!=null?T:F.arrow,{className:ye(Ge.arrow,(A=($=ke.arrow)!=null?$:F.arrow)==null?void 0:A.className)}),_e);return y.jsxs(E.Fragment,{children:[E.cloneElement(ot,H),y.jsx(it,k({as:Ie??Vc,placement:he,anchorEl:q?{getBoundingClientRect:()=>({top:eu.y,left:eu.x,right:eu.x,bottom:eu.y,width:0,height:0})}:Ze,popperRef:Ln,open:Ze?xt:!1,id:Ht,transition:!0},ae,Q,{popperOptions:me,children:({TransitionProps:Ee})=>y.jsx($e,k({timeout:ze.transitions.duration.shorter},Ee,we,{children:y.jsxs(st,k({},be,{children:[Ve,_?y.jsx(X,k({},De,{ref:dt})):null]}))}))}))]})});function $q(e){return Me("MuiSpeedDialAction",e)}const Aq=Ne("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),jq=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],_q=e=>{const{open:t,tooltipPlacement:n,classes:r}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${le(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return Le(o,$q,r)},Mq=re(sy,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(({theme:e,ownerState:t})=>k({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:lf(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})),Iq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${le(n.tooltipPlacement)}`]]}})(({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Aq.staticTooltipLabel}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},t.tooltipPlacement==="left"&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},t.tooltipPlacement==="right"&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})})),Nq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(({theme:e})=>k({position:"absolute"},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})),Lq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialAction"}),{className:o,delay:s=0,FabProps:l={},icon:u,id:c,open:f,TooltipClasses:p,tooltipOpen:m=!1,tooltipPlacement:g="left",tooltipTitle:S}=r,x=ge(r,jq),b=k({},r,{tooltipPlacement:g}),w=_q(b),[P,R]=E.useState(m),T=()=>{R(!1)},A=()=>{R(!0)},$={transitionDelay:`${s}ms`},O=y.jsx(Mq,k({size:"small",className:ye(w.fab,o),tabIndex:-1,role:"menuitem",ownerState:b},l,{style:k({},$,l.style),children:u}));return m?y.jsxs(Iq,k({id:c,ref:n,className:w.staticTooltip,ownerState:b},x,{children:[y.jsx(Nq,{style:$,id:`${c}-label`,className:w.staticTooltipLabel,ownerState:b,children:S}),E.cloneElement(O,{"aria-labelledby":`${c}-label`})]})):(!f&&P&&R(!1),y.jsx(Oq,k({id:c,ref:n,title:S,placement:g,onClose:T,onOpen:A,open:f&&P,classes:p},x,{children:O})))}),Dq=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function Fq(e){return Me("MuiSpeedDialIcon",e)}const Ws=Ne("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),Bq=["className","icon","open","openIcon"],zq=e=>{const{classes:t,open:n,openIcon:r}=e;return Le({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},Fq,t)},Uq=re("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ws.icon}`]:t.icon},{[`& .${Ws.icon}`]:n.open&&t.iconOpen},{[`& .${Ws.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Ws.openIcon}`]:t.openIcon},{[`& .${Ws.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(({theme:e,ownerState:t})=>({height:24,[`& .${Ws.icon}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&k({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${Ws.openIcon}`]:k({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})})),HR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialIcon"}),{className:o,icon:s,openIcon:l}=r,u=ge(r,Bq),c=r,f=zq(c);function p(m,g){return E.isValidElement(m)?E.cloneElement(m,{className:g}):m}return y.jsxs(Uq,k({className:ye(f.root,o),ref:n,ownerState:c},u,{children:[l?p(l,f.openIcon):null,s?p(s,f.icon):y.jsx(Dq,{className:f.icon})]}))});HR.muiName="SpeedDialIcon";function Wq(e){return Me("MuiSwitch",e)}const sr=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Hq=["className","color","edge","size","sx"],Vq=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:l}=e,u={root:["root",n&&`edge${le(n)}`,`size${le(r)}`],switchBase:["switchBase",`color${le(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Le(u,Wq,t);return k({},t,c)},Kq=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${le(n.edge)}`],t[`size${le(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,[`& .${sr.thumb}`]:{width:16,height:16},[`& .${sr.switchBase}`]:{padding:4,[`&.${sr.checked}`]:{transform:"translateX(16px)"}}}}]}),Gq=re(Yg,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${sr.input}`]:t.input},n.color!=="default"&&t[`color${le(n.color)}`]]}})(({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}),[`&.${sr.checked}`]:{transform:"translateX(20px)"},[`&.${sr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${sr.checked} + .${sr.track}`]:{opacity:.5},[`&.${sr.disabled} + .${sr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${sr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${sr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_c(e.palette[t].main,.62):jc(e.palette[t].main,.55)}`}},[`&.${sr.checked} + .${sr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),qq=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({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}`})),Qq=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Yq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:u="medium",sx:c}=r,f=ge(r,Hq),p=k({},r,{color:s,edge:l,size:u}),m=Vq(p),g=y.jsx(Qq,{className:m.thumb,ownerState:p});return y.jsxs(Kq,{className:ye(m.root,o),sx:c,ownerState:p,children:[y.jsx(Gq,k({type:"checkbox",icon:g,checkedIcon:g,ref:n,ownerState:p},f,{classes:k({},m,{root:m.switchBase})})),y.jsx(qq,{className:m.track,ownerState:p})]})});function Xq(e){return Me("MuiTab",e)}const Yi=Ne("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Jq=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Zq=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:l,selected:u,disabled:c}=e,f={root:["root",s&&l&&"labelIcon",`textColor${le(n)}`,r&&"fullWidth",o&&"wrapped",u&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Le(f,Xq,t)},eQ=re(Dr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Yi.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>k({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Yi.iconWrapper}`]:k({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Yi.selected}`]:{opacity:1},[`&.${Yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Yi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Yi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),VR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u,icon:c,iconPosition:f="top",indicator:p,label:m,onChange:g,onClick:S,onFocus:x,selected:b,selectionFollowsFocus:w,textColor:P="inherit",value:R,wrapped:T=!1}=r,A=ge(r,Jq),$=k({},r,{disabled:s,disableFocusRipple:l,selected:b,icon:!!c,iconPosition:f,label:!!m,fullWidth:u,textColor:P,wrapped:T}),O=Zq($),_=c&&m&&E.isValidElement(c)?E.cloneElement(c,{className:ye(O.iconWrapper,c.props.className)}):c,N=F=>{!b&&g&&g(F,R),S&&S(F)},D=F=>{w&&!b&&g&&g(F,R),x&&x(F)};return y.jsxs(eQ,k({focusRipple:!l,className:ye(O.root,o),ref:n,role:"tab","aria-selected":b,disabled:s,onClick:N,onFocus:D,ownerState:$,tabIndex:b?0:-1},A,{children:[f==="top"||f==="start"?y.jsxs(E.Fragment,{children:[_,m]}):y.jsxs(E.Fragment,{children:[m,_]}),p]}))}),KR=E.createContext();function tQ(e){return Me("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const nQ=["className","component","padding","size","stickyHeader"],rQ=e=>{const{classes:t,stickyHeader:n}=e;return Le({root:["root",n&&"stickyHeader"]},tQ,t)},oQ=re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":k({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),GR="table",iQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:o,component:s=GR,padding:l="normal",size:u="medium",stickyHeader:c=!1}=r,f=ge(r,nQ),p=k({},r,{component:s,padding:l,size:u,stickyHeader:c}),m=rQ(p),g=E.useMemo(()=>({padding:l,size:u,stickyHeader:c}),[l,u,c]);return y.jsx(KR.Provider,{value:g,children:y.jsx(oQ,k({as:s,role:s===GR?null:"table",ref:n,className:ye(m.root,o),ownerState:p},f))})}),tu=E.createContext();function sQ(e){return Me("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const aQ=["className","component"],lQ=e=>{const{classes:t}=e;return Le({root:["root"]},sQ,t)},cQ=re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),uQ={variant:"body"},qR="tbody",dQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:o,component:s=qR}=r,l=ge(r,aQ),u=k({},r,{component:s}),c=lQ(u);return y.jsx(tu.Provider,{value:uQ,children:y.jsx(cQ,k({className:ye(c.root,o),as:s,ref:n,role:s===qR?null:"rowgroup",ownerState:u},l))})});function fQ(e){return Me("MuiTableCell",e)}const pQ=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hQ=["align","className","component","padding","scope","size","sortDirection","variant"],mQ=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:l}=e,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${le(r)}`,o!=="normal"&&`padding${le(o)}`,`size${le(s)}`]};return Le(u,fQ,t)},gQ=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${le(n.size)}`],n.padding!=="normal"&&t[`padding${le(n.padding)}`],n.align!=="inherit"&&t[`align${le(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
174
- ${e.palette.mode==="light"?_c(mt(e.palette.divider,1),.88):jc(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pQ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),bi=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:u,scope:c,size:f,sortDirection:p,variant:m}=r,g=ge(r,hQ),S=E.useContext(KR),x=E.useContext(tu),b=x&&x.variant==="head";let w;l?w=l:w=b?"th":"td";let P=c;w==="td"?P=void 0:!P&&b&&(P="col");const R=m||x&&x.variant,T=k({},r,{align:o,component:w,padding:u||(S&&S.padding?S.padding:"normal"),size:f||(S&&S.size?S.size:"medium"),sortDirection:p,stickyHeader:R==="head"&&S&&S.stickyHeader,variant:R}),A=mQ(T);let $=null;return p&&($=p==="asc"?"ascending":"descending"),y.jsx(gQ,k({as:w,ref:n,className:ye(A.root,s),"aria-sort":$,scope:P,ownerState:T},g))});function yQ(e){return Me("MuiTableContainer",e)}Ne("MuiTableContainer",["root"]);const vQ=["className","component"],bQ=e=>{const{classes:t}=e;return Le({root:["root"]},yQ,t)},xQ=re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),wQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,l=ge(r,vQ),u=k({},r,{component:s}),c=bQ(u);return y.jsx(xQ,k({ref:n,as:s,className:ye(c.root,o),ownerState:u},l))});function SQ(e){return Me("MuiTableFooter",e)}Ne("MuiTableFooter",["root"]);const CQ=["className","component"],EQ=e=>{const{classes:t}=e;return Le({root:["root"]},SQ,t)},RQ=re("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),kQ={variant:"footer"},QR="tfoot",PQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableFooter"}),{className:o,component:s=QR}=r,l=ge(r,CQ),u=k({},r,{component:s}),c=EQ(u);return y.jsx(tu.Provider,{value:kQ,children:y.jsx(RQ,k({as:s,className:ye(c.root,o),ref:n,role:s===QR?null:"rowgroup",ownerState:u},l))})});function TQ(e){return Me("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const OQ=["className","component"],$Q=e=>{const{classes:t}=e;return Le({root:["root"]},TQ,t)},AQ=re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),jQ={variant:"head"},YR="thead",_Q=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:o,component:s=YR}=r,l=ge(r,OQ),u=k({},r,{component:s}),c=$Q(u);return y.jsx(tu.Provider,{value:jQ,children:y.jsx(AQ,k({as:s,className:ye(c.root,o),ref:n,role:s===YR?null:"rowgroup",ownerState:u},l))})});function MQ(e){return Me("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const IQ=["className","component","disableGutters","variant"],NQ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Le({root:["root",!n&&"gutters",r]},MQ,t)},LQ=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>k({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),DQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:l=!1,variant:u="regular"}=r,c=ge(r,IQ),f=k({},r,{component:s,disableGutters:l,variant:u}),p=NQ(f);return y.jsx(LQ,k({as:s,className:ye(p.root,o),ref:n,ownerState:f},c))}),FQ=Rt(y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),BQ=Rt(y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zQ(e){return Me("MuiTableRow",e)}const XR=Ne("MuiTableRow",["root","selected","hover","head","footer"]),UQ=["className","component","hover","selected"],WQ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Le({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},zQ,t)},HQ=re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${XR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${XR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(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}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),JR="tr",rl=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:o,component:s=JR,hover:l=!1,selected:u=!1}=r,c=ge(r,UQ),f=E.useContext(tu),p=k({},r,{component:s,hover:l,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"}),m=WQ(p);return y.jsx(HQ,k({as:s,ref:n,className:ye(m.root,o),role:s===JR?null:"row",ownerState:p},c))}),VQ=Rt(y.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function KQ(e){return Me("MuiTableSortLabel",e)}const xy=Ne("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),GQ=["active","children","className","direction","hideSortIcon","IconComponent"],qQ=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${le(n)}`]};return Le(o,KQ,t)},QQ=re(Dr,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${xy.icon}`]:{opacity:.5}},[`&.${xy.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${xy.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),YQ=re("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${le(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),XQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:s,className:l,direction:u="asc",hideSortIcon:c=!1,IconComponent:f=VQ}=r,p=ge(r,GQ),m=k({},r,{active:o,direction:u,hideSortIcon:c,IconComponent:f}),g=qQ(m);return y.jsxs(QQ,k({className:ye(g.root,l),component:"span",disableRipple:!0,ownerState:m,ref:n},p,{children:[s,c&&!o?null:y.jsx(YQ,{as:f,className:ye(g.icon),ownerState:m})]}))});function JQ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ZQ(e,t,n,r={},o=()=>{}){const{ease:s=JQ,duration:l=300}=r;let u=null;const c=t[e];let f=!1;const p=()=>{f=!0},m=g=>{if(f){o(new Error("Animation cancelled"));return}u===null&&(u=g);const S=Math.min(1,(g-u)/l);if(t[e]=s(S)*(n-c)+c,S>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(m)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(m),p)}const eY=["onChange"],tY={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function nY(e){const{onChange:t}=e,n=ge(e,eY),r=E.useRef(),o=E.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return vr(()=>{const l=Pc(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),u=Eo(o.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),E.useEffect(()=>{s(),t(r.current)},[t]),y.jsx("div",k({style:tY,ref:o},n))}function rY(e){return Me("MuiTabScrollButton",e)}const oY=Ne("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),iY=["className","slots","slotProps","direction","orientation","disabled"],sY=e=>{const{classes:t,orientation:n,disabled:r}=e;return Le({root:["root",n,r&&"disabled"]},rY,t)},aY=re(Dr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>k({width:40,flexShrink:0,opacity:.8,[`&.${oY.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),lY=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiTabScrollButton"}),{className:l,slots:u={},slotProps:c={},direction:f}=s,p=ge(s,iY),m=Oc(),g=k({isRtl:m},s),S=sY(g),x=(r=u.StartScrollButtonIcon)!=null?r:FQ,b=(o=u.EndScrollButtonIcon)!=null?o:BQ,w=rr({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),P=rr({elementType:b,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return y.jsx(aY,k({component:"div",className:ye(S.root,l),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:f==="left"?y.jsx(x,k({},w)):y.jsx(b,k({},P))}))});function cY(e){return Me("MuiTabs",e)}const wy=Ne("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),uY=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ZR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ek=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ff=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},dY=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:l,scrollButtonsHideMobile:u,classes:c}=e;return Le({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},cY,c)},fY=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wy.scrollButtons}`]:t.scrollButtons},{[`& .${wy.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>k({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${wy.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),pY=re("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]}})(({ownerState:e})=>k({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),hY=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>k({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),mY=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>k({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gY=re(nY)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),tk={},yY=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabs"}),o=br(),s=Oc(),{"aria-label":l,"aria-labelledby":u,action:c,centered:f=!1,children:p,className:m,component:g="div",allowScrollButtonsMobile:S=!1,indicatorColor:x="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:P=lY,scrollButtons:R="auto",selectionFollowsFocus:T,slots:A={},slotProps:$={},TabIndicatorProps:O={},TabScrollButtonProps:_={},textColor:N="primary",value:D,variant:F="standard",visibleScrollbar:K=!1}=r,Y=ge(r,uY),J=F==="scrollable",U=w==="vertical",oe=U?"scrollTop":"scrollLeft",G=U?"top":"left",W=U?"bottom":"right",M=U?"clientHeight":"clientWidth",q=U?"height":"width",se=k({},r,{component:g,allowScrollButtonsMobile:S,indicatorColor:x,orientation:w,vertical:U,scrollButtons:R,textColor:N,variant:F,visibleScrollbar:K,fixed:!J,hideScrollbar:J&&!K,scrollableX:J&&!U,scrollableY:J&&U,centered:f&&!J,scrollButtonsHideMobile:!S}),L=dY(se),ie=rr({elementType:A.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:se}),Oe=rr({elementType:A.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:se}),[ve,xe]=E.useState(!1),[he,Ie]=E.useState(tk),[de,ke]=E.useState(!1),[Qe,Ve]=E.useState(!1),[Be,Je]=E.useState(!1),[ct,ot]=E.useState({overflow:"hidden",scrollbarWidth:0}),ze=new Map,Ot=E.useRef(null),Ze=E.useRef(null),$t=()=>{const Re=Ot.current;let We;if(Re){const yt=Re.getBoundingClientRect();We={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:p3(Re,s?"rtl":"ltr"),scrollWidth:Re.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ft;if(Re&&D!==!1){const yt=Ze.current.children;if(yt.length>0){const bt=yt[ze.get(D)];ft=bt?bt.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:ft}},gt=Nn(()=>{const{tabsMeta:Re,tabMeta:We}=$t();let ft=0,yt;if(U)yt="top",We&&Re&&(ft=We.top-Re.top+Re.scrollTop);else if(yt=s?"right":"left",We&&Re){const Mt=s?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;ft=(s?-1:1)*(We[yt]-Re[yt]+Mt)}const bt={[yt]:ft,[q]:We?We[q]:0};if(isNaN(he[yt])||isNaN(he[q]))Ie(bt);else{const Mt=Math.abs(he[yt]-bt[yt]),It=Math.abs(he[q]-bt[q]);(Mt>=1||It>=1)&&Ie(bt)}}),dt=(Re,{animation:We=!0}={})=>{We?ZQ(oe,Ot.current,Re,{duration:o.transitions.duration.standard}):Ot.current[oe]=Re},_t=Re=>{let We=Ot.current[oe];U?We+=Re:(We+=Re*(s?-1:1),We*=s&&EC()==="reverse"?-1:1),dt(We)},Pt=()=>{const Re=Ot.current[M];let We=0;const ft=Array.from(Ze.current.children);for(let yt=0;yt<ft.length;yt+=1){const bt=ft[yt];if(We+bt[M]>Re){yt===0&&(We=Re);break}We+=bt[M]}return We},pt=()=>{_t(-1*Pt())},Ft=()=>{_t(Pt())},Yt=E.useCallback(Re=>{ot({overflow:null,scrollbarWidth:Re})},[]),qt=()=>{const Re={};Re.scrollbarSizeListener=J?y.jsx(gY,{onChange:Yt,className:ye(L.scrollableX,L.hideScrollbar)}):null;const ft=J&&(R==="auto"&&(de||Qe)||R===!0);return Re.scrollButtonStart=ft?y.jsx(P,k({slots:{StartScrollButtonIcon:A.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:w,direction:s?"right":"left",onClick:pt,disabled:!de},_,{className:ye(L.scrollButtons,_.className)})):null,Re.scrollButtonEnd=ft?y.jsx(P,k({slots:{EndScrollButtonIcon:A.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:w,direction:s?"left":"right",onClick:Ft,disabled:!Qe},_,{className:ye(L.scrollButtons,_.className)})):null,Re},et=Nn(Re=>{const{tabsMeta:We,tabMeta:ft}=$t();if(!(!ft||!We)){if(ft[G]<We[G]){const yt=We[oe]+(ft[G]-We[G]);dt(yt,{animation:Re})}else if(ft[W]>We[W]){const yt=We[oe]+(ft[W]-We[W]);dt(yt,{animation:Re})}}}),Pe=Nn(()=>{J&&R!==!1&&Je(!Be)});E.useEffect(()=>{const Re=Pc(()=>{Ot.current&&gt()});let We;const ft=Mt=>{Mt.forEach(It=>{It.removedNodes.forEach(en=>{var rn;(rn=We)==null||rn.unobserve(en)}),It.addedNodes.forEach(en=>{var rn;(rn=We)==null||rn.observe(en)})}),Re(),Pe()},yt=Eo(Ot.current);yt.addEventListener("resize",Re);let bt;return typeof ResizeObserver<"u"&&(We=new ResizeObserver(Re),Array.from(Ze.current.children).forEach(Mt=>{We.observe(Mt)})),typeof MutationObserver<"u"&&(bt=new MutationObserver(ft),bt.observe(Ze.current,{childList:!0})),()=>{var Mt,It;Re.clear(),yt.removeEventListener("resize",Re),(Mt=bt)==null||Mt.disconnect(),(It=We)==null||It.disconnect()}},[gt,Pe]),E.useEffect(()=>{const Re=Array.from(Ze.current.children),We=Re.length;if(typeof IntersectionObserver<"u"&&We>0&&J&&R!==!1){const ft=Re[0],yt=Re[We-1],bt={root:Ot.current,threshold:.99},Mt=Yn=>{ke(!Yn[0].isIntersecting)},It=new IntersectionObserver(Mt,bt);It.observe(ft);const en=Yn=>{Ve(!Yn[0].isIntersecting)},rn=new IntersectionObserver(en,bt);return rn.observe(yt),()=>{It.disconnect(),rn.disconnect()}}},[J,R,Be,p==null?void 0:p.length]),E.useEffect(()=>{xe(!0)},[]),E.useEffect(()=>{gt()}),E.useEffect(()=>{et(tk!==he)},[et,he]),E.useImperativeHandle(c,()=>({updateIndicator:gt,updateScrollButtons:Pe}),[gt,Pe]);const xt=y.jsx(mY,k({},O,{className:ye(L.indicator,O.className),ownerState:se,style:k({},he,O.style)}));let Ht=0;const fn=E.Children.map(p,Re=>{if(!E.isValidElement(Re))return null;const We=Re.props.value===void 0?Ht:Re.props.value;ze.set(We,Ht);const ft=We===D;return Ht+=1,E.cloneElement(Re,k({fullWidth:F==="fullWidth",indicator:ft&&!ve&&xt,selected:ft,selectionFollowsFocus:T,onChange:b,textColor:N,value:We},Ht===1&&D===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),Ue=Re=>{const We=Ze.current,ft=An(We).activeElement;if(ft.getAttribute("role")!=="tab")return;let bt=w==="horizontal"?"ArrowLeft":"ArrowUp",Mt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&s&&(bt="ArrowRight",Mt="ArrowLeft"),Re.key){case bt:Re.preventDefault(),Ff(We,ft,ek);break;case Mt:Re.preventDefault(),Ff(We,ft,ZR);break;case"Home":Re.preventDefault(),Ff(We,null,ZR);break;case"End":Re.preventDefault(),Ff(We,null,ek);break}},ut=qt();return y.jsxs(fY,k({className:ye(L.root,m),ownerState:se,ref:n,as:g},Y,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,y.jsxs(pY,{className:L.scroller,ownerState:se,style:{overflow:ct.overflow,[U?`margin${s?"Left":"Right"}`:"marginBottom"]:K?void 0:-ct.scrollbarWidth},ref:Ot,children:[y.jsx(hY,{"aria-label":l,"aria-labelledby":u,"aria-orientation":w==="vertical"?"vertical":null,className:L.flexContainer,ownerState:se,onKeyDown:Ue,ref:Ze,role:"tablist",children:fn}),ve&&xt]}),ut.scrollButtonEnd]}))});function vY(e){return Me("MuiTextField",e)}Ne("MuiTextField",["root"]);const bY=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],xY={standard:dy,filled:ay,outlined:yy},wY=e=>{const{classes:t}=e;return Le({root:["root"]},vY,t)},SY=re(Af,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:u,color:c="primary",defaultValue:f,disabled:p=!1,error:m=!1,FormHelperTextProps:g,fullWidth:S=!1,helperText:x,id:b,InputLabelProps:w,inputProps:P,InputProps:R,inputRef:T,label:A,maxRows:$,minRows:O,multiline:_=!1,name:N,onBlur:D,onChange:F,onFocus:K,placeholder:Y,required:J=!1,rows:U,select:oe=!1,SelectProps:G,type:W,value:M,variant:q="outlined"}=r,se=ge(r,bY),L=k({},r,{autoFocus:s,color:c,disabled:p,error:m,fullWidth:S,multiline:_,required:J,select:oe,variant:q}),ie=wY(L),Oe={};q==="outlined"&&(w&&typeof w.shrink<"u"&&(Oe.notched=w.shrink),Oe.label=A),oe&&((!G||!G.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const ve=Ia(b),xe=x&&ve?`${ve}-helper-text`:void 0,he=A&&ve?`${ve}-label`:void 0,Ie=xY[q],de=y.jsx(Ie,k({"aria-describedby":xe,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:S,multiline:_,name:N,rows:U,maxRows:$,minRows:O,type:W,value:M,id:ve,inputRef:T,onBlur:D,onChange:F,onFocus:K,placeholder:Y,inputProps:P},Oe,R));return y.jsxs(SY,k({className:ye(ie.root,u),disabled:p,error:m,fullWidth:S,ref:n,required:J,color:c,variant:q,ownerState:L},se,{children:[A!=null&&A!==""&&y.jsx(jf,k({htmlFor:ve,id:he},w,{children:A})),oe?y.jsx(nl,k({"aria-describedby":xe,id:ve,labelId:he,value:M,input:de},G,{children:l})):de,x&&y.jsx(I7,k({id:xe},g,{children:x}))]}))}),CY={open:!1,setOpen:()=>{},layout:{},isBreakpointUp:!1,currentPage:"",setCurrentPage:()=>{},showSearch:!1,setShowSearch:()=>{},showBackButton:!1,setShowBackButton:()=>{}},Qo=Z.createContext(CY),Sy=document.title,EY=({children:e})=>{const[t,n]=Z.useState(!1),[r,o]=Z.useState(""),[s,l]=Z.useState(!1),[u,c]=Z.useState(!1),f=_i("luminix.cms.layout",{}),p=rf(g=>g.breakpoints.up((f==null?void 0:f.breakpoint)||"md")),m={open:t,setOpen:n,layout:f,isBreakpointUp:p,currentPage:r,setCurrentPage:o,showSearch:s,setShowSearch:l,showBackButton:u,setShowBackButton:c};return Z.useEffect(()=>(document.title=r?`${r} | ${_i("app.name",Sy)}`:_i("app.name",Sy),()=>{document.title=Sy}),[r]),y.jsx(Qo.Provider,{value:m,children:e})},nk=Z.createContext({Model:null}),Cy=({Model:e,children:t})=>y.jsx(nk.Provider,{value:{Model:e},children:t}),RY=(...e)=>{console!=null&&console.warn&&(Hs(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},rk={},Ey=(...e)=>{Hs(e[0])&&rk[e[0]]||(Hs(e[0])&&(rk[e[0]]=new Date),RY(...e))},ok=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ik=(e,t,n)=>{e.loadNamespaces(t,ok(e,n))},sk=(e,t,n,r)=>{Hs(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,ok(e,r))},kY=(e,t,n={})=>!t.languages||!t.languages.length?(Ey("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var s;if(((s=n.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Hs=e=>typeof e=="string",PY=e=>typeof e=="object"&&e!==null,TY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$Y=e=>OY[e];let Ry={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(TY,$Y)};const AY=(e={})=>{Ry={...Ry,...e}},jY=()=>Ry;let ak;const _Y=e=>{ak=e},MY=()=>ak,IY={type:"3rdParty",init(e){AY(e.options.react),_Y(e)}},NY=E.createContext();class LY{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const DY=(e,t)=>{const n=E.useRef();return E.useEffect(()=>{n.current=e},[e,t]),n.current},lk=(e,t,n,r)=>e.getFixedT(t,n,r),FY=(e,t,n,r)=>E.useCallback(lk(e,t,n,r),[e,t,n,r]),Kn=(e,t={})=>{var A,$,O,_;const{i18n:n}=t,{i18n:r,defaultNS:o}=E.useContext(NY)||{},s=n||r||MY();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new LY),!s){Ey("You will need to pass in an i18next instance by using initReactI18next");const N=(F,K)=>Hs(K)?K:PY(K)&&Hs(K.defaultValue)?K.defaultValue:Array.isArray(F)?F[F.length-1]:F,D=[N,{},!1];return D.t=N,D.i18n={},D.ready=!1,D}(A=s.options.react)!=null&&A.wait&&Ey("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...jY(),...s.options.react,...t},{useSuspense:u,keyPrefix:c}=l;let f=o||(($=s.options)==null?void 0:$.defaultNS);f=Hs(f)?[f]:f||["translation"],(_=(O=s.reportNamespaces).addUsedNamespaces)==null||_.call(O,f);const p=(s.isInitialized||s.initializedStoreOnce)&&f.every(N=>kY(N,s,l)),m=FY(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),g=()=>m,S=()=>lk(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),[x,b]=E.useState(g);let w=f.join();t.lng&&(w=`${t.lng}${w}`);const P=DY(w),R=E.useRef(!0);E.useEffect(()=>{const{bindI18n:N,bindI18nStore:D}=l;R.current=!0,!p&&!u&&(t.lng?sk(s,t.lng,f,()=>{R.current&&b(S)}):ik(s,f,()=>{R.current&&b(S)})),p&&P&&P!==w&&R.current&&b(S);const F=()=>{R.current&&b(S)};return N&&(s==null||s.on(N,F)),D&&(s==null||s.store.on(D,F)),()=>{R.current=!1,s&&(N==null||N.split(" ").forEach(K=>s.off(K,F))),D&&s&&D.split(" ").forEach(K=>s.store.off(K,F))}},[s,w]),E.useEffect(()=>{R.current&&p&&b(g)},[s,c,p]);const T=[x,s,p];if(T.t=x,T.i18n=s,T.ready=p,p||!p&&!u)return T;throw new Promise(N=>{t.lng?sk(s,t.lng,f,()=>N()):ik(s,f,()=>N())})},ck=Z.createContext({isOpen:!1,dialog:()=>Promise.reject(new Error("Trying to access DialogContext outside of DialogProvider")),dismissDialog:()=>{},current:void 0});function BY(e){const[t,n]=Z.useState(e);return Z.useEffect(()=>{e&&n(e)},[e]),e||t}function zY({children:e,...t}){const[{current:n,resolve:r},o]=Z.useState({}),[s,l]=Z.useState(""),u=BY(n),{type:c="alert",dialogProps:f={},textFieldProps:p={}}=u??{},m=Z.useCallback(b=>new Promise(w=>{typeof b!="string"&&b.type==="prompt"&&l(b.defaultValue??""),o({current:typeof b=="string"?{message:b}:b,resolve:w})}),[]),{t:g}=Kn(),S=()=>{r&&r(!1),o({})},x=()=>{r&&r(c==="prompt"?s:!0),o({})};return y.jsxs(ck.Provider,{value:{isOpen:!!n,current:n,dialog:m,dismissDialog:S},children:[e,y.jsxs(ny,{open:!!n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...(n==null?void 0:n.dismissable)??!0?{onClose:S}:{},...t,...f,children:[(u==null?void 0:u.title)&&y.jsx(iy,{id:"alert-dialog-title",children:u.title}),y.jsxs(oy,{children:[y.jsx(UV,{id:"alert-dialog-description",children:u==null?void 0:u.message}),c==="prompt"&&y.jsx(ol,{autoFocus:!0,margin:"dense",id:"name",type:"text",fullWidth:!0,...p,value:s,onChange:b=>l(b.target.value)})]}),y.jsxs(ry,{children:[c!=="alert"&&y.jsxs(y.Fragment,{children:[y.jsx(or,{onClick:S,children:(u==null?void 0:u.cancelText)??g(c==="confirm"?"No":"Cancel")}),y.jsx(or,{onClick:x,autoFocus:c!=="prompt",children:(u==null?void 0:u.confirmText)??g(c==="confirm"?"Yes":"Ok")})]}),c==="alert"&&y.jsx(or,{onClick:S,autoFocus:!0,children:(u==null?void 0:u.confirmText)??g("Ok")})]})]})]})}const UY=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),uk=Rt(y.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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"}),"AddCircleOutline"),dk=Rt(y.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),fk=Rt(y.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),pk=Rt(y.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),WY=Rt(y.jsx("path",{d:"m12 2-5.5 9h11zm0 3.84L13.93 9h-3.87zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5m0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M3 21.5h8v-8H3zm2-6h4v4H5z"}),"CategoryOutlined"),Bf=Rt(y.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),zf=Rt(y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Uf=Rt(y.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"}),"Close"),HY=Rt(y.jsx("path",{d:"M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z"}),"DashboardOutlined"),hk=Rt(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),mk=Rt(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),gk=Rt(y.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),yk=Rt(y.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ky=Rt(y.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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"}),"HighlightOffOutlined"),vk=Rt(y.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),bk=Rt(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Py=Rt(y.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"}),"MoreVert"),VY=Rt(y.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"}),"PeopleOutlined"),Ty=Rt(y.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"}),"Search"),xk=Rt(y.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");function En(){const{isBreakpointUp:e}=E.useContext(Qo);return e}const Oy=Z.createContext({isOpen:!1,notify:()=>{},dismissNotification:()=>{},notifications:[],current:void 0,displacement:"8px",setDisplacement:()=>{}}),$y=Un([]),KY=e=>{$y.push(typeof e=="string"?{message:e}:e)},GY=({children:e,autoHideDuration:t=6e3,variant:n,anchorOrigin:r,sx:o,...s})=>{const l=Wm($y),u=En(),f=br().spacing(u?3:1),[p,m]=Z.useState(),[g,S]=Z.useState(f),{vertical:x="bottom"}=r||{},b=(w,P)=>{P!=="clickaway"&&m(void 0)};return Z.useEffect(()=>{if(!p&&l.isNotEmpty()){const w=setTimeout(()=>{m($y.pull(0)??void 0)},100);return()=>clearTimeout(w)}},[p,l]),y.jsxs(Oy.Provider,{value:{isOpen:!!p,notify:KY,dismissNotification:b,notifications:l.all(),current:p,displacement:g,setDisplacement:S},children:[e,y.jsx(cq,{open:!!p,autoHideDuration:t,anchorOrigin:r,onClose:b,sx:{...o,[x]:`${g} !important`},...s,children:p&&y.jsxs(e8,{onClose:b,severity:p.severity,variant:n,sx:{width:"100%"},action:p.actions&&[...p.actions.map(({label:w,callback:P},R)=>y.jsx(or,{color:"inherit",size:"small",onClick:P,children:w},R)),y.jsx(Hn,{"aria-label":"close",color:"inherit",size:"small",onClick:b,children:y.jsx(Uf,{})},"close")],children:[p.title&&y.jsx(d8,{children:p.title}),p.message]})})]})},qY=({children:e})=>{const t=rf("(prefers-color-scheme: dark)");return y.jsx(GY,{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:t?"standard":"filled",children:y.jsx(zY,{children:y.jsx(EY,{children:e})})})},QY=(e,{Layout:t,Dashboard:n,ModelIndex:r,ModelItem:o},s)=>[{element:y.jsx(qY,{children:y.jsx(t,{children:y.jsx(g4,{})})}),children:[{path:"/",name:"luminix.cms.dashboard",element:y.jsx(n,{})},...Object.entries(s).flatMap(([l,u])=>[{path:"/"+He.kebab(u.plural()),name:`luminix.cms.${l}.index`,element:y.jsx(Cy,{Model:u,children:y.jsx(xB,{factory:u.query,children:y.jsx(r,{})})})},{path:"/"+He.kebab(u.plural())+"/create",name:`luminix.cms.${l}.create`,element:y.jsx(Cy,{Model:u,children:y.jsx(o,{create:!0})})},{path:"/"+He.kebab(u.plural())+"/:id",name:`luminix.cms.${l}.show`,element:y.jsx(Cy,{Model:u,children:y.jsx(o,{})})}])]}];function Ay(e){const{setCurrentPage:t}=Z.useContext(Qo);Z.useEffect(()=>(t(e),()=>{t("")}),[e,t])}const YY=()=>{const{t:e}=Kn();return Ay(e("Dashboard")),y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:"Dashboard"})},XY=({error:e})=>y.jsxs("div",{children:[y.jsx("h1",{children:"Ops..."}),y.jsx("p",{children:"Something went wrong"}),Tt().hasDebugModeEnabled()&&e&&y.jsx(y.Fragment,{children:y.jsxs("pre",{style:{whiteSpace:"pre-wrap"},children:[e.message,y.jsx("br",{}),e.stack]})})]});function Wr(e,t){const{layout:n}=E.useContext(Qo);return E.useMemo(()=>je.get(n,e,t),[n,e,t])}const JY=re("div")(({theme:e})=>({padding:e.spacing(0,1),...e.mixins.toolbar})),ZY=({children:e,slotProps:t,...n})=>{const{DesktopPageTitle:r,["Layout.AppBar"]:o,["Layout.Drawer"]:s}=Tt("cms").getComponents(),l=Wr("appBar.height"),{AppBar:u,Drawer:c,main:f}=t||{};return y.jsxs(Ur,{sx:{display:"flex"},...n,children:[y.jsx(o,{position:"fixed",...u}),y.jsx(s,{...c}),y.jsxs(Ur,{component:"main",sx:{flexGrow:1},...f,children:[y.jsx(JY,{style:{height:l}}),y.jsx(r,{}),e]})]})};function eX(){const{setShowSearch:e}=Z.useContext(Qo);Z.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function xi(){const{Model:e}=Z.useContext(nk);return e}const tX=()=>{const e=xi(),{data:t,error:n,loading:r}=hc();Ay(e.plural()),eX();const o=En(),{Breadcrumbs:s,["ModelIndex.Pagination"]:l,["ModelIndex.StaticActions"]:u,["ModelIndex.Table"]:c,["ModelIndex.Table.TableBody"]:f,["ModelIndex.Table.TableHead"]:p,["ModelIndex.Table.TableFooter"]:m,["ModelIndex.Table.TableToolbar"]:g,["ModelIndex.Table.TableBody.TableRow"]:S,["ModelIndex.Tabs"]:x}=Tt("cms").getComponents();return y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:y.jsxs(vi,{container:!0,spacing:2,children:[y.jsxs(vi,{xs:12,display:"flex",flexDirection:"row",justifyContent:"space-between",children:[y.jsx(s,{parts:[{name:e.plural()}]}),y.jsx(u,{variant:o?"default":"fab"})]}),!o&&y.jsx(vi,{display:"flex",justifyContent:"center",xs:12,children:y.jsx(l,{variant:"compact"})}),y.jsx(vi,{xs:12,sx:{pb:0},children:y.jsx(x,{})}),y.jsx(vi,{xs:12,sx:{pt:0},children:y.jsxs(c,{items:t,loading:r,error:n,children:[y.jsx(p,{children:y.jsx(g,{})}),y.jsx(f,{children:b=>y.jsx(S,{item:b},b.getKey())}),y.jsx(m,{})]})})]})})};function nX(){const{setShowBackButton:e}=Z.useContext(Qo);Z.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function wk(e,t){return function(){return e.apply(t,arguments)}}const{toString:rX}=Object.prototype,{getPrototypeOf:jy}=Object,Wf=(e=>t=>{const n=rX.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>Wf(t)===e),Hf=e=>t=>typeof t===e,{isArray:il}=Array,nu=Hf("undefined");function oX(e){return e!==null&&!nu(e)&&e.constructor!==null&&!nu(e.constructor)&&Hr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sk=ko("ArrayBuffer");function iX(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sk(e.buffer),t}const sX=Hf("string"),Hr=Hf("function"),Ck=Hf("number"),Vf=e=>e!==null&&typeof e=="object",aX=e=>e===!0||e===!1,Kf=e=>{if(Wf(e)!=="object")return!1;const t=jy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lX=ko("Date"),cX=ko("File"),uX=ko("Blob"),dX=ko("FileList"),fX=e=>Vf(e)&&Hr(e.pipe),pX=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Hr(e.append)&&((t=Wf(e))==="formdata"||t==="object"&&Hr(e.toString)&&e.toString()==="[object FormData]"))},hX=ko("URLSearchParams"),[mX,gX,yX,vX]=["ReadableStream","Request","Response","Headers"].map(ko),bX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ru(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),il(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function Ek(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rk=e=>!nu(e)&&e!==Vs;function _y(){const{caseless:e}=Rk(this)&&this||{},t={},n=(r,o)=>{const s=e&&Ek(t,o)||o;Kf(t[s])&&Kf(r)?t[s]=_y(t[s],r):Kf(r)?t[s]=_y({},r):il(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ru(arguments[r],n);return t}const xX=(e,t,n,{allOwnKeys:r}={})=>(ru(t,(o,s)=>{n&&Hr(o)?e[s]=wk(o,n):e[s]=o},{allOwnKeys:r}),e),wX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),SX=(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)},CX=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&jy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},EX=(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},RX=e=>{if(!e)return null;if(il(e))return e;let t=e.length;if(!Ck(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jy(Uint8Array)),PX=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},TX=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OX=ko("HTMLFormElement"),$X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),kk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),AX=ko("RegExp"),Pk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ru(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},jX=e=>{Pk(e,(t,n)=>{if(Hr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Hr(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+"'")})}})},_X=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return il(e)?r(e):r(String(e).split(t)),n},MX=()=>{},IX=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,My="abcdefghijklmnopqrstuvwxyz",Tk="0123456789",Ok={DIGIT:Tk,ALPHA:My,ALPHA_DIGIT:My+My.toUpperCase()+Tk},NX=(e=16,t=Ok.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function LX(e){return!!(e&&Hr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const DX=e=>{const t=new Array(10),n=(r,o)=>{if(Vf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=il(r)?[]:{};return ru(r,(l,u)=>{const c=n(l,o+1);!nu(c)&&(s[u]=c)}),t[o]=void 0,s}}return r};return n(e,0)},FX=ko("AsyncFunction"),BX=e=>e&&(Vf(e)||Hr(e))&&Hr(e.then)&&Hr(e.catch),$k=((e,t)=>e?setImmediate:t?((n,r)=>(Vs.addEventListener("message",({source:o,data:s})=>{o===Vs&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Vs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Hr(Vs.postMessage)),zX=typeof queueMicrotask<"u"?queueMicrotask.bind(Vs):typeof process<"u"&&process.nextTick||$k,pe={isArray:il,isArrayBuffer:Sk,isBuffer:oX,isFormData:pX,isArrayBufferView:iX,isString:sX,isNumber:Ck,isBoolean:aX,isObject:Vf,isPlainObject:Kf,isReadableStream:mX,isRequest:gX,isResponse:yX,isHeaders:vX,isUndefined:nu,isDate:lX,isFile:cX,isBlob:uX,isRegExp:AX,isFunction:Hr,isStream:fX,isURLSearchParams:hX,isTypedArray:kX,isFileList:dX,forEach:ru,merge:_y,extend:xX,trim:bX,stripBOM:wX,inherits:SX,toFlatObject:CX,kindOf:Wf,kindOfTest:ko,endsWith:EX,toArray:RX,forEachEntry:PX,matchAll:TX,isHTMLForm:OX,hasOwnProperty:kk,hasOwnProp:kk,reduceDescriptors:Pk,freezeMethods:jX,toObjectSet:_X,toCamelCase:$X,noop:MX,toFiniteNumber:IX,findKey:Ek,global:Vs,isContextDefined:Rk,ALPHABET:Ok,generateString:NX,isSpecCompliantForm:LX,toJSONObject:DX,isAsyncFn:FX,isThenable:BX,setImmediate:$k,asap:zX};function St(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)}pe.inherits(St,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:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const Ak=St.prototype,jk={};["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=>{jk[e]={value:e}}),Object.defineProperties(St,jk),Object.defineProperty(Ak,"isAxiosError",{value:!0}),St.from=(e,t,n,r,o,s)=>{const l=Object.create(Ak);return pe.toFlatObject(e,l,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),St.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const UX=null;function Iy(e){return pe.isPlainObject(e)||pe.isArray(e)}function _k(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function Mk(e,t,n){return e?e.concat(t).map(function(o,s){return o=_k(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function WX(e){return pe.isArray(e)&&!e.some(Iy)}const HX=pe.toFlatObject(pe,{},null,function(t){return/^is[A-Z]/.test(t)});function Gf(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!pe.isUndefined(w[b])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(t);if(!pe.isFunction(o))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(pe.isDate(x))return x.toISOString();if(!c&&pe.isBlob(x))throw new St("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(x)||pe.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,b,w){let P=x;if(x&&!w&&typeof x=="object"){if(pe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),x=JSON.stringify(x);else if(pe.isArray(x)&&WX(x)||(pe.isFileList(x)||pe.endsWith(b,"[]"))&&(P=pe.toArray(x)))return b=_k(b),P.forEach(function(T,A){!(pe.isUndefined(T)||T===null)&&t.append(l===!0?Mk([b],A,s):l===null?b:b+"[]",f(T))}),!1}return Iy(x)?!0:(t.append(Mk(w,b,s),f(x)),!1)}const m=[],g=Object.assign(HX,{defaultVisitor:p,convertValue:f,isVisitable:Iy});function S(x,b){if(!pe.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(x),pe.forEach(x,function(P,R){(!(pe.isUndefined(P)||P===null)&&o.call(t,P,pe.isString(R)?R.trim():R,b,g))===!0&&S(P,b?b.concat(R):[R])}),m.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ik(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ny(e,t){this._pairs=[],e&&Gf(e,this,t)}const Nk=Ny.prototype;Nk.append=function(t,n){this._pairs.push([t,n])},Nk.toString=function(t){const n=t?function(r){return t.call(this,r,Ik)}:Ik;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function VX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lk(e,t,n){if(!t)return e;const r=n&&n.encode||VX,o=n&&n.serialize;let s;if(o?s=o(t,n):s=pe.isURLSearchParams(t)?t.toString():new Ny(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Dk{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){pe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KX={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ny,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ly=typeof window<"u"&&typeof document<"u",Dy=typeof navigator=="object"&&navigator||void 0,GX=Ly&&(!Dy||["ReactNative","NativeScript","NS"].indexOf(Dy.product)<0),qX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QX=Ly&&window.location.href||"http://localhost",Sr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ly,hasStandardBrowserEnv:GX,hasStandardBrowserWebWorkerEnv:qX,navigator:Dy,origin:QX},Symbol.toStringTag,{value:"Module"})),...KX};function YX(e,t){return Gf(e,new Sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Sr.isNode&&pe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function XX(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JX(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Bk(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=n.length;return l=!l&&pe.isArray(o)?o.length:l,c?(pe.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!pe.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&pe.isArray(o[l])&&(o[l]=JX(o[l])),!u)}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const n={};return pe.forEachEntry(e,(r,o)=>{t(XX(r),o,n,0)}),n}return null}function ZX(e,t,n){if(pe.isString(e))try{return(t||JSON.parse)(e),pe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ou={transitional:Fk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=pe.isObject(t);if(s&&pe.isHTMLForm(t)&&(t=new FormData(t)),pe.isFormData(t))return o?JSON.stringify(Bk(t)):t;if(pe.isArrayBuffer(t)||pe.isBuffer(t)||pe.isStream(t)||pe.isFile(t)||pe.isBlob(t)||pe.isReadableStream(t))return t;if(pe.isArrayBufferView(t))return t.buffer;if(pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YX(t,this.formSerializer).toString();if((u=pe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gf(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),ZX(t)):t}],transformResponse:[function(t){const n=this.transitional||ou.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(pe.isResponse(t)||pe.isReadableStream(t))return t;if(t&&pe.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?St.from(u,St.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sr.classes.FormData,Blob:Sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],e=>{ou.headers[e]={}});const eJ=pe.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"]),tJ=e=>{const t={};let n,r,o;return e&&e.split(`
174
+ ${e.palette.mode==="light"?_c(mt(e.palette.divider,1),.88):jc(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${pQ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),bi=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:u,scope:c,size:f,sortDirection:p,variant:m}=r,g=ge(r,hQ),S=E.useContext(KR),x=E.useContext(tu),b=x&&x.variant==="head";let w;l?w=l:w=b?"th":"td";let P=c;w==="td"?P=void 0:!P&&b&&(P="col");const R=m||x&&x.variant,T=k({},r,{align:o,component:w,padding:u||(S&&S.padding?S.padding:"normal"),size:f||(S&&S.size?S.size:"medium"),sortDirection:p,stickyHeader:R==="head"&&S&&S.stickyHeader,variant:R}),A=mQ(T);let $=null;return p&&($=p==="asc"?"ascending":"descending"),y.jsx(gQ,k({as:w,ref:n,className:ye(A.root,s),"aria-sort":$,scope:P,ownerState:T},g))});function yQ(e){return Me("MuiTableContainer",e)}Ne("MuiTableContainer",["root"]);const vQ=["className","component"],bQ=e=>{const{classes:t}=e;return Le({root:["root"]},yQ,t)},xQ=re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),wQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,l=ge(r,vQ),u=k({},r,{component:s}),c=bQ(u);return y.jsx(xQ,k({ref:n,as:s,className:ye(c.root,o),ownerState:u},l))});function SQ(e){return Me("MuiTableFooter",e)}Ne("MuiTableFooter",["root"]);const CQ=["className","component"],EQ=e=>{const{classes:t}=e;return Le({root:["root"]},SQ,t)},RQ=re("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),kQ={variant:"footer"},QR="tfoot",PQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableFooter"}),{className:o,component:s=QR}=r,l=ge(r,CQ),u=k({},r,{component:s}),c=EQ(u);return y.jsx(tu.Provider,{value:kQ,children:y.jsx(RQ,k({as:s,className:ye(c.root,o),ref:n,role:s===QR?null:"rowgroup",ownerState:u},l))})});function TQ(e){return Me("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const OQ=["className","component"],$Q=e=>{const{classes:t}=e;return Le({root:["root"]},TQ,t)},AQ=re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),jQ={variant:"head"},YR="thead",_Q=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:o,component:s=YR}=r,l=ge(r,OQ),u=k({},r,{component:s}),c=$Q(u);return y.jsx(tu.Provider,{value:jQ,children:y.jsx(AQ,k({as:s,className:ye(c.root,o),ref:n,role:s===YR?null:"rowgroup",ownerState:u},l))})});function MQ(e){return Me("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const IQ=["className","component","disableGutters","variant"],NQ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Le({root:["root",!n&&"gutters",r]},MQ,t)},LQ=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>k({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),DQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:l=!1,variant:u="regular"}=r,c=ge(r,IQ),f=k({},r,{component:s,disableGutters:l,variant:u}),p=NQ(f);return y.jsx(LQ,k({as:s,className:ye(p.root,o),ref:n,ownerState:f},c))}),FQ=Rt(y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),BQ=Rt(y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zQ(e){return Me("MuiTableRow",e)}const XR=Ne("MuiTableRow",["root","selected","hover","head","footer"]),UQ=["className","component","hover","selected"],WQ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Le({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},zQ,t)},HQ=re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${XR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${XR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(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}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),JR="tr",rl=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:o,component:s=JR,hover:l=!1,selected:u=!1}=r,c=ge(r,UQ),f=E.useContext(tu),p=k({},r,{component:s,hover:l,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"}),m=WQ(p);return y.jsx(HQ,k({as:s,ref:n,className:ye(m.root,o),role:s===JR?null:"row",ownerState:p},c))}),VQ=Rt(y.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function KQ(e){return Me("MuiTableSortLabel",e)}const xy=Ne("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),GQ=["active","children","className","direction","hideSortIcon","IconComponent"],qQ=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${le(n)}`]};return Le(o,KQ,t)},QQ=re(Dr,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${xy.icon}`]:{opacity:.5}},[`&.${xy.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${xy.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),YQ=re("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${le(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),XQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:s,className:l,direction:u="asc",hideSortIcon:c=!1,IconComponent:f=VQ}=r,p=ge(r,GQ),m=k({},r,{active:o,direction:u,hideSortIcon:c,IconComponent:f}),g=qQ(m);return y.jsxs(QQ,k({className:ye(g.root,l),component:"span",disableRipple:!0,ownerState:m,ref:n},p,{children:[s,c&&!o?null:y.jsx(YQ,{as:f,className:ye(g.icon),ownerState:m})]}))});function JQ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ZQ(e,t,n,r={},o=()=>{}){const{ease:s=JQ,duration:l=300}=r;let u=null;const c=t[e];let f=!1;const p=()=>{f=!0},m=g=>{if(f){o(new Error("Animation cancelled"));return}u===null&&(u=g);const S=Math.min(1,(g-u)/l);if(t[e]=s(S)*(n-c)+c,S>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(m)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(m),p)}const eY=["onChange"],tY={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function nY(e){const{onChange:t}=e,n=ge(e,eY),r=E.useRef(),o=E.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return vr(()=>{const l=Pc(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),u=Eo(o.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),E.useEffect(()=>{s(),t(r.current)},[t]),y.jsx("div",k({style:tY,ref:o},n))}function rY(e){return Me("MuiTabScrollButton",e)}const oY=Ne("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),iY=["className","slots","slotProps","direction","orientation","disabled"],sY=e=>{const{classes:t,orientation:n,disabled:r}=e;return Le({root:["root",n,r&&"disabled"]},rY,t)},aY=re(Dr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>k({width:40,flexShrink:0,opacity:.8,[`&.${oY.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),lY=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiTabScrollButton"}),{className:l,slots:u={},slotProps:c={},direction:f}=s,p=ge(s,iY),m=Oc(),g=k({isRtl:m},s),S=sY(g),x=(r=u.StartScrollButtonIcon)!=null?r:FQ,b=(o=u.EndScrollButtonIcon)!=null?o:BQ,w=rr({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),P=rr({elementType:b,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return y.jsx(aY,k({component:"div",className:ye(S.root,l),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:f==="left"?y.jsx(x,k({},w)):y.jsx(b,k({},P))}))});function cY(e){return Me("MuiTabs",e)}const wy=Ne("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),uY=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ZR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ek=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ff=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},dY=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:l,scrollButtonsHideMobile:u,classes:c}=e;return Le({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},cY,c)},fY=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wy.scrollButtons}`]:t.scrollButtons},{[`& .${wy.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>k({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${wy.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),pY=re("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]}})(({ownerState:e})=>k({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),hY=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>k({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),mY=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>k({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gY=re(nY)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),tk={},yY=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabs"}),o=br(),s=Oc(),{"aria-label":l,"aria-labelledby":u,action:c,centered:f=!1,children:p,className:m,component:g="div",allowScrollButtonsMobile:S=!1,indicatorColor:x="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:P=lY,scrollButtons:R="auto",selectionFollowsFocus:T,slots:A={},slotProps:$={},TabIndicatorProps:O={},TabScrollButtonProps:_={},textColor:N="primary",value:D,variant:F="standard",visibleScrollbar:K=!1}=r,Y=ge(r,uY),J=F==="scrollable",U=w==="vertical",oe=U?"scrollTop":"scrollLeft",G=U?"top":"left",W=U?"bottom":"right",M=U?"clientHeight":"clientWidth",q=U?"height":"width",se=k({},r,{component:g,allowScrollButtonsMobile:S,indicatorColor:x,orientation:w,vertical:U,scrollButtons:R,textColor:N,variant:F,visibleScrollbar:K,fixed:!J,hideScrollbar:J&&!K,scrollableX:J&&!U,scrollableY:J&&U,centered:f&&!J,scrollButtonsHideMobile:!S}),L=dY(se),ie=rr({elementType:A.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:se}),Oe=rr({elementType:A.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:se}),[ve,xe]=E.useState(!1),[he,Ie]=E.useState(tk),[de,ke]=E.useState(!1),[Qe,Ve]=E.useState(!1),[Be,Je]=E.useState(!1),[ct,ot]=E.useState({overflow:"hidden",scrollbarWidth:0}),ze=new Map,Ot=E.useRef(null),Ze=E.useRef(null),$t=()=>{const Re=Ot.current;let We;if(Re){const yt=Re.getBoundingClientRect();We={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:p3(Re,s?"rtl":"ltr"),scrollWidth:Re.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ft;if(Re&&D!==!1){const yt=Ze.current.children;if(yt.length>0){const bt=yt[ze.get(D)];ft=bt?bt.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:ft}},gt=Nn(()=>{const{tabsMeta:Re,tabMeta:We}=$t();let ft=0,yt;if(U)yt="top",We&&Re&&(ft=We.top-Re.top+Re.scrollTop);else if(yt=s?"right":"left",We&&Re){const Mt=s?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;ft=(s?-1:1)*(We[yt]-Re[yt]+Mt)}const bt={[yt]:ft,[q]:We?We[q]:0};if(isNaN(he[yt])||isNaN(he[q]))Ie(bt);else{const Mt=Math.abs(he[yt]-bt[yt]),It=Math.abs(he[q]-bt[q]);(Mt>=1||It>=1)&&Ie(bt)}}),dt=(Re,{animation:We=!0}={})=>{We?ZQ(oe,Ot.current,Re,{duration:o.transitions.duration.standard}):Ot.current[oe]=Re},_t=Re=>{let We=Ot.current[oe];U?We+=Re:(We+=Re*(s?-1:1),We*=s&&EC()==="reverse"?-1:1),dt(We)},Pt=()=>{const Re=Ot.current[M];let We=0;const ft=Array.from(Ze.current.children);for(let yt=0;yt<ft.length;yt+=1){const bt=ft[yt];if(We+bt[M]>Re){yt===0&&(We=Re);break}We+=bt[M]}return We},pt=()=>{_t(-1*Pt())},Ft=()=>{_t(Pt())},Yt=E.useCallback(Re=>{ot({overflow:null,scrollbarWidth:Re})},[]),qt=()=>{const Re={};Re.scrollbarSizeListener=J?y.jsx(gY,{onChange:Yt,className:ye(L.scrollableX,L.hideScrollbar)}):null;const ft=J&&(R==="auto"&&(de||Qe)||R===!0);return Re.scrollButtonStart=ft?y.jsx(P,k({slots:{StartScrollButtonIcon:A.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:w,direction:s?"right":"left",onClick:pt,disabled:!de},_,{className:ye(L.scrollButtons,_.className)})):null,Re.scrollButtonEnd=ft?y.jsx(P,k({slots:{EndScrollButtonIcon:A.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:w,direction:s?"left":"right",onClick:Ft,disabled:!Qe},_,{className:ye(L.scrollButtons,_.className)})):null,Re},et=Nn(Re=>{const{tabsMeta:We,tabMeta:ft}=$t();if(!(!ft||!We)){if(ft[G]<We[G]){const yt=We[oe]+(ft[G]-We[G]);dt(yt,{animation:Re})}else if(ft[W]>We[W]){const yt=We[oe]+(ft[W]-We[W]);dt(yt,{animation:Re})}}}),Pe=Nn(()=>{J&&R!==!1&&Je(!Be)});E.useEffect(()=>{const Re=Pc(()=>{Ot.current&&gt()});let We;const ft=Mt=>{Mt.forEach(It=>{It.removedNodes.forEach(en=>{var rn;(rn=We)==null||rn.unobserve(en)}),It.addedNodes.forEach(en=>{var rn;(rn=We)==null||rn.observe(en)})}),Re(),Pe()},yt=Eo(Ot.current);yt.addEventListener("resize",Re);let bt;return typeof ResizeObserver<"u"&&(We=new ResizeObserver(Re),Array.from(Ze.current.children).forEach(Mt=>{We.observe(Mt)})),typeof MutationObserver<"u"&&(bt=new MutationObserver(ft),bt.observe(Ze.current,{childList:!0})),()=>{var Mt,It;Re.clear(),yt.removeEventListener("resize",Re),(Mt=bt)==null||Mt.disconnect(),(It=We)==null||It.disconnect()}},[gt,Pe]),E.useEffect(()=>{const Re=Array.from(Ze.current.children),We=Re.length;if(typeof IntersectionObserver<"u"&&We>0&&J&&R!==!1){const ft=Re[0],yt=Re[We-1],bt={root:Ot.current,threshold:.99},Mt=Yn=>{ke(!Yn[0].isIntersecting)},It=new IntersectionObserver(Mt,bt);It.observe(ft);const en=Yn=>{Ve(!Yn[0].isIntersecting)},rn=new IntersectionObserver(en,bt);return rn.observe(yt),()=>{It.disconnect(),rn.disconnect()}}},[J,R,Be,p==null?void 0:p.length]),E.useEffect(()=>{xe(!0)},[]),E.useEffect(()=>{gt()}),E.useEffect(()=>{et(tk!==he)},[et,he]),E.useImperativeHandle(c,()=>({updateIndicator:gt,updateScrollButtons:Pe}),[gt,Pe]);const xt=y.jsx(mY,k({},O,{className:ye(L.indicator,O.className),ownerState:se,style:k({},he,O.style)}));let Ht=0;const fn=E.Children.map(p,Re=>{if(!E.isValidElement(Re))return null;const We=Re.props.value===void 0?Ht:Re.props.value;ze.set(We,Ht);const ft=We===D;return Ht+=1,E.cloneElement(Re,k({fullWidth:F==="fullWidth",indicator:ft&&!ve&&xt,selected:ft,selectionFollowsFocus:T,onChange:b,textColor:N,value:We},Ht===1&&D===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),Ue=Re=>{const We=Ze.current,ft=An(We).activeElement;if(ft.getAttribute("role")!=="tab")return;let bt=w==="horizontal"?"ArrowLeft":"ArrowUp",Mt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&s&&(bt="ArrowRight",Mt="ArrowLeft"),Re.key){case bt:Re.preventDefault(),Ff(We,ft,ek);break;case Mt:Re.preventDefault(),Ff(We,ft,ZR);break;case"Home":Re.preventDefault(),Ff(We,null,ZR);break;case"End":Re.preventDefault(),Ff(We,null,ek);break}},ut=qt();return y.jsxs(fY,k({className:ye(L.root,m),ownerState:se,ref:n,as:g},Y,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,y.jsxs(pY,{className:L.scroller,ownerState:se,style:{overflow:ct.overflow,[U?`margin${s?"Left":"Right"}`:"marginBottom"]:K?void 0:-ct.scrollbarWidth},ref:Ot,children:[y.jsx(hY,{"aria-label":l,"aria-labelledby":u,"aria-orientation":w==="vertical"?"vertical":null,className:L.flexContainer,ownerState:se,onKeyDown:Ue,ref:Ze,role:"tablist",children:fn}),ve&&xt]}),ut.scrollButtonEnd]}))});function vY(e){return Me("MuiTextField",e)}Ne("MuiTextField",["root"]);const bY=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],xY={standard:dy,filled:ay,outlined:yy},wY=e=>{const{classes:t}=e;return Le({root:["root"]},vY,t)},SY=re(Af,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:u,color:c="primary",defaultValue:f,disabled:p=!1,error:m=!1,FormHelperTextProps:g,fullWidth:S=!1,helperText:x,id:b,InputLabelProps:w,inputProps:P,InputProps:R,inputRef:T,label:A,maxRows:$,minRows:O,multiline:_=!1,name:N,onBlur:D,onChange:F,onFocus:K,placeholder:Y,required:J=!1,rows:U,select:oe=!1,SelectProps:G,type:W,value:M,variant:q="outlined"}=r,se=ge(r,bY),L=k({},r,{autoFocus:s,color:c,disabled:p,error:m,fullWidth:S,multiline:_,required:J,select:oe,variant:q}),ie=wY(L),Oe={};q==="outlined"&&(w&&typeof w.shrink<"u"&&(Oe.notched=w.shrink),Oe.label=A),oe&&((!G||!G.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const ve=Ia(b),xe=x&&ve?`${ve}-helper-text`:void 0,he=A&&ve?`${ve}-label`:void 0,Ie=xY[q],de=y.jsx(Ie,k({"aria-describedby":xe,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:S,multiline:_,name:N,rows:U,maxRows:$,minRows:O,type:W,value:M,id:ve,inputRef:T,onBlur:D,onChange:F,onFocus:K,placeholder:Y,inputProps:P},Oe,R));return y.jsxs(SY,k({className:ye(ie.root,u),disabled:p,error:m,fullWidth:S,ref:n,required:J,color:c,variant:q,ownerState:L},se,{children:[A!=null&&A!==""&&y.jsx(jf,k({htmlFor:ve,id:he},w,{children:A})),oe?y.jsx(nl,k({"aria-describedby":xe,id:ve,labelId:he,value:M,input:de},G,{children:l})):de,x&&y.jsx(IV,k({id:xe},g,{children:x}))]}))}),CY={open:!1,setOpen:()=>{},layout:{},isBreakpointUp:!1,currentPage:"",setCurrentPage:()=>{},showSearch:!1,setShowSearch:()=>{},showBackButton:!1,setShowBackButton:()=>{}},Qo=Z.createContext(CY),Sy=document.title,EY=({children:e})=>{const[t,n]=Z.useState(!1),[r,o]=Z.useState(""),[s,l]=Z.useState(!1),[u,c]=Z.useState(!1),f=_i("luminix.cms.layout",{}),p=rf(g=>g.breakpoints.up((f==null?void 0:f.breakpoint)||"md")),m={open:t,setOpen:n,layout:f,isBreakpointUp:p,currentPage:r,setCurrentPage:o,showSearch:s,setShowSearch:l,showBackButton:u,setShowBackButton:c};return Z.useEffect(()=>(document.title=r?`${r} | ${_i("app.name",Sy)}`:_i("app.name",Sy),()=>{document.title=Sy}),[r]),y.jsx(Qo.Provider,{value:m,children:e})},nk=Z.createContext({Model:null}),Cy=({Model:e,children:t})=>y.jsx(nk.Provider,{value:{Model:e},children:t}),RY=(...e)=>{console!=null&&console.warn&&(Hs(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},rk={},Ey=(...e)=>{Hs(e[0])&&rk[e[0]]||(Hs(e[0])&&(rk[e[0]]=new Date),RY(...e))},ok=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ik=(e,t,n)=>{e.loadNamespaces(t,ok(e,n))},sk=(e,t,n,r)=>{Hs(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,ok(e,r))},kY=(e,t,n={})=>!t.languages||!t.languages.length?(Ey("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var s;if(((s=n.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Hs=e=>typeof e=="string",PY=e=>typeof e=="object"&&e!==null,TY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$Y=e=>OY[e];let Ry={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(TY,$Y)};const AY=(e={})=>{Ry={...Ry,...e}},jY=()=>Ry;let ak;const _Y=e=>{ak=e},MY=()=>ak,IY={type:"3rdParty",init(e){AY(e.options.react),_Y(e)}},NY=E.createContext();class LY{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const DY=(e,t)=>{const n=E.useRef();return E.useEffect(()=>{n.current=e},[e,t]),n.current},lk=(e,t,n,r)=>e.getFixedT(t,n,r),FY=(e,t,n,r)=>E.useCallback(lk(e,t,n,r),[e,t,n,r]),Kn=(e,t={})=>{var A,$,O,_;const{i18n:n}=t,{i18n:r,defaultNS:o}=E.useContext(NY)||{},s=n||r||MY();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new LY),!s){Ey("You will need to pass in an i18next instance by using initReactI18next");const N=(F,K)=>Hs(K)?K:PY(K)&&Hs(K.defaultValue)?K.defaultValue:Array.isArray(F)?F[F.length-1]:F,D=[N,{},!1];return D.t=N,D.i18n={},D.ready=!1,D}(A=s.options.react)!=null&&A.wait&&Ey("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...jY(),...s.options.react,...t},{useSuspense:u,keyPrefix:c}=l;let f=o||(($=s.options)==null?void 0:$.defaultNS);f=Hs(f)?[f]:f||["translation"],(_=(O=s.reportNamespaces).addUsedNamespaces)==null||_.call(O,f);const p=(s.isInitialized||s.initializedStoreOnce)&&f.every(N=>kY(N,s,l)),m=FY(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),g=()=>m,S=()=>lk(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),[x,b]=E.useState(g);let w=f.join();t.lng&&(w=`${t.lng}${w}`);const P=DY(w),R=E.useRef(!0);E.useEffect(()=>{const{bindI18n:N,bindI18nStore:D}=l;R.current=!0,!p&&!u&&(t.lng?sk(s,t.lng,f,()=>{R.current&&b(S)}):ik(s,f,()=>{R.current&&b(S)})),p&&P&&P!==w&&R.current&&b(S);const F=()=>{R.current&&b(S)};return N&&(s==null||s.on(N,F)),D&&(s==null||s.store.on(D,F)),()=>{R.current=!1,s&&(N==null||N.split(" ").forEach(K=>s.off(K,F))),D&&s&&D.split(" ").forEach(K=>s.store.off(K,F))}},[s,w]),E.useEffect(()=>{R.current&&p&&b(g)},[s,c,p]);const T=[x,s,p];if(T.t=x,T.i18n=s,T.ready=p,p||!p&&!u)return T;throw new Promise(N=>{t.lng?sk(s,t.lng,f,()=>N()):ik(s,f,()=>N())})},ck=Z.createContext({isOpen:!1,dialog:()=>Promise.reject(new Error("Trying to access DialogContext outside of DialogProvider")),dismissDialog:()=>{},current:void 0});function BY(e){const[t,n]=Z.useState(e);return Z.useEffect(()=>{e&&n(e)},[e]),e||t}function zY({children:e,...t}){const[{current:n,resolve:r},o]=Z.useState({}),[s,l]=Z.useState(""),u=BY(n),{type:c="alert",dialogProps:f={},textFieldProps:p={}}=u??{},m=Z.useCallback(b=>new Promise(w=>{typeof b!="string"&&b.type==="prompt"&&l(b.defaultValue??""),o({current:typeof b=="string"?{message:b}:b,resolve:w})}),[]),{t:g}=Kn(),S=()=>{r&&r(!1),o({})},x=()=>{r&&r(c==="prompt"?s:!0),o({})};return y.jsxs(ck.Provider,{value:{isOpen:!!n,current:n,dialog:m,dismissDialog:S},children:[e,y.jsxs(ny,{open:!!n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...(n==null?void 0:n.dismissable)??!0?{onClose:S}:{},...t,...f,children:[(u==null?void 0:u.title)&&y.jsx(iy,{id:"alert-dialog-title",children:u.title}),y.jsxs(oy,{children:[y.jsx(U7,{id:"alert-dialog-description",children:u==null?void 0:u.message}),c==="prompt"&&y.jsx(ol,{autoFocus:!0,margin:"dense",id:"name",type:"text",fullWidth:!0,...p,value:s,onChange:b=>l(b.target.value)})]}),y.jsxs(ry,{children:[c!=="alert"&&y.jsxs(y.Fragment,{children:[y.jsx(or,{onClick:S,children:(u==null?void 0:u.cancelText)??g(c==="confirm"?"No":"Cancel")}),y.jsx(or,{onClick:x,autoFocus:c!=="prompt",children:(u==null?void 0:u.confirmText)??g(c==="confirm"?"Yes":"Ok")})]}),c==="alert"&&y.jsx(or,{onClick:S,autoFocus:!0,children:(u==null?void 0:u.confirmText)??g("Ok")})]})]})]})}const UY=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),uk=Rt(y.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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"}),"AddCircleOutline"),dk=Rt(y.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),fk=Rt(y.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),pk=Rt(y.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),WY=Rt(y.jsx("path",{d:"m12 2-5.5 9h11zm0 3.84L13.93 9h-3.87zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5m0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M3 21.5h8v-8H3zm2-6h4v4H5z"}),"CategoryOutlined"),Bf=Rt(y.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),zf=Rt(y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Uf=Rt(y.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"}),"Close"),HY=Rt(y.jsx("path",{d:"M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z"}),"DashboardOutlined"),hk=Rt(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),mk=Rt(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),gk=Rt(y.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),yk=Rt(y.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ky=Rt(y.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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"}),"HighlightOffOutlined"),vk=Rt(y.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),bk=Rt(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Py=Rt(y.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"}),"MoreVert"),VY=Rt(y.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"}),"PeopleOutlined"),Ty=Rt(y.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"}),"Search"),xk=Rt(y.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");function En(){const{isBreakpointUp:e}=E.useContext(Qo);return e}const Oy=Z.createContext({isOpen:!1,notify:()=>{},dismissNotification:()=>{},notifications:[],current:void 0,displacement:"8px",setDisplacement:()=>{}}),$y=Un([]),KY=e=>{$y.push(typeof e=="string"?{message:e}:e)},GY=({children:e,autoHideDuration:t=6e3,variant:n,anchorOrigin:r,sx:o,...s})=>{const l=Wm($y),u=En(),f=br().spacing(u?3:1),[p,m]=Z.useState(),[g,S]=Z.useState(f),{vertical:x="bottom"}=r||{},b=(w,P)=>{P!=="clickaway"&&m(void 0)};return Z.useEffect(()=>{if(!p&&l.isNotEmpty()){const w=setTimeout(()=>{m($y.pull(0)??void 0)},100);return()=>clearTimeout(w)}},[p,l]),y.jsxs(Oy.Provider,{value:{isOpen:!!p,notify:KY,dismissNotification:b,notifications:l.all(),current:p,displacement:g,setDisplacement:S},children:[e,y.jsx(cq,{open:!!p,autoHideDuration:t,anchorOrigin:r,onClose:b,sx:{...o,[x]:`${g} !important`},...s,children:p&&y.jsxs(e8,{onClose:b,severity:p.severity,variant:n,sx:{width:"100%"},action:p.actions&&[...p.actions.map(({label:w,callback:P},R)=>y.jsx(or,{color:"inherit",size:"small",onClick:P,children:w},R)),y.jsx(Hn,{"aria-label":"close",color:"inherit",size:"small",onClick:b,children:y.jsx(Uf,{})},"close")],children:[p.title&&y.jsx(d8,{children:p.title}),p.message]})})]})},qY=({children:e})=>{const t=rf("(prefers-color-scheme: dark)");return y.jsx(GY,{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:t?"standard":"filled",children:y.jsx(zY,{children:y.jsx(EY,{children:e})})})},QY=(e,{Layout:t,Dashboard:n,ModelIndex:r,ModelItem:o},s)=>[{element:y.jsx(qY,{children:y.jsx(t,{children:y.jsx(g4,{})})}),children:[{path:"/",name:"luminix.cms.dashboard",element:y.jsx(n,{})},...Object.entries(s).flatMap(([l,u])=>[{path:"/"+He.kebab(u.plural()),name:`luminix.cms.${l}.index`,element:y.jsx(Cy,{Model:u,children:y.jsx(xB,{factory:u.query,children:y.jsx(r,{})})})},{path:"/"+He.kebab(u.plural())+"/create",name:`luminix.cms.${l}.create`,element:y.jsx(Cy,{Model:u,children:y.jsx(o,{create:!0})})},{path:"/"+He.kebab(u.plural())+"/:id",name:`luminix.cms.${l}.show`,element:y.jsx(Cy,{Model:u,children:y.jsx(o,{})})}])]}];function Ay(e){const{setCurrentPage:t}=Z.useContext(Qo);Z.useEffect(()=>(t(e),()=>{t("")}),[e,t])}const YY=()=>{const{t:e}=Kn();return Ay(e("Dashboard")),y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:"Dashboard"})},XY=({error:e})=>y.jsxs("div",{children:[y.jsx("h1",{children:"Ops..."}),y.jsx("p",{children:"Something went wrong"}),Tt().hasDebugModeEnabled()&&e&&y.jsx(y.Fragment,{children:y.jsxs("pre",{style:{whiteSpace:"pre-wrap"},children:[e.message,y.jsx("br",{}),e.stack]})})]});function Wr(e,t){const{layout:n}=E.useContext(Qo);return E.useMemo(()=>je.get(n,e,t),[n,e,t])}const JY=re("div")(({theme:e})=>({padding:e.spacing(0,1),...e.mixins.toolbar})),ZY=({children:e,slotProps:t,...n})=>{const{DesktopPageTitle:r,["Layout.AppBar"]:o,["Layout.Drawer"]:s}=Tt("cms").getComponents(),l=Wr("appBar.height"),{AppBar:u,Drawer:c,main:f}=t||{};return y.jsxs(Ur,{sx:{display:"flex"},...n,children:[y.jsx(o,{position:"fixed",...u}),y.jsx(s,{...c}),y.jsxs(Ur,{component:"main",sx:{flexGrow:1},...f,children:[y.jsx(JY,{style:{height:l}}),y.jsx(r,{}),e]})]})};function eX(){const{setShowSearch:e}=Z.useContext(Qo);Z.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function xi(){const{Model:e}=Z.useContext(nk);return e}const tX=()=>{const e=xi(),{data:t,error:n,loading:r}=hc();Ay(e.plural()),eX();const o=En(),{Breadcrumbs:s,["ModelIndex.Pagination"]:l,["ModelIndex.StaticActions"]:u,["ModelIndex.Table"]:c,["ModelIndex.Table.TableBody"]:f,["ModelIndex.Table.TableHead"]:p,["ModelIndex.Table.TableFooter"]:m,["ModelIndex.Table.TableToolbar"]:g,["ModelIndex.Table.TableBody.TableRow"]:S,["ModelIndex.Tabs"]:x}=Tt("cms").getComponents();return y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:y.jsxs(vi,{container:!0,spacing:2,children:[y.jsxs(vi,{xs:12,display:"flex",flexDirection:"row",justifyContent:"space-between",children:[y.jsx(s,{parts:[{name:e.plural()}]}),y.jsx(u,{variant:o?"default":"fab"})]}),!o&&y.jsx(vi,{display:"flex",justifyContent:"center",xs:12,children:y.jsx(l,{variant:"compact"})}),y.jsx(vi,{xs:12,sx:{pb:0},children:y.jsx(x,{})}),y.jsx(vi,{xs:12,sx:{pt:0},children:y.jsxs(c,{items:t,loading:r,error:n,children:[y.jsx(p,{children:y.jsx(g,{})}),y.jsx(f,{children:b=>y.jsx(S,{item:b},b.getKey())}),y.jsx(m,{})]})})]})})};function nX(){const{setShowBackButton:e}=Z.useContext(Qo);Z.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function wk(e,t){return function(){return e.apply(t,arguments)}}const{toString:rX}=Object.prototype,{getPrototypeOf:jy}=Object,Wf=(e=>t=>{const n=rX.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>Wf(t)===e),Hf=e=>t=>typeof t===e,{isArray:il}=Array,nu=Hf("undefined");function oX(e){return e!==null&&!nu(e)&&e.constructor!==null&&!nu(e.constructor)&&Hr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sk=ko("ArrayBuffer");function iX(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sk(e.buffer),t}const sX=Hf("string"),Hr=Hf("function"),Ck=Hf("number"),Vf=e=>e!==null&&typeof e=="object",aX=e=>e===!0||e===!1,Kf=e=>{if(Wf(e)!=="object")return!1;const t=jy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lX=ko("Date"),cX=ko("File"),uX=ko("Blob"),dX=ko("FileList"),fX=e=>Vf(e)&&Hr(e.pipe),pX=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Hr(e.append)&&((t=Wf(e))==="formdata"||t==="object"&&Hr(e.toString)&&e.toString()==="[object FormData]"))},hX=ko("URLSearchParams"),[mX,gX,yX,vX]=["ReadableStream","Request","Response","Headers"].map(ko),bX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ru(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),il(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function Ek(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rk=e=>!nu(e)&&e!==Vs;function _y(){const{caseless:e}=Rk(this)&&this||{},t={},n=(r,o)=>{const s=e&&Ek(t,o)||o;Kf(t[s])&&Kf(r)?t[s]=_y(t[s],r):Kf(r)?t[s]=_y({},r):il(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ru(arguments[r],n);return t}const xX=(e,t,n,{allOwnKeys:r}={})=>(ru(t,(o,s)=>{n&&Hr(o)?e[s]=wk(o,n):e[s]=o},{allOwnKeys:r}),e),wX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),SX=(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)},CX=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&jy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},EX=(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},RX=e=>{if(!e)return null;if(il(e))return e;let t=e.length;if(!Ck(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jy(Uint8Array)),PX=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},TX=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OX=ko("HTMLFormElement"),$X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),kk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),AX=ko("RegExp"),Pk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ru(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},jX=e=>{Pk(e,(t,n)=>{if(Hr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Hr(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+"'")})}})},_X=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return il(e)?r(e):r(String(e).split(t)),n},MX=()=>{},IX=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,My="abcdefghijklmnopqrstuvwxyz",Tk="0123456789",Ok={DIGIT:Tk,ALPHA:My,ALPHA_DIGIT:My+My.toUpperCase()+Tk},NX=(e=16,t=Ok.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function LX(e){return!!(e&&Hr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const DX=e=>{const t=new Array(10),n=(r,o)=>{if(Vf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=il(r)?[]:{};return ru(r,(l,u)=>{const c=n(l,o+1);!nu(c)&&(s[u]=c)}),t[o]=void 0,s}}return r};return n(e,0)},FX=ko("AsyncFunction"),BX=e=>e&&(Vf(e)||Hr(e))&&Hr(e.then)&&Hr(e.catch),$k=((e,t)=>e?setImmediate:t?((n,r)=>(Vs.addEventListener("message",({source:o,data:s})=>{o===Vs&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Vs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Hr(Vs.postMessage)),zX=typeof queueMicrotask<"u"?queueMicrotask.bind(Vs):typeof process<"u"&&process.nextTick||$k,pe={isArray:il,isArrayBuffer:Sk,isBuffer:oX,isFormData:pX,isArrayBufferView:iX,isString:sX,isNumber:Ck,isBoolean:aX,isObject:Vf,isPlainObject:Kf,isReadableStream:mX,isRequest:gX,isResponse:yX,isHeaders:vX,isUndefined:nu,isDate:lX,isFile:cX,isBlob:uX,isRegExp:AX,isFunction:Hr,isStream:fX,isURLSearchParams:hX,isTypedArray:kX,isFileList:dX,forEach:ru,merge:_y,extend:xX,trim:bX,stripBOM:wX,inherits:SX,toFlatObject:CX,kindOf:Wf,kindOfTest:ko,endsWith:EX,toArray:RX,forEachEntry:PX,matchAll:TX,isHTMLForm:OX,hasOwnProperty:kk,hasOwnProp:kk,reduceDescriptors:Pk,freezeMethods:jX,toObjectSet:_X,toCamelCase:$X,noop:MX,toFiniteNumber:IX,findKey:Ek,global:Vs,isContextDefined:Rk,ALPHABET:Ok,generateString:NX,isSpecCompliantForm:LX,toJSONObject:DX,isAsyncFn:FX,isThenable:BX,setImmediate:$k,asap:zX};function St(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)}pe.inherits(St,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:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const Ak=St.prototype,jk={};["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=>{jk[e]={value:e}}),Object.defineProperties(St,jk),Object.defineProperty(Ak,"isAxiosError",{value:!0}),St.from=(e,t,n,r,o,s)=>{const l=Object.create(Ak);return pe.toFlatObject(e,l,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),St.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const UX=null;function Iy(e){return pe.isPlainObject(e)||pe.isArray(e)}function _k(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function Mk(e,t,n){return e?e.concat(t).map(function(o,s){return o=_k(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function WX(e){return pe.isArray(e)&&!e.some(Iy)}const HX=pe.toFlatObject(pe,{},null,function(t){return/^is[A-Z]/.test(t)});function Gf(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!pe.isUndefined(w[b])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(t);if(!pe.isFunction(o))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(pe.isDate(x))return x.toISOString();if(!c&&pe.isBlob(x))throw new St("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(x)||pe.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,b,w){let P=x;if(x&&!w&&typeof x=="object"){if(pe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),x=JSON.stringify(x);else if(pe.isArray(x)&&WX(x)||(pe.isFileList(x)||pe.endsWith(b,"[]"))&&(P=pe.toArray(x)))return b=_k(b),P.forEach(function(T,A){!(pe.isUndefined(T)||T===null)&&t.append(l===!0?Mk([b],A,s):l===null?b:b+"[]",f(T))}),!1}return Iy(x)?!0:(t.append(Mk(w,b,s),f(x)),!1)}const m=[],g=Object.assign(HX,{defaultVisitor:p,convertValue:f,isVisitable:Iy});function S(x,b){if(!pe.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(x),pe.forEach(x,function(P,R){(!(pe.isUndefined(P)||P===null)&&o.call(t,P,pe.isString(R)?R.trim():R,b,g))===!0&&S(P,b?b.concat(R):[R])}),m.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ik(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ny(e,t){this._pairs=[],e&&Gf(e,this,t)}const Nk=Ny.prototype;Nk.append=function(t,n){this._pairs.push([t,n])},Nk.toString=function(t){const n=t?function(r){return t.call(this,r,Ik)}:Ik;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function VX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lk(e,t,n){if(!t)return e;const r=n&&n.encode||VX,o=n&&n.serialize;let s;if(o?s=o(t,n):s=pe.isURLSearchParams(t)?t.toString():new Ny(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Dk{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){pe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KX={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ny,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ly=typeof window<"u"&&typeof document<"u",Dy=typeof navigator=="object"&&navigator||void 0,GX=Ly&&(!Dy||["ReactNative","NativeScript","NS"].indexOf(Dy.product)<0),qX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QX=Ly&&window.location.href||"http://localhost",Sr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ly,hasStandardBrowserEnv:GX,hasStandardBrowserWebWorkerEnv:qX,navigator:Dy,origin:QX},Symbol.toStringTag,{value:"Module"})),...KX};function YX(e,t){return Gf(e,new Sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Sr.isNode&&pe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function XX(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JX(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Bk(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=n.length;return l=!l&&pe.isArray(o)?o.length:l,c?(pe.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!pe.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&pe.isArray(o[l])&&(o[l]=JX(o[l])),!u)}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const n={};return pe.forEachEntry(e,(r,o)=>{t(XX(r),o,n,0)}),n}return null}function ZX(e,t,n){if(pe.isString(e))try{return(t||JSON.parse)(e),pe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ou={transitional:Fk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=pe.isObject(t);if(s&&pe.isHTMLForm(t)&&(t=new FormData(t)),pe.isFormData(t))return o?JSON.stringify(Bk(t)):t;if(pe.isArrayBuffer(t)||pe.isBuffer(t)||pe.isStream(t)||pe.isFile(t)||pe.isBlob(t)||pe.isReadableStream(t))return t;if(pe.isArrayBufferView(t))return t.buffer;if(pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YX(t,this.formSerializer).toString();if((u=pe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gf(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),ZX(t)):t}],transformResponse:[function(t){const n=this.transitional||ou.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(pe.isResponse(t)||pe.isReadableStream(t))return t;if(t&&pe.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?St.from(u,St.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sr.classes.FormData,Blob:Sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],e=>{ou.headers[e]={}});const eJ=pe.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"]),tJ=e=>{const t={};let n,r,o;return e&&e.split(`
175
175
  `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&eJ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zk=Symbol("internals");function iu(e){return e&&String(e).trim().toLowerCase()}function qf(e){return e===!1||e==null?e:pe.isArray(e)?e.map(qf):String(e)}function nJ(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 rJ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fy(e,t,n,r,o){if(pe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!pe.isString(t)){if(pe.isString(r))return t.indexOf(r)!==-1;if(pe.isRegExp(r))return r.test(t)}}function oJ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function iJ(e,t){const n=pe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let Cr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(u,c,f){const p=iu(c);if(!p)throw new Error("header name must be a non-empty string");const m=pe.findKey(o,p);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||c]=qf(u))}const l=(u,c)=>pe.forEach(u,(f,p)=>s(f,p,c));if(pe.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(pe.isString(t)&&(t=t.trim())&&!rJ(t))l(tJ(t),n);else if(pe.isHeaders(t))for(const[u,c]of t.entries())s(c,u,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=iu(t),t){const r=pe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return nJ(o);if(pe.isFunction(n))return n.call(this,o,r);if(pe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iu(t),t){const r=pe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=iu(l),l){const u=pe.findKey(r,l);u&&(!n||Fy(r,r[u],u,n))&&(delete r[u],o=!0)}}return pe.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Fy(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return pe.forEach(this,(o,s)=>{const l=pe.findKey(r,s);if(l){n[l]=qf(o),delete n[s];return}const u=t?oJ(s):String(s).trim();u!==s&&delete n[s],n[u]=qf(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&pe.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(`
176
176
  `)}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[zk]=this[zk]={accessors:{}}).accessors,o=this.prototype;function s(l){const u=iu(l);r[u]||(iJ(o,l),r[u]=!0)}return pe.isArray(t)?t.forEach(s):s(t),this}};Cr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Cr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),pe.freezeMethods(Cr);function By(e,t){const n=this||ou,r=t||n,o=Cr.from(r.headers);let s=r.data;return pe.forEach(e,function(u){s=u.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Uk(e){return!!(e&&e.__CANCEL__)}function sl(e,t,n){St.call(this,e??"canceled",St.ERR_CANCELED,t,n),this.name="CanceledError"}pe.inherits(sl,St,{__CANCEL__:!0});function Wk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new St("Request failed with status code "+n.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sJ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aJ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[s];l||(l=f),n[o]=c,r[o]=f;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-l<t)return;const S=p&&f-p;return S?Math.round(g*1e3/S):void 0}}function lJ(e,t){let n=0,r=1e3/t,o,s;const l=(f,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(o=f,s||(s=setTimeout(()=>{s=null,l(o)},r-m)))},()=>o&&l(o)]}const Qf=(e,t,n=3)=>{let r=0;const o=aJ(50,250);return lJ(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,c=l-r,f=o(c),p=l<=u;r=l;const m={loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-l)/f:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},n)},Hk=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Vk=e=>(...t)=>pe.asap(()=>e(...t)),cJ=Sr.hasStandardBrowserEnv?function(){const t=Sr.navigator&&/(msie|trident)/i.test(Sr.navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=pe.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),uJ=Sr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];pe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),pe.isString(r)&&l.push("path="+r),pe.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.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 dJ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fJ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kk(e,t){return e&&!dJ(t)?fJ(e,t):t}const Gk=e=>e instanceof Cr?{...e}:e;function Ks(e,t){t=t||{};const n={};function r(f,p,m){return pe.isPlainObject(f)&&pe.isPlainObject(p)?pe.merge.call({caseless:m},f,p):pe.isPlainObject(p)?pe.merge({},p):pe.isArray(p)?p.slice():p}function o(f,p,m){if(pe.isUndefined(p)){if(!pe.isUndefined(f))return r(void 0,f,m)}else return r(f,p,m)}function s(f,p){if(!pe.isUndefined(p))return r(void 0,p)}function l(f,p){if(pe.isUndefined(p)){if(!pe.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(f,p)=>o(Gk(f),Gk(p),!0)};return pe.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=c[p]||o,g=m(e[p],t[p],p);pe.isUndefined(g)&&m!==u||(n[p]=g)}),n}const qk=e=>{const t=Ks({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=t;t.headers=l=Cr.from(l),t.url=Lk(Kk(t.baseURL,t.url),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(pe.isFormData(n)){if(Sr.hasStandardBrowserEnv||Sr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[f,...p]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Sr.hasStandardBrowserEnv&&(r&&pe.isFunction(r)&&(r=r(t)),r||r!==!1&&cJ(t.url))){const f=o&&s&&uJ.read(s);f&&l.set(o,f)}return t},pJ=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=qk(e);let s=o.data;const l=Cr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,m,g,S,x;function b(){S&&S(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function P(){if(!w)return;const T=Cr.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),$={data:!u||u==="text"||u==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:e,request:w};Wk(function(_){n(_),b()},function(_){r(_),b()},$),w=null}"onloadend"in w?w.onloadend=P:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(P)},w.onabort=function(){w&&(r(new St("Request aborted",St.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new St("Network Error",St.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Fk;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new St(A,$.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,e,w)),w=null},s===void 0&&l.setContentType(null),"setRequestHeader"in w&&pe.forEach(l.toJSON(),function(A,$){w.setRequestHeader($,A)}),pe.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),u&&u!=="json"&&(w.responseType=o.responseType),f&&([g,x]=Qf(f,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,S]=Qf(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(p=T=>{w&&(r(!T||T.type?new sl(null,e,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const R=sJ(o.url);if(R&&Sr.protocols.indexOf(R)===-1){r(new St("Unsupported protocol "+R+":",St.ERR_BAD_REQUEST,e));return}w.send(s||null)})},hJ=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof St?p:new sl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new St(`timeout ${t} of ms exceeded`,St.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>pe.asap(u),c}},mJ=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gJ=async function*(e,t){for await(const n of yJ(e))yield*mJ(n,t)},yJ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Qk=(e,t,n,r)=>{const o=gJ(e,t);let s=0,l,u=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let m=p.byteLength;if(n){let g=s+=m;n(g)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Yf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yk=Yf&&typeof ReadableStream=="function",vJ=Yf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bJ=Yk&&Xk(()=>{let e=!1;const t=new Request(Sr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jk=64*1024,zy=Yk&&Xk(()=>pe.isReadableStream(new Response("").body)),Xf={stream:zy&&(e=>e.body)};Yf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xf[t]&&(Xf[t]=pe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new St(`Response type '${t}' is not supported`,St.ERR_NOT_SUPPORT,r)})})})(new Response);const xJ=async e=>{if(e==null)return 0;if(pe.isBlob(e))return e.size;if(pe.isSpecCompliantForm(e))return(await new Request(Sr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(e)||pe.isArrayBuffer(e))return e.byteLength;if(pe.isURLSearchParams(e)&&(e=e+""),pe.isString(e))return(await vJ(e)).byteLength},wJ=async(e,t)=>{const n=pe.toFiniteNumber(e.getContentLength());return n??xJ(t)},Uy={http:UX,xhr:pJ,fetch:Yf&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:g}=qk(e);f=f?(f+"").toLowerCase():"text";let S=hJ([o,s&&s.toAbortSignal()],l),x;const b=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let w;try{if(c&&bJ&&n!=="get"&&n!=="head"&&(w=await wJ(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(pe.isFormData(r)&&(O=$.headers.get("content-type"))&&p.setContentType(O),$.body){const[_,N]=Hk(w,Qf(Vk(c)));r=Qk($.body,Jk,_,N)}}pe.isString(m)||(m=m?"include":"omit");const P="credentials"in Request.prototype;x=new Request(t,{...g,signal:S,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:P?m:void 0});let R=await fetch(x);const T=zy&&(f==="stream"||f==="response");if(zy&&(u||T&&b)){const $={};["status","statusText","headers"].forEach(D=>{$[D]=R[D]});const O=pe.toFiniteNumber(R.headers.get("content-length")),[_,N]=u&&Hk(O,Qf(Vk(u),!0))||[];R=new Response(Qk(R.body,Jk,_,()=>{N&&N(),b&&b()}),$)}f=f||"text";let A=await Xf[pe.findKey(Xf,f)||"text"](R,e);return!T&&b&&b(),await new Promise(($,O)=>{Wk($,O,{data:A,headers:Cr.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:x})})}catch(P){throw b&&b(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new St("Network Error",St.ERR_NETWORK,e,x),{cause:P.cause||P}):St.from(P,P&&P.code,e,x)}})};pe.forEach(Uy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zk=e=>`- ${e}`,SJ=e=>pe.isFunction(e)||e===null||e===!1,eP={getAdapter:e=>{e=pe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!SJ(n)&&(r=Uy[(l=String(n)).toLowerCase()],r===void 0))throw new St(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
177
177
  `+s.map(Zk).join(`
178
178
  `):" "+Zk(s[0]):"as no adapter specified";throw new St("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Uy};function Wy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sl(null,e)}function tP(e){return Wy(e),e.headers=Cr.from(e.headers),e.data=By.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eP.getAdapter(e.adapter||ou.adapter)(e).then(function(r){return Wy(e),r.data=By.call(e,e.transformResponse,r),r.headers=Cr.from(r.headers),r},function(r){return Uk(r)||(Wy(e),r&&r.response&&(r.response.data=By.call(e,e.transformResponse,r.response),r.response.headers=Cr.from(r.response.headers))),Promise.reject(r)})}const nP="1.7.7",Hy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rP={};Hy.transitional=function(t,n,r){function o(s,l){return"[Axios v"+nP+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new St(o(l," has been removed"+(n?" in "+n:"")),St.ERR_DEPRECATED);return n&&!rP[l]&&(rP[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};function CJ(e,t,n){if(typeof e!="object")throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const u=e[s],c=u===void 0||l(u,s,e);if(c!==!0)throw new St("option "+s+" must be "+c,St.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new St("Unknown option "+s,St.ERR_BAD_OPTION)}}const Vy={assertOptions:CJ,validators:Hy},Xi=Vy.validators;let Gs=class{constructor(t){this.defaults=t,this.interceptors={request:new Dk,response:new Dk}}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 s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
179
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ks(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Vy.assertOptions(r,{silentJSONParsing:Xi.transitional(Xi.boolean),forcedJSONParsing:Xi.transitional(Xi.boolean),clarifyTimeoutError:Xi.transitional(Xi.boolean)},!1),o!=null&&(pe.isFunction(o)?n.paramsSerializer={serialize:o}:Vy.assertOptions(o,{encode:Xi.function,serialize:Xi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[n.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=Cr.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let p,m=0,g;if(!c){const x=[tP.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=tP.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Ks(this.defaults,t);const n=Kk(t.baseURL,t.url);return Lk(n,t.params,t.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(t){Gs.prototype[t]=function(n,r){return this.request(Ks(r||{},{method:t,url:n,data:(r||{}).data}))}}),pe.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Ks(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Gs.prototype[t]=n(),Gs.prototype[t+"Form"]=n(!0)});let EJ=class YO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new sl(s,l,u),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 YO(function(o){t=o}),cancel:t}}};function RJ(e){return function(n){return e.apply(null,n)}}function kJ(e){return pe.isObject(e)&&e.isAxiosError===!0}const Ky={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(Ky).forEach(([e,t])=>{Ky[t]=e});function oP(e){const t=new Gs(e),n=wk(Gs.prototype.request,t);return pe.extend(n,Gs.prototype,t,{allOwnKeys:!0}),pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return oP(Ks(e,o))},n}const On=oP(ou);On.Axios=Gs,On.CanceledError=sl,On.CancelToken=EJ,On.isCancel=Uk,On.VERSION=nP,On.toFormData=Gf,On.AxiosError=St,On.Cancel=On.CanceledError,On.all=function(t){return Promise.all(t)},On.spread=RJ,On.isAxiosError=kJ,On.mergeConfig=Ks,On.AxiosHeaders=Cr,On.formToJSON=e=>Bk(pe.isHTMLForm(e)?new FormData(e):e),On.getAdapter=eP.getAdapter,On.HttpStatusCode=Ky,On.default=On;const{Axios:Cne,AxiosError:Ene,CanceledError:Rne,isCancel:kne,CancelToken:Pne,VERSION:Tne,all:One,Cancel:$ne,isAxiosError:PJ,spread:Ane,toFormData:jne,AxiosHeaders:_ne,HttpStatusCode:Mne,formToJSON:Ine,getAdapter:Nne,mergeConfig:Lne}=On;function qs(e){return t=>{var n;if(!(t instanceof Error))throw t;e({message:PJ(t)?((n=t.response)==null?void 0:n.data.message)??t.message:t.message,severity:"error"})}}function Gy(){return Z.useContext(Oy).notify}function TJ(){const e=Gy();return Z.useCallback(t=>{qs(e)(t)},[e])}const OJ=({create:e=!1})=>{const[t,n]=Z.useState(),{id:r}=r4(),{t:o}=Kn(),s=Gy(),l=dc(),u=xi(),c=Wr("breakpoint","md");Ay(t!=null&&t.exists?o("Edit :model “:label“",{model:u.singular(),label:(t==null?void 0:t.getLabel())||"..."}):o("Create :model",{model:u.singular()})),nX();const f=Tt("cms").getComponent("Breadcrumbs");Z.useEffect(()=>{e?n(new u):u.find(r).then(S=>n(S??void 0))},[r,u,e]);const p=Z.useCallback(()=>{s(o(":model saved successfully",{model:u.singular()})),t!=null&&t.wasRecentlyCreated&&l(`/${He.kebab(u.plural())}/${t.getKey()}`)},[s,l,u,t,o]),m=TJ(),g=Z.useMemo(()=>Tt("cms").getModelFormProps(t),[t]);return t?y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:y.jsxs(vi,{container:!0,children:[y.jsx(vi,{xs:12,children:y.jsx(f,{parts:[{name:u.plural(),href:"/"+He.kebab(u.plural())},{name:t.exists?t.getLabel():o("New")}]})}),y.jsx(vi,{xs:12,[c]:6,children:y.jsx(Bd,{submitText:"Save",...g,item:t,onSuccess:p,onError:m})})]})}):null};function $J(e){const{setDisplacement:t}=Z.useContext(Oy),n=br(),r=En(),o=n.spacing(r?3:1),s=e===!1?o:n.spacing(e);Z.useEffect(()=>(t(s),()=>{t(o)}),[s,o,t])}function AJ(){return Z.useContext(ck).dialog}function qy(){const e=dc(),t=Gy(),n=AJ(),{t:r}=Kn(),{refresh:o}=hc();return{navigate:e,notify:t,dialog:n,t:r,refresh:o}}const jJ=re(sy)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),_J=re(wq)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),MJ=({variant:e="default"})=>{const t=xi(),n=En(),[r]=So(),o=r.get("tab")??"all",[s,l]=Z.useState(!1),u=Z.useRef(null),[c,f]=Z.useState(0),p=qy(),m=Z.useMemo(()=>Tt("cms").getStaticActions(t,o),[t,o]);if($J(e==="fab"&&m.length>0?n?12:10:!1),m.length===0)return null;const g=(b,w)=>{f(w),l(!1)},S=()=>{l(b=>!b)},x=b=>{u.current&&u.current.contains(b.target)||l(!1)};return e==="fab"?m.length===1?bs.createPortal(y.jsx(jJ,{color:"primary",onClick:()=>m[0].callback(p),children:m[0].icon||m[0].label.charAt(0).toUpperCase()}),document.body):bs.createPortal(y.jsx(_J,{ariaLabel:`actions for ${t.singular()}`,icon:y.jsx(HR,{}),color:"primary",onClose:()=>l(!1),onOpen:()=>l(!0),open:s,children:m.map(b=>y.jsx(Lq,{icon:b.icon||b.label.charAt(0).toUpperCase(),tooltipTitle:b.label,onClick:()=>b.callback(p)},b.label))}),document.body):y.jsxs(y.Fragment,{children:[y.jsxs(EH,{variant:"contained",ref:u,"aria-label":m[c].label,children:[y.jsx(or,{onClick:()=>m[c].callback(p),children:m[c].label}),m.length>1&&y.jsx(or,{variant:"contained",size:"small","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,"aria-label":`select ${t.singular()} actions`,"aria-haspopup":"menu",onClick:S,children:y.jsx(fk,{})})]}),y.jsx(Vc,{open:s,anchorEl:u.current,role:void 0,transition:!0,children:({TransitionProps:b,placement:w})=>y.jsx(Za,{...b,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:y.jsx(oo,{children:y.jsx(eR,{onClickAway:x,children:y.jsx(xR,{id:"split-button-menu",children:m.map((P,R)=>y.jsx(Gi,{selected:R===c,onClick:T=>g(T,R),children:P.label},P.label))})})})})})]})};function Qy(){const{open:e,setOpen:t}=Z.useContext(Qo);return{open:e,handleDrawerOpen:()=>{t(!0)},handleDrawerClose:()=>{t(!1)},toggle:()=>{t(s=>!s)}}}function iP(){const{currentPage:e}=Z.useContext(Qo);return e}function sP(){const{showSearch:e}=Z.useContext(Qo);return e}function aP(){const{showBackButton:e}=Z.useContext(Qo);return e}const IJ=re(pE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({theme:e,open:t,drawerWidth:n,height:r})=>({zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),height:r,...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),NJ=re(pE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({height:e})=>({height:e})),LJ=({slots:e={},...t})=>{const n=En(),r=n?IJ:NJ,{["Layout.AppBar.MenuButton"]:o,["Layout.SearchBar"]:s,["Layout.BackButton"]:l,["Layout.AppLogo"]:u}=Tt("cms").getComponents(),{open:c}=Qy(),f=sP(),p=aP(),m=Wr("appBar.height"),g=Wr("drawer.width",280),{start:S=null,end:x=null}=e,b=iP();return y.jsx(r,{open:c,height:m,drawerWidth:g,...t,children:y.jsxs(DQ,{children:[(n&&!c||!n&&!p)&&y.jsx(o,{}),!n&&p&&y.jsx(l,{}),n?null:S,y.jsx(bn,{width:"100%",variant:"h6",noWrap:!0,component:"div",children:!n&&b||_i("app.name",document.title)}),y.jsx(Ur,{sx:{flexGrow:1}}),y.jsxs(Ur,{display:"flex",alignItems:"center",children:[f&&y.jsx(s,{}),x||y.jsx(u,{})]})]})})};function DJ(e){return y.jsx(Hn,{component:Ld,to:-1,edge:"start",color:"inherit","aria-label":"back",...e,children:y.jsx(Bf,{})})}const lP=(e,t)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),cP=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(9)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(10)} + 1px)`}}),FJ=re(lR,{shouldForwardProp:e=>!["open","width"].includes(String(e))})(({theme:e,open:t,width:n})=>({flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...lP(e,n),"& .MuiDrawer-paper":lP(e,n)},...!t&&{...cP(e),"& .MuiDrawer-paper":cP(e)}})),BJ=re(lR,{shouldForwardProp:e=>e!=="width"})(()=>({})),zJ=re("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(0,1),...e.mixins.toolbar})),UJ=e=>{const t=br(),n=En(),{open:r,handleDrawerClose:o}=Qy(),s=n?FJ:BJ,l=Wr("drawer.width",280),u=Wr("appBar.height"),c=Tt("cms").getComponent("RecursiveList"),f=Tt("cms").getMenuItems();return y.jsxs(s,{variant:n?"permanent":"temporary",open:r,width:l,onClose:o,PaperProps:{sx:{width:l}},sx:{display:"flex",direction:"flex-column",flexWrap:"nowrap",height:"100%"},...e,children:[y.jsx(zJ,{style:{height:u},children:y.jsx(Hn,{onClick:o,children:t.direction==="ltr"?y.jsx(Bf,{}):y.jsx(zf,{})})}),y.jsx(Gc,{}),y.jsx(Ur,{sx:{flexGrow:1,overflowY:"auto",overflowX:"hidden"},children:y.jsx(c,{collapsed:!r&&n,items:f,onClick:()=>!n&&o()})})]})},WJ=()=>{const e=iP(),t=Wr("breakpoint","md"),n=aP(),{["Layout.BackButton"]:r}=Tt("cms").getComponents();return y.jsxs(oo,{sx:{display:{xs:"none",[t]:"flex"},boxShadow:o=>o.shadows[3],py:2,px:3,borderRadius:0,alignItems:"center"},children:[n&&y.jsx(r,{}),y.jsx(bn,{variant:"h5",noWrap:!0,children:e})]})},Yy=Z.createContext({Model:null,anchorEl:null,setAnchorEl:()=>{},columnsFilter:[],setColumnsFilter:()=>{},searchParams:new URLSearchParams,setSearchParams:()=>{},handleApplyFilters:()=>{},clearSearchParams:()=>{},clearFilters:()=>{}}),al=Z.createContext({key:"",type:"",operator:"",value:"",isRelation:!1,setKey:()=>{},setType:()=>{},setOperator:()=>{},setValue:()=>{},setIsRelation:()=>{}}),HJ=e=>{if(!Array.isArray(e))return e;let t;return je.isEmpty(e)?t="":t=e[0],t},VJ=e=>{if(Array.isArray(e))return e;let t;return je.isEmpty(e)?t=[]:t=[e,""],t},KJ=async(e,t,n)=>{const r=e.getSchema().relations[t],o=nc().make(r.model),s=o.getSchema().primaryKey,l=[];for(const u of n){const c=await o.where(s,u).first();l.push(c)}return l};function GJ(e,t){const n=Tt("filter"),{Model:r,setColumnsFilter:o}=Z.useContext(Yy),[s,l]=Z.useState(t.key),[u,c]=Z.useState(t.operator),[f,p]=Z.useState(t.type),[m,g]=Z.useState(t.value),[S,x]=Z.useState(t.nullable),[b,w]=Z.useState(t.is_relation),P=Z.useMemo(()=>n.getFilterableColumns(r),[r]),R=$=>()=>{o(O=>O.filter((_,N)=>N!==$))},T=async $=>{const O=$.target.value,_=P.find(K=>K.key===O),N=(_==null?void 0:_.type)??"text",D=(_==null?void 0:_.nullable)??!1,F=(_==null?void 0:_.is_relation)??!1;F?(c("relation"),g([])):b&&c("equals"),w(F),x(D),N!==f&&(c("equals"),g(()=>{if(["between","notBetween"].includes(u))return[];switch(n.getInputType(N)){case"number":return 0;case"boolean":return 0;default:return""}})),l(O),p(N)},A=async $=>{const O=$.target.value;u!==O&&g(_=>{switch(O){case"between":case"notBetween":return VJ(_);case"null":case"notNull":return"1";default:return HJ(_)}}),c(O)};return Z.useEffect(()=>{o($=>$.map((_,N)=>e===N?{..._,key:s,operator:u,type:f,value:m,nullable:S,is_relation:b}:_))},[s,u,f,m,S,b]),{columns:P,key:s,setKey:l,operator:u,setOperator:c,type:f,setType:p,value:m,setValue:g,nullable:S,setNullable:x,isRelation:b,setIsRelation:w,handleKey:T,handleOperator:A,handleRemoveColumn:R}}const uP=async(e,t,n)=>{const r=e.getSchema().relations[t].model,{data:o}=await nc().make(r).get(),s=o.all().filter(f=>!n.find(p=>p.getKey()===f.getKey())),l=s.length,u=n.length,c=15;return l+u>c?Un([...n,...s.slice(0,c-u)]):Un([...n,...s])},qJ=async(e,t,n="",r)=>{const o=e.getSchema().relations[t],s=nc().make(o.model),l=s.getSchema().primaryKey,{data:u}=await s.searchBy(n).get();return Un([...r,...u]).unique(l)},QJ=()=>{const e=En(),t=xi(),{key:n,value:r,setValue:o}=Z.useContext(al),[s,l]=Z.useState(!1),[u,c]=Z.useState(""),[f,p]=Z.useState(Un([])),[m,g]=Z.useState([]),S=Z.useMemo(()=>s&&f.count()===0,[s,f]),x=async(b,w)=>{c(w),je.isEmpty(w)||p(await qJ(t,n,w,Un(m)))};return Z.useEffect(()=>{r.length>0&&(async()=>g(await KJ(t,n,r)))()},[]),Z.useEffect(()=>{let b=!0;if(S)return(async()=>b&&p(await uP(t,n,m)))(),()=>{b=!1}},[S]),Z.useEffect(()=>{o(m.map(b=>b.getKey())),je.isEmpty(u)?(async()=>p(await uP(t,n,m)))():p(Un([]))},[m]),y.jsx(OW,{sx:{width:e?377:"100%"},open:s,onOpen:()=>{l(!0)},onClose:()=>{l(!1)},value:m,onChange:(b,w)=>{g(w)},inputValue:u,onInputChange:x,options:f.all()||[],getOptionLabel:b=>b.getLabel(),isOptionEqualToValue:(b,w)=>b.getKey()===w.getKey(),filterOptions:b=>b,renderInput:b=>y.jsx(YJ,{params:b,loading:S}),size:"small",loading:S,disableCloseOnSelect:!0,autoHighlight:!0,multiple:!0})},YJ=({params:e,loading:t})=>{const{t:n}=Kn();return y.jsx(ol,{...e,label:n("Value"),InputProps:{...e.InputProps,endAdornment:y.jsxs(Z.Fragment,{children:[t?y.jsx(qH,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})},Xy=({index:e=null})=>{const{t}=Kn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=Z.useContext(al),c=r.getInputType(o)==="datetime-local"?230:167.5,f=e!==null?`${t("Date")} ${e+1}`:`${t("Date")}`,p=Z.useMemo(()=>e!==null?s[e]:s,[s]),m=g=>{l(typeof e=="number"?S=>{const x=S;return x[e]=g.target.value,[...x]}:g.target.value)};return y.jsx(ol,{type:r.getInputType(o),label:f,value:ec.toDateTimeLocal(ec.parse(p)),onChange:m,size:"small",sx:{width:n?c:"100%"}})},XJ=()=>{const e=En(),{value:t,setValue:n}=Z.useContext(al),r=o=>{const s=o.target.checked;n(s?1:0)};return y.jsxs(y.Fragment,{children:[y.jsx(Yq,{checked:t,onChange:r,inputProps:{"aria-label":"filter-controlled"},size:"small"}),e&&y.jsx(Ur,{width:325})]})},Jy=({index:e=null})=>{const{t}=Kn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=Z.useContext(al),u=e!==null?`${t("Value")} ${e+1}`:`${t("Value")}`,c=Z.useMemo(()=>e!==null?s[e]:s,[s]),f=p=>{l(typeof e=="number"?m=>{const g=m;return g[e]=p.target.value,[...g]}:p.target.value)};return y.jsx(ol,{type:r.getInputType(o),label:u,value:c||"",onChange:f,sx:{width:n?167.5:"100%"},size:"small"})},Zy=()=>{const e=En(),t=Tt("filter"),{type:n,operator:r}=Z.useContext(al),o=Z.useMemo(()=>["between","notBetween"].includes(r),[r]);if(["null","notNull"].includes(r))return e?y.jsx(Ur,{width:230}):null;if(o)switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsxs(y.Fragment,{children:[y.jsx(Xy,{index:0}),y.jsx(Xy,{index:1})]});default:return y.jsxs(y.Fragment,{children:[y.jsx(Jy,{index:0}),y.jsx(Jy,{index:1})]})}switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsx(Xy,{});case"autocomplete":return y.jsx(QJ,{});case"boolean":return y.jsx(XJ,{});default:return y.jsx(Jy,{})}},JJ=({index:e,column:t})=>{const{t:n}=Kn(),r=En(),o=Wr("breakpoint","md"),s=Tt("filter"),l=Z.useMemo(()=>s.getMatchingOperators(t),[t]),{columns:u,key:c,setKey:f,operator:p,setOperator:m,type:g,setType:S,value:x,setValue:b,isRelation:w,setIsRelation:P,handleKey:R,handleOperator:T,handleRemoveColumn:A}=GJ(e,t),$=["boolean"].includes(s.getInputType(g));return y.jsx(al.Provider,{value:{key:c,setKey:f,type:g,setType:S,operator:p,setOperator:m,value:x,setValue:b,isRelation:w,setIsRelation:P},children:y.jsxs(vi,{container:!0,display:"flex",flexDirection:{xs:"column",[o]:"row"},flexWrap:{xs:"wrap",[o]:"nowrap"},alignItems:"center",justifyContent:"space-between",gap:.5,children:[y.jsxs(ir,{display:"flex",flexDirection:{xs:"column",[o]:"row"},alignItems:"center",width:"100%",my:1,gap:1.5,children:[y.jsxs(ir,{direction:"row",alignItems:"center",...!r&&{width:"100%"},gap:1,children:[y.jsxs(Af,{sx:{width:r?195:`calc(100% - ${$?88:44}px)`},children:[y.jsx(jf,{id:"filter-column-select-label",size:"small",children:n("Column")}),y.jsx(nl,{labelId:"filter-column-select-label",id:"filter-column-select",value:c,label:n("Column"),onChange:R,size:"small",children:u.map(({key:O,label:_})=>y.jsx(Gi,{value:O,children:n(_)},`column_${O}_option`))})]}),!r&&y.jsxs(ir,{direction:"row",alignItems:"center",children:[$&&y.jsx(Zy,{}),y.jsx(Hn,{color:"error",onClick:A(e),children:y.jsx(ky,{})})]})]}),!w&&!$&&y.jsxs(Af,{sx:{width:r?147.5:"100%"},children:[y.jsx(jf,{id:"filter-operator-select-label",size:"small",children:n("Operator")}),y.jsx(nl,{labelId:"filter-operator-select-label",id:"filter-operator-select",value:p,label:n("Operator"),onChange:T,size:"small",children:l.map(({key:O,label:_})=>y.jsx(Gi,{value:O,children:n(_)},`operator_${O}_option`))})]}),r?y.jsx(Zy,{}):!$&&y.jsx(Zy,{})]},`filter_${c}_${e}`),r&&y.jsx(Hn,{color:"error",onClick:A(e),children:y.jsx(ky,{})})]})})},dP=({dialog:e=!1})=>{const{t}=Kn(),n=En(),r=Wr("breakpoint","md"),o=Tt("filter"),{columnsFilter:s,setColumnsFilter:l,handleApplyFilters:u,clearFilters:c}=Z.useContext(Yy),f=()=>{l(p=>[...p,{key:"",operator:"equals",type:"text",value:"",appended:!1,nullable:!1,is_relation:!1}])};return y.jsxs(Ur,{sx:{minWidth:{[r]:567.5},p:e?0:2},children:[y.jsx(ir,{children:s.map((p,m,g)=>{const S=m==g.length-1;return y.jsxs(y.Fragment,{children:[y.jsx(JJ,{index:m,column:p},`row_${p.key}`),!n&&y.jsx(Gc,{sx:{mt:S?.625:1.25,mb:S?.75:1.5,...S&&{border:"none"}}})]})})}),y.jsx(ir,{direction:"row",alignItems:"center",justifyContent:"center",children:n?y.jsx(or,{variant:"outlined",onClick:f,fullWidth:!0,sx:{mt:.75},children:`+ ${t("Add Column")}`}):y.jsx(Hn,{onClick:f,color:"primary",sx:{fontSize:32},children:y.jsx(uk,{fontSize:"inherit"})})}),n&&y.jsxs(ir,{direction:"row",justifyContent:"space-between",mt:2,children:[y.jsx(or,{onClick:c,children:t("Clear")}),y.jsx(or,{variant:"contained",onClick:u,disabled:o.checkIfCanApplyFilters(s),children:t("Apply")})]})]})};function ZJ(e,t){const n=[],r=As.toObject(t);return!("where"in r)||je.isEmpty(r.where)?[]:(Object.entries(r.where).forEach(([o,s])=>{let[l,u="equals"]=o.split(":");const c=e.find(p=>p.key===l);if(!c)return;u==="equals"&&c.is_relation&&(u="relation");let f=s;switch(c.type){case"text":{Array.isArray(s)&&(f=s.join(","));break}case"datetime-local":{Array.isArray(s)?f=s.map(p=>ec.toDateTimeLocal(p)):f=ec.toDateTimeLocal(s);break}case"boolean":{f=Number(s);break}}n.push({key:c.key,operator:u,type:c.type,value:f,nullable:c.nullable,is_relation:c.is_relation})}),n)}const eZ=e=>{const t=Tt("filter"),n=new URLSearchParams;return e.forEach(r=>{const{key:o,operator:s,value:l,type:u}=r;let c=`:${s}`;if(["equals"].includes(s)&&(c=""),Array.isArray(l))l.forEach((f,p)=>{let m=f;switch(t.getInputType(u)){case"datetime-local":{m=new Date(f).toISOString();break}}n.set(`where[${o}${c}][${p}]`,m)});else{let f=l;switch(t.getInputType(u)){case"datetime-local":{f=new Date(l).toISOString();break}}n.set(`where[${o}${c}]`,f)}}),n},tZ=()=>{const{t:e}=Kn(),t=Tt("filter"),n=En(),r=xi(),[o,s]=So(),l=Z.useMemo(()=>"where"in As.toObject(o),[o]),[u,c]=Z.useState(null),[f,p]=Z.useState([]),m=!!u,g=Z.useMemo(()=>t.getFilterableColumns(r),[r]),S=R=>{c(R.currentTarget)},x=()=>{c(null),setTimeout(()=>{p([])},300)},b=()=>{w();const R=eZ(f);s(R,{replace:!0}),x()},w=()=>{s(R=>{const T=new URLSearchParams(R);for(const[A]of R.entries())A.startsWith("where[")&&T.delete(A);return T})},P=()=>{w(),x(),setTimeout(()=>{p([])},300)};return Z.useEffect(()=>{const R=ZJ(g,o);p(R)},[g,o,u]),y.jsxs(Yy.Provider,{value:{Model:r,anchorEl:u,setAnchorEl:c,columnsFilter:f,setColumnsFilter:p,searchParams:o,setSearchParams:s,handleApplyFilters:b,clearSearchParams:w,clearFilters:P},children:[y.jsx(Hn,{"aria-describedby":"model-filter-popover-button","aria-label":"filter",onClick:S,children:y.jsx(Qg,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(gk,{})})}),n?y.jsx(RR,{id:"model-filter-popover",open:m,anchorEl:u,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(dP,{})}):y.jsxs(ny,{open:m,onClose:x,fullWidth:!0,children:[y.jsxs(iy,{children:[e("Filter :model",{model:r.plural()}),y.jsx(Hn,{onClick:x,sx:{position:"absolute",right:8,top:8},children:y.jsx(Uf,{})})]}),y.jsx(oy,{dividers:!0,children:y.jsx(dP,{dialog:!0})}),y.jsxs(ry,{children:[y.jsx(or,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(or,{variant:"contained",onClick:b,disabled:t.checkIfCanApplyFilters(f),children:e("Apply")})]})]})]})},ev=Z.createContext({columns:[],columnCount:0,selected:Un([]),massActions:[],items:Un([]),error:new Error("Trying to access TableContext outside of TableProvider"),Model:null});function tv(){const{selected:e,items:t}=Z.useContext(ev),n=Wm(e),r=()=>{e.splice(0,e.count())},o=f=>{const p=e.search(f);if(p!==!1){e.pull(p);return}e.push(f)},s=()=>{if(t){if(e.count()===t.count()){r();return}e.splice(0,e.count(),...t)}},l=f=>n.contains(f),u=t?n.count()>0&&n.count()<t.count():!1,c=t&&t.count()?n.count()===t.count():!1;return{selected:n,indeterminate:u,allSelected:c,isSelected:l,handleClearSelected:r,handleSelectToggle:o,handleSelectToggleAll:s}}function Ji(){return Z.useContext(ev)}function nZ(e){const[t,n]=Z.useState(""),{selected:r}=tv(),{t:o}=Kn(),s=qy(),{massActions:l}=Ji(),u=f=>{n(f.target.value)};if(Z.useEffect(()=>{r.isEmpty()&&n("")},[r]),l.length===0)return null;const c=r.isEmpty()?o("Select items to apply"):o("Select action");return y.jsxs(ir,{direction:"row",alignItems:"center",...e,children:[y.jsxs(Af,{sx:{m:1,minWidth:200},size:"small",children:[y.jsx(jf,{id:"mass-actions-select-label",children:c}),y.jsxs(nl,{labelId:"mass-actions-select-label",id:"mass-actions-select",value:t,label:c,onChange:u,disabled:r.isEmpty(),children:[y.jsx(Gi,{value:"",children:y.jsx("em",{children:o("None")})}),l.map(f=>y.jsx(Gi,{value:f.key,children:f.label},f.key))]})]}),y.jsx(or,{size:"small",disabled:r.isEmpty()||!t,onClick:()=>{var f;(f=l.find(p=>p.key===t))==null||f.callback({selected:r,...s})},children:o("Apply")})]})}const rZ=()=>{const{handleDrawerOpen:e}=Qy();return y.jsx(Hn,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:e,sx:{mr:{md:2}},children:y.jsx(bk,{})})},Jf=Z.forwardRef(({to:e,children:t,...n},r)=>y.jsx(fy,{component:Ld,to:e,ref:r,sx:{textDecoration:"none"},...n,children:t}));Jf.displayName="Link";const oZ=({label:e})=>{if(isNaN(e)||isNaN(parseFloat(e))){const t={"&laquo; Previous":y.jsx(Bf,{}),"Next &raquo;":y.jsx(zf,{}),"Last &raquo;":y.jsx(vk,{}),"&laquo; First":y.jsx(yk,{})};return y.jsx(y.Fragment,{children:t[e]||e})}return y.jsx(y.Fragment,{children:e})},iZ=({variant:e="default",...t})=>{const n=e==="default",[r,o]=So(),[s,l]=Z.useState(r.get("page")||"1"),{links:u,meta:{current_page:c=1,links:f=[],last_page:p=1}={}}=hc(),{first:m,prev:g,next:S,last:x}=u||{},b=P=>{P.preventDefault(),o(R=>(R.set("page",s||"1"),R))},w=[{url:c>1?m:null,label:"&laquo; First",active:!1},{url:g,label:"&laquo; Previous",active:!1},{element:y.jsx(W4,{onSubmit:b,preventScrollReset:!0,children:y.jsx(ol,{size:"small",type:"number",variant:"standard",sx:{width:56,"& input":{textAlign:"center","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}},value:s,error:Number(s)>p,helperText:Number(s)>p?`Max ${p}`:void 0,onChange:P=>{!Number.isNaN(Number(P.target.value))&&Number(P.target.value)>0&&l(P.target.value),P.target.value===""&&l("")},onBlur:P=>{o(R=>(R.set("page",P.target.value||"1"),R),{replace:!0})},disabled:p===1,"aria-label":"Page number"})},"page")},{url:S,label:"Next &raquo;",active:!1},{url:c<p?x:null,label:"Last &raquo;",active:!1}];return Z.useEffect(()=>{c&&l(String(c))},[c]),y.jsx(ir,{spacing:1,direction:"row",justifyContent:"center",alignItems:"center",...t,children:(n?f:w).map((P,R)=>P.element||y.jsx(or,{variant:P.active?"contained":"text",color:"primary",size:"small",sx:{minWidth:"unset",width:32,height:32,borderRadius:"50%"},disabled:!P.url,component:Jf,to:P.url,children:y.jsx(oZ,{label:P.label})},R))})},sZ=()=>{const{t:e}=Kn(),{meta:{total:t=0,from:n=0,to:r=0}={}}=hc();return y.jsx(bn,{variant:"caption",noWrap:!0,children:e(":from–:to of :total",{from:n,to:r,total:t})})},aZ=()=>{const{t:e}=Kn(),{meta:{per_page:t=15}={}}=hc(),[,n]=So(),r=s=>{n(l=>{const u=new URLSearchParams(l);return u.set("per_page",s.target.value.toString()),u})},o=Hm(Tt("cms"),"perPageOptions",[15,30,75,150]);return y.jsxs(ir,{direction:"row",alignItems:"center",gap:1,children:[y.jsxs(bn,{variant:"caption",children:[e("Rows per page"),":"]}),y.jsx(nl,{value:t,onChange:r,size:"small",variant:"standard",sx:{fontSize:s=>s.typography.caption.fontSize,"& .MuiSelect-select":{py:.5}},children:o.map(s=>y.jsx(Gi,{value:s,sx:{fontSize:l=>l.typography.caption.fontSize,minHeight:"unset",lineHeight:1,py:1.5},children:s},s))})]})};function lZ(e,t){const[n,r]=Z.useState(!1);return Z.useEffect(()=>{const o=new Set,s=u=>{o.add(u.key),e.every(c=>o.has(c))&&(r(!0),t&&t())},l=u=>{o.delete(u.key),e.every(c=>!o.has(c))&&r(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[e,t]),n}const cZ=re(ol)(({theme:e})=>({"& .MuiInputBase-root":{backgroundColor:e.palette.background.paper}})),uZ=gm.throttle((e,t)=>{t(n=>{const r=new URLSearchParams(n);return e?r.set("q",e):r.delete("q"),r})},500),dZ=()=>{const[e,t]=So(),n=e.get("q")||"",[r,o]=Z.useState(n),[s,l]=Z.useState(!1),u=Z.useRef(null),{t:c}=Kn();Z.useEffect(()=>{o(n)},[n]);const f=g=>{o(g.target.value),uZ(g.target.value,t)},p=En();lZ(["Control","/"],()=>{u.current.focus()});const m=p?300:"calc(100vw - 58px)";return y.jsxs(y.Fragment,{children:[!p&&!s&&y.jsx(Hn,{color:"inherit",onClick:()=>l(!0),children:y.jsx(Qg,{variant:"dot",color:"secondary",invisible:!n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(Ty,{})})}),y.jsx(Ag,{orientation:"horizontal",in:p||s,addEndListener:()=>{var g;!p&&s&&((g=u.current)==null||g.focus())},unmountOnExit:!1,children:y.jsx(cZ,{placeholder:p?`(Ctrl + /) ${c("Search...")}`:`${c("Search...")}`,value:r,InputProps:{endAdornment:y.jsx(Ty,{})},inputProps:{ref:u},onChange:f,onBlur:()=>l(!1),sx:{width:m},size:"small"})})]})},fZ=({children:e,...t})=>y.jsx(bi,{sx:{width:"1px"},padding:"checkbox",...t,children:e}),pZ=()=>{const{t:e}=Kn(),[t,n]=So(),{columns:r,Model:o}=Ji(),s=t.get("order_by")||"",[l="",u=""]=s.split(":"),[c,f]=Z.useState(l),[p,m]=Z.useState(u),[g,S]=Z.useState(!1),x=()=>{S(!0)},b=()=>{S(!1),f(l),m(u)},w=()=>{if(!c||!p){S(!1);return}n(R=>{const T=new URLSearchParams(R);return T.set("order_by",`${c}:${p}`),T}),S(!1)},P=()=>{n(R=>{const T=new URLSearchParams(R);return T.delete("order_by"),T}),S(!1),f(""),m("")};return y.jsxs(y.Fragment,{children:[y.jsx(Hn,{onClick:x,children:y.jsx(Qg,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(xk,{})})}),y.jsxs(ny,{open:g,onClose:b,fullWidth:!0,children:[y.jsxs(iy,{children:[e("Sort :model",{model:o.plural()}),y.jsx(Hn,{onClick:b,sx:{position:"absolute",right:8,top:8},children:y.jsx(Uf,{})})]}),y.jsxs(oy,{dividers:!0,children:[y.jsxs(MR,{value:c,onChange:R=>{f(R.target.value),p||m("asc")},children:[y.jsx(bn,{variant:"caption",children:e("Column")}),y.jsx(Gc,{}),Un(r).whereStrict("sortable","!=",!1).map(({key:R,label:T})=>y.jsx(ly,{value:R,control:y.jsx(vy,{}),label:T},R))]}),y.jsx(bn,{variant:"caption",children:e("Direction")}),y.jsx(Gc,{}),y.jsxs(MR,{value:p,onChange:R=>m(R.target.value),children:[y.jsx(ly,{value:"asc",control:y.jsx(vy,{}),label:y.jsxs(y.Fragment,{children:[e("Ascending"),y.jsx(pk,{})]})}),y.jsx(ly,{value:"desc",control:y.jsx(vy,{}),label:y.jsxs(y.Fragment,{children:[e("Descending"),y.jsx(dk,{})]})})]})]}),y.jsxs(ry,{children:[y.jsx(or,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(or,{onClick:w,variant:"contained",children:e("Apply")})]})]})]})},hZ=({items:e,loading:t,children:n,error:r})=>{const o=xi(),s=Z.useMemo(()=>Un([]),[o,e]),[l]=So(),u=l.get("tab")??"all",c=Z.useMemo(()=>[{key:o.getSchema().labeledBy,label:He.human(o.getSchema().labeledBy)}],[o]),f=En(),p=Z.useMemo(()=>Tt("cms").getMassActions(o,u),[o,u]),m=Hm(Tt("cms"),`model${He.studly(o.getSchemaName())}Columns`,c),S=(f?m.length:1)+(p.length>0?2:1),x={columns:m,columnCount:S,massActions:p,items:e,loading:t,selected:s,error:r,Model:o};return y.jsx(ev.Provider,{value:x,children:n})},mZ=({items:e,loading:t,error:n,children:r,...o})=>y.jsx(hZ,{items:e,loading:t,error:n,children:y.jsx(wQ,{component:oo,children:y.jsx(iQ,{...o,children:r})})}),gZ=({children:e,...t})=>{const{massActions:n,columns:r,items:o}=Ji(),s=En(),[l,u]=So(),{indeterminate:c,allSelected:f,handleSelectToggleAll:p}=tv(),{["ModelIndex.Table.ShrinkedCell"]:m}=Tt("cms").getComponents(),g=l.get("order_by")||"",[S,x]=g.split(":"),b=w=>()=>{u(S===w?P=>{const R=new URLSearchParams(P);return x?x==="desc"?(R.delete("order_by"),R):(R.set("order_by",`${w}:desc`),R):(R.set("order_by",`${w}:asc`),R)}:P=>{const R=new URLSearchParams(P);return R.set("order_by",`${w}:asc`),R})};return y.jsxs(_Q,{...t,children:[e,s&&y.jsxs(rl,{children:[n.length>0&&y.jsx(m,{children:y.jsx(Jg,{indeterminate:c,checked:f,onChange:p,disabled:o&&o.count()===0})}),r.map(({key:w,label:P,sortable:R=!0,...T})=>y.jsx(bi,{sortDirection:R&&S===w&&x||!1,...T,children:y.jsxs(XQ,{active:R&&S===w,direction:x,onClick:b(w),children:[P,R&&S===w?y.jsx(Ur,{component:"span",sx:{visibility:"hidden",display:"none"},children:x==="desc"?"sorted descending":"sorted ascending"}):null]})},w)),y.jsx(m,{})]})]})},yZ=()=>{const{massActions:e,columns:t,items:n}=Ji(),r=En(),{["ModelIndex.Table.ShrinkedCell"]:o}=Tt("cms").getComponents(),s=(n==null?void 0:n.count())||15;return y.jsx(y.Fragment,{children:Array.from({length:s}).map((l,u)=>y.jsxs(rl,{children:[e.length>0&&y.jsx(o,{children:y.jsx(Jg,{})}),r&&t.map(({key:c,label:f,sortable:p,...m},g)=>y.jsx(bi,{...m,children:y.jsx(zR,{variant:"text",height:24})},g)),!r&&y.jsx(bi,{sx:{px:0},children:Array.from({length:t.length}).map((c,f)=>y.jsx(zR,{variant:"text",width:"100%",height:24},f))}),y.jsx(o,{children:y.jsx(Hn,{children:y.jsx(Py,{})})})]},u))})},vZ=({children:e,...t})=>{const n=xi(),{t:r}=Kn(),{items:o,loading:s,columnCount:l}=Ji(),{["ModelIndex.StaticActions"]:u}=Tt("cms").getComponents(),c=Z.isValidElement(e)?e:(o||Un([])).map(e);return y.jsx(dQ,{...t,children:s||!(o!=null&&o.every(f=>f.getType()===n.getSchemaName()))?y.jsx(yZ,{}):o&&o.count()?c:y.jsx(rl,{children:y.jsxs(bi,{colSpan:l,sx:{textAlign:"center",py:10},children:[y.jsx(bn,{children:r("No :model found",{model:n.plural().toLocaleLowerCase()})}),y.jsx("br",{}),y.jsx(u,{})]})})})};class bZ{getFacadeAccessor(){return"cms"}}const ar=xo(bZ,_r),ll=re(bn)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& label":{fontWeight:"bold"}})),xZ=({content:e})=>["string","number"].includes(typeof e)?y.jsx(ll,{children:e}):e instanceof Date?y.jsx(ll,{children:e.toLocaleString(_i("app.locale","en"))}):typeof e=="object"&&!Z.isValidElement(e)?y.jsx(ll,{children:JSON.stringify(e)}):y.jsx(Z.Fragment,{children:e}),wZ=({label:e,content:t})=>["string","number"].includes(typeof t)?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]})," ",t]}):t instanceof Date?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]}),t.toLocaleString(_i("app.locale","en"))]}):typeof t=="object"&&!Z.isValidElement(t)?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]})," ",JSON.stringify(t)]}):y.jsxs(Z.Fragment,{children:[y.jsx(bn,{sx:{display:"inline"},children:y.jsxs("b",{children:[e,":"]})})," ",t]}),SZ=({item:e,...t})=>{const n=En(),r=dc(),o=xi(),{massActions:s,columns:l}=Ji(),u=Z.useMemo(()=>l.map(g=>({...g,content:ar[`model${He.studly(e.getType())}Get${He.studly(g.key)}Content`](je.get(e,g.key),e)})),[l,e]),{["ModelIndex.Table.ShrinkedCell"]:c,["ModelIndex.InstanceActions"]:f}=ar.getComponents(),{isSelected:p,handleSelectToggle:m}=tv();return y.jsxs(rl,{...t,sx:{cursor:e.deletedAt?"default":"pointer"},selected:p(e),hover:!e.deletedAt,children:[s.length>0&&y.jsx(c,{children:y.jsx(Jg,{checked:p(e),onChange:()=>m(e)})}),n&&u.map(({key:g,label:S,sortable:x,content:b,...w})=>y.jsx(bi,{...w,onClick:()=>{e.deletedAt||r(`/${He.kebab(o.plural())}/${e.getKey()}`)},children:y.jsx(xZ,{label:S,content:b})},g)),!n&&y.jsx(bi,{sx:{maxWidth:0,px:0},onClick:()=>{e.deletedAt||r(`/${He.kebab(o.plural())}/${e.getKey()}`)},children:u.map(({key:g,...S})=>y.jsx(wZ,{...S},g))}),y.jsx(c,{children:y.jsx(f,{item:e})})]})},CZ=({children:e,...t})=>{const{columnCount:n}=Ji(),r=En(),o=Wr("breakpoint","md"),{["ModelIndex.Pagination"]:s,["ModelIndex.PaginationDetails"]:l,["ModelIndex.PerPageSwitch"]:u}=Tt("cms").getComponents();return y.jsxs(PQ,{...t,children:[y.jsx(rl,{children:y.jsx(bi,{colSpan:n,children:y.jsxs(ir,{direction:r?"row":"column-reverse",alignItems:"center",justifyContent:"space-between",gap:3,children:[y.jsxs(ir,{direction:r?"row":"column-reverse",alignItems:r?"center":"flex-start",justifyContent:"flex-start",width:{xs:"100%",[o]:"auto"},gap:r?2:0,children:[y.jsx(u,{}),y.jsx(l,{})]}),y.jsx(s,{variant:r?"default":"compact",justifyContent:{xs:"center",[o]:"flex-end"}})]})})}),e]})},EZ=()=>{const{columnCount:e}=Ji(),{["ModelIndex.Filter"]:t,["ModelIndex.MassActions"]:n,["ModelIndex.Sort"]:r,["ModelIndex.Pagination"]:o}=Tt("cms").getComponents(),s=En(),l=Wr("breakpoint","md");return y.jsx(rl,{children:y.jsx(bi,{colSpan:e,sx:{p:1},children:y.jsxs(ir,{direction:{xs:"column",[l]:"row"},justifyContent:"space-between",spacing:1,children:[y.jsxs(ir,{direction:"row",alignItems:"center",width:{[l]:"100%"},children:[y.jsx(t,{}),!s&&y.jsx(r,{})]}),s&&y.jsx(ir,{direction:"row",alignItems:"center",justifyContent:{xs:"center",[l]:"flex-end"},rowGap:2,children:y.jsx(o,{variant:"compact",justifyContent:"end"})}),y.jsx(n,{})]})})})};function RZ(){const e=xi(),{t}=Kn(),[n,r]=So(),o=n.get("tab")||"all",s=(c,f)=>{r(()=>{const p=new URLSearchParams;return f!=="all"&&p.set("tab",f),p})},l=Z.useMemo(()=>e.getSchema().softDeletes?[{label:t("Trashed"),value:"trashed"}]:[],[e,t]),u=Hm(Tt("cms"),`model${He.studly(e.getSchemaName())}Tabs`,l);return u.length===0?null:y.jsx(Ur,{sx:{maxWidth:{xs:320,sm:480},bgcolor:"background.paper"},children:y.jsxs(yY,{value:o,onChange:s,variant:"scrollable",scrollButtons:"auto","aria-label":`tabs for ${e.singular()}`,allowScrollButtonsMobile:!0,children:[y.jsx(VR,{label:t("All"),value:"all"}),u.map(c=>y.jsx(VR,{label:c.label,value:c.value},c.value))]})})}function kZ(e){const{parts:t,...n}=e;return y.jsxs(fH,{"aria-label":"breadcrumb",...n,children:[y.jsx(fy,{underline:"hover",color:"inherit",to:"/",component:Ld,children:_i("app.name","Laravel")}),t==null?void 0:t.map(({name:r,href:o},s)=>o?y.jsx(fy,{underline:"hover",color:"inherit",to:o,component:Ld,children:r},s):y.jsx(bn,{color:"text.primary",children:r},s))]})}const fP=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=Z.useState(null),[l,u]=Z.useState(null),[c,f]=Z.useState({}),p=Wr("drawer.width",280),m=Tt("cms").getComponent("RecursiveMenu");return y.jsxs(pR,{...r,children:[t.map(g=>{const{text:S,icon:x,element:b=null,key:w,children:P,to:R,onClick:T}=g;return b||y.jsxs(kK,{disablePadding:!0,sx:{display:"block"},children:[y.jsxs(mK,{sx:{minHeight:48,justifyContent:e?"center":"initial",px:2.5},onClick:A=>{if(T&&T(A),P){if(e){u(()=>(s(A.currentTarget),P));return}f({...c,[w]:!c[w]});return}n&&n(A)},...R?{to:R,component:Jf}:{},children:[y.jsxs(gR,{sx:{minWidth:0,mr:e?"unset":3,justifyContent:"center",flexDirection:"column",alignItems:"center",color:"inherit"},children:[x,e&&y.jsx(bn,{fontSize:10,sx:{mt:.5},children:S})]}),!e&&y.jsx(yR,{primary:S}),!e&&P&&(c[w]?y.jsx(hk,{}):y.jsx(mk,{}))]}),P&&!e&&y.jsx(Ag,{in:c[w],timeout:"auto",unmountOnExit:!0,children:y.jsx(fP,{items:P,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0}})})]},w)}),e&&y.jsx(m,{items:l||[],onClick:n,collapsed:!1,sx:{pl:e?0:2,pb:0},anchorEl:o,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(null),u(null)},open:!!o,slotProps:{paper:{sx:{minWidth:p}}}})]})},pP=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=Z.useState({}),l=Wr("drawer.width",280);return y.jsxs(y.Fragment,{children:[y.jsx(my,{...r,children:t.map(u=>{const{text:c,icon:f,element:p=null,key:m,children:g,onClick:S,to:x}=u;return p||y.jsxs(Gi,{onClick:b=>{if(S&&S(b),g){s({...o,[m]:o[m]?null:b.currentTarget});return}n&&n(b)},...x?{component:Jf,to:x}:{},children:[f&&y.jsx(gR,{sx:{minWidth:0,mr:e?"auto":3,justifyContent:"center",color:"inherit"},children:f}),y.jsx(yR,{sx:{opacity:e?0:1},children:c}),!e&&g&&y.jsx(zf,{})]},m)})}),t.map(u=>{const{key:c,children:f}=u;return f?y.jsx(pP,{items:f,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0},open:!!o[c],anchorEl:o[c],anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>s({...o,[c]:null}),slotProps:{paper:{sx:{minWidth:l}}}},c):null})]})},nv={delete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send to trash":"delete permanently",u=e.getSchema().softDeletes?"sent to trash":"deleted";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm delete permanently"),message:s(`Are you sure you want to ${l} :count :model?`,{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.delete(t.pluck(e.getSchema().primaryKey).all()),n(s(`Successfully ${u} :count :model`,{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(f){qs(n)(f)}},restore:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :count :model?",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.restore(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully restored :count :model",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){qs(n)(u)}},forceDelete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete permanently :count :model?",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully deleted :count :model",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){qs(n)(u)}}},rv={delete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send :model “:label” to trash":"delete :model “:label” permanently",u=e.getSchema().softDeletes?"sent :model “:label” to trash":"deleted :model “:label”";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm permanent deletion"),message:s(`Are you sure you want to ${l}?`,{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.delete(),n(s(`Successfully ${u}`,{model:e.singular(),label:t.getLabel()})),o()}catch(f){qs(n)(f)}},restore:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :model “:label”?",{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.restore(),n(s("Successfully restored :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){qs(n)(u)}},forceDelete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete :model “:label” permanently?",{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.forceDelete(),n(s("Successfully deleted :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){qs(n)(u)}}},PZ={create:e=>({navigate:t})=>{t(`/${He.kebab(e.plural())}/create`)}};class TZ{getFacadeAccessor(){return"icon"}}const Zf=xo(TZ,_r);class OZ{getComponents(){return this.componentMap({})}getComponent(t){return this.getComponents()[t]}getRoutes(){return this.cmsRoutes([],this.getComponents(),nc().make())}getMenuItems(){return this.menuItems([],nc().make())}getModelFormProps(t){return this.wireModelFormProps({},t)}getMassActions(t,n){return this[`mass${He.studly(t.getSchemaName())}Actions`](this.massActions([],t,n),t,n)}getInstanceActions(t,n){return this[`instance${He.studly(t.getSchemaName())}Actions`](this.instanceActions([],t,n),t,n)}getStaticActions(t,n){return this[`static${He.studly(t.getSchemaName())}Actions`](this.staticActions([],t,n),t,n)}}const $Z=xa(OZ),su=e=>!(typeof e>"u"||e===null||je.isEmpty(e));class AZ{getInputType(t){switch(t){case"int":case"float":case"number":return"number";case"date":return"date";case"datetime":case"timestamp":return"datetime-local";case"autocomplete":return"autocomplete";case"bool":case"boolean":return"boolean";default:return"text"}}getOperators(){return _i("luminix.admin.filter.operators")}getMatchingOperators(t){return this.getOperators().filter(n=>["like"].includes(n)||!t.is_relation&&["relation"].includes(n)||["text"].includes(this.getInputType(t.type))&&["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","notBetween"].includes(n)||["number","date","datetime-local","boolean"].includes(this.getInputType(t.type))&&["like","contains","startsWith","endsWith"].includes(n)||!t.nullable&&["null","notNull"].includes(n)?!1:n).map(n=>{let r=n;switch(n){case"equals":r="=";break;case"notEquals":r="!=";break;case"greaterThan":r=">";break;case"greaterThanOrEquals":r=">=";break;case"lessThan":r="<";break;case"lessThanOrEquals":r="<=";break;default:r=He.human(r);break}return{key:n,label:r}})}getFilterableColumns(t){const{attributes:n=[],relations:r={}}=t.getSchema(),o=[...n.filter(s=>!s.hidden&&!s.appended).map(s=>{let l=s.phpType??"string";return s.cast!==null&&!je.isEmpty(s.cast)&&(l=s.cast),{key:s.name,label:He.human(s.name),type:l,nullable:s.nullable,is_relation:!1}}),...Object.entries(r??{}).reduce((s,[l])=>[...s,{key:l,label:He.human(l),type:"autocomplete",nullable:!1,is_relation:!0}],[])];return this.filterableColumns(o,t)}checkIfCanApplyFilters(t){return!!(t.length===0||t.map(r=>{if(!su(r.key)||!su(r.operator))return!0;if(["boolean"].includes(this.getInputType(r.type))){if(typeof r.value>"u"||je.isNull(r.value))return!0}else if(!su(r.value))return!0;return!!(Array.isArray(r.value)&&["between","notBetween"].includes(r.operator)&&(!su(r.value[0])||!su(r.value[1])))}).includes(!0))}}const jZ=xa(AZ);class _Z{constructor(){z0(this,"icons",[]);rc.reducer("model",t=>{const n=this;return class extends t{static icon(){return n.render("CategoryOutlined")}}},0)}forModel(t,n){rc.reducer(`model${He.studly(t)}`,r=>{const o=this;return class extends r{static icon(){return o.render(n)}}})}registerIcon(t,n){typeof t=="string"&&n?this.icons.push({name:t,component:n}):Object.entries(t).forEach(([r,o])=>{this.icons.push({name:r,component:o})})}make(t){return this.icons.find(n=>n.name===t).component}render(t,n={}){const r=this.make(t);return r?y.jsx(r,{...n}):null}all(){return this.icons.map(t=>t.name)}}const MZ=({item:e})=>{const t=qy(),[n]=So(),r=n.get("tab")??"all",o=Z.useMemo(()=>Tt("cms").getInstanceActions(Tt("model").make(e.getType()),r),[e,r]),[s,l]=Z.useState(null),u=!!s,c=p=>{l(p.currentTarget)},f=()=>{l(null)};return o.length===0?null:y.jsxs(y.Fragment,{children:[y.jsx(Hn,{"aria-describedby":"model-item-actions","aria-label":"filter",onClick:c,children:y.jsx(Py,{})}),y.jsx(my,{id:"model-item-actions",anchorEl:s,open:u,onClose:f,MenuListProps:{"aria-labelledby":"model-item-action"},children:o.map(p=>y.jsxs(Gi,{onClick:()=>{p.callback({item:e,...t}),f()},sx:{px:1,gap:.75},children:[p.icon,p.label]},p.label))})]})},IZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAWBSURBVFhHxZl/TFtVFMe/pZQOGMIA0W3iBgOloLIBzrkZJsuWmCwah/8sYW4my0QYc1NijM5o1MQ4/3B/CUb/0Bn+mTHzD4PjRxEUxEGmcWb8VsbPTTYYDBjQFlrPubTQ0va9+6qdJ3lp+t69537eOfeec+59OpAklpWvQkhICV0FsNvT4XCE8X0tYrPb8WBsLL7L34eoMPnukxYrjpprYe4fgEGvtxJDOzFU0PXJYHHRnC6x/NNwAqnQGY35WFiAY35eC9dSWwv1Ld+zB/kPpEr3H52dRVFNLRoGBxEeGir66fhXr4fDYjlHfwv4bjHD0Q1pxSsbWglu27q1eDpl08pHfv8PT0+jsLoGLdeuLcFxY2EgupxMxQx4iC0XqDiooz4kBCeys2GgXxnpnbiFF6urcenGDQ84j76LTC8woClQt7JCC73t3k3JeDIxUYYN7WNjOFJVjZ7xcf9wpMnJZGLARedLqfds5HA4EGkw4DhZT6fTqWr4dWREuHVwagqrnHNOpZNcK39K5sgNh0xp2JyQ4K/J0v3m4WFyaw3G5uZgpEUgKwFbb4GslxARgZItW1THqunrQ4m5DtNWq/Q8dSkNGJDDysGMDGyMjlYE/LanB6X1DZijuRoquYjcFQYEOE9BOZnADj/ysF84O1n4y8uXcbKxCdye4TiYuwvPWjXogAB5oMLNmYgP5xjvWzj4nu3sQkZ8HPQ67/DDcAzeTatZSTQDMtxD8fHYn5ampBc71q9H5XP5YBCOle4SQiueXf5mY6MIO0pW1AzIoeV4dpYIL0qitFJnCa60oQHfdHUrxkLWrwmQU9rO+xPxbKp8vl35ElwclJjNOH/liiqcZkB2DRkQH1xooUCrF65ZF7ka+1JTRLpTEy4OXqLi4Ee34kCtjyYLMlDj0BDqBwYI1AFek2W7d1OFpA739+3bOEKB+sLVq1KWc4FrAuTQwQUBXzM0j157NAf7KZOoCae2w1VV+H3kuiY41qv+6m6j302Zg4Un+d7kZJTm5Kix4c+JCRys/F7ASeZfD53SgGy9A+kmMUjqmjX4aGcuwlRyKocQhmsbHQ0ITtqCHMcYZteGDTDFxeLjvDzcExmpaL3fqHJ5nuD+IgsGYjmXcqk5yBE/JSZGWO7D3FyCjFOE44VUVGvGGK1apXioqMT5UAqQ499TSUlYTcFZDa62rx/HKM7dCqBy8QWsCsjWuy8qCgU0/9SksrcXL9fVYdY2r7ms8qdbEZDhWN7Zvl1AKsm57m68SmWVjaytlFuVdPh65ncVczKPNhpxelee6layor0dJ36oF+WUTEbxBeLvnpcFecXaFux4JiUFrz+2VSwMJfns0h94t7lZNNFL7EuUdPl65gXIC6IwMxPvPbFDtJ+g/XIMWdKXnL54EadaWxFK9R7n6WCIh4ut5KKta+/Fyce3iRru/eZfMDg56TWu69mpllYYggjHA3tY0E6ABaZ0Ebt4L8HVbgYVp+7Cm6W3m5rwObnWSFklOHZbHtEDkA5vkBwTLazXT5ZjN7u7jt3/xk+N+KqtTXPS93KD5A0PF/Mq7Lx5U1jlWFYWktx2bDM2G16pr8eZOwjH7+AZZsh9Pw8Ni3dzX5FTlBVKKACf7ehCxL/b60vabbmZ5xyk+yvDyjidBHBeNff3I8Lgteg1D6i1g9eId7mFFA4xXAVziX6nLed6Ea9Mcn1mRjzjovQoWU7L/kGrdWTaM+DSkSqX8nzIw3Bv0YkAn6m4Tj5llAWhzTwDdohjVxIG7KAqmE+hvu7s/F/hnEwdDHiGz4RdwoG4liwnc94XBIstq1xk+oIBy/jAms6EFw+w6YbaXiOYYGw5ZnEeopeLTEWfIYzOzxAHAv0M8Z9A63T8GaLN7TOE5R/LwhBxBS+RxAAAAABJRU5ErkJggg==",NZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";function LZ(){const e=rf("(prefers-color-scheme: dark)"),t=sP();return y.jsx(DW,{src:e?IZ:NZ,alt:"Luminix",variant:"square",sx:{width:40,height:40,marginLeft:t?2:0}})}const sp=class sp extends Td{register(){this.app.singleton("cms",()=>new $Z),this.app.singleton("filter",()=>new jZ),this.app.singleton("icon",()=>new _Z),this.registerIcons()}boot(){this.bootComponents(),this.bootRoutes(),this.bootMenu(),this.bootMassActions(),this.bootInstanceActions(),this.bootStaticActions(),sp.applyUserDefaults&&this.bootDefaultUserModifiers()}registerIcons(){Zf.registerIcon({Add:UY,AddCircleOutline:uk,ArrowDownward:dk,ArrowDropDown:fk,ArrowUpward:pk,CategoryOutlined:WY,ChevronLeft:Bf,ChevronRight:zf,Close:Uf,DashboardOutlined:HY,ExpandLess:hk,ExpandMore:mk,FilterList:gk,FirstPage:yk,HighlightOffOutlined:ky,LastPage:vk,Menu:bk,MoreVert:Py,PeopleOutlined:VY,Search:Ty,SwapVert:xk}),Zf.forModel("user","PeopleOutlined")}bootRoutes(){ar.reducer("cmsRoutes",QY,0),bm.reducer("domRouterOptions",t=>({...t,basename:Mi.get("luminix.admin.url","/admin")}))}bootComponents(){ar.reducer("componentMap",()=>({Layout:ZY,Dashboard:YY,ModelIndex:tX,ModelItem:OJ,Error:XY,DesktopPageTitle:WJ,RecursiveList:fP,RecursiveMenu:pP,Breadcrumbs:kZ,"Layout.AppBar":LJ,"Layout.AppLogo":LZ,"Layout.Drawer":UJ,"Layout.AppBar.MenuButton":rZ,"Layout.SearchBar":dZ,"Layout.BackButton":DJ,"ModelIndex.Filter":tZ,"ModelIndex.InstanceActions":MZ,"ModelIndex.MassActions":nZ,"ModelIndex.Pagination":iZ,"ModelIndex.PaginationDetails":sZ,"ModelIndex.PerPageSwitch":aZ,"ModelIndex.Sort":pZ,"ModelIndex.StaticActions":MJ,"ModelIndex.Table":mZ,"ModelIndex.Table.TableHead":gZ,"ModelIndex.Table.TableBody":vZ,"ModelIndex.Table.TableFooter":CZ,"ModelIndex.Table.TableToolbar":EZ,"ModelIndex.Table.TableBody.TableRow":SZ,"ModelIndex.Table.ShrinkedCell":fZ,"ModelIndex.Tabs":RZ}),0)}bootMenu(){ar.reducer("menuItems",(t,n)=>[...t,{key:"dashboard",text:"Dashboard",to:"/",icon:Zf.render("DashboardOutlined")},...Object.entries(n).sort(([r],[o])=>r.localeCompare(o)).map(([r,o])=>({key:r,text:o.plural(),to:"/"+He.kebab(o.plural()),icon:o.icon()}))],0)}bootDefaultUserModifiers(){ar.reducer("modelUserColumns",()=>[{key:"name",label:"Name",scope:"row",component:"th"},{key:"email",label:"Email",align:"right",size:"small"},{key:"created_at",label:"Created At",align:"right",size:"small"}],1),ar.reducer("wireModelFormProps",(t,n)=>(n==null?void 0:n.getType())==="user"?{...t,confirmed:"password"}:t)}bootMassActions(){ar.reducer("massActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({key:"delete",label:s?"Send to trash":"Delete permanently",callback:nv.delete(n)}):(o.push({key:"restore",label:"Restore",callback:nv.restore(n)}),o.push({key:"forceDelete",label:"Delete permanently",callback:nv.forceDelete(n)})),[...t,...o]},0)}bootInstanceActions(){ar.reducer("instanceActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({label:s?"Send to trash":"Delete permanently",callback:rv.delete(n)}):(o.push({label:"Restore",callback:rv.restore(n)}),o.push({label:"Delete permanently",callback:rv.forceDelete(n)})),[...t,...o]},0)}bootStaticActions(){ar.reducer("staticActions",(t,n,r)=>r==="trashed"?t:[...t,{key:"create",label:`Create ${n.singular()}`,callback:PZ.create(n),icon:Zf.render("Add")}],0)}};z0(sp,"applyUserDefaults",!0);let ov=sp;const DZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ep{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||DZ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ep(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ep(this.logger,t)}}var Yo=new ep;class tp{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){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u.apply(u,[t,...r])})}}function au(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function hP(e){return e==null?"":""+e}function FZ(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const BZ=/###/g;function lu(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(BZ,"."):u}function o(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let l=0;for(;l<s.length-1;){if(o())return{};const u=r(s[l]);!e[u]&&n&&(e[u]=new n),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={},++l}return o()?{}:{obj:e,k:r(s[l])}}function mP(e,t,n){const{obj:r,k:o}=lu(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],l=t.slice(0,t.length-1),u=lu(e,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=lu(e,l,Object),u&&u.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n}function zZ(e,t,n,r){const{obj:o,k:s}=lu(e,t,Object);o[s]=o[s]||[],o[s].push(n)}function np(e,t){const{obj:n,k:r}=lu(e,t);if(n)return n[r]}function UZ(e,t,n){const r=np(e,n);return r!==void 0?r:np(t,n)}function gP(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):gP(e[r],t[r],n):e[r]=t[r]);return e}function cl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var WZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function HZ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>WZ[t]):e}class VZ{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 KZ=[" ",",","?","!",";"],GZ=new VZ(20);function qZ(e,t,n){t=t||"",n=n||"";const r=KZ.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const o=GZ.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!o.test(e);if(!s){const l=e.indexOf(n);l>0&&!o.test(e.substring(0,l))&&(s=!0)}return s}function iv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let l,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],l=o[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=l}return o}function rp(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class yP extends tp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):typeof r=="string"&&s?u.push(...r.split(s)):u.push(r)));const c=np(this.data,u);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),c||!l||typeof r!="string"?c:iv(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),mP(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let c=np(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?gP(c,r,s):c={...c,...r},mP(this.data,u,c),l.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.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}: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 vP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const bP={};class op extends tp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),FZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.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 s=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!qZ(t,r,o);if(l&&!u){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:s};const f=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(o)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],n),c=u[u.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const A=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${A}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${A}${l}`}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(t,n);let g=m&&m.res;const S=m&&m.usedKey||l,x=m&&m.exactUsedKey||l,b=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],P=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&w.indexOf(b)<0&&!(typeof P=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,g,{...n,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(m.res=A,m.usedParams=this.getUsedParamsDetails(n),m):A}if(s){const A=Array.isArray(g),$=A?[]:{},O=A?x:S;for(const _ in g)if(Object.prototype.hasOwnProperty.call(g,_)){const N=`${O}${s}${_}`;$[_]=this.translate(N,{...n,joinArrays:!1,ns:u}),$[_]===N&&($[_]=g[_])}g=$}}else if(R&&typeof P=="string"&&Array.isArray(g))g=g.join(P),g&&(g=this.extendTranslation(g,t,n,r));else{let A=!1,$=!1;const O=n.count!==void 0&&typeof n.count!="string",_=op.hasDefaultValue(n),N=O?this.pluralResolver.getSuffix(f,n.count,n):"",D=n.ordinal&&O?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",F=O&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),K=F&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${D}`]||n.defaultValue;!this.isValidLookup(g)&&_&&(A=!0,g=K),this.isValidLookup(g)||($=!0,g=l);const J=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:g,U=_&&K!==g&&this.options.updateMissing;if($||A||U){if(this.logger.log(U?"updateKey":"missingKey",f,c,l,U?K:g),s){const M=this.resolve(l,{...n,keySeparator:!1});M&&M.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 oe=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let M=0;M<G.length;M++)oe.push(G[M]);else this.options.saveMissingTo==="all"?oe=this.languageUtils.toResolveHierarchy(n.lng||this.language):oe.push(n.lng||this.language);const W=(M,q,se)=>{const L=_&&se!==g?se:J;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,q,L,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,q,L,U,n),this.emit("missingKey",M,c,q,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?oe.forEach(M=>{const q=this.pluralResolver.getSuffixes(M,n);F&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(se=>{W([M],l+se,n[`defaultValue${se}`]||K)})}):W(oe,l,K))}g=this.extendTranslation(g,t,n,m,r),$&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${l}`),($||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,A?g:void 0):g=this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var l=this;if(this.i18nFormat&&this.i18nFormat.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 f=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let m=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),S=g&&g.length;p<S&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,S=new Array(g),x=0;x<g;x++)S[x]=arguments[x];return s&&s[0]===S[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):l.translate(...S,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=typeof u=="string"?[u]:u;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=vP.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,l,u;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),p=f.key;o=p;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&typeof n.count!="string",S=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(w=>{this.isValidLookup(r)||(u=w,!bP[`${b[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(bP[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${u}" 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!!!")),b.forEach(P=>{if(this.isValidLookup(r))return;l=P;const R=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,p,P,w,n);else{let A;g&&(A=this.pluralResolver.getSuffix(P,n.count,n));const $=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(R.push(p+A),n.ordinal&&A.indexOf(O)===0&&R.push(p+A.replace(O,this.options.pluralSeparator)),S&&R.push(p+$)),x){const _=`${p}${this.options.contextSeparator}${n.context}`;R.push(_),g&&(R.push(_+A),n.ordinal&&A.indexOf(O)===0&&R.push(_+A.replace(O,this.options.pluralSeparator)),S&&R.push(_+$))}}let T;for(;T=R.pop();)this.isValidLookup(r)||(s=T,r=this.getResource(P,w,T,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";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 s of n)delete o[s]}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}}function sv(e){return e.charAt(0).toUpperCase()+e.slice(1)}class xP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yo.create("languageUtils")}getScriptPartFromCode(t){if(t=rp(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=rp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=sv(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=sv(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=sv(r[2].toLowerCase()))),r.join("-")}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.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(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||this.options.fallbackLng||[],t),o=[],s=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(l=>{o.indexOf(l)<0&&s(this.formatLanguageCode(l))}),o}}let QZ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],YZ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const XZ=["v1","v2","v3"],JZ=["v4"],wP={zero:0,one:1,two:2,few:3,many:4,other:5};function ZZ(){const e={};return QZ.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:YZ[t.fc]}})}),e}class eee{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yo.create("pluralResolver"),(!this.options.compatibilityJSON||JZ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ZZ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(rp(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>wP[o]-wP[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!XZ.includes(this.options.compatibilityJSON)}}function SP(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=UZ(e,t,n);return!s&&o&&typeof n=="string"&&(s=iv(e,n,r),s===void 0&&(s=iv(t,n,r))),s}class tee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:S,nestingSuffix:x,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:P,alwaysFormat:R}=t.interpolation;this.escape=n!==void 0?n:HZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?cl(s):l||"{{",this.suffix=u?cl(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?cl(g):S||cl("$t("),this.nestingSuffix=x?cl(x):b||cl(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=P||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&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){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}const p=x=>{if(x.indexOf(this.formatSeparator)<0){const R=SP(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...o,...n,interpolationkey:x}):R}const b=x.split(this.formatSeparator),w=b.shift().trim(),P=b.join(this.formatSeparator).trim();return this.format(SP(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),P,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>f(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?f(this.escape(x)):f(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const b=s[1].trim();if(l=p(b),l===void 0)if(typeof m=="function"){const P=m(t,s,o);l=typeof P=="string"?P:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))l="";else if(g){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=hP(l));const w=x.safeValue(l);if(t=t.replace(s[0],w),g?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function u(c,f){const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,l);const S=g.match(/'/g),x=g.match(/"/g);(S&&S.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),f&&(l={...f,...l})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const p=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=p.shift(),c=p,f=!0}if(s=n(u.call(this,o[1].trim(),l),l),s&&o[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=hP(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f&&(s=c.reduce((p,m)=>this.format(p,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}function nee(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(l=>{if(l){const[u,...c]=l.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),p=u.trim();n[p]||(n[p]=f),f==="false"&&(n[p]=!1),f==="true"&&(n[p]=!0),isNaN(f)||(n[p]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}function ul(e){const t={};return function(r,o,s){const l=o+JSON.stringify(s);let u=t[l];return u||(u=e(rp(o),s),t[l]=u),u(r)}}class ree{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("formatter"),this.options=t,this.formats={number:ul((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ul((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ul((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ul((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ul((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ul(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((u,c)=>{const{formatName:f,formatOptions:p}=nee(c);if(this.formats[f]){let m=u;try{const g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},S=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[f](u,S,{...p,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}function oee(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class iee extends tp{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Yo.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=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},l={},u={},c={};return t.forEach(f=>{let p=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(u[f]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],l=o[1];n&&this.emit("failedLoading",s,l,n),r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const u={};this.queue.forEach(c=>{zZ(c.loaded,[s],l),oee(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const p=c.loaded[f];p.length&&p.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:l});return}this.readingCalls++;const u=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,l)},s);return}l(f,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(p=>u(null,p)).catch(u):u(null,f)}catch(f){u(f)}return}return c(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,l,u)})}saveMissing(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){const c={...l,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(t,n,r,o,c):p=f(t,n,r,o),p&&typeof p.then=="function"?p.then(m=>u(null,m)).catch(u):u(null,p)}catch(p){u(p)}else f(t,n,r,o,u,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function CP(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function EP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ip(){}function see(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class cu extends tp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=EP(t),this.services={},this.logger=Yo,this.modules={external:[]},see(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=CP();this.options={...o,...this.options,...EP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Yo.init(s(this.modules.logger),this.options):Yo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=ree);const m=new xP(this.options);this.store=new yP(this.options.resources,this.options);const g=this.services;g.logger=Yo,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new eee(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new tee(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new iee(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new op(this.services,this.options),this.translator.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ip),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return t.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return t.store[p](...arguments),t}});const c=au(),f=()=>{const p=(m,g)=>{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),c.resolve(g),r(m,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ip;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),this.options.preload&&this.options.preload.forEach(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=au();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ip),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),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"&&vP.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<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=au();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{l(p,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),o}getFixedT(t,n,r){var o=this;const s=function(l,u){let c;if(typeof u!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),m=2;m<f;m++)p[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([l,u].concat(p))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let S;return c.keyPrefix&&Array.isArray(l)?S=l.map(x=>`${c.keyPrefix}${g}${x}`):S=c.keyPrefix?`${c.keyPrefix}${g}${l}`:l,o.t(S,c)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!o||l(s,t)))}loadNamespaces(t,n){const r=au();return this.options.ns?(typeof t=="string"&&(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=au();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],s=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=o.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.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=this.services&&this.services.languageUtils||new xP(CP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new cu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ip;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new cu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new yP(this.store.data,o),s.services.resourceStore=s.store),s.translator=new op(s.services,o),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ln=cu.createInstance();ln.createInstance=cu.createInstance,ln.createInstance,ln.dir,ln.init,ln.loadResources,ln.reloadResources,ln.use,ln.changeLanguage,ln.getFixedT,ln.t,ln.exists,ln.setDefaultNamespace,ln.hasLoadedNamespace,ln.loadNamespaces,ln.loadLanguages;class aee extends Td{register(){this.app.once("booting",()=>{this.initI18Next(),this.translateModelNames()})}boot(){this.translateModelColumns(),this.translateMenuEntries(),this.translateInstanceActions(),this.translateMassActions(),this.translateFormLabels(),this.translateStaticActions()}initI18Next(){ln.use(IY).init({lng:Mi.get("app.locale","en"),fallbackLng:Mi.get("app.fallback_locale","en"),resources:{[Mi.get("app.locale","en")]:{translation:Mi.get("trans",{})}},...Mi.get("i18n",{}),interpolation:{prefix:":",suffix:"",prefixEscaped:":\\b",suffixEscaped:"(?:\\b)",...Mi.get("i18n.interpolation",{})},debug:Mi.get("app.debug",!1)})}translateModelNames(){rc.reducer("model",t=>class extends t{static singular(){return ln.t(t.singular())}static plural(){return ln.t(t.plural())}},0)}translateModelColumns(){for(const t of Object.keys(rc.make()))ar.reducer(`model${He.studly(t)}Columns`,n=>n.map(r=>({...r,label:ln.t(r.label)})),99)}translateMenuEntries(){ar.reducer("menuItems",t=>{const n=t.find(r=>r.key==="dashboard");return n&&(n.text=ln.t(n.text)),t},5)}translateMassActions(){ar.reducer("massActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateInstanceActions(){ar.reducer("instanceActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateStaticActions(){ar.reducer("staticActions",(t,n)=>{const r=t.find(({key:o})=>o==="create");return r&&(r.label=ln.t("Create :model",{model:n.singular()})),t})}translateFormLabels(){Bi.reducer("getDefaultInputProps",t=>Array.isArray(t)?t.map(n=>({...n,label:n!=null&&n.label?ln.t(n.label):n==null?void 0:n.label})):{...t,label:t!=null&&t.label?ln.t(t.label):t==null?void 0:t.label},99)}}const lee={palette:{primary:{main:"#1d9798"},secondary:{main:"#fa510c"}}},cee=e=>e.make("cms").getRoutes(),uee=({theme:e=lee,themeArgs:t,providers:n,...r})=>{const o=rf("(prefers-color-scheme: dark)"),s=Z.useMemo(()=>Sg({...e,palette:{...e.palette,mode:o?"dark":"light"}},...t??[]),[e,o,t]),l=Z.useMemo(()=>[ov,aee,...n||[]],[n]);return y.jsxs(e6,{theme:s,children:[y.jsx(ZH,{}),y.jsx(yB,{routes:cee,providers:l,...r})]})},RP=document.getElementById("root");if(!RP)throw new Error("Failed to find the root element");dh.createRoot(RP).render(y.jsx(Z.StrictMode,{children:y.jsx(uee,{})}))})();
179
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ks(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Vy.assertOptions(r,{silentJSONParsing:Xi.transitional(Xi.boolean),forcedJSONParsing:Xi.transitional(Xi.boolean),clarifyTimeoutError:Xi.transitional(Xi.boolean)},!1),o!=null&&(pe.isFunction(o)?n.paramsSerializer={serialize:o}:Vy.assertOptions(o,{encode:Xi.function,serialize:Xi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[n.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=Cr.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let p,m=0,g;if(!c){const x=[tP.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=tP.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Ks(this.defaults,t);const n=Kk(t.baseURL,t.url);return Lk(n,t.params,t.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(t){Gs.prototype[t]=function(n,r){return this.request(Ks(r||{},{method:t,url:n,data:(r||{}).data}))}}),pe.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Ks(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Gs.prototype[t]=n(),Gs.prototype[t+"Form"]=n(!0)});let EJ=class YO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new sl(s,l,u),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 YO(function(o){t=o}),cancel:t}}};function RJ(e){return function(n){return e.apply(null,n)}}function kJ(e){return pe.isObject(e)&&e.isAxiosError===!0}const Ky={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(Ky).forEach(([e,t])=>{Ky[t]=e});function oP(e){const t=new Gs(e),n=wk(Gs.prototype.request,t);return pe.extend(n,Gs.prototype,t,{allOwnKeys:!0}),pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return oP(Ks(e,o))},n}const On=oP(ou);On.Axios=Gs,On.CanceledError=sl,On.CancelToken=EJ,On.isCancel=Uk,On.VERSION=nP,On.toFormData=Gf,On.AxiosError=St,On.Cancel=On.CanceledError,On.all=function(t){return Promise.all(t)},On.spread=RJ,On.isAxiosError=kJ,On.mergeConfig=Ks,On.AxiosHeaders=Cr,On.formToJSON=e=>Bk(pe.isHTMLForm(e)?new FormData(e):e),On.getAdapter=eP.getAdapter,On.HttpStatusCode=Ky,On.default=On;const{Axios:Cne,AxiosError:Ene,CanceledError:Rne,isCancel:kne,CancelToken:Pne,VERSION:Tne,all:One,Cancel:$ne,isAxiosError:PJ,spread:Ane,toFormData:jne,AxiosHeaders:_ne,HttpStatusCode:Mne,formToJSON:Ine,getAdapter:Nne,mergeConfig:Lne}=On;function qs(e){return t=>{var n;if(!(t instanceof Error))throw t;e({message:PJ(t)?((n=t.response)==null?void 0:n.data.message)??t.message:t.message,severity:"error"})}}function Gy(){return Z.useContext(Oy).notify}function TJ(){const e=Gy();return Z.useCallback(t=>{qs(e)(t)},[e])}const OJ=({create:e=!1})=>{const[t,n]=Z.useState(),{id:r}=r4(),{t:o}=Kn(),s=Gy(),l=dc(),u=xi(),c=Wr("breakpoint","md");Ay(t!=null&&t.exists?o("Edit :model “:label“",{model:u.singular(),label:(t==null?void 0:t.getLabel())||"..."}):o("Create :model",{model:u.singular()})),nX();const f=Tt("cms").getComponent("Breadcrumbs");Z.useEffect(()=>{e?n(new u):u.find(r).then(S=>n(S??void 0))},[r,u,e]);const p=Z.useCallback(()=>{s(o(":model saved successfully",{model:u.singular()})),t!=null&&t.wasRecentlyCreated&&l(`/${He.kebab(u.plural())}/${t.getKey()}`)},[s,l,u,t,o]),m=TJ(),g=Z.useMemo(()=>Tt("cms").getModelFormProps(t),[t]);return t?y.jsx(Ur,{sx:{p:{xs:1,sm:2,md:3}},children:y.jsxs(vi,{container:!0,children:[y.jsx(vi,{xs:12,children:y.jsx(f,{parts:[{name:u.plural(),href:"/"+He.kebab(u.plural())},{name:t.exists?t.getLabel():o("New")}]})}),y.jsx(vi,{xs:12,[c]:6,children:y.jsx(Bd,{submitText:"Save",...g,item:t,onSuccess:p,onError:m})})]})}):null};function $J(e){const{setDisplacement:t}=Z.useContext(Oy),n=br(),r=En(),o=n.spacing(r?3:1),s=e===!1?o:n.spacing(e);Z.useEffect(()=>(t(s),()=>{t(o)}),[s,o,t])}function AJ(){return Z.useContext(ck).dialog}function qy(){const e=dc(),t=Gy(),n=AJ(),{t:r}=Kn(),{refresh:o}=hc();return{navigate:e,notify:t,dialog:n,t:r,refresh:o}}const jJ=re(sy)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),_J=re(wq)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),MJ=({variant:e="default"})=>{const t=xi(),n=En(),[r]=So(),o=r.get("tab")??"all",[s,l]=Z.useState(!1),u=Z.useRef(null),[c,f]=Z.useState(0),p=qy(),m=Z.useMemo(()=>Tt("cms").getStaticActions(t,o),[t,o]);if($J(e==="fab"&&m.length>0?n?12:10:!1),m.length===0)return null;const g=(b,w)=>{f(w),l(!1)},S=()=>{l(b=>!b)},x=b=>{u.current&&u.current.contains(b.target)||l(!1)};return e==="fab"?m.length===1?bs.createPortal(y.jsx(jJ,{color:"primary",onClick:()=>m[0].callback(p),children:m[0].icon||m[0].label.charAt(0).toUpperCase()}),document.body):bs.createPortal(y.jsx(_J,{ariaLabel:`actions for ${t.singular()}`,icon:y.jsx(HR,{}),color:"primary",onClose:()=>l(!1),onOpen:()=>l(!0),open:s,children:m.map(b=>y.jsx(Lq,{icon:b.icon||b.label.charAt(0).toUpperCase(),tooltipTitle:b.label,onClick:()=>b.callback(p)},b.label))}),document.body):y.jsxs(y.Fragment,{children:[y.jsxs(EH,{variant:"contained",ref:u,"aria-label":m[c].label,children:[y.jsx(or,{onClick:()=>m[c].callback(p),children:m[c].label}),m.length>1&&y.jsx(or,{variant:"contained",size:"small","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,"aria-label":`select ${t.singular()} actions`,"aria-haspopup":"menu",onClick:S,children:y.jsx(fk,{})})]}),y.jsx(Vc,{open:s,anchorEl:u.current,role:void 0,transition:!0,children:({TransitionProps:b,placement:w})=>y.jsx(Za,{...b,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:y.jsx(oo,{children:y.jsx(eR,{onClickAway:x,children:y.jsx(xR,{id:"split-button-menu",children:m.map((P,R)=>y.jsx(Gi,{selected:R===c,onClick:T=>g(T,R),children:P.label},P.label))})})})})})]})};function Qy(){const{open:e,setOpen:t}=Z.useContext(Qo);return{open:e,handleDrawerOpen:()=>{t(!0)},handleDrawerClose:()=>{t(!1)},toggle:()=>{t(s=>!s)}}}function iP(){const{currentPage:e}=Z.useContext(Qo);return e}function sP(){const{showSearch:e}=Z.useContext(Qo);return e}function aP(){const{showBackButton:e}=Z.useContext(Qo);return e}const IJ=re(pE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({theme:e,open:t,drawerWidth:n,height:r})=>({zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),height:r,...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),NJ=re(pE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({height:e})=>({height:e})),LJ=({slots:e={},...t})=>{const n=En(),r=n?IJ:NJ,{["Layout.AppBar.MenuButton"]:o,["Layout.SearchBar"]:s,["Layout.BackButton"]:l,["Layout.AppLogo"]:u}=Tt("cms").getComponents(),{open:c}=Qy(),f=sP(),p=aP(),m=Wr("appBar.height"),g=Wr("drawer.width",280),{start:S=null,end:x=null}=e,b=iP();return y.jsx(r,{open:c,height:m,drawerWidth:g,...t,children:y.jsxs(DQ,{children:[(n&&!c||!n&&!p)&&y.jsx(o,{}),!n&&p&&y.jsx(l,{}),n?null:S,y.jsx(bn,{width:"100%",variant:"h6",noWrap:!0,component:"div",children:!n&&b||_i("app.name",document.title)}),y.jsx(Ur,{sx:{flexGrow:1}}),y.jsxs(Ur,{display:"flex",alignItems:"center",children:[f&&y.jsx(s,{}),x||y.jsx(u,{})]})]})})};function DJ(e){return y.jsx(Hn,{component:Ld,to:-1,edge:"start",color:"inherit","aria-label":"back",...e,children:y.jsx(Bf,{})})}const lP=(e,t)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),cP=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(9)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(10)} + 1px)`}}),FJ=re(lR,{shouldForwardProp:e=>!["open","width"].includes(String(e))})(({theme:e,open:t,width:n})=>({flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...lP(e,n),"& .MuiDrawer-paper":lP(e,n)},...!t&&{...cP(e),"& .MuiDrawer-paper":cP(e)}})),BJ=re(lR,{shouldForwardProp:e=>e!=="width"})(()=>({})),zJ=re("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(0,1),...e.mixins.toolbar})),UJ=e=>{const t=br(),n=En(),{open:r,handleDrawerClose:o}=Qy(),s=n?FJ:BJ,l=Wr("drawer.width",280),u=Wr("appBar.height"),c=Tt("cms").getComponent("RecursiveList"),f=Tt("cms").getMenuItems();return y.jsxs(s,{variant:n?"permanent":"temporary",open:r,width:l,onClose:o,PaperProps:{sx:{width:l}},sx:{display:"flex",direction:"flex-column",flexWrap:"nowrap",height:"100%"},...e,children:[y.jsx(zJ,{style:{height:u},children:y.jsx(Hn,{onClick:o,children:t.direction==="ltr"?y.jsx(Bf,{}):y.jsx(zf,{})})}),y.jsx(Gc,{}),y.jsx(Ur,{sx:{flexGrow:1,overflowY:"auto",overflowX:"hidden"},children:y.jsx(c,{collapsed:!r&&n,items:f,onClick:()=>!n&&o()})})]})},WJ=()=>{const e=iP(),t=Wr("breakpoint","md"),n=aP(),{["Layout.BackButton"]:r}=Tt("cms").getComponents();return y.jsxs(oo,{sx:{display:{xs:"none",[t]:"flex"},boxShadow:o=>o.shadows[3],py:2,px:3,borderRadius:0,alignItems:"center"},children:[n&&y.jsx(r,{}),y.jsx(bn,{variant:"h5",noWrap:!0,children:e})]})},Yy=Z.createContext({Model:null,anchorEl:null,setAnchorEl:()=>{},columnsFilter:[],setColumnsFilter:()=>{},searchParams:new URLSearchParams,setSearchParams:()=>{},handleApplyFilters:()=>{},clearSearchParams:()=>{},clearFilters:()=>{}}),al=Z.createContext({key:"",type:"",operator:"",value:"",isRelation:!1,setKey:()=>{},setType:()=>{},setOperator:()=>{},setValue:()=>{},setIsRelation:()=>{}}),HJ=e=>{if(!Array.isArray(e))return e;let t;return je.isEmpty(e)?t="":t=e[0],t},VJ=e=>{if(Array.isArray(e))return e;let t;return je.isEmpty(e)?t=[]:t=[e,""],t},KJ=async(e,t,n)=>{const r=e.getSchema().relations[t],o=nc().make(r.model),s=o.getSchema().primaryKey,l=[];for(const u of n){const c=await o.where(s,u).first();l.push(c)}return l};function GJ(e,t){const n=Tt("filter"),{Model:r,setColumnsFilter:o}=Z.useContext(Yy),[s,l]=Z.useState(t.key),[u,c]=Z.useState(t.operator),[f,p]=Z.useState(t.type),[m,g]=Z.useState(t.value),[S,x]=Z.useState(t.nullable),[b,w]=Z.useState(t.is_relation),P=Z.useMemo(()=>n.getFilterableColumns(r),[r]),R=$=>()=>{o(O=>O.filter((_,N)=>N!==$))},T=async $=>{const O=$.target.value,_=P.find(K=>K.key===O),N=(_==null?void 0:_.type)??"text",D=(_==null?void 0:_.nullable)??!1,F=(_==null?void 0:_.is_relation)??!1;F?(c("relation"),g([])):b&&c("equals"),w(F),x(D),N!==f&&(c("equals"),g(()=>{if(["between","notBetween"].includes(u))return[];switch(n.getInputType(N)){case"number":return 0;case"boolean":return 0;default:return""}})),l(O),p(N)},A=async $=>{const O=$.target.value;u!==O&&g(_=>{switch(O){case"between":case"notBetween":return VJ(_);case"null":case"notNull":return"1";default:return HJ(_)}}),c(O)};return Z.useEffect(()=>{o($=>$.map((_,N)=>e===N?{..._,key:s,operator:u,type:f,value:m,nullable:S,is_relation:b}:_))},[s,u,f,m,S,b]),{columns:P,key:s,setKey:l,operator:u,setOperator:c,type:f,setType:p,value:m,setValue:g,nullable:S,setNullable:x,isRelation:b,setIsRelation:w,handleKey:T,handleOperator:A,handleRemoveColumn:R}}const uP=async(e,t,n)=>{const r=e.getSchema().relations[t].model,{data:o}=await nc().make(r).get(),s=o.all().filter(f=>!n.find(p=>p.getKey()===f.getKey())),l=s.length,u=n.length,c=15;return l+u>c?Un([...n,...s.slice(0,c-u)]):Un([...n,...s])},qJ=async(e,t,n="",r)=>{const o=e.getSchema().relations[t],s=nc().make(o.model),l=s.getSchema().primaryKey,{data:u}=await s.searchBy(n).get();return Un([...r,...u]).unique(l)},QJ=()=>{const e=En(),t=xi(),{key:n,value:r,setValue:o}=Z.useContext(al),[s,l]=Z.useState(!1),[u,c]=Z.useState(""),[f,p]=Z.useState(Un([])),[m,g]=Z.useState([]),S=Z.useMemo(()=>s&&f.count()===0,[s,f]),x=async(b,w)=>{c(w),je.isEmpty(w)||p(await qJ(t,n,w,Un(m)))};return Z.useEffect(()=>{r.length>0&&(async()=>g(await KJ(t,n,r)))()},[]),Z.useEffect(()=>{let b=!0;if(S)return(async()=>b&&p(await uP(t,n,m)))(),()=>{b=!1}},[S]),Z.useEffect(()=>{o(m.map(b=>b.getKey())),je.isEmpty(u)?(async()=>p(await uP(t,n,m)))():p(Un([]))},[m]),y.jsx(O9,{sx:{width:e?377:"100%"},open:s,onOpen:()=>{l(!0)},onClose:()=>{l(!1)},value:m,onChange:(b,w)=>{g(w)},inputValue:u,onInputChange:x,options:f.all()||[],getOptionLabel:b=>b.getLabel(),isOptionEqualToValue:(b,w)=>b.getKey()===w.getKey(),filterOptions:b=>b,renderInput:b=>y.jsx(YJ,{params:b,loading:S}),size:"small",loading:S,disableCloseOnSelect:!0,autoHighlight:!0,multiple:!0})},YJ=({params:e,loading:t})=>{const{t:n}=Kn();return y.jsx(ol,{...e,label:n("Value"),InputProps:{...e.InputProps,endAdornment:y.jsxs(Z.Fragment,{children:[t?y.jsx(qH,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})},Xy=({index:e=null})=>{const{t}=Kn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=Z.useContext(al),c=r.getInputType(o)==="datetime-local"?230:167.5,f=e!==null?`${t("Date")} ${e+1}`:`${t("Date")}`,p=Z.useMemo(()=>e!==null?s[e]:s,[s]),m=g=>{l(typeof e=="number"?S=>{const x=S;return x[e]=g.target.value,[...x]}:g.target.value)};return y.jsx(ol,{type:r.getInputType(o),label:f,value:ec.toDateTimeLocal(ec.parse(p)),onChange:m,size:"small",sx:{width:n?c:"100%"}})},XJ=()=>{const e=En(),{value:t,setValue:n}=Z.useContext(al),r=o=>{const s=o.target.checked;n(s?1:0)};return y.jsxs(y.Fragment,{children:[y.jsx(Yq,{checked:t,onChange:r,inputProps:{"aria-label":"filter-controlled"},size:"small"}),e&&y.jsx(Ur,{width:325})]})},Jy=({index:e=null})=>{const{t}=Kn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=Z.useContext(al),u=e!==null?`${t("Value")} ${e+1}`:`${t("Value")}`,c=Z.useMemo(()=>e!==null?s[e]:s,[s]),f=p=>{l(typeof e=="number"?m=>{const g=m;return g[e]=p.target.value,[...g]}:p.target.value)};return y.jsx(ol,{type:r.getInputType(o),label:u,value:c||"",onChange:f,sx:{width:n?167.5:"100%"},size:"small"})},Zy=()=>{const e=En(),t=Tt("filter"),{type:n,operator:r}=Z.useContext(al),o=Z.useMemo(()=>["between","notBetween"].includes(r),[r]);if(["null","notNull"].includes(r))return e?y.jsx(Ur,{width:230}):null;if(o)switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsxs(y.Fragment,{children:[y.jsx(Xy,{index:0}),y.jsx(Xy,{index:1})]});default:return y.jsxs(y.Fragment,{children:[y.jsx(Jy,{index:0}),y.jsx(Jy,{index:1})]})}switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsx(Xy,{});case"autocomplete":return y.jsx(QJ,{});case"boolean":return y.jsx(XJ,{});default:return y.jsx(Jy,{})}},JJ=({index:e,column:t})=>{const{t:n}=Kn(),r=En(),o=Wr("breakpoint","md"),s=Tt("filter"),l=Z.useMemo(()=>s.getMatchingOperators(t),[t]),{columns:u,key:c,setKey:f,operator:p,setOperator:m,type:g,setType:S,value:x,setValue:b,isRelation:w,setIsRelation:P,handleKey:R,handleOperator:T,handleRemoveColumn:A}=GJ(e,t),$=["boolean"].includes(s.getInputType(g));return y.jsx(al.Provider,{value:{key:c,setKey:f,type:g,setType:S,operator:p,setOperator:m,value:x,setValue:b,isRelation:w,setIsRelation:P},children:y.jsxs(vi,{container:!0,display:"flex",flexDirection:{xs:"column",[o]:"row"},flexWrap:{xs:"wrap",[o]:"nowrap"},alignItems:"center",justifyContent:"space-between",gap:.5,children:[y.jsxs(ir,{display:"flex",flexDirection:{xs:"column",[o]:"row"},alignItems:"center",width:"100%",my:1,gap:1.5,children:[y.jsxs(ir,{direction:"row",alignItems:"center",...!r&&{width:"100%"},gap:1,children:[y.jsxs(Af,{sx:{width:r?195:`calc(100% - ${$?88:44}px)`},children:[y.jsx(jf,{id:"filter-column-select-label",size:"small",children:n("Column")}),y.jsx(nl,{labelId:"filter-column-select-label",id:"filter-column-select",value:c,label:n("Column"),onChange:R,size:"small",children:u.map(({key:O,label:_})=>y.jsx(Gi,{value:O,children:n(_)},`column_${O}_option`))})]}),!r&&y.jsxs(ir,{direction:"row",alignItems:"center",children:[$&&y.jsx(Zy,{}),y.jsx(Hn,{color:"error",onClick:A(e),children:y.jsx(ky,{})})]})]}),!w&&!$&&y.jsxs(Af,{sx:{width:r?147.5:"100%"},children:[y.jsx(jf,{id:"filter-operator-select-label",size:"small",children:n("Operator")}),y.jsx(nl,{labelId:"filter-operator-select-label",id:"filter-operator-select",value:p,label:n("Operator"),onChange:T,size:"small",children:l.map(({key:O,label:_})=>y.jsx(Gi,{value:O,children:n(_)},`operator_${O}_option`))})]}),r?y.jsx(Zy,{}):!$&&y.jsx(Zy,{})]},`filter_${c}_${e}`),r&&y.jsx(Hn,{color:"error",onClick:A(e),children:y.jsx(ky,{})})]})})},dP=({dialog:e=!1})=>{const{t}=Kn(),n=En(),r=Wr("breakpoint","md"),o=Tt("filter"),{columnsFilter:s,setColumnsFilter:l,handleApplyFilters:u,clearFilters:c}=Z.useContext(Yy),f=()=>{l(p=>[...p,{key:"",operator:"equals",type:"text",value:"",appended:!1,nullable:!1,is_relation:!1}])};return y.jsxs(Ur,{sx:{minWidth:{[r]:567.5},p:e?0:2},children:[y.jsx(ir,{children:s.map((p,m,g)=>{const S=m==g.length-1;return y.jsxs(y.Fragment,{children:[y.jsx(JJ,{index:m,column:p},`row_${p.key}`),!n&&y.jsx(Gc,{sx:{mt:S?.625:1.25,mb:S?.75:1.5,...S&&{border:"none"}}})]})})}),y.jsx(ir,{direction:"row",alignItems:"center",justifyContent:"center",children:n?y.jsx(or,{variant:"outlined",onClick:f,fullWidth:!0,sx:{mt:.75},children:`+ ${t("Add Column")}`}):y.jsx(Hn,{onClick:f,color:"primary",sx:{fontSize:32},children:y.jsx(uk,{fontSize:"inherit"})})}),n&&y.jsxs(ir,{direction:"row",justifyContent:"space-between",mt:2,children:[y.jsx(or,{onClick:c,children:t("Clear")}),y.jsx(or,{variant:"contained",onClick:u,disabled:o.checkIfCanApplyFilters(s),children:t("Apply")})]})]})};function ZJ(e,t){const n=[],r=As.toObject(t);return!("where"in r)||je.isEmpty(r.where)?[]:(Object.entries(r.where).forEach(([o,s])=>{let[l,u="equals"]=o.split(":");const c=e.find(p=>p.key===l);if(!c)return;u==="equals"&&c.is_relation&&(u="relation");let f=s;switch(c.type){case"text":{Array.isArray(s)&&(f=s.join(","));break}case"datetime-local":{Array.isArray(s)?f=s.map(p=>ec.toDateTimeLocal(p)):f=ec.toDateTimeLocal(s);break}case"boolean":{f=Number(s);break}}n.push({key:c.key,operator:u,type:c.type,value:f,nullable:c.nullable,is_relation:c.is_relation})}),n)}const eZ=e=>{const t=Tt("filter"),n=new URLSearchParams;return e.forEach(r=>{const{key:o,operator:s,value:l,type:u}=r;let c=`:${s}`;if(["equals"].includes(s)&&(c=""),Array.isArray(l))l.forEach((f,p)=>{let m=f;switch(t.getInputType(u)){case"datetime-local":{m=new Date(f).toISOString();break}}n.set(`where[${o}${c}][${p}]`,m)});else{let f=l;switch(t.getInputType(u)){case"datetime-local":{f=new Date(l).toISOString();break}}n.set(`where[${o}${c}]`,f)}}),n},tZ=()=>{const{t:e}=Kn(),t=Tt("filter"),n=En(),r=xi(),[o,s]=So(),l=Z.useMemo(()=>"where"in As.toObject(o),[o]),[u,c]=Z.useState(null),[f,p]=Z.useState([]),m=!!u,g=Z.useMemo(()=>t.getFilterableColumns(r),[r]),S=R=>{c(R.currentTarget)},x=()=>{c(null),setTimeout(()=>{p([])},300)},b=()=>{w();const R=eZ(f);s(R,{replace:!0}),x()},w=()=>{s(R=>{const T=new URLSearchParams(R);for(const[A]of R.entries())A.startsWith("where[")&&T.delete(A);return T})},P=()=>{w(),x(),setTimeout(()=>{p([])},300)};return Z.useEffect(()=>{const R=ZJ(g,o);p(R)},[g,o,u]),y.jsxs(Yy.Provider,{value:{Model:r,anchorEl:u,setAnchorEl:c,columnsFilter:f,setColumnsFilter:p,searchParams:o,setSearchParams:s,handleApplyFilters:b,clearSearchParams:w,clearFilters:P},children:[y.jsx(Hn,{"aria-describedby":"model-filter-popover-button","aria-label":"filter",onClick:S,children:y.jsx(Qg,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(gk,{})})}),n?y.jsx(RR,{id:"model-filter-popover",open:m,anchorEl:u,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(dP,{})}):y.jsxs(ny,{open:m,onClose:x,fullWidth:!0,children:[y.jsxs(iy,{children:[e("Filter :model",{model:r.plural()}),y.jsx(Hn,{onClick:x,sx:{position:"absolute",right:8,top:8},children:y.jsx(Uf,{})})]}),y.jsx(oy,{dividers:!0,children:y.jsx(dP,{dialog:!0})}),y.jsxs(ry,{children:[y.jsx(or,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(or,{variant:"contained",onClick:b,disabled:t.checkIfCanApplyFilters(f),children:e("Apply")})]})]})]})},ev=Z.createContext({columns:[],columnCount:0,selected:Un([]),massActions:[],items:Un([]),error:new Error("Trying to access TableContext outside of TableProvider"),Model:null});function tv(){const{selected:e,items:t}=Z.useContext(ev),n=Wm(e),r=()=>{e.splice(0,e.count())},o=f=>{const p=e.search(f);if(p!==!1){e.pull(p);return}e.push(f)},s=()=>{if(t){if(e.count()===t.count()){r();return}e.splice(0,e.count(),...t)}},l=f=>n.contains(f),u=t?n.count()>0&&n.count()<t.count():!1,c=t&&t.count()?n.count()===t.count():!1;return{selected:n,indeterminate:u,allSelected:c,isSelected:l,handleClearSelected:r,handleSelectToggle:o,handleSelectToggleAll:s}}function Ji(){return Z.useContext(ev)}function nZ(e){const[t,n]=Z.useState(""),{selected:r}=tv(),{t:o}=Kn(),s=qy(),{massActions:l}=Ji(),u=f=>{n(f.target.value)};if(Z.useEffect(()=>{r.isEmpty()&&n("")},[r]),l.length===0)return null;const c=r.isEmpty()?o("Select items to apply"):o("Select action");return y.jsxs(ir,{direction:"row",alignItems:"center",...e,children:[y.jsxs(Af,{sx:{m:1,minWidth:200},size:"small",children:[y.jsx(jf,{id:"mass-actions-select-label",children:c}),y.jsxs(nl,{labelId:"mass-actions-select-label",id:"mass-actions-select",value:t,label:c,onChange:u,disabled:r.isEmpty(),children:[y.jsx(Gi,{value:"",children:y.jsx("em",{children:o("None")})}),l.map(f=>y.jsx(Gi,{value:f.key,children:f.label},f.key))]})]}),y.jsx(or,{size:"small",disabled:r.isEmpty()||!t,onClick:()=>{var f;(f=l.find(p=>p.key===t))==null||f.callback({selected:r,...s})},children:o("Apply")})]})}const rZ=()=>{const{handleDrawerOpen:e}=Qy();return y.jsx(Hn,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:e,sx:{mr:{md:2}},children:y.jsx(bk,{})})},Jf=Z.forwardRef(({to:e,children:t,...n},r)=>y.jsx(fy,{component:Ld,to:e,ref:r,sx:{textDecoration:"none"},...n,children:t}));Jf.displayName="Link";const oZ=({label:e})=>{if(isNaN(e)||isNaN(parseFloat(e))){const t={"&laquo; Previous":y.jsx(Bf,{}),"Next &raquo;":y.jsx(zf,{}),"Last &raquo;":y.jsx(vk,{}),"&laquo; First":y.jsx(yk,{})};return y.jsx(y.Fragment,{children:t[e]||e})}return y.jsx(y.Fragment,{children:e})},iZ=({variant:e="default",...t})=>{const n=e==="default",[r,o]=So(),[s,l]=Z.useState(r.get("page")||"1"),{links:u,meta:{current_page:c=1,links:f=[],last_page:p=1}={}}=hc(),{first:m,prev:g,next:S,last:x}=u||{},b=P=>{P.preventDefault(),o(R=>(R.set("page",s||"1"),R))},w=[{url:c>1?m:null,label:"&laquo; First",active:!1},{url:g,label:"&laquo; Previous",active:!1},{element:y.jsx(W4,{onSubmit:b,preventScrollReset:!0,children:y.jsx(ol,{size:"small",type:"number",variant:"standard",sx:{width:56,"& input":{textAlign:"center","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}},value:s,error:Number(s)>p,helperText:Number(s)>p?`Max ${p}`:void 0,onChange:P=>{!Number.isNaN(Number(P.target.value))&&Number(P.target.value)>0&&l(P.target.value),P.target.value===""&&l("")},onBlur:P=>{o(R=>(R.set("page",P.target.value||"1"),R),{replace:!0})},disabled:p===1,"aria-label":"Page number"})},"page")},{url:S,label:"Next &raquo;",active:!1},{url:c<p?x:null,label:"Last &raquo;",active:!1}];return Z.useEffect(()=>{c&&l(String(c))},[c]),y.jsx(ir,{spacing:1,direction:"row",justifyContent:"center",alignItems:"center",...t,children:(n?f:w).map((P,R)=>P.element||y.jsx(or,{variant:P.active?"contained":"text",color:"primary",size:"small",sx:{minWidth:"unset",width:32,height:32,borderRadius:"50%"},disabled:!P.url,component:Jf,to:P.url,children:y.jsx(oZ,{label:P.label})},R))})},sZ=()=>{const{t:e}=Kn(),{meta:{total:t=0,from:n=0,to:r=0}={}}=hc();return y.jsx(bn,{variant:"caption",noWrap:!0,children:e(":from–:to of :total",{from:n,to:r,total:t})})},aZ=()=>{const{t:e}=Kn(),{meta:{per_page:t=15}={}}=hc(),[,n]=So(),r=s=>{n(l=>{const u=new URLSearchParams(l);return u.set("per_page",s.target.value.toString()),u})},o=Hm(Tt("cms"),"perPageOptions",[15,30,75,150]);return y.jsxs(ir,{direction:"row",alignItems:"center",gap:1,children:[y.jsxs(bn,{variant:"caption",children:[e("Rows per page"),":"]}),y.jsx(nl,{value:t,onChange:r,size:"small",variant:"standard",sx:{fontSize:s=>s.typography.caption.fontSize,"& .MuiSelect-select":{py:.5}},children:o.map(s=>y.jsx(Gi,{value:s,sx:{fontSize:l=>l.typography.caption.fontSize,minHeight:"unset",lineHeight:1,py:1.5},children:s},s))})]})};function lZ(e,t){const[n,r]=Z.useState(!1);return Z.useEffect(()=>{const o=new Set,s=u=>{o.add(u.key),e.every(c=>o.has(c))&&(r(!0),t&&t())},l=u=>{o.delete(u.key),e.every(c=>!o.has(c))&&r(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[e,t]),n}const cZ=re(ol)(({theme:e})=>({"& .MuiInputBase-root":{backgroundColor:e.palette.background.paper}})),uZ=gm.throttle((e,t)=>{t(n=>{const r=new URLSearchParams(n);return e?r.set("q",e):r.delete("q"),r})},500),dZ=()=>{const[e,t]=So(),n=e.get("q")||"",[r,o]=Z.useState(n),[s,l]=Z.useState(!1),u=Z.useRef(null),{t:c}=Kn();Z.useEffect(()=>{o(n)},[n]);const f=g=>{o(g.target.value),uZ(g.target.value,t)},p=En();lZ(["Control","/"],()=>{u.current.focus()});const m=p?300:"calc(100vw - 58px)";return y.jsxs(y.Fragment,{children:[!p&&!s&&y.jsx(Hn,{color:"inherit",onClick:()=>l(!0),children:y.jsx(Qg,{variant:"dot",color:"secondary",invisible:!n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(Ty,{})})}),y.jsx(Ag,{orientation:"horizontal",in:p||s,addEndListener:()=>{var g;!p&&s&&((g=u.current)==null||g.focus())},unmountOnExit:!1,children:y.jsx(cZ,{placeholder:p?`(Ctrl + /) ${c("Search...")}`:`${c("Search...")}`,value:r,InputProps:{endAdornment:y.jsx(Ty,{})},inputProps:{ref:u},onChange:f,onBlur:()=>l(!1),sx:{width:m},size:"small"})})]})},fZ=({children:e,...t})=>y.jsx(bi,{sx:{width:"1px"},padding:"checkbox",...t,children:e}),pZ=()=>{const{t:e}=Kn(),[t,n]=So(),{columns:r,Model:o}=Ji(),s=t.get("order_by")||"",[l="",u=""]=s.split(":"),[c,f]=Z.useState(l),[p,m]=Z.useState(u),[g,S]=Z.useState(!1),x=()=>{S(!0)},b=()=>{S(!1),f(l),m(u)},w=()=>{if(!c||!p){S(!1);return}n(R=>{const T=new URLSearchParams(R);return T.set("order_by",`${c}:${p}`),T}),S(!1)},P=()=>{n(R=>{const T=new URLSearchParams(R);return T.delete("order_by"),T}),S(!1),f(""),m("")};return y.jsxs(y.Fragment,{children:[y.jsx(Hn,{onClick:x,children:y.jsx(Qg,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(xk,{})})}),y.jsxs(ny,{open:g,onClose:b,fullWidth:!0,children:[y.jsxs(iy,{children:[e("Sort :model",{model:o.plural()}),y.jsx(Hn,{onClick:b,sx:{position:"absolute",right:8,top:8},children:y.jsx(Uf,{})})]}),y.jsxs(oy,{dividers:!0,children:[y.jsxs(MR,{value:c,onChange:R=>{f(R.target.value),p||m("asc")},children:[y.jsx(bn,{variant:"caption",children:e("Column")}),y.jsx(Gc,{}),Un(r).whereStrict("sortable","!=",!1).map(({key:R,label:T})=>y.jsx(ly,{value:R,control:y.jsx(vy,{}),label:T},R))]}),y.jsx(bn,{variant:"caption",children:e("Direction")}),y.jsx(Gc,{}),y.jsxs(MR,{value:p,onChange:R=>m(R.target.value),children:[y.jsx(ly,{value:"asc",control:y.jsx(vy,{}),label:y.jsxs(y.Fragment,{children:[e("Ascending"),y.jsx(pk,{})]})}),y.jsx(ly,{value:"desc",control:y.jsx(vy,{}),label:y.jsxs(y.Fragment,{children:[e("Descending"),y.jsx(dk,{})]})})]})]}),y.jsxs(ry,{children:[y.jsx(or,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(or,{onClick:w,variant:"contained",children:e("Apply")})]})]})]})},hZ=({items:e,loading:t,children:n,error:r})=>{const o=xi(),s=Z.useMemo(()=>Un([]),[o,e]),[l]=So(),u=l.get("tab")??"all",c=Z.useMemo(()=>[{key:o.getSchema().labeledBy,label:He.human(o.getSchema().labeledBy)}],[o]),f=En(),p=Z.useMemo(()=>Tt("cms").getMassActions(o,u),[o,u]),m=Hm(Tt("cms"),`model${He.studly(o.getSchemaName())}Columns`,c),S=(f?m.length:1)+(p.length>0?2:1),x={columns:m,columnCount:S,massActions:p,items:e,loading:t,selected:s,error:r,Model:o};return y.jsx(ev.Provider,{value:x,children:n})},mZ=({items:e,loading:t,error:n,children:r,...o})=>y.jsx(hZ,{items:e,loading:t,error:n,children:y.jsx(wQ,{component:oo,children:y.jsx(iQ,{...o,children:r})})}),gZ=({children:e,...t})=>{const{massActions:n,columns:r,items:o}=Ji(),s=En(),[l,u]=So(),{indeterminate:c,allSelected:f,handleSelectToggleAll:p}=tv(),{["ModelIndex.Table.ShrinkedCell"]:m}=Tt("cms").getComponents(),g=l.get("order_by")||"",[S,x]=g.split(":"),b=w=>()=>{u(S===w?P=>{const R=new URLSearchParams(P);return x?x==="desc"?(R.delete("order_by"),R):(R.set("order_by",`${w}:desc`),R):(R.set("order_by",`${w}:asc`),R)}:P=>{const R=new URLSearchParams(P);return R.set("order_by",`${w}:asc`),R})};return y.jsxs(_Q,{...t,children:[e,s&&y.jsxs(rl,{children:[n.length>0&&y.jsx(m,{children:y.jsx(Jg,{indeterminate:c,checked:f,onChange:p,disabled:o&&o.count()===0})}),r.map(({key:w,label:P,sortable:R=!0,...T})=>y.jsx(bi,{sortDirection:R&&S===w&&x||!1,...T,children:y.jsxs(XQ,{active:R&&S===w,direction:x,onClick:b(w),children:[P,R&&S===w?y.jsx(Ur,{component:"span",sx:{visibility:"hidden",display:"none"},children:x==="desc"?"sorted descending":"sorted ascending"}):null]})},w)),y.jsx(m,{})]})]})},yZ=()=>{const{massActions:e,columns:t,items:n}=Ji(),r=En(),{["ModelIndex.Table.ShrinkedCell"]:o}=Tt("cms").getComponents(),s=(n==null?void 0:n.count())||15;return y.jsx(y.Fragment,{children:Array.from({length:s}).map((l,u)=>y.jsxs(rl,{children:[e.length>0&&y.jsx(o,{children:y.jsx(Jg,{})}),r&&t.map(({key:c,label:f,sortable:p,...m},g)=>y.jsx(bi,{...m,children:y.jsx(zR,{variant:"text",height:24})},g)),!r&&y.jsx(bi,{sx:{px:0},children:Array.from({length:t.length}).map((c,f)=>y.jsx(zR,{variant:"text",width:"100%",height:24},f))}),y.jsx(o,{children:y.jsx(Hn,{children:y.jsx(Py,{})})})]},u))})},vZ=({children:e,...t})=>{const n=xi(),{t:r}=Kn(),{items:o,loading:s,columnCount:l}=Ji(),{["ModelIndex.StaticActions"]:u}=Tt("cms").getComponents(),c=Z.isValidElement(e)?e:(o||Un([])).map(e);return y.jsx(dQ,{...t,children:s||!(o!=null&&o.every(f=>f.getType()===n.getSchemaName()))?y.jsx(yZ,{}):o&&o.count()?c:y.jsx(rl,{children:y.jsxs(bi,{colSpan:l,sx:{textAlign:"center",py:10},children:[y.jsx(bn,{children:r("No :model found",{model:n.plural().toLocaleLowerCase()})}),y.jsx("br",{}),y.jsx(u,{})]})})})};class bZ{getFacadeAccessor(){return"cms"}}const ar=xo(bZ,_r),ll=re(bn)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& label":{fontWeight:"bold"}})),xZ=({content:e})=>["string","number"].includes(typeof e)?y.jsx(ll,{children:e}):e instanceof Date?y.jsx(ll,{children:e.toLocaleString(_i("app.locale","en"))}):typeof e=="object"&&!Z.isValidElement(e)?y.jsx(ll,{children:JSON.stringify(e)}):y.jsx(Z.Fragment,{children:e}),wZ=({label:e,content:t})=>["string","number"].includes(typeof t)?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]})," ",t]}):t instanceof Date?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]}),t.toLocaleString(_i("app.locale","en"))]}):typeof t=="object"&&!Z.isValidElement(t)?y.jsxs(ll,{children:[y.jsxs("label",{children:[e,":"]})," ",JSON.stringify(t)]}):y.jsxs(Z.Fragment,{children:[y.jsx(bn,{sx:{display:"inline"},children:y.jsxs("b",{children:[e,":"]})})," ",t]}),SZ=({item:e,...t})=>{const n=En(),r=dc(),o=xi(),{massActions:s,columns:l}=Ji(),u=Z.useMemo(()=>l.map(g=>({...g,content:ar[`model${He.studly(e.getType())}Get${He.studly(g.key)}Content`](je.get(e,g.key),e)})),[l,e]),{["ModelIndex.Table.ShrinkedCell"]:c,["ModelIndex.InstanceActions"]:f}=ar.getComponents(),{isSelected:p,handleSelectToggle:m}=tv();return y.jsxs(rl,{...t,sx:{cursor:e.deletedAt?"default":"pointer"},selected:p(e),hover:!e.deletedAt,children:[s.length>0&&y.jsx(c,{children:y.jsx(Jg,{checked:p(e),onChange:()=>m(e)})}),n&&u.map(({key:g,label:S,sortable:x,content:b,...w})=>y.jsx(bi,{...w,onClick:()=>{e.deletedAt||r(`/${He.kebab(o.plural())}/${e.getKey()}`)},children:y.jsx(xZ,{label:S,content:b})},g)),!n&&y.jsx(bi,{sx:{maxWidth:0,px:0},onClick:()=>{e.deletedAt||r(`/${He.kebab(o.plural())}/${e.getKey()}`)},children:u.map(({key:g,...S})=>y.jsx(wZ,{...S},g))}),y.jsx(c,{children:y.jsx(f,{item:e})})]})},CZ=({children:e,...t})=>{const{columnCount:n}=Ji(),r=En(),o=Wr("breakpoint","md"),{["ModelIndex.Pagination"]:s,["ModelIndex.PaginationDetails"]:l,["ModelIndex.PerPageSwitch"]:u}=Tt("cms").getComponents();return y.jsxs(PQ,{...t,children:[y.jsx(rl,{children:y.jsx(bi,{colSpan:n,children:y.jsxs(ir,{direction:r?"row":"column-reverse",alignItems:"center",justifyContent:"space-between",gap:3,children:[y.jsxs(ir,{direction:r?"row":"column-reverse",alignItems:r?"center":"flex-start",justifyContent:"flex-start",width:{xs:"100%",[o]:"auto"},gap:r?2:0,children:[y.jsx(u,{}),y.jsx(l,{})]}),y.jsx(s,{variant:r?"default":"compact",justifyContent:{xs:"center",[o]:"flex-end"}})]})})}),e]})},EZ=()=>{const{columnCount:e}=Ji(),{["ModelIndex.Filter"]:t,["ModelIndex.MassActions"]:n,["ModelIndex.Sort"]:r,["ModelIndex.Pagination"]:o}=Tt("cms").getComponents(),s=En(),l=Wr("breakpoint","md");return y.jsx(rl,{children:y.jsx(bi,{colSpan:e,sx:{p:1},children:y.jsxs(ir,{direction:{xs:"column",[l]:"row"},justifyContent:"space-between",spacing:1,children:[y.jsxs(ir,{direction:"row",alignItems:"center",width:{[l]:"100%"},children:[y.jsx(t,{}),!s&&y.jsx(r,{})]}),s&&y.jsx(ir,{direction:"row",alignItems:"center",justifyContent:{xs:"center",[l]:"flex-end"},rowGap:2,children:y.jsx(o,{variant:"compact",justifyContent:"end"})}),y.jsx(n,{})]})})})};function RZ(){const e=xi(),{t}=Kn(),[n,r]=So(),o=n.get("tab")||"all",s=(c,f)=>{r(()=>{const p=new URLSearchParams;return f!=="all"&&p.set("tab",f),p})},l=Z.useMemo(()=>e.getSchema().softDeletes?[{label:t("Trashed"),value:"trashed"}]:[],[e,t]),u=Hm(Tt("cms"),`model${He.studly(e.getSchemaName())}Tabs`,l);return u.length===0?null:y.jsx(Ur,{sx:{maxWidth:{xs:320,sm:480},bgcolor:"background.paper"},children:y.jsxs(yY,{value:o,onChange:s,variant:"scrollable",scrollButtons:"auto","aria-label":`tabs for ${e.singular()}`,allowScrollButtonsMobile:!0,children:[y.jsx(VR,{label:t("All"),value:"all"}),u.map(c=>y.jsx(VR,{label:c.label,value:c.value},c.value))]})})}function kZ(e){const{parts:t,...n}=e;return y.jsxs(fH,{"aria-label":"breadcrumb",...n,children:[y.jsx(fy,{underline:"hover",color:"inherit",to:"/",component:Ld,children:_i("app.name","Laravel")}),t==null?void 0:t.map(({name:r,href:o},s)=>o?y.jsx(fy,{underline:"hover",color:"inherit",to:o,component:Ld,children:r},s):y.jsx(bn,{color:"text.primary",children:r},s))]})}const fP=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=Z.useState(null),[l,u]=Z.useState(null),[c,f]=Z.useState({}),p=Wr("drawer.width",280),m=Tt("cms").getComponent("RecursiveMenu");return y.jsxs(pR,{...r,children:[t.map(g=>{const{text:S,icon:x,element:b=null,key:w,children:P,to:R,onClick:T}=g;return b||y.jsxs(kK,{disablePadding:!0,sx:{display:"block"},children:[y.jsxs(mK,{sx:{minHeight:48,justifyContent:e?"center":"initial",px:2.5},onClick:A=>{if(T&&T(A),P){if(e){u(()=>(s(A.currentTarget),P));return}f({...c,[w]:!c[w]});return}n&&n(A)},...R?{to:R,component:Jf}:{},children:[y.jsxs(gR,{sx:{minWidth:0,mr:e?"unset":3,justifyContent:"center",flexDirection:"column",alignItems:"center",color:"inherit"},children:[x,e&&y.jsx(bn,{fontSize:10,sx:{mt:.5},children:S})]}),!e&&y.jsx(yR,{primary:S}),!e&&P&&(c[w]?y.jsx(hk,{}):y.jsx(mk,{}))]}),P&&!e&&y.jsx(Ag,{in:c[w],timeout:"auto",unmountOnExit:!0,children:y.jsx(fP,{items:P,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0}})})]},w)}),e&&y.jsx(m,{items:l||[],onClick:n,collapsed:!1,sx:{pl:e?0:2,pb:0},anchorEl:o,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(null),u(null)},open:!!o,slotProps:{paper:{sx:{minWidth:p}}}})]})},pP=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=Z.useState({}),l=Wr("drawer.width",280);return y.jsxs(y.Fragment,{children:[y.jsx(my,{...r,children:t.map(u=>{const{text:c,icon:f,element:p=null,key:m,children:g,onClick:S,to:x}=u;return p||y.jsxs(Gi,{onClick:b=>{if(S&&S(b),g){s({...o,[m]:o[m]?null:b.currentTarget});return}n&&n(b)},...x?{component:Jf,to:x}:{},children:[f&&y.jsx(gR,{sx:{minWidth:0,mr:e?"auto":3,justifyContent:"center",color:"inherit"},children:f}),y.jsx(yR,{sx:{opacity:e?0:1},children:c}),!e&&g&&y.jsx(zf,{})]},m)})}),t.map(u=>{const{key:c,children:f}=u;return f?y.jsx(pP,{items:f,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0},open:!!o[c],anchorEl:o[c],anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>s({...o,[c]:null}),slotProps:{paper:{sx:{minWidth:l}}}},c):null})]})},nv={delete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send to trash":"delete permanently",u=e.getSchema().softDeletes?"sent to trash":"deleted";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm delete permanently"),message:s(`Are you sure you want to ${l} :count :model?`,{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.delete(t.pluck(e.getSchema().primaryKey).all()),n(s(`Successfully ${u} :count :model`,{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(f){qs(n)(f)}},restore:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :count :model?",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.restore(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully restored :count :model",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){qs(n)(u)}},forceDelete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete permanently :count :model?",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully deleted :count :model",{count:t.count(),model:He.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){qs(n)(u)}}},rv={delete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send :model “:label” to trash":"delete :model “:label” permanently",u=e.getSchema().softDeletes?"sent :model “:label” to trash":"deleted :model “:label”";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm permanent deletion"),message:s(`Are you sure you want to ${l}?`,{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.delete(),n(s(`Successfully ${u}`,{model:e.singular(),label:t.getLabel()})),o()}catch(f){qs(n)(f)}},restore:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :model “:label”?",{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.restore(),n(s("Successfully restored :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){qs(n)(u)}},forceDelete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete :model “:label” permanently?",{model:He.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.forceDelete(),n(s("Successfully deleted :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){qs(n)(u)}}},PZ={create:e=>({navigate:t})=>{t(`/${He.kebab(e.plural())}/create`)}};class TZ{getFacadeAccessor(){return"icon"}}const Zf=xo(TZ,_r);class OZ{getComponents(){return this.componentMap({})}getComponent(t){return this.getComponents()[t]}getRoutes(){return this.cmsRoutes([],this.getComponents(),nc().make())}getMenuItems(){return this.menuItems([],nc().make())}getModelFormProps(t){return this.wireModelFormProps({},t)}getMassActions(t,n){return this[`mass${He.studly(t.getSchemaName())}Actions`](this.massActions([],t,n),t,n)}getInstanceActions(t,n){return this[`instance${He.studly(t.getSchemaName())}Actions`](this.instanceActions([],t,n),t,n)}getStaticActions(t,n){return this[`static${He.studly(t.getSchemaName())}Actions`](this.staticActions([],t,n),t,n)}}const $Z=xa(OZ),su=e=>!(typeof e>"u"||e===null||je.isEmpty(e));class AZ{getInputType(t){switch(t){case"int":case"float":case"number":return"number";case"date":return"date";case"datetime":case"timestamp":return"datetime-local";case"autocomplete":return"autocomplete";case"bool":case"boolean":return"boolean";default:return"text"}}getOperators(){return _i("luminix.admin.filter.operators")}getMatchingOperators(t){return this.getOperators().filter(n=>["like"].includes(n)||!t.is_relation&&["relation"].includes(n)||["text"].includes(this.getInputType(t.type))&&["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","notBetween"].includes(n)||["number","date","datetime-local","boolean"].includes(this.getInputType(t.type))&&["like","contains","startsWith","endsWith"].includes(n)||!t.nullable&&["null","notNull"].includes(n)?!1:n).map(n=>{let r=n;switch(n){case"equals":r="=";break;case"notEquals":r="!=";break;case"greaterThan":r=">";break;case"greaterThanOrEquals":r=">=";break;case"lessThan":r="<";break;case"lessThanOrEquals":r="<=";break;default:r=He.human(r);break}return{key:n,label:r}})}getFilterableColumns(t){const{attributes:n=[],relations:r={}}=t.getSchema(),o=[...n.filter(s=>!s.hidden&&!s.appended).map(s=>{let l=s.phpType??"string";return s.cast!==null&&!je.isEmpty(s.cast)&&(l=s.cast),{key:s.name,label:He.human(s.name),type:l,nullable:s.nullable,is_relation:!1}}),...Object.entries(r??{}).reduce((s,[l])=>[...s,{key:l,label:He.human(l),type:"autocomplete",nullable:!1,is_relation:!0}],[])];return this.filterableColumns(o,t)}checkIfCanApplyFilters(t){return!!(t.length===0||t.map(r=>{if(!su(r.key)||!su(r.operator))return!0;if(["boolean"].includes(this.getInputType(r.type))){if(typeof r.value>"u"||je.isNull(r.value))return!0}else if(!su(r.value))return!0;return!!(Array.isArray(r.value)&&["between","notBetween"].includes(r.operator)&&(!su(r.value[0])||!su(r.value[1])))}).includes(!0))}}const jZ=xa(AZ);class _Z{constructor(){z0(this,"icons",[]);rc.reducer("model",t=>{const n=this;return class extends t{static icon(){return n.render("CategoryOutlined")}}},0)}forModel(t,n){rc.reducer(`model${He.studly(t)}`,r=>{const o=this;return class extends r{static icon(){return o.render(n)}}})}registerIcon(t,n){typeof t=="string"&&n?this.icons.push({name:t,component:n}):Object.entries(t).forEach(([r,o])=>{this.icons.push({name:r,component:o})})}make(t){return this.icons.find(n=>n.name===t).component}render(t,n={}){const r=this.make(t);return r?y.jsx(r,{...n}):null}all(){return this.icons.map(t=>t.name)}}const MZ=({item:e})=>{const t=qy(),[n]=So(),r=n.get("tab")??"all",o=Z.useMemo(()=>Tt("cms").getInstanceActions(Tt("model").make(e.getType()),r),[e,r]),[s,l]=Z.useState(null),u=!!s,c=p=>{l(p.currentTarget)},f=()=>{l(null)};return o.length===0?null:y.jsxs(y.Fragment,{children:[y.jsx(Hn,{"aria-describedby":"model-item-actions","aria-label":"filter",onClick:c,children:y.jsx(Py,{})}),y.jsx(my,{id:"model-item-actions",anchorEl:s,open:u,onClose:f,MenuListProps:{"aria-labelledby":"model-item-action"},children:o.map(p=>y.jsxs(Gi,{onClick:()=>{p.callback({item:e,...t}),f()},sx:{px:1,gap:.75},children:[p.icon,p.label]},p.label))})]})},IZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAWBSURBVFhHxZl/TFtVFMe/pZQOGMIA0W3iBgOloLIBzrkZJsuWmCwah/8sYW4my0QYc1NijM5o1MQ4/3B/CUb/0Bn+mTHzD4PjRxEUxEGmcWb8VsbPTTYYDBjQFlrPubTQ0va9+6qdJ3lp+t69537eOfeec+59OpAklpWvQkhICV0FsNvT4XCE8X0tYrPb8WBsLL7L34eoMPnukxYrjpprYe4fgEGvtxJDOzFU0PXJYHHRnC6x/NNwAqnQGY35WFiAY35eC9dSWwv1Ld+zB/kPpEr3H52dRVFNLRoGBxEeGir66fhXr4fDYjlHfwv4bjHD0Q1pxSsbWglu27q1eDpl08pHfv8PT0+jsLoGLdeuLcFxY2EgupxMxQx4iC0XqDiooz4kBCeys2GgXxnpnbiFF6urcenGDQ84j76LTC8woClQt7JCC73t3k3JeDIxUYYN7WNjOFJVjZ7xcf9wpMnJZGLARedLqfds5HA4EGkw4DhZT6fTqWr4dWREuHVwagqrnHNOpZNcK39K5sgNh0xp2JyQ4K/J0v3m4WFyaw3G5uZgpEUgKwFbb4GslxARgZItW1THqunrQ4m5DtNWq/Q8dSkNGJDDysGMDGyMjlYE/LanB6X1DZijuRoquYjcFQYEOE9BOZnADj/ysF84O1n4y8uXcbKxCdye4TiYuwvPWjXogAB5oMLNmYgP5xjvWzj4nu3sQkZ8HPQ67/DDcAzeTatZSTQDMtxD8fHYn5ampBc71q9H5XP5YBCOle4SQiueXf5mY6MIO0pW1AzIoeV4dpYIL0qitFJnCa60oQHfdHUrxkLWrwmQU9rO+xPxbKp8vl35ElwclJjNOH/liiqcZkB2DRkQH1xooUCrF65ZF7ka+1JTRLpTEy4OXqLi4Ee34kCtjyYLMlDj0BDqBwYI1AFek2W7d1OFpA739+3bOEKB+sLVq1KWc4FrAuTQwQUBXzM0j157NAf7KZOoCae2w1VV+H3kuiY41qv+6m6j302Zg4Un+d7kZJTm5Kix4c+JCRys/F7ASeZfD53SgGy9A+kmMUjqmjX4aGcuwlRyKocQhmsbHQ0ITtqCHMcYZteGDTDFxeLjvDzcExmpaL3fqHJ5nuD+IgsGYjmXcqk5yBE/JSZGWO7D3FyCjFOE44VUVGvGGK1apXioqMT5UAqQ499TSUlYTcFZDa62rx/HKM7dCqBy8QWsCsjWuy8qCgU0/9SksrcXL9fVYdY2r7ms8qdbEZDhWN7Zvl1AKsm57m68SmWVjaytlFuVdPh65ncVczKPNhpxelee6layor0dJ36oF+WUTEbxBeLvnpcFecXaFux4JiUFrz+2VSwMJfns0h94t7lZNNFL7EuUdPl65gXIC6IwMxPvPbFDtJ+g/XIMWdKXnL54EadaWxFK9R7n6WCIh4ut5KKta+/Fyce3iRru/eZfMDg56TWu69mpllYYggjHA3tY0E6ABaZ0Ebt4L8HVbgYVp+7Cm6W3m5rwObnWSFklOHZbHtEDkA5vkBwTLazXT5ZjN7u7jt3/xk+N+KqtTXPS93KD5A0PF/Mq7Lx5U1jlWFYWktx2bDM2G16pr8eZOwjH7+AZZsh9Pw8Ni3dzX5FTlBVKKACf7ehCxL/b60vabbmZ5xyk+yvDyjidBHBeNff3I8Lgteg1D6i1g9eId7mFFA4xXAVziX6nLed6Ea9Mcn1mRjzjovQoWU7L/kGrdWTaM+DSkSqX8nzIw3Bv0YkAn6m4Tj5llAWhzTwDdohjVxIG7KAqmE+hvu7s/F/hnEwdDHiGz4RdwoG4liwnc94XBIstq1xk+oIBy/jAms6EFw+w6YbaXiOYYGw5ZnEeopeLTEWfIYzOzxAHAv0M8Z9A63T8GaLN7TOE5R/LwhBxBS+RxAAAAABJRU5ErkJggg==",NZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";function LZ(){const e=rf("(prefers-color-scheme: dark)"),t=sP();return y.jsx(D9,{src:e?IZ:NZ,alt:"Luminix",variant:"square",sx:{width:40,height:40,marginLeft:t?2:0}})}const sp=class sp extends Td{register(){this.app.singleton("cms",()=>new $Z),this.app.singleton("filter",()=>new jZ),this.app.singleton("icon",()=>new _Z),this.registerIcons()}boot(){this.bootComponents(),this.bootRoutes(),this.bootMenu(),this.bootMassActions(),this.bootInstanceActions(),this.bootStaticActions(),sp.applyUserDefaults&&this.bootDefaultUserModifiers()}registerIcons(){Zf.registerIcon({Add:UY,AddCircleOutline:uk,ArrowDownward:dk,ArrowDropDown:fk,ArrowUpward:pk,CategoryOutlined:WY,ChevronLeft:Bf,ChevronRight:zf,Close:Uf,DashboardOutlined:HY,ExpandLess:hk,ExpandMore:mk,FilterList:gk,FirstPage:yk,HighlightOffOutlined:ky,LastPage:vk,Menu:bk,MoreVert:Py,PeopleOutlined:VY,Search:Ty,SwapVert:xk}),Zf.forModel("user","PeopleOutlined")}bootRoutes(){ar.reducer("cmsRoutes",QY,0),bm.reducer("domRouterOptions",t=>({...t,basename:Mi.get("luminix.admin.url","/admin")}))}bootComponents(){ar.reducer("componentMap",()=>({Layout:ZY,Dashboard:YY,ModelIndex:tX,ModelItem:OJ,Error:XY,DesktopPageTitle:WJ,RecursiveList:fP,RecursiveMenu:pP,Breadcrumbs:kZ,"Layout.AppBar":LJ,"Layout.AppLogo":LZ,"Layout.Drawer":UJ,"Layout.AppBar.MenuButton":rZ,"Layout.SearchBar":dZ,"Layout.BackButton":DJ,"ModelIndex.Filter":tZ,"ModelIndex.InstanceActions":MZ,"ModelIndex.MassActions":nZ,"ModelIndex.Pagination":iZ,"ModelIndex.PaginationDetails":sZ,"ModelIndex.PerPageSwitch":aZ,"ModelIndex.Sort":pZ,"ModelIndex.StaticActions":MJ,"ModelIndex.Table":mZ,"ModelIndex.Table.TableHead":gZ,"ModelIndex.Table.TableBody":vZ,"ModelIndex.Table.TableFooter":CZ,"ModelIndex.Table.TableToolbar":EZ,"ModelIndex.Table.TableBody.TableRow":SZ,"ModelIndex.Table.ShrinkedCell":fZ,"ModelIndex.Tabs":RZ}),0)}bootMenu(){ar.reducer("menuItems",(t,n)=>[...t,{key:"dashboard",text:"Dashboard",to:"/",icon:Zf.render("DashboardOutlined")},...Object.entries(n).sort(([r],[o])=>r.localeCompare(o)).map(([r,o])=>({key:r,text:o.plural(),to:"/"+He.kebab(o.plural()),icon:o.icon()}))],0)}bootDefaultUserModifiers(){ar.reducer("modelUserColumns",()=>[{key:"name",label:"Name",scope:"row",component:"th"},{key:"email",label:"Email",align:"right",size:"small"},{key:"created_at",label:"Created At",align:"right",size:"small"}],1),ar.reducer("wireModelFormProps",(t,n)=>(n==null?void 0:n.getType())==="user"?{...t,confirmed:"password"}:t)}bootMassActions(){ar.reducer("massActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({key:"delete",label:s?"Send to trash":"Delete permanently",callback:nv.delete(n)}):(o.push({key:"restore",label:"Restore",callback:nv.restore(n)}),o.push({key:"forceDelete",label:"Delete permanently",callback:nv.forceDelete(n)})),[...t,...o]},0)}bootInstanceActions(){ar.reducer("instanceActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({label:s?"Send to trash":"Delete permanently",callback:rv.delete(n)}):(o.push({label:"Restore",callback:rv.restore(n)}),o.push({label:"Delete permanently",callback:rv.forceDelete(n)})),[...t,...o]},0)}bootStaticActions(){ar.reducer("staticActions",(t,n,r)=>r==="trashed"?t:[...t,{key:"create",label:`Create ${n.singular()}`,callback:PZ.create(n),icon:Zf.render("Add")}],0)}};z0(sp,"applyUserDefaults",!0);let ov=sp;const DZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ep{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||DZ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ep(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ep(this.logger,t)}}var Yo=new ep;class tp{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){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u.apply(u,[t,...r])})}}function au(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function hP(e){return e==null?"":""+e}function FZ(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const BZ=/###/g;function lu(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(BZ,"."):u}function o(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let l=0;for(;l<s.length-1;){if(o())return{};const u=r(s[l]);!e[u]&&n&&(e[u]=new n),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={},++l}return o()?{}:{obj:e,k:r(s[l])}}function mP(e,t,n){const{obj:r,k:o}=lu(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],l=t.slice(0,t.length-1),u=lu(e,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=lu(e,l,Object),u&&u.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n}function zZ(e,t,n,r){const{obj:o,k:s}=lu(e,t,Object);o[s]=o[s]||[],o[s].push(n)}function np(e,t){const{obj:n,k:r}=lu(e,t);if(n)return n[r]}function UZ(e,t,n){const r=np(e,n);return r!==void 0?r:np(t,n)}function gP(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):gP(e[r],t[r],n):e[r]=t[r]);return e}function cl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var WZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function HZ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>WZ[t]):e}class VZ{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 KZ=[" ",",","?","!",";"],GZ=new VZ(20);function qZ(e,t,n){t=t||"",n=n||"";const r=KZ.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const o=GZ.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!o.test(e);if(!s){const l=e.indexOf(n);l>0&&!o.test(e.substring(0,l))&&(s=!0)}return s}function iv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let l,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],l=o[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=l}return o}function rp(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class yP extends tp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):typeof r=="string"&&s?u.push(...r.split(s)):u.push(r)));const c=np(this.data,u);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),c||!l||typeof r!="string"?c:iv(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),mP(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let c=np(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?gP(c,r,s):c={...c,...r},mP(this.data,u,c),l.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.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}: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 vP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const bP={};class op extends tp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),FZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.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 s=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!qZ(t,r,o);if(l&&!u){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:s};const f=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(o)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],n),c=u[u.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const A=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${A}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${A}${l}`}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(t,n);let g=m&&m.res;const S=m&&m.usedKey||l,x=m&&m.exactUsedKey||l,b=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],P=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&w.indexOf(b)<0&&!(typeof P=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,g,{...n,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(m.res=A,m.usedParams=this.getUsedParamsDetails(n),m):A}if(s){const A=Array.isArray(g),$=A?[]:{},O=A?x:S;for(const _ in g)if(Object.prototype.hasOwnProperty.call(g,_)){const N=`${O}${s}${_}`;$[_]=this.translate(N,{...n,joinArrays:!1,ns:u}),$[_]===N&&($[_]=g[_])}g=$}}else if(R&&typeof P=="string"&&Array.isArray(g))g=g.join(P),g&&(g=this.extendTranslation(g,t,n,r));else{let A=!1,$=!1;const O=n.count!==void 0&&typeof n.count!="string",_=op.hasDefaultValue(n),N=O?this.pluralResolver.getSuffix(f,n.count,n):"",D=n.ordinal&&O?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",F=O&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),K=F&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${D}`]||n.defaultValue;!this.isValidLookup(g)&&_&&(A=!0,g=K),this.isValidLookup(g)||($=!0,g=l);const J=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:g,U=_&&K!==g&&this.options.updateMissing;if($||A||U){if(this.logger.log(U?"updateKey":"missingKey",f,c,l,U?K:g),s){const M=this.resolve(l,{...n,keySeparator:!1});M&&M.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 oe=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let M=0;M<G.length;M++)oe.push(G[M]);else this.options.saveMissingTo==="all"?oe=this.languageUtils.toResolveHierarchy(n.lng||this.language):oe.push(n.lng||this.language);const W=(M,q,se)=>{const L=_&&se!==g?se:J;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,q,L,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,q,L,U,n),this.emit("missingKey",M,c,q,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?oe.forEach(M=>{const q=this.pluralResolver.getSuffixes(M,n);F&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(se=>{W([M],l+se,n[`defaultValue${se}`]||K)})}):W(oe,l,K))}g=this.extendTranslation(g,t,n,m,r),$&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${l}`),($||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,A?g:void 0):g=this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var l=this;if(this.i18nFormat&&this.i18nFormat.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 f=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let m=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),S=g&&g.length;p<S&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,S=new Array(g),x=0;x<g;x++)S[x]=arguments[x];return s&&s[0]===S[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):l.translate(...S,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=typeof u=="string"?[u]:u;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=vP.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,l,u;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),p=f.key;o=p;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&typeof n.count!="string",S=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(w=>{this.isValidLookup(r)||(u=w,!bP[`${b[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(bP[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${u}" 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!!!")),b.forEach(P=>{if(this.isValidLookup(r))return;l=P;const R=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,p,P,w,n);else{let A;g&&(A=this.pluralResolver.getSuffix(P,n.count,n));const $=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(R.push(p+A),n.ordinal&&A.indexOf(O)===0&&R.push(p+A.replace(O,this.options.pluralSeparator)),S&&R.push(p+$)),x){const _=`${p}${this.options.contextSeparator}${n.context}`;R.push(_),g&&(R.push(_+A),n.ordinal&&A.indexOf(O)===0&&R.push(_+A.replace(O,this.options.pluralSeparator)),S&&R.push(_+$))}}let T;for(;T=R.pop();)this.isValidLookup(r)||(s=T,r=this.getResource(P,w,T,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";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 s of n)delete o[s]}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}}function sv(e){return e.charAt(0).toUpperCase()+e.slice(1)}class xP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yo.create("languageUtils")}getScriptPartFromCode(t){if(t=rp(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=rp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=sv(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=sv(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=sv(r[2].toLowerCase()))),r.join("-")}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.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(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||this.options.fallbackLng||[],t),o=[],s=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(l=>{o.indexOf(l)<0&&s(this.formatLanguageCode(l))}),o}}let QZ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],YZ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const XZ=["v1","v2","v3"],JZ=["v4"],wP={zero:0,one:1,two:2,few:3,many:4,other:5};function ZZ(){const e={};return QZ.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:YZ[t.fc]}})}),e}class eee{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yo.create("pluralResolver"),(!this.options.compatibilityJSON||JZ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ZZ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(rp(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>wP[o]-wP[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!XZ.includes(this.options.compatibilityJSON)}}function SP(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=UZ(e,t,n);return!s&&o&&typeof n=="string"&&(s=iv(e,n,r),s===void 0&&(s=iv(t,n,r))),s}class tee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:S,nestingSuffix:x,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:P,alwaysFormat:R}=t.interpolation;this.escape=n!==void 0?n:HZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?cl(s):l||"{{",this.suffix=u?cl(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?cl(g):S||cl("$t("),this.nestingSuffix=x?cl(x):b||cl(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=P||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&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){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}const p=x=>{if(x.indexOf(this.formatSeparator)<0){const R=SP(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...o,...n,interpolationkey:x}):R}const b=x.split(this.formatSeparator),w=b.shift().trim(),P=b.join(this.formatSeparator).trim();return this.format(SP(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),P,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>f(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?f(this.escape(x)):f(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const b=s[1].trim();if(l=p(b),l===void 0)if(typeof m=="function"){const P=m(t,s,o);l=typeof P=="string"?P:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))l="";else if(g){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=hP(l));const w=x.safeValue(l);if(t=t.replace(s[0],w),g?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function u(c,f){const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,l);const S=g.match(/'/g),x=g.match(/"/g);(S&&S.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),f&&(l={...f,...l})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const p=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=p.shift(),c=p,f=!0}if(s=n(u.call(this,o[1].trim(),l),l),s&&o[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=hP(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f&&(s=c.reduce((p,m)=>this.format(p,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}function nee(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(l=>{if(l){const[u,...c]=l.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),p=u.trim();n[p]||(n[p]=f),f==="false"&&(n[p]=!1),f==="true"&&(n[p]=!0),isNaN(f)||(n[p]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}function ul(e){const t={};return function(r,o,s){const l=o+JSON.stringify(s);let u=t[l];return u||(u=e(rp(o),s),t[l]=u),u(r)}}class ree{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("formatter"),this.options=t,this.formats={number:ul((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ul((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ul((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ul((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ul((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ul(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((u,c)=>{const{formatName:f,formatOptions:p}=nee(c);if(this.formats[f]){let m=u;try{const g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},S=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[f](u,S,{...p,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}function oee(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class iee extends tp{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Yo.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=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},l={},u={},c={};return t.forEach(f=>{let p=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(u[f]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],l=o[1];n&&this.emit("failedLoading",s,l,n),r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const u={};this.queue.forEach(c=>{zZ(c.loaded,[s],l),oee(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const p=c.loaded[f];p.length&&p.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:l});return}this.readingCalls++;const u=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,l)},s);return}l(f,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(p=>u(null,p)).catch(u):u(null,f)}catch(f){u(f)}return}return c(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,l,u)})}saveMissing(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){const c={...l,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(t,n,r,o,c):p=f(t,n,r,o),p&&typeof p.then=="function"?p.then(m=>u(null,m)).catch(u):u(null,p)}catch(p){u(p)}else f(t,n,r,o,u,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function CP(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function EP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ip(){}function see(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class cu extends tp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=EP(t),this.services={},this.logger=Yo,this.modules={external:[]},see(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=CP();this.options={...o,...this.options,...EP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Yo.init(s(this.modules.logger),this.options):Yo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=ree);const m=new xP(this.options);this.store=new yP(this.options.resources,this.options);const g=this.services;g.logger=Yo,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new eee(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new tee(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new iee(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new op(this.services,this.options),this.translator.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ip),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return t.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return t.store[p](...arguments),t}});const c=au(),f=()=>{const p=(m,g)=>{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),c.resolve(g),r(m,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ip;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),this.options.preload&&this.options.preload.forEach(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=au();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ip),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),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"&&vP.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<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=au();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{l(p,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),o}getFixedT(t,n,r){var o=this;const s=function(l,u){let c;if(typeof u!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),m=2;m<f;m++)p[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([l,u].concat(p))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let S;return c.keyPrefix&&Array.isArray(l)?S=l.map(x=>`${c.keyPrefix}${g}${x}`):S=c.keyPrefix?`${c.keyPrefix}${g}${l}`:l,o.t(S,c)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!o||l(s,t)))}loadNamespaces(t,n){const r=au();return this.options.ns?(typeof t=="string"&&(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=au();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],s=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=o.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.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=this.services&&this.services.languageUtils||new xP(CP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new cu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ip;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new cu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new yP(this.store.data,o),s.services.resourceStore=s.store),s.translator=new op(s.services,o),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ln=cu.createInstance();ln.createInstance=cu.createInstance,ln.createInstance,ln.dir,ln.init,ln.loadResources,ln.reloadResources,ln.use,ln.changeLanguage,ln.getFixedT,ln.t,ln.exists,ln.setDefaultNamespace,ln.hasLoadedNamespace,ln.loadNamespaces,ln.loadLanguages;class aee extends Td{register(){this.app.once("booting",()=>{this.initI18Next(),this.translateModelNames()})}boot(){this.translateModelColumns(),this.translateMenuEntries(),this.translateInstanceActions(),this.translateMassActions(),this.translateFormLabels(),this.translateStaticActions()}initI18Next(){ln.use(IY).init({lng:Mi.get("app.locale","en"),fallbackLng:Mi.get("app.fallback_locale","en"),resources:{[Mi.get("app.locale","en")]:{translation:Mi.get("trans",{})}},...Mi.get("i18n",{}),interpolation:{prefix:":",suffix:"",prefixEscaped:":\\b",suffixEscaped:"(?:\\b)",...Mi.get("i18n.interpolation",{})},debug:Mi.get("app.debug",!1)})}translateModelNames(){rc.reducer("model",t=>class extends t{static singular(){return ln.t(t.singular())}static plural(){return ln.t(t.plural())}},0)}translateModelColumns(){for(const t of Object.keys(rc.make()))ar.reducer(`model${He.studly(t)}Columns`,n=>n.map(r=>({...r,label:ln.t(r.label)})),99)}translateMenuEntries(){ar.reducer("menuItems",t=>{const n=t.find(r=>r.key==="dashboard");return n&&(n.text=ln.t(n.text)),t},5)}translateMassActions(){ar.reducer("massActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateInstanceActions(){ar.reducer("instanceActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateStaticActions(){ar.reducer("staticActions",(t,n)=>{const r=t.find(({key:o})=>o==="create");return r&&(r.label=ln.t("Create :model",{model:n.singular()})),t})}translateFormLabels(){Bi.reducer("getDefaultInputProps",t=>Array.isArray(t)?t.map(n=>({...n,label:n!=null&&n.label?ln.t(n.label):n==null?void 0:n.label})):{...t,label:t!=null&&t.label?ln.t(t.label):t==null?void 0:t.label},99)}}const lee={palette:{primary:{main:"#1d9798"},secondary:{main:"#fa510c"}}},cee=e=>e.make("cms").getRoutes(),uee=({theme:e=lee,themeArgs:t,providers:n,...r})=>{const o=rf("(prefers-color-scheme: dark)"),s=Z.useMemo(()=>Sg({...e,palette:{...e.palette,mode:o?"dark":"light"}},...t??[]),[e,o,t]),l=Z.useMemo(()=>[ov,aee,...n||[]],[n]);return y.jsxs(e6,{theme:s,children:[y.jsx(ZH,{}),y.jsx(yB,{routes:cee,providers:l,...r})]})},RP=document.getElementById("root");if(!RP)throw new Error("Failed to find the root element");dh.createRoot(RP).render(y.jsx(Z.StrictMode,{children:y.jsx(uee,{})}))})();