identity-admin-ui 1.9.2 → 1.9.3

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.
package/lib/cjs/index.js CHANGED
@@ -154,4 +154,4 @@ function MM(){return MM=Object.assign?Object.assign.bind():function(e){for(var t
154
154
  *
155
155
  * @license MIT
156
156
  */
157
- function IM(){return IM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IM.apply(this,arguments)}new Set(LM);const SM=k.createContext(null);"production"!==process.env.NODE_ENV&&(SM.displayName="DataRouter");const WM=k.createContext(null);"production"!==process.env.NODE_ENV&&(WM.displayName="DataRouterState");const HM=k.createContext(null);"production"!==process.env.NODE_ENV&&(HM.displayName="Await");const RM=k.createContext(null);"production"!==process.env.NODE_ENV&&(RM.displayName="Navigation");const VM=k.createContext(null);"production"!==process.env.NODE_ENV&&(VM.displayName="Location");const FM=k.createContext({outlet:null,matches:[],isDataRoute:!1});"production"!==process.env.NODE_ENV&&(FM.displayName="Route");const XM=k.createContext(null);function QM(){return null!=k.useContext(VM)}"production"!==process.env.NODE_ENV&&(XM.displayName="RouteError");const YM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ZM(e){k.useContext(RM).static||k.useLayoutEffect(e)}function GM(){let{isDataRoute:e}=k.useContext(FM);return e?function(){let{router:e}=function(e){let t=k.useContext(SM);return t||("production"!==process.env.NODE_ENV?OM(!1,$M(e)):OM(!1)),t}(qM.UseNavigateStable),t=function(e){let t=function(e){let t=k.useContext(FM);return t||("production"!==process.env.NODE_ENV?OM(!1,$M(e)):OM(!1)),t}(e),n=t.matches[t.matches.length-1];return n.route.id||("production"!==process.env.NODE_ENV?OM(!1,e+' can only be used on routes that contain a unique "id"'):OM(!1)),n.route.id}(KM.UseNavigateStable),n=k.useRef(!1);return ZM((()=>{n.current=!0})),k.useCallback((function(r,o){void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&zM(n.current,YM),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,IM({fromRouteId:t},o)))}),[e,t])}():function(){QM()||("production"!==process.env.NODE_ENV?OM(!1,"useNavigate() may be used only in the context of a <Router> component."):OM(!1));let e=k.useContext(SM),{basename:t,navigator:n}=k.useContext(RM),{matches:r}=k.useContext(FM),{pathname:o}=(QM()||("production"!==process.env.NODE_ENV?OM(!1,"useLocation() may be used only in the context of a <Router> component."):OM(!1)),k.useContext(VM).location),a=JSON.stringify(function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(r).map((e=>e.pathnameBase))),i=k.useRef(!1);ZM((()=>{i.current=!0}));let s=k.useCallback((function(r,s){if(void 0===s&&(s={}),"production"!==process.env.NODE_ENV&&zM(i.current,YM),!i.current)return;if("number"==typeof r)return void n.go(r);let l=PM(r,JSON.parse(a),o,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:NM([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,a,o,e]);return s}()}function UM(){let{matches:e}=k.useContext(FM),t=e[e.length-1];return t?t.params:{}}var qM,KM,JM,_M;function $M(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function eO(e){var t=e.direction,n=e.sxProps,r=e.onClick,o=e.color,a=function(e){switch(e){case _M.LEFT:return"material-symbols:arrow-back-ios-new";case _M.RIGHT:return"eva:arrow-ios-forward-fill";case _M.DOWN:return"eva:arrow-ios-downward-fill";case _M.UP:return"eva:arrow-ios-upward-fill"}}(t);return Y.jsx(wo,{icon:a,onClick:r,sx:Z({width:16,height:16,color:null!=o?o:"white"},n)})}function tO(e){var t=e.onClickOpen,r=e.modelName,o=e.checked,a=_M.RIGHT;return Y.jsx(n.IconButton,{onClick:function(){return t(r)},children:Y.jsx(eO,{direction:o&&o[r].opened?_M.DOWN:a,color:"black"})})}function nO(t){var r=t.label,o=t.checked,a=t.onChange,i=e.memo((function(e){var t=e.checked,r=e.onChange;return Y.jsx(n.Checkbox,{checked:t,onChange:function(e,t){return r(e,t)}})}));return Y.jsx(n.FormControlLabel,{label:r,control:Y.jsx(i,{checked:o,onChange:a})})}function rO(){return Y.jsx(n.FormControlLabel,{label:Y.jsx(n.Skeleton,{variant:"text",width:160,height:20}),control:Y.jsx(n.Checkbox,{disabled:!0})})}function oO(){return Y.jsx(n.IconButton,{children:Y.jsx(eO,{direction:_M.DOWN,color:"black"})})}function aO(){return Y.jsx(Y.Fragment,{children:Array.from(Array(2).keys()).map((function(e){return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(oO,{}),Y.jsx(rO,{})]}),Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:Array.from(Array(4).keys()).map((function(e){return Y.jsx(rO,{},e)}))})]},e)}))})}function iO(e){var t=e.modelPermissions,r=e.checked,o=e.fetchLoading,a=e.onCheckAll,i=e.handleChange,s=e.onClickOpen;return Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{sx:{py:1},fontWeight:700,fontSize:{xs:"14px",md:"18px"},children:"Permissions"}),Y.jsx(n.Button,{onClick:a,children:"Check all"})]}),o?Y.jsx(aO,{}):t.map((function(e){var t=e.modelName;return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(tO,{modelName:t,checked:r,onClickOpen:s}),Y.jsx(nO,{label:e.label,checked:r&&r[t].all,onChange:function(e,n){return i(t,"all",n)}})]}),r&&r[t].opened&&Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:e.permissions.map((function(e){var n=e.id;return Y.jsx(nO,{label:e.label,checked:r&&r[t][n],onChange:function(e,r){return i(t,n,r)}},n)}))})]},t)}))]})}function sO(e){var t=rh().textFieldSize;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(is,{name:"name",label:"Name",size:t}),Y.jsx(iO,Z({},e))]})}function lO(t){var r=this,o=t.modelPermissions,a=t.fetchLoading,i=t.isEdit,s=t.permissionGroup,u=e.useState(void 0),d=u[0],p=u[1],f=UM().id,m=void 0===f?"":f,h=e.useContext(Rm).dashbaordUrlPrefix,g=ih().paths,v=L.object().shape({}),A=e.useState(!1),y=A[0],b=A[1],x=GM(),w=e.useMemo((function(){return{name:null==s?void 0:s.name}}),[]),j=c.useForm({resolver:zi(v),defaultValues:w}),C=j.getValues,M=j.handleSubmit;e.useEffect((function(){o.length>0&&p(function(e){var t={};return e.forEach((function(e,n){t[e.modelName]={all:!1,opened:0===n};var r=!0;e.permissions.forEach((function(n){t[e.modelName][n.id]=n.checked,n.checked?t[e.modelName].opened=!0:r=!1})),r&&(t[e.modelName].all=!0)})),t}(o))}),[o]);return Y.jsxs(_i,{methods:j,onSubmit:M((function(e){return U(r,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return b(!0),i?[4,Wm.patch("".concat(h,"/permissionGroups/").concat(m),Z(Z({},e),{checked:d}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,Wm.post("".concat(h,"/permissionGroups"),Z(Z({},e),{checked:d}))];case 3:t.sent(),t.label=4;case 4:return b(!1),x(g.permissionGroup.list),[2]}}))}))})),children:[Y.jsx(sO,{checked:d,handleChange:function(e,t,n){var r,a,i,s=Z({},d);if(s[e][t]=n,"all"===t)(i=null===(r=o.find((function(t){return t.modelName===e})))||void 0===r?void 0:r.permissions)&&i.forEach((function(t){s[e][t.id]=n}));else if(i=null===(a=o.find((function(t){return t.modelName===e})))||void 0===a?void 0:a.permissions){var l=i.every((function(t){return s[e][t.id]}));s[e].all=l}p(s)},onClickOpen:function(e){var t=Z({},d);t[e].opened=!t[e].opened,p(t)},modelPermissions:o,getValues:C,fetchLoading:a,onCheckAll:function(){var e=Z({},d);for(var t in e)for(var n in e[t])e[t][n]=!0;p(e)}}),Y.jsx(n.Stack,{direction:"row",flexDirection:"row-reverse",children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",size:"large",loading:y,children:"Save"})})]})}function cO(t){var n=e.useState(!!t),r=n[0],o=n[1];return{value:r,onTrue:e.useCallback((function(){o(!0)}),[]),onFalse:e.useCallback((function(){o(!1)}),[]),onToggle:e.useCallback((function(){o((function(e){return!e}))}),[]),setValue:o}}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(qM||(qM={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(KM||(KM={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(JM||(JM={})),new Promise((()=>{})),function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN"}(_M||(_M={}));var uO={H_MOBILE:64,H_DESKTOP:80,H_DESKTOP_OFFSET:64},dO={W_VERTICAL:280,W_MINI:88},pO=8;function fO(t){var n=t.children,r=t.sx,o=G(t,["children","sx"]),a=e.useContext(_m),i=Fi("up","lg"),s="horizontal"===a.themeLayout,l="mini"===a.themeLayout;return s?Y.jsx(xo,{component:"main",sx:Z({minHeight:1,display:"flex",flexDirection:"column",pt:"".concat(uO.H_MOBILE+24,"px"),pb:10},i&&{pt:"".concat(2*uO.H_MOBILE+40,"px"),pb:15}),children:n}):Y.jsx(xo,Z({component:"main",sx:Z(Z({flexGrow:1,py:"".concat(uO.H_MOBILE+pO,"px")},i&&Z({px:2,py:"".concat(uO.H_DESKTOP+pO,"px"),width:"calc(100% - ".concat(dO.W_VERTICAL,"px)")},l&&{width:"calc(100% - ".concat(dO.W_MINI,"px)")})),r)},o,{children:n}))}function mO(e){return Lt("MuiAppBar",e)}var hO=It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const gO=["className","color","enableColorOnDark","position"],vO=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,AO=ho(qa,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${qe(n.position)}`],t[`color${qe(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return re({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&re({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&re({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&re({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vO(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vO(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:vO(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vO(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),yO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=n,s=Ht(n,gO),l=re({},n,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:n,classes:r}=e;return Nt({root:["root",`color${qe(t)}`,`position${qe(n)}`]},mO,r)})(l);return Y.jsx(AO,re({square:!0,component:"header",ownerState:l,elevation:4,className:_n(c.root,r,"fixed"===i&&"mui-fixed"),ref:t},s))}));"production"!==process.env.NODE_ENV&&(yO.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["default","inherit","primary","secondary","transparent"]),Ne.string]),enableColorOnDark:Ne.bool,position:Ne.oneOf(["absolute","fixed","relative","static","sticky"]),sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object])});var bO=yO;function xO(e){return Lt("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const wO=["className","component","disableGutters","variant"],jO=ho("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})=>re({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)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),CO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,s=Ht(n,wO),l=re({},n,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Nt({root:["root",!n&&"gutters",r]},xO,t)})(l);return Y.jsx(jO,re({as:o,className:_n(c.root,r),ref:t,ownerState:l},s))}));"production"!==process.env.NODE_ENV&&(CO.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,component:Ne.elementType,disableGutters:Ne.bool,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),variant:Ne.oneOfType([Ne.oneOf(["dense","regular"]),Ne.string])});var MO=CO;var OO=e.forwardRef((function(e,t){var n=e.src,r=e.sx,o=G(e,["src","sx"]);return Y.jsx(xo,Z({component:"span",className:"svg-color",ref:t,sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(n,") no-repeat center / contain"),WebkitMask:"url(".concat(n,") no-repeat center / contain")},r)},o))})),zO={exports:{}};zO.exports=(()=>{return e={772:(e,t,n)=>{const r=n(826).remove,o=/[.*+?^${}()|[\]\\]/g,a=/[a-z0-9_]/i,i=/\s+/;e.exports=function(e,t,n){var s,l;l={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},s=(s=n)||{},Object.keys(s).forEach((e=>{l[e]=!!s[e]})),n=l;const c=Array.from(e).map((e=>r(e)));let u=c.join("");return(t=r(t)).trim().split(i).filter((e=>e.length>0)).reduce(((e,t)=>{const r=t.length,i=!n.insideWords&&a.test(t[0])?"\\b":"",s=new RegExp(i+t.replace(o,"\\$&"),"i");let l,d;if(l=s.exec(u),n.requireMatchAll&&null===l)return u="",[];for(;l;){d=l.index;const t=r-c.slice(d,d+r).join("").length,o=d-c.slice(0,d).join("").length,a=[d+o,d+r+o+t];if(a[0]!==a[1]&&e.push(a),u=u.slice(0,d)+new Array(r+1).join(" ")+u.slice(d+r),!n.findAllOccurrences)break;l=s.exec(u)}return e}),[]).sort(((e,t)=>e[0]-t[0]))}},826:e=>{var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),a=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}(772);var e,t})();var DO=W(zO.exports),TO="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var PO=ho(xo)((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode,o="filled"===n.variant,a="outlined"===n.variant,i="soft"===n.variant,s=Z({},"default"===n.color&&Z(Z(Z({},o&&{color:r?t.palette.common.white:t.palette.grey[800],backgroundColor:t.palette.text.primary}),a&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"2px solid ".concat(t.palette.text.primary)}),i&&{color:t.palette.text.secondary,backgroundColor:Ar(t.palette.grey[500],.16)})),l=Z({},"default"!==n.color&&Z(Z(Z({},o&&{color:t.palette[n.color].contrastText,backgroundColor:t.palette[n.color].main}),a&&{backgroundColor:"transparent",color:t.palette[n.color].main,border:"2px solid ".concat(t.palette[n.color].main)}),i&&{color:t.palette[n.color][r?"dark":"light"],backgroundColor:Ar(t.palette[n.color].main,.16)}));return Z(Z({height:24,minWidth:24,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter})},s),l)})),NO=e.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?"default":r,a=e.variant,i=void 0===a?"soft":a,s=e.startIcon,l=e.endIcon,c=e.sx,u=G(e,["children","color","variant","startIcon","endIcon","sx"]),d=uo(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return Y.jsxs(PO,Z({ref:t,component:"span",ownerState:{color:o,variant:i},sx:Z(Z(Z({},s&&{pl:.75}),l&&{pr:.75}),c),theme:d},u,{children:[s&&Y.jsxs(xo,{sx:Z({mr:.75},p),children:[" ",s," "]}),n,l&&Y.jsxs(xo,{sx:Z({ml:.75},p),children:[" ",l," "]})]}))}));function EO(){var t=r.useNavigate();return e.useMemo((function(){return{back:function(){return t(-1)},forward:function(){return t(1)},reload:function(){return window.location.reload()},push:function(e){return t(e)},replace:function(e){return t(e,{replace:!0})}}}),[t])}function BO(e){var t=e.query,n=e.sx,r=G(e,["query","sx"]);return t?Y.jsxs(qa,Z({sx:Z({bgcolor:"unset",textAlign:"center"},n)},r,{children:[Y.jsx(Df,{variant:"h6",gutterBottom:!0,children:"Not Found"}),Y.jsxs(Df,{variant:"body2",children:["No results found for  ",Y.jsxs("strong",{children:['"',t,'"']}),".",Y.jsx("br",{})," Try checking for typos or using complete words."]})]})):Y.jsx(Df,{variant:"body2",sx:n,children:"Please enter keywords"})}function kO(e){var t=e.title,n=e.path,r=e.groupLabel,o=e.onClickItem;return Y.jsxs(_w,{onClick:o,sx:{borderWidth:1,borderStyle:"dashed",borderColor:"transparent",borderBottomColor:function(e){return e.palette.divider},"&:hover":{borderRadius:1,borderColor:function(e){return e.palette.primary.main},backgroundColor:function(e){return Ar(e.palette.primary.main,e.palette.action.hoverOpacity)}}},children:[Y.jsx(fv,{primaryTypographyProps:{typography:"subtitle2",sx:{textTransform:"capitalize"}},secondaryTypographyProps:{typography:"caption"},primary:t.map((function(e,t){return Y.jsx(xo,{component:"span",sx:{color:e.highlight?"primary.main":"text.primary"},children:e.text},t)})),secondary:n.map((function(e,t){return Y.jsx(xo,{component:"span",sx:{color:e.highlight?"primary.main":"text.secondary"},children:e.text},t)}))}),r&&Y.jsx(NO,{color:"info",children:r})]})}function LO(e,t){void 0===t&&(t="children");var n=[],r=null==e?void 0:e.map((function(e){return e[t]&&e[t].length&&(n=K(K([],n,!0),e[t],!0)),e}));return null==r?void 0:r.concat(n.length?LO(n,t):n)}function IO(e){var t=e.data.map((function(e){return SO(e.items,e.subheader)})).flat(),n=LO(t).map((function(e){var n=function(e,t){var n,r=e.map((function(e){return{path:[e.title],currItem:e}})),o=function(){var e=r.pop(),o=e.path,a=e.currItem;if(a.path===t)return{value:o};(null===(n=a.children)||void 0===n?void 0:n.length)&&(r=r.concat(a.children.map((function(e){return{path:o.concat(e.title),currItem:e}}))))};for(;r.length;){var a=o();if("object"==typeof a)return a.value}return null}(t,e.path);return{group:n&&n.length>1?n[0]:e.subheader,title:e.title,path:e.path}}));return n}function SO(e,t){return null==e?void 0:e.map((function(e){return Z(Z({subheader:t},e),e.children&&{children:SO(e.children,t)})}))}var WO=e.memo((function(){var t,n,r,o,a,i,s=uo(),l=EO(),c=cO(),u=Fi("up","md"),d=e.useState(""),p=d[0],f=d[1],m=Jm(),h=e.useCallback((function(){c.onFalse(),f("")}),[c]);n="keydown",r=function(e){"k"===e.key&&e.metaKey&&(c.onToggle(),f(""))},i=e.useRef(r),TO((function(){i.current=r}),[r]),e.useEffect((function(){var e=(null==o?void 0:o.current)||window;if(e&&e.addEventListener){var t=function(e){return i.current(e)};return e.addEventListener(n,t,a),function(){e.removeEventListener(n,t)}}}),[n,o,a]);var g,v=e.useCallback((function(e){e.includes("http")?window.open(e):l.push(e),h()}),[h,l]),A=e.useCallback((function(e){f(e.target.value)}),[]),y=function(e){var t=e.inputData,n=e.query;return n&&(t=t.filter((function(e){var t,r;return void 0!==e.path&&void 0!==e.title&&-1!==(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().indexOf(n.toLowerCase()))||-1!==(null===(r=e.path)||void 0===r?void 0:r.toLowerCase().indexOf(n.toLowerCase()))}))),t}({inputData:IO({data:m}),query:p}),b=p&&!y.length,x=Y.jsxs(Fg,{direction:"row",alignItems:"center",children:[Y.jsx(Tp,{onClick:c.onTrue,children:Y.jsx(wo,{icon:"eva:search-fill"})}),u&&Y.jsx(NO,{sx:{px:.75,fontSize:12,color:"text.secondary"},children:"⌘K"})]});return Y.jsxs(Y.Fragment,{children:[x,Y.jsxs(ZC,{fullWidth:!0,maxWidth:"sm",open:c.value,onClose:h,transitionDuration:{enter:s.transitions.duration.shortest,exit:0},PaperProps:{sx:{mt:15,overflow:"unset"}},sx:(t={},t["& .".concat(SC.container)]={alignItems:"flex-start"},t),children:[Y.jsx(xo,{sx:{p:3,borderBottom:"solid 1px ".concat(s.palette.divider)},children:Y.jsx(yc,{fullWidth:!0,autoFocus:!0,placeholder:"Search...",value:p,onChange:A,startAdornment:Y.jsx(jw,{position:"start",children:Y.jsx(wo,{icon:"eva:search-fill",width:24,sx:{color:"text.disabled"}})}),endAdornment:Y.jsx(NO,{sx:{letterSpacing:1,color:"text.secondary"},children:"esc"}),inputProps:{sx:{typography:"h6"}}})}),Y.jsx(Em,{sx:{p:3,pt:2,height:400},children:b?Y.jsx(BO,{query:p,sx:{py:10}}):(g=y.reduce((function(e,t){return e[t.group]=e[t.group]||[],e[t.group].push(t),e}),{}),Object.keys(g).sort((function(e,t){return-t.localeCompare(e)})).filter((function(e){return""!==e})).map((function(e,t){return Y.jsx(Nu,{disablePadding:!0,children:g[e].map((function(t){var n=t.title,r=t.path,o=Pf(n,DO(n,p)),a=Pf(r,DO(r,p));return Y.jsx(kO,{path:a,title:o,groupLabel:p&&e,onClickItem:function(){return v(r)}},"".concat(n).concat(r))}))},e||t)})))})]})]})})),HO=Ia(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 RO(e){return Lt("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const VO=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],FO=ho("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>re({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"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&re({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]})))),XO=ho("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),QO=ho(HO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const YO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:i="div",imgProps:s,sizes:l,src:c,srcSet:u,variant:d="circular"}=n,p=Ht(n,VO);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=k.useState(!1);return k.useEffect((()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(re({},s,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=re({},n,{colorDefault:!g,component:i,variant:d}),A=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Nt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},RO,t)})(v);return f=g?Y.jsx(XO,re({alt:r,src:c,srcSet:u,sizes:l,ownerState:v,className:A.img},s)):null!=o?o:h&&r?r[0]:Y.jsx(QO,{ownerState:v,className:A.fallback}),Y.jsx(FO,re({as:i,ownerState:v,className:_n(A.root,a),ref:t},p,{children:f}))}));"production"!==process.env.NODE_ENV&&(YO.propTypes={alt:Ne.string,children:Ne.node,classes:Ne.object,className:Ne.string,component:Ne.elementType,imgProps:Ne.object,sizes:Ne.string,src:Ne.string,srcSet:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),variant:Ne.oneOfType([Ne.oneOf(["circular","rounded","square"]),Ne.string])});var ZO=YO,GO=[];function UO(){var t,n,r,o=this,a=EO(),i={photo:"",firstname:"Mohamed",lastname:"Ismail",email:"admin@test.com"},s=(t=e.useState(null),n=t[0],r=t[1],{open:n,onOpen:e.useCallback((function(e){r(e.currentTarget)}),[]),onClose:e.useCallback((function(){r(null)}),[]),setOpen:r});return Y.jsxs(Y.Fragment,{children:[Y.jsx(Tp,{component:p.m.button,whileTap:"tap",whileHover:"hover",variants:Si(1.05),onClick:s.onOpen,sx:Z({width:40,height:40,background:function(e){return Ar(e.palette.grey[500],.08)}},s.open&&{background:function(e){return"linear-gradient(135deg, ".concat(e.palette.primary.light," 0%, ").concat(e.palette.primary.main," 100%)")}}),children:Y.jsx(ZO,{src:null==i?void 0:i.photo,alt:null==i?void 0:i.firstname,sx:{width:36,height:36,border:function(e){return"solid 2px ".concat(e.palette.background.default)}}})}),Y.jsxs(Ov,{open:s.open,onClose:s.onClose,sx:{width:200,p:0},children:[Y.jsxs(xo,{sx:{p:2,pb:1.5},children:[Y.jsx(Df,{variant:"subtitle2",noWrap:!0,children:(null==i?void 0:i.firstname)+" "+i.lastname}),Y.jsx(Df,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:null==i?void 0:i.email})]}),Y.jsx(Fg,{sx:{p:1},children:GO.map((function(e){return Y.jsx(yv,{onClick:function(){return function(e){s.onClose(),a.push(e)}(e.linkTo)},children:e.label},e.label)}))}),Y.jsx(mi,{sx:{borderStyle:"dashed"}}),Y.jsx(yv,{onClick:function(){return U(o,void 0,void 0,(function(){return q(this,(function(e){try{s.onClose(),a.replace("/")}catch(e){console.error(e)}return[2]}))}))},sx:{m:1,fontWeight:"fontWeightBold",color:"error.main"},children:"Logout"})]})]})}function qO(t){var n=t.onOpenNav,r=t.Logo,o=uo(),a=e.useContext(_m),i="horizontal"===a.themeLayout,s="mini"===a.themeLayout,l=Fi("up","lg"),c=function(t,n){void 0===t&&(t=0);var r=p.useScroll(n).scrollY,o=e.useState(!1),a=o[0],i=o[1],s=e.useCallback((function(){r.on("change",(function(e){i(e>t)}))}),[r,t]);return e.useEffect((function(){s()}),[s]),e.useMemo((function(){return a}),[a])}(uO.H_DESKTOP),u=c&&!i,d=Y.jsxs(Y.Fragment,{children:[l&&i&&r&&Y.jsx(r,{sx:{mr:2.5}}),!l&&Y.jsx(Tp,{onClick:n,children:Y.jsx(OO,{src:"/assets/icons/navbar/ic_menu_item.svg"})}),Y.jsx(WO,{}),Y.jsx(Fg,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1},children:Y.jsx(UO,{})})]});return Y.jsx(bO,{sx:Z(Z(Z({height:uO.H_MOBILE,zIndex:o.zIndex.appBar+1},wv({color:o.palette.background.default})),{transition:o.transitions.create(["height"],{duration:o.transitions.duration.shorter})}),l&&Z(Z(Z({width:"calc(100% - ".concat(dO.W_VERTICAL+1,"px)"),height:uO.H_DESKTOP},u&&{height:uO.H_DESKTOP_OFFSET}),i&&{width:1,bgcolor:"background.default",height:uO.H_DESKTOP_OFFSET,borderBottom:"dashed 1px ".concat(o.palette.divider)}),s&&{width:"calc(100% - ".concat(dO.W_MINI+1,"px)")})),children:Y.jsx(MO,{sx:{height:1,px:{lg:5}},children:d})})}var KO=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||24,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||44,itemSubHeight:(null==e?void 0:e.itemSubHeight)||36,itemPadding:(null==e?void 0:e.itemPadding)||"4px 8px 4px 12px",itemRadius:(null==e?void 0:e.itemRadius)||8,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},JO=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||56,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"6px 0 0 0",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},_O=function(e){return{itemGap:(null==e?void 0:e.itemGap)||6,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||32,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"0 6px 0 6px",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}};function $O(e){return Lt("MuiLink",e)}var ez=It("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const tz={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var nz=({theme:e,ownerState:t})=>{const n=(e=>tz[e]||e)(t.color),r=Jt(e,`palette.${n}`,!1)||t.color,o=Jt(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ar(r,.4)};const rz=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oz=ho(Df,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${qe(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>re({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&re({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:nz({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{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"},[`&.${ez.focusVisible}`]:{outline:"auto"}}))),az=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:a="a",onBlur:i,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=Ht(n,rz),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=yt(),[v,A]=k.useState(!1),y=ut(t,g),b=re({},n,{color:o,component:a,focusVisible:v,underline:c,variant:u}),x=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Nt({root:["root",`underline${qe(o)}`,"button"===n&&"button",r&&"focusVisible"]},$O,t)})(b);return Y.jsx(oz,re({color:o,className:_n(x.root,r),classes:l,component:a,onBlur:e=>{m(e),!1===f.current&&A(!1),i&&i(e)},onFocus:e=>{h(e),!0===f.current&&A(!0),s&&s(e)},ref:y,ownerState:b,variant:u,sx:[...Object.keys(tz).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));"production"!==process.env.NODE_ENV&&(az.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.any,component:Le,onBlur:Ne.func,onFocus:Ne.func,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),TypographyClasses:Ne.object,underline:Ne.oneOf(["always","hover","none"]),variant:Ne.oneOfType([Ne.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Ne.string])});var iz=az,sz=e.forwardRef((function(e,t){var n=e.href,o=G(e,["href"]);return Y.jsx(r.Link,Z({ref:t,to:n},o))})),lz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,a=e.theme,i=1!==r,s={root:{color:"light"===a.palette.mode?a.palette.primary.main:a.palette.primary.light,backgroundColor:Ar(a.palette.primary.main,.08),"&:hover":{backgroundColor:Ar(a.palette.primary.main,.16)}},sub:{color:a.palette.text.primary,backgroundColor:a.palette.action.selected,"&:hover":{backgroundColor:a.palette.action.hover}}};return Z(Z(Z(Z({flexDirection:"column",justifyContent:"center",borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:a.palette.text.secondary,margin:"0 ".concat(o.itemGap,"px ").concat(o.itemGap,"px ").concat(o.itemGap,"px")},o.hiddenLabel&&!i&&{padding:o.itemPadding}),t&&Z({},s.root)),i&&Z({margin:0,flexDirection:"row",padding:a.spacing(0,1),minHeight:o.itemSubHeight},t&&Z({},s.sub))),n&&!t&&{color:a.palette.text.primary,backgroundColor:a.palette.action.hover})})),cz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,marginRight:0}})),uz=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,a=e.active,i=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=uo(),u=n.title,d=n.path,p=n.icon,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(lz,Z({disableGutters:!0,ref:t,open:o,depth:r,active:a,disabled:m,config:s},l,{children:[p&&Y.jsx(cz,{size:s.iconSize,children:p}),!(s.hiddenLabel&&!v)&&Y.jsx(fv,{sx:Z({width:1,flex:"unset"},!v&&{px:.5,mt:.5}),primary:u,primaryTypographyProps:Z({noWrap:!0,fontSize:10,lineHeight:"16px",textAlign:"center",textTransform:"capitalize",fontWeight:a?"fontWeightBold":"fontWeightSemiBold"},v&&{textAlign:"unset",fontSize:c.typography.body2.fontSize,lineHeight:c.typography.body2.lineHeight,fontWeight:a?"fontWeightSemiBold":"fontWeightMedium"})}),h&&Y.jsx(ev,{title:h,arrow:!0,placement:"right",children:Y.jsx(wo,{width:16,icon:"eva:info-outline",sx:Z({color:"text.disabled"},!v&&{top:11,left:6,position:"absolute"})})}),!!f&&Y.jsx(wo,{width:16,icon:"eva:arrow-ios-forward-fill",sx:{top:11,right:6,position:"absolute"}})]}));return g&&!g.includes("".concat(s.currentRole))?null:i?Y.jsx(iz,{href:d,target:"_blank",rel:"noopener",underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A}):Y.jsx(iz,{component:sz,href:d,underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A})}));function dz(e,t){void 0===t&&(t=!0);var n=r.useLocation().pathname,o=!!e&&!!r.matchPath({path:e,end:!0},n),a=!!e&&!!r.matchPath({path:e,end:!1},n);return t?a:o}function pz(t){var n,r,o=t.data,a=t.depth,i=t.hasChild,s=t.config,l=e.useRef(null),c=bM(),u=dz(o.path,i),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(hO.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=e.useCallback((function(){m(!0)}),[]),g=e.useCallback((function(){m(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(uz,{ref:l,item:o,depth:a,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),i&&Y.jsx(rd,{open:f,anchorEl:l.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Zu.paper)]=Z({mt:.5,width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(fz,{data:o.children,depth:a,config:s})})]})}function fz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Fg,{spacing:.5,children:t.map((function(e){return Y.jsx(pz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var mz=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(hz,{items:e.items,config:JO(n)},e.subheader||t)}))}))}));function hz(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(pz,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function gz(t){var n=t.sx,r=G(t,["sx"]),o=uo(),a=e.useContext(_m),i=a.themeLayout,s=a.setThemeLayout;return Fi("up","lg")?Y.jsx(Tp,Z({size:"small",onClick:function(){s&&s("vertical"===i?"mini":"vertical")},sx:Z(Z(Z({p:.5,top:32,position:"fixed",left:dO.W_VERTICAL-12,zIndex:o.zIndex.appBar+1,border:"dashed 1px ".concat(o.palette.divider)},wv({opacity:.48,color:o.palette.background.default})),{"&:hover":{bgcolor:"background.default"}}),n)},r,{children:Y.jsx(wo,{width:16,icon:"vertical"===i?"eva:arrow-ios-back-fill":"eva:arrow-ios-forward-fill"})})):null}function vz(e){var t=e.Logo,n=Jm();return Y.jsxs(xo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:dO.W_MINI}},children:[Y.jsx(gz,{sx:{top:22,left:dO.W_MINI-12}}),Y.jsxs(Fg,{sx:Z({pb:2,height:1,position:"fixed",width:dO.W_MINI,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},jv.x),children:[t&&Y.jsx(t,{sx:{mx:"auto",my:2}}),Y.jsx(mz,{data:n,config:{currentRole:"admin"}})]})]})}function Az(e){return Lt("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const yz=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bz=ho("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>re({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&re({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),xz=ho("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>re({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),wz=ho("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>re({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),jz=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:A=no.standard,TransitionComponent:y=sa}=n,b=Ht(n,yz),x=re({},n,{orientation:g,collapsedSize:i}),w=(e=>{const{orientation:t,classes:n}=e;return Nt({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},Az,n)})(x),j=uo(),C=k.useRef(),M=k.useRef(null),O=k.useRef(),z="number"==typeof i?`${i}px`:i,D="horizontal"===g,T=D?"width":"height";k.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const P=k.useRef(null),N=ut(t,P),E=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},B=()=>M.current?M.current[D?"clientWidth":"clientHeight"]:0,L=E(((e,t)=>{M.current&&D&&(M.current.style.position="absolute"),e.style[T]=z,u&&u(e,t)})),I=E(((e,t)=>{const n=B();M.current&&D&&(M.current.style.position="");const{duration:r,easing:o}=ha({style:v,timeout:A,easing:l},{mode:"enter"});if("auto"===A){const t=j.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[T]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),S=E(((e,t)=>{e.style[T]="auto",d&&d(e,t)})),W=E((e=>{e.style[T]=`${B()}px`,f&&f(e)})),H=E(m),R=E((e=>{const t=B(),{duration:n,easing:r}=ha({style:v,timeout:A,easing:l},{mode:"exit"});if("auto"===A){const n=j.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[T]=z,e.style.transitionTimingFunction=r,h&&h(e)}));return Y.jsx(y,re({in:c,onEnter:L,onEntered:S,onEntering:I,onExit:W,onExited:H,onExiting:R,addEndListener:e=>{"auto"===A&&(C.current=setTimeout(e,O.current||0)),r&&r(P.current,e)},nodeRef:P,timeout:"auto"===A?null:A},b,{children:(e,t)=>Y.jsx(bz,re({as:s,className:_n(w.root,a,{entered:w.entered,exited:!c&&"0px"===z&&w.hidden}[e]),style:re({[D?"minWidth":"minHeight"]:z},v),ownerState:re({},x,{state:e}),ref:N},t,{children:Y.jsx(xz,{ownerState:re({},x,{state:e}),className:w.wrapper,ref:M,children:Y.jsx(wz,{ownerState:re({},x,{state:e}),className:w.wrapperInner,children:o})})}))}))}));"production"!==process.env.NODE_ENV&&(jz.propTypes={addEndListener:Ne.func,children:Ne.node,classes:Ne.object,className:Ne.string,collapsedSize:Ne.oneOfType([Ne.number,Ne.string]),component:Le,easing:Ne.oneOfType([Ne.shape({enter:Ne.string,exit:Ne.string}),Ne.string]),in:Ne.bool,onEnter:Ne.func,onEntered:Ne.func,onEntering:Ne.func,onExit:Ne.func,onExited:Ne.func,onExiting:Ne.func,orientation:Ne.oneOf(["horizontal","vertical"]),style:Ne.object,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),timeout:Ne.oneOfType([Ne.oneOf(["auto"]),Ne.number,Ne.shape({appear:Ne.number,enter:Ne.number,exit:Ne.number})])}),jz.muiSupportAuto=!0;var Cz=jz,Mz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.depth,r=e.config,o=e.theme,a=1!==n,i=n>2,s={root:{color:"light"===o.palette.mode?o.palette.primary.main:o.palette.primary.light,backgroundColor:Ar(o.palette.primary.main,.08),"&:hover":{backgroundColor:Ar(o.palette.primary.main,.16)}},sub:{color:o.palette.text.primary,backgroundColor:"transparent","&:hover":{backgroundColor:o.palette.action.hover}}};return Z(Z(Z({padding:r.itemPadding,marginBottom:r.itemGap,borderRadius:r.itemRadius,minHeight:r.itemRootHeight,color:o.palette.text.secondary},t&&Z({},s.root)),a&&Z({minHeight:r.itemSubHeight},t&&Z({},s.sub))),i&&{paddingLeft:o.spacing(n)})})),Oz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,alignItems:"center",justifyContent:"center"}})),zz=ho("span")((function(e){var t=e.active,n=e.theme;return Z({width:4,height:4,borderRadius:"50%",backgroundColor:n.palette.text.disabled,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shorter})},t&&{transform:"scale(2)",backgroundColor:n.palette.primary.main})})),Dz=ho(np)((function(e){var t=e.config,n=e.theme;return Z(Z({},n.typography.overline),{fontSize:11,cursor:"pointer",display:"inline-flex",padding:t.itemPadding,paddingTop:n.spacing(2),marginBottom:t.itemGap,paddingBottom:n.spacing(1),color:n.palette.text.disabled,transition:n.transitions.create(["color"],{duration:n.transitions.duration.shortest}),"&:hover":{color:n.palette.text.primary}})}));function Tz(e){var t=e.item,n=e.open,r=e.depth,o=e.active,a=e.config,i=e.externalLink,s=G(e,["item","open","depth","active","config","externalLink"]),l=t.title,c=t.path,u=t.icon,d=t.info,p=t.children,f=t.disabled,m=t.caption,h=t.roles,g=1!==r,v=Y.jsxs(Mz,Z({disableGutters:!0,disabled:f,active:o,depth:r,config:a},s,{children:[Y.jsxs(Y.Fragment,{children:[u&&Y.jsx(Oz,{size:a.iconSize,children:u}),g&&Y.jsx(Oz,{size:a.iconSize,children:Y.jsx(zz,{active:o})})]}),!(a.hiddenLabel&&!g)&&Y.jsx(fv,{primary:l,secondary:m?Y.jsx(ev,{title:m,placement:"top-start",children:Y.jsx("span",{children:m})}):null,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:o?"fontWeightSemiBold":"fontWeightMedium"},secondaryTypographyProps:{noWrap:!0,component:"span",typography:"caption",color:"text.disabled"}}),d&&Y.jsx(xo,{component:"span",sx:{ml:1,lineHeight:0},children:d}),!!p&&Y.jsx(wo,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]}));return h&&!h.includes("".concat(a.currentRole))?null:i?Y.jsx(iz,{href:c,target:"_blank",rel:"noopener",underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v}):p?v:Y.jsx(iz,{component:sz,href:c,underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v})}function Pz(t){var n,r=t.data,o=t.depth,a=t.hasChild,i=t.config;bM();var s=dz(r.path,a),l=null===(n=r.path)||void 0===n?void 0:n.includes("http"),c=e.useState(s),u=c[0],d=c[1];e.useEffect((function(){s||f()}),[]);var p=e.useCallback((function(){d((function(e){return!e}))}),[]),f=e.useCallback((function(){d(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(Tz,{item:r,depth:o,open:u,active:s,externalLink:l,onClick:p,config:i}),a&&Y.jsx(Cz,{in:u,unmountOnExit:!0,children:Y.jsx(Nz,{data:r.children,depth:o,config:i})})]})}function Nz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(Pz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var Ez=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(Bz,{subheader:e.subheader,items:e.items,config:KO(n)},e.subheader||t)}))}))}));function Bz(t){var n=t.subheader,r=t.items,o=t.config,a=e.useState(!0),i=a[0],s=a[1],l=e.useCallback((function(){s((function(e){return!e}))}),[]),c=r.map((function(e){return Y.jsx(Pz,{data:e,depth:1,hasChild:!!e.children,config:o},e.title+e.path)}));return Y.jsx(Nu,{disablePadding:!0,sx:{px:2},children:n?Y.jsxs(Y.Fragment,{children:[Y.jsx(Dz,{disableGutters:!0,disableSticky:!0,onClick:l,config:o,children:n}),Y.jsx(Cz,{in:i,children:c})]}):c})}function kz(t){var n=t.openNav,r=t.onCloseNav,o=t.Logo,a=bM(),i=Fi("up","lg"),s=Jm();e.useEffect((function(){n&&r()}),[a]);var l=Y.jsxs(Em,{sx:{height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[o&&Y.jsx(o,{sx:{mt:3,ml:4,mb:1}}),Y.jsx(Ez,{data:s,config:{currentRole:"admin"}}),Y.jsx(xo,{sx:{flexGrow:1}})]});return Y.jsxs(xo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:dO.W_VERTICAL}},children:[Y.jsx(gz,{}),i?Y.jsx(Fg,{sx:{height:1,position:"fixed",width:dO.W_VERTICAL,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},children:l}):Y.jsx(ii,{open:n,onClose:r,PaperProps:{sx:{width:dO.W_VERTICAL}},children:l})]})}var Lz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,a=e.theme,i=1!==r,s={color:a.palette.text.primary,backgroundColor:a.palette.action.selected};return Z(Z(Z({flexShrink:0,padding:o.itemPadding,marginRight:o.itemGap,borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:a.palette.text.secondary},t&&Z({},s)),i&&{margin:0,padding:a.spacing(0,1),minHeight:o.itemSubHeight}),n&&!t&&{color:a.palette.text.primary,backgroundColor:a.palette.action.hover})})),Iz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,flexShrink:0,marginRight:0}})),Sz=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,a=e.active,i=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=n.title,u=n.path,d=n.icon,p=n.info,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(Lz,Z({disableGutters:!0,ref:t,open:o,depth:r,active:a,disabled:m,config:s},l,{children:[d&&Y.jsx(Iz,{size:s.iconSize,children:d}),!(s.hiddenLabel&&!v)&&Y.jsx(fv,{sx:Z({},!v&&{ml:1}),primary:c,primaryTypographyProps:Z({noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:a?"fontWeightBold":"fontWeightMedium"},v&&{fontWeight:a?"fontWeightSemiBold":"fontWeightMedium"})}),p&&Y.jsx(xo,{component:"span",sx:{ml:.5,lineHeight:0},children:p}),h&&Y.jsx(ev,{title:h,arrow:!0,children:Y.jsx(wo,{width:16,icon:"eva:info-outline",sx:{ml:.5,color:"text.disabled"}})}),!!f&&Y.jsx(wo,{icon:v?"eva:arrow-ios-forward-fill":"eva:arrow-ios-downward-fill",width:16,sx:{flexShrink:0,ml:.5}})]}));return g&&!g.includes("".concat(s.currentRole))?null:i?Y.jsx(iz,{href:u,target:"_blank",rel:"noopener",underline:"none",sx:Z({},m&&{cursor:"default"}),children:A}):Y.jsx(iz,{component:sz,href:u,underline:"none",sx:Z({},m&&{cursor:"default"}),children:A})}));function Wz(t){var n,r,o=t.data,a=t.depth,i=t.hasChild,s=t.config,l=e.useRef(null),c=bM(),u=dz(o.path,i),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(hO.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=function(){m(!0)},g=function(){m(!1)};return Y.jsxs(Y.Fragment,{children:[Y.jsx(Sz,{ref:l,item:o,depth:a,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),i&&Y.jsx(rd,{open:f,anchorEl:l.current,anchorOrigin:1===a?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===a?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Zu.paper)]=Z({width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(Hz,{data:o.children,depth:a,config:s})})]})}function Hz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Fg,{spacing:.5,children:t.map((function(e){return Y.jsx(Wz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var Rz=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({direction:"row",sx:Z(Z({mx:"auto"},jv.y),r)},o,{children:t.map((function(e,t){return Y.jsx(Vz,{items:e.items,config:_O(n)},e.subheader||t)}))}))}));function Vz(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(Wz,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function Fz(e){var t=e.sx,n=G(e,["sx"]);return Y.jsx(xo,Z({sx:Z({left:0,right:0,bottom:0,m:"auto",height:24,zIndex:-1,opacity:.48,borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:function(e){return e.customShadows.z8}},t)},n))}var Xz=e.memo((function(){var e=uo(),t=Jm();return Y.jsxs(bO,{component:"nav",sx:{top:uO.H_DESKTOP_OFFSET},children:[Y.jsx(MO,{sx:Z({},wv({color:e.palette.background.default})),children:Y.jsx(Rz,{data:t,config:{currentRole:"admin"}})}),Y.jsx(Fz,{})]})}));function Qz(t){var n=t.children,r=t.Logo,o=Fi("up","lg"),a=e.useContext(_m),i=cO(),s="horizontal"===a.themeLayout,l="mini"===a.themeLayout,c=Y.jsx(vz,{Logo:r}),u=Y.jsx(Xz,{}),d=Y.jsx(kz,{openNav:i.value,onCloseNav:i.onFalse,Logo:r});return s?Y.jsxs(Y.Fragment,{children:[Y.jsx(qO,{onOpenNav:i.onTrue,Logo:r}),o?u:d,Y.jsx(fO,{children:n})]}):l?Y.jsxs(Y.Fragment,{children:[Y.jsx(qO,{onOpenNav:i.onTrue,Logo:r}),Y.jsxs(xo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[o?c:d,Y.jsx(fO,{children:n})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(qO,{onOpenNav:i.onTrue,Logo:r}),Y.jsxs(xo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[d,Y.jsx(fO,{children:n})]})]})}var Yz=function(){this.__data__=[],this.size=0};var Zz=function(e,t){return e===t||e!=e&&t!=t},Gz=Zz;var Uz=function(e,t){for(var n=e.length;n--;)if(Gz(e[n][0],t))return n;return-1},qz=Uz,Kz=Array.prototype.splice;var Jz=Uz;var _z=Uz;var $z=Uz;var eD=Yz,tD=function(e){var t=this.__data__,n=qz(t,e);return!(n<0)&&(n==t.length-1?t.pop():Kz.call(t,n,1),--this.size,!0)},nD=function(e){var t=this.__data__,n=Jz(t,e);return n<0?void 0:t[n][1]},rD=function(e){return _z(this.__data__,e)>-1},oD=function(e,t){var n=this.__data__,r=$z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function aD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}aD.prototype.clear=eD,aD.prototype.delete=tD,aD.prototype.get=nD,aD.prototype.has=rD,aD.prototype.set=oD;var iD=aD,sD=iD;var lD=function(){this.__data__=new sD,this.size=0};var cD=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var uD=function(e){return this.__data__.get(e)};var dD=function(e){return this.__data__.has(e)},pD=$f,fD=Nf;var mD,hD=function(e){if(!fD(e))return!1;var t=pD(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},gD=Lf["__core-js_shared__"],vD=(mD=/[^.]+$/.exec(gD&&gD.keys&&gD.keys.IE_PROTO||""))?"Symbol(src)_1."+mD:"";var AD=function(e){return!!vD&&vD in e},yD=Function.prototype.toString;var bD=hD,xD=AD,wD=Nf,jD=function(e){if(null!=e){try{return yD.call(e)}catch(e){}try{return e+""}catch(e){}}return""},CD=/^\[object .+?Constructor\]$/,MD=Function.prototype,OD=Object.prototype,zD=MD.toString,DD=OD.hasOwnProperty,TD=RegExp("^"+zD.call(DD).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var PD=function(e){return!(!wD(e)||xD(e))&&(bD(e)?TD:CD).test(jD(e))},ND=function(e,t){return null==e?void 0:e[t]};var ED=function(e,t){var n=ND(e,t);return PD(n)?n:void 0},BD=ED(Lf,"Map"),kD=ED(Object,"create"),LD=kD;var ID=function(){this.__data__=LD?LD(null):{},this.size=0};var SD=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},WD=kD,HD=Object.prototype.hasOwnProperty;var RD=function(e){var t=this.__data__;if(WD){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return HD.call(t,e)?t[e]:void 0},VD=kD,FD=Object.prototype.hasOwnProperty;var XD=kD;var QD=ID,YD=SD,ZD=RD,GD=function(e){var t=this.__data__;return VD?void 0!==t[e]:FD.call(t,e)},UD=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=XD&&void 0===t?"__lodash_hash_undefined__":t,this};function qD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qD.prototype.clear=QD,qD.prototype.delete=YD,qD.prototype.get=ZD,qD.prototype.has=GD,qD.prototype.set=UD;var KD=qD,JD=iD,_D=BD;var $D=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var eT=function(e,t){var n=e.__data__;return $D(t)?n["string"==typeof t?"string":"hash"]:n.map},tT=eT;var nT=function(e){var t=tT(this,e).delete(e);return this.size-=t?1:0,t},rT=eT;var oT=eT;var aT=eT;var iT=function(){this.size=0,this.__data__={hash:new KD,map:new(_D||JD),string:new KD}},sT=nT,lT=function(e){return rT(this,e).get(e)},cT=function(e){return oT(this,e).has(e)},uT=function(e,t){var n=aT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function dT(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dT.prototype.clear=iT,dT.prototype.delete=sT,dT.prototype.get=lT,dT.prototype.has=cT,dT.prototype.set=uT;var pT=iD,fT=BD,mT=dT;var hT=iD,gT=lD,vT=cD,AT=uD,yT=dD,bT=function(e,t){var n=this.__data__;if(n instanceof pT){var r=n.__data__;if(!fT||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mT(r)}return n.set(e,t),this.size=n.size,this};function xT(e){var t=this.__data__=new hT(e);this.size=t.size}xT.prototype.clear=gT,xT.prototype.delete=vT,xT.prototype.get=AT,xT.prototype.has=yT,xT.prototype.set=bT;var wT=xT,jT=ED,CT=function(){try{var e=jT(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),MT=CT;var OT=function(e,t,n){"__proto__"==t&&MT?MT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},zT=OT,DT=Zz;var TT=function(e,t,n){(void 0!==n&&!DT(e[t],n)||void 0===n&&!(t in e))&&zT(e,t,n)};var PT=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}(),NT={exports:{}};!function(e,t){var n=Lf,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}(NT,NT.exports);var ET=NT.exports,BT=Lf.Uint8Array;var kT=function(e){var t=new e.constructor(e.byteLength);return new BT(t).set(new BT(e)),t},LT=kT;var IT=function(e,t){var n=t?LT(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ST=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},WT=Nf,HT=Object.create,RT=function(){function e(){}return function(t){if(!WT(t))return{};if(HT)return HT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),VT=RT;var FT=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),XT=Object.prototype;var QT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||XT)},YT=VT,ZT=FT,GT=QT;var UT=function(e){return"function"!=typeof e.constructor||GT(e)?{}:YT(ZT(e))},qT=$f,KT=em;var JT=function(e){return KT(e)&&"[object Arguments]"==qT(e)},_T=em,$T=Object.prototype,eP=$T.hasOwnProperty,tP=$T.propertyIsEnumerable,nP=JT(function(){return arguments}())?JT:function(e){return _T(e)&&eP.call(e,"callee")&&!tP.call(e,"callee")},rP=Array.isArray;var oP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},aP=hD,iP=oP;var sP=function(e){return null!=e&&iP(e.length)&&!aP(e)},lP=sP,cP=em;var uP=function(e){return cP(e)&&lP(e)},dP={exports:{}};var pP=function(){return!1};!function(e,t){var n=Lf,r=pP,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s}(dP,dP.exports);var fP=dP.exports,mP=$f,hP=FT,gP=em,vP=Function.prototype,AP=Object.prototype,yP=vP.toString,bP=AP.hasOwnProperty,xP=yP.call(Object);var wP=function(e){if(!gP(e)||"[object Object]"!=mP(e))return!1;var t=hP(e);if(null===t)return!0;var n=bP.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&yP.call(n)==xP},jP=$f,CP=oP,MP=em,OP={};OP["[object Float32Array]"]=OP["[object Float64Array]"]=OP["[object Int8Array]"]=OP["[object Int16Array]"]=OP["[object Int32Array]"]=OP["[object Uint8Array]"]=OP["[object Uint8ClampedArray]"]=OP["[object Uint16Array]"]=OP["[object Uint32Array]"]=!0,OP["[object Arguments]"]=OP["[object Array]"]=OP["[object ArrayBuffer]"]=OP["[object Boolean]"]=OP["[object DataView]"]=OP["[object Date]"]=OP["[object Error]"]=OP["[object Function]"]=OP["[object Map]"]=OP["[object Number]"]=OP["[object Object]"]=OP["[object RegExp]"]=OP["[object Set]"]=OP["[object String]"]=OP["[object WeakMap]"]=!1;var zP=function(e){return MP(e)&&CP(e.length)&&!!OP[jP(e)]};var DP=function(e){return function(t){return e(t)}},TP={exports:{}};!function(e,t){var n=Ef,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(TP,TP.exports);var PP=TP.exports,NP=zP,EP=DP,BP=PP&&PP.isTypedArray,kP=BP?EP(BP):NP;var LP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},IP=OT,SP=Zz,WP=Object.prototype.hasOwnProperty;var HP=function(e,t,n){var r=e[t];WP.call(e,t)&&SP(r,n)&&(void 0!==n||t in e)||IP(e,t,n)},RP=OT;var VP=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?RP(n,s,l):HP(n,s,l)}return n};var FP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},XP=/^(?:0|[1-9]\d*)$/;var QP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&XP.test(e))&&e>-1&&e%1==0&&e<t},YP=FP,ZP=nP,GP=rP,UP=fP,qP=QP,KP=kP,JP=Object.prototype.hasOwnProperty;var _P=function(e,t){var n=GP(e),r=!n&&ZP(e),o=!n&&!r&&UP(e),a=!n&&!r&&!o&&KP(e),i=n||r||o||a,s=i?YP(e.length,String):[],l=s.length;for(var c in e)!t&&!JP.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qP(c,l))||s.push(c);return s};var $P=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eN=Nf,tN=QT,nN=$P,rN=Object.prototype.hasOwnProperty;var oN=function(e){if(!eN(e))return nN(e);var t=tN(e),n=[];for(var r in e)("constructor"!=r||!t&&rN.call(e,r))&&n.push(r);return n},aN=_P,iN=oN,sN=sP;var lN=function(e){return sN(e)?aN(e,!0):iN(e)},cN=VP,uN=lN;var dN=TT,pN=ET,fN=IT,mN=ST,hN=UT,gN=nP,vN=rP,AN=uP,yN=fP,bN=hD,xN=Nf,wN=wP,jN=kP,CN=LP,MN=function(e){return cN(e,uN(e))};var ON=wT,zN=TT,DN=PT,TN=function(e,t,n,r,o,a,i){var s=CN(e,n),l=CN(t,n),c=i.get(l);if(c)dN(e,n,c);else{var u=a?a(s,l,n+"",e,t,i):void 0,d=void 0===u;if(d){var p=vN(l),f=!p&&yN(l),m=!p&&!f&&jN(l);u=l,p||f||m?vN(s)?u=s:AN(s)?u=mN(s):f?(d=!1,u=pN(l,!0)):m?(d=!1,u=fN(l,!0)):u=[]:wN(l)||gN(l)?(u=s,gN(s)?u=MN(s):xN(s)&&!bN(s)||(u=hN(l))):d=!1}d&&(i.set(l,u),o(u,l,r,a,i),i.delete(l)),dN(e,n,u)}},PN=Nf,NN=lN,EN=LP;var BN=function e(t,n,r,o,a){t!==n&&DN(n,(function(i,s){if(a||(a=new ON),PN(i))TN(t,n,s,r,e,o,a);else{var l=o?o(EN(t,s),i,s+"",t,n,a):void 0;void 0===l&&(l=i),zN(t,s,l)}}),NN)};var kN=function(e){return e};var LN=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},IN=LN,SN=Math.max;var WN=function(e,t,n){return t=SN(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=SN(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),IN(e,this,s)}};var HN=function(e){return function(){return e}},RN=CT,VN=RN?function(e,t){return RN(e,"toString",{configurable:!0,enumerable:!1,value:HN(t),writable:!0})}:kN,FN=Date.now;var XN=function(e){var t=0,n=0;return function(){var r=FN(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(VN),QN=kN,YN=WN,ZN=XN;var GN=function(e,t){return ZN(YN(e,t,QN),e+"")},UN=Zz,qN=sP,KN=QP,JN=Nf;var _N=GN,$N=function(e,t,n){if(!JN(n))return!1;var r=typeof t;return!!("number"==r?qN(n)&&KN(t,n.length):"string"==r&&t in n)&&UN(n[t],e)};var eE=BN,tE=W(function(e){return _N((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&$N(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n){eE(e,t,n)})));const nE=(e,t)=>re({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),rE=e=>re({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}}),oE=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var o;r[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}}));let o=re({html:nE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:re({margin:0},rE(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(o=[o,a]),o};function aE(e){const t=po({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Y.jsxs(k.Fragment,{children:[Y.jsx(sc,{styles:e=>oE(e,r)}),n]})}"production"!==process.env.NODE_ENV&&(aE.propTypes={children:Ne.node,enableColorScheme:Ne.bool});var iE={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},sE={lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},lE={lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},cE={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},uE={lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},dE={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:iE[800]},pE={lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},fE=function(e){return{common:{black:"#000000",white:"#FFFFFF"},primary:null!=e?e:sE,secondary:lE,info:cE,success:uE,warning:dE,error:pE,grey:iE,divider:Ar(iE[500],.2),action:{hover:Ar(iE[500],.08),selected:Ar(iE[500],.16),disabled:Ar(iE[500],.8),disabledBackground:Ar(iE[500],.24),focus:Ar(iE[500],.24),hoverOpacity:.08,disabledOpacity:.48}}};function mE(e,t){var n=Z(Z({},fE(t)),{mode:"light",text:{primary:iE[800],secondary:iE[600],disabled:iE[500]},background:{paper:"#FFFFFF",default:"#FFFFFF",neutral:iE[200]},action:Z(Z({},fE().action),{active:iE[600]})}),r=Z(Z({},fE(t)),{mode:"dark",text:{primary:"#FFFFFF",secondary:iE[500],disabled:iE[600]},background:{paper:iE[800],default:iE[900],neutral:Ar(iE[500],.12)},action:Z(Z({},fE().action),{active:iE[500]})});return"light"===e?n:r}var hE=mE("light"),gE=hE.grey[500],vE=hE.common.black;function AE(e){var t=Ar(e,.2),n=Ar(e,.14),r=Ar(e,.12);return["none","0px 2px 1px -1px ".concat(t,",0px 1px 1px 0px ").concat(n,",0px 1px 3px 0px ").concat(r),"0px 3px 1px -2px ".concat(t,",0px 2px 2px 0px ").concat(n,",0px 1px 5px 0px ").concat(r),"0px 3px 3px -2px ".concat(t,",0px 3px 4px 0px ").concat(n,",0px 1px 8px 0px ").concat(r),"0px 2px 4px -1px ".concat(t,",0px 4px 5px 0px ").concat(n,",0px 1px 10px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 5px 8px 0px ").concat(n,",0px 1px 14px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 6px 10px 0px ").concat(n,",0px 1px 18px 0px ").concat(r),"0px 4px 5px -2px ".concat(t,",0px 7px 10px 1px ").concat(n,",0px 2px 16px 1px ").concat(r),"0px 5px 5px -3px ".concat(t,",0px 8px 10px 1px ").concat(n,",0px 3px 14px 2px ").concat(r),"0px 5px 6px -3px ".concat(t,",0px 9px 12px 1px ").concat(n,",0px 3px 16px 2px ").concat(r),"0px 6px 6px -3px ".concat(t,",0px 10px 14px 1px ").concat(n,",0px 4px 18px 3px ").concat(r),"0px 6px 7px -4px ".concat(t,",0px 11px 15px 1px ").concat(n,",0px 4px 20px 3px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 12px 17px 2px ").concat(n,",0px 5px 22px 4px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 13px 19px 2px ").concat(n,",0px 5px 24px 4px ").concat(r),"0px 7px 9px -4px ".concat(t,",0px 14px 21px 2px ").concat(n,",0px 5px 26px 4px ").concat(r),"0px 8px 9px -5px ".concat(t,",0px 15px 22px 2px ").concat(n,",0px 6px 28px 5px ").concat(r),"0px 8px 10px -5px ".concat(t,",0px 16px 24px 2px ").concat(n,",0px 6px 30px 5px ").concat(r),"0px 8px 11px -5px ".concat(t,",0px 17px 26px 2px ").concat(n,",0px 6px 32px 5px ").concat(r),"0px 9px 11px -5px ".concat(t,",0px 18px 28px 2px ").concat(n,",0px 7px 34px 6px ").concat(r),"0px 9px 12px -6px ".concat(t,",0px 19px 29px 2px ").concat(n,",0px 7px 36px 6px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 20px 31px 3px ").concat(n,",0px 8px 38px 7px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 21px 33px 3px ").concat(n,",0px 8px 40px 7px ").concat(r),"0px 10px 14px -6px ".concat(t,",0px 22px 35px 3px ").concat(n,",0px 8px 42px 7px ").concat(r),"0px 11px 14px -7px ".concat(t,",0px 23px 36px 3px ").concat(n,",0px 9px 44px 8px ").concat(r),"0px 11px 15px -7px ".concat(t,",0px 24px 38px 3px ").concat(n,",0px 9px 46px 8px ").concat(r)]}function yE(e){return AE("light"===e?gE:vE)}function bE(e){return"".concat(e/16,"rem")}function xE(e){var t=e.sm,n=e.md,r=e.lg;return{"@media (min-width:600px)":{fontSize:bE(t)},"@media (min-width:900px)":{fontSize:bE(n)},"@media (min-width:1200px)":{fontSize:bE(r)}}}var wE={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:Z({fontWeight:800,lineHeight:1.25,fontSize:bE(40)},xE({sm:52,md:58,lg:64})),h2:Z({fontWeight:800,lineHeight:64/48,fontSize:bE(32)},xE({sm:40,md:44,lg:48})),h3:Z({fontWeight:700,lineHeight:1.5,fontSize:bE(24)},xE({sm:26,md:30,lg:32})),h4:Z({fontWeight:700,lineHeight:1.5,fontSize:bE(20)},xE({sm:20,md:24,lg:24})),h5:Z({fontWeight:700,lineHeight:1.5,fontSize:bE(18)},xE({sm:19,md:20,lg:20})),h6:Z({fontWeight:700,lineHeight:28/18,fontSize:bE(17)},xE({sm:18,md:18,lg:18})),subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:bE(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:bE(14)},body1:{lineHeight:1.5,fontSize:bE(16)},body2:{lineHeight:22/14,fontSize:bE(14)},caption:{lineHeight:1.5,fontSize:bE(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:bE(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:bE(14),textTransform:"unset"}};function jE(e,t){var n=mE("light",t);n.grey[500],n.common.black;var r=Ar(e,.16);return{z1:"0 1px 2px 0 ".concat(r),z4:"0 4px 8px 0 ".concat(r),z8:"0 8px 16px 0 ".concat(r),z12:"0 12px 24px -4px ".concat(r),z16:"0 16px 32px -4px ".concat(r),z20:"0 20px 40px -4px ".concat(r),z24:"0 24px 48px 0 ".concat(r),card:"0 0 2px 0 ".concat(Ar(e,.2),", 0 12px 24px -4px ").concat(Ar(e,.12)),dropdown:"0 0 2px 0 ".concat(Ar(e,.24),", -20px 20px 40px -4px ").concat(Ar(e,.24)),dialog:"-40px 40px 80px -8px ".concat(Ar(n.common.black,.24)),primary:"0 8px 16px 0 ".concat(Ar(n.primary.main,.24)),info:"0 8px 16px 0 ".concat(Ar(n.info.main,.24)),secondary:"0 8px 16px 0 ".concat(Ar(n.secondary.main,.24)),success:"0 8px 16px 0 ".concat(Ar(n.success.main,.24)),warning:"0 8px 16px 0 ".concat(Ar(n.warning.main,.24)),error:"0 8px 16px 0 ".concat(Ar(n.error.main,.24))}}function CE(e,t){var n=mE("light"),r=n.grey[500],o=n.common.black;return jE("light"===e?r:o,t)}var ME=It("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),OE=["primary","secondary","info","success","warning","error"];function zE(e){var t="light"===e.palette.mode;return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:function(n){return function(n){var r,o="default"===n.color,a="inherit"===n.color,i="circular"===n.variant,s="extended"===n.variant,l="outlined"===n.variant,c="outlinedExtended"===n.variant,u="soft"===n.variant,d="softExtended"===n.variant,p=Z(Z(Z({"&:hover, &:active":{boxShadow:"none"}},(i||s)&&Z(Z({},(o||a)&&{boxShadow:e.customShadows.z8}),a&&{backgroundColor:e.palette.text.primary,color:t?e.palette.common.white:e.palette.grey[800],"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}})),(l||c)&&Z(Z(Z({boxShadow:"none",backgroundColor:"transparent"},(o||a)&&{border:"solid 1px ".concat(Ar(e.palette.grey[500],.32))}),o&&Z({},!t&&{color:e.palette.text.secondary})),{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor",backgroundColor:e.palette.action.hover}})),(u||d)&&Z(Z({boxShadow:"none"},o&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}}),a&&{backgroundColor:Ar(e.palette.grey[500],.08),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.24)}})),f=OE.map((function(r){return Z({},n.color===r&&Z(Z(Z({},(i||s)&&{boxShadow:e.customShadows[r],"&:hover":{backgroundColor:e.palette[r].dark}}),(l||c)&&{color:e.palette[r].main,border:"solid 1px ".concat(Ar(e.palette[r].main,.48)),"&:hover":{backgroundColor:Ar(e.palette[r].main,.08)}}),(u||d)&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.16),"&:hover":{backgroundColor:Ar(e.palette[r].main,.32)}}))})),m=((r={})["&.".concat(ME.disabled)]=Z({},(l||c)&&{backgroundColor:"transparent",border:"solid 1px ".concat(e.palette.action.disabledBackground)}),r),h=Z({},(s||c||d)&&Z(Z(Z({width:"auto","& svg":{marginRight:e.spacing(1)}},"small"===n.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)}),"medium"===n.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)}),"large"===n.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}));return K(K([p],f,!0),[m,h],!1)}(n.ownerState)}}}}}var DE=["primary","secondary","info","success","warning","error"];function TE(e){var t="light"===e.palette.mode;return{MuiChip:{defaultProps:{deleteIcon:Y.jsx(wo,{icon:"solar:close-circle-bold"})},styleOverrides:{root:function(n){return function(n){var r,o,a,i,s,l="default"===n.color,c="filled"===n.variant,u="outlined"===n.variant,d="soft"===n.variant,p=Z(((r={})["& .".concat(Ep.deleteIcon)]={opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},r),l&&Z(Z(Z(((o={})["& .".concat(Ep.avatar)]={color:e.palette.text.primary},o),c&&((a={color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})["& .".concat(Ep.icon)]={color:t?e.palette.common.white:e.palette.grey[800]},a)),u&&{border:"solid 1px ".concat(Ar(e.palette.grey[500],.32))}),d&&{color:e.palette.text.primary,backgroundColor:Ar(e.palette.grey[500],.16),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.32)}})),f=DE.map((function(r){var o;return Z({},n.color===r&&Z(((o={})["& .".concat(Ep.avatar)]={color:e.palette[r].lighter,backgroundColor:e.palette[r].dark},o),d&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.16),"&:hover":{backgroundColor:Ar(e.palette[r].main,.32)}}))})),m=((i={})["&.".concat(Ep.disabled)]=Z(Z(Z(((s={opacity:1,color:e.palette.action.disabled})["& .".concat(Ep.icon)]={color:e.palette.action.disabled},s["& .".concat(Ep.avatar)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground},s),c&&{backgroundColor:e.palette.action.disabledBackground}),u&&{borderColor:e.palette.action.disabledBackground}),d&&{backgroundColor:e.palette.action.disabledBackground}),i);return K(K([p],f,!0),[m,{fontWeight:500,borderRadius:e.shape.borderRadius}],!1)}(n.ownerState)}}}}}var PE=It("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var NE=It("MuiTableRow",["root","selected","hover","head","footer"]);var EE=It("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),BE=["info","success","warning","error"];function kE(e){var t="light"===e.palette.mode;return{MuiAlert:{defaultProps:{iconMapping:{error:Y.jsx(wo,{icon:"solar:danger-bold",width:24}),info:Y.jsx(wo,{icon:"eva:info-fill",width:24}),success:Y.jsx(wo,{icon:"eva:checkmark-circle-2-fill",width:24}),warning:Y.jsx(wo,{icon:"eva:alert-triangle-fill",width:24})}},styleOverrides:{root:function(n){return function(n){var r="standard"===n.variant,o="filled"===n.variant,a="outlined"===n.variant,i=BE.map((function(i){var s,l;return Z({},n.severity===i&&Z(Z(Z({},r&&((s={color:e.palette[i][t?"darker":"lighter"],backgroundColor:e.palette[i][t?"lighter":"darker"]})["& .".concat(EE.icon)]={color:e.palette[i][t?"main":"light"]},s)),o&&{color:e.palette[i].contrastText,backgroundColor:e.palette[i].main}),a&&((l={backgroundColor:Ar(e.palette[i].main,.08),color:e.palette[i][t?"dark":"light"],border:"solid 1px ".concat(Ar(e.palette[i].main,.16))})["& .".concat(EE.icon)]={color:e.palette[i].main},l)))}));return K([],i,!0)}(n.ownerState)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5),fontWeight:e.typography.fontWeightSemiBold}}}}}var LE=It("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"]);var IE=It("MuiAvatarGroup",["root","avatar"]),SE=["default","primary","secondary","info","success","warning","error"],WE=function(e){var t=e.charAt(0);return["A","C","F"].includes(t)?"primary":["E","D","H"].includes(t)?"secondary":["I","K","L"].includes(t)?"info":["M","N","P"].includes(t)?"success":["Q","S","T"].includes(t)?"warning":["V","X","Y"].includes(t)?"error":"default"};var HE=It("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),RE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}))};var VE=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var FE=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function XE(e){var t="light"===e.palette.mode;return{MuiSwitch:{styleOverrides:{root:function(n){return function(n){var r,o,a,i;return Z(Z({padding:"9px 13px 9px 12px",width:58,height:38},"small"===n.size&&{padding:"4px 8px 4px 7px",width:40,height:24}),((r={})["& .".concat(FE.thumb)]=Z({width:14,height:14,boxShadow:"none",color:e.palette.common.white},"small"===n.size&&{width:10,height:10}),r["& .".concat(FE.track)]={opacity:1,borderRadius:14,backgroundColor:Ar(e.palette.grey[500],.48)},r["& .".concat(FE.switchBase)]=Z(Z({left:3,padding:12},"small"===n.size&&{padding:7}),((o={})["&.".concat(FE.checked)]=Z(((a={transform:"translateX(13px)"})["&+.".concat(FE.track)]={opacity:1},a),"small"===n.size&&{transform:"translateX(9px)"}),o["&.".concat(FE.disabled)]=((i={})["& .".concat(FE.thumb)]={opacity:t?1:.48},i["&+.".concat(FE.track)]={opacity:.48},i),o)),r))}(n.ownerState)}}}}}var QE=It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),YE=["primary","secondary","info","success","warning","error"];function ZE(e){return{MuiLinearProgress:{styleOverrides:{root:function(t){return function(t){var n,r="buffer"===t.variant,o=Z(((n={borderRadius:4})["& .".concat(QE.bar)]={borderRadius:4},n),r&&{backgroundColor:"transparent"}),a=YE.map((function(n){return Z({},t.color===n&&{backgroundColor:Ar(e.palette[n].main,.24)})}));return K([o],a,!0)}(t.ownerState)}}}}}var GE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}))},UE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}))},qE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}))};var KE=It("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var JE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})}))},_E=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})}))},$E=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})}))};var eB=It("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var tB=It("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var nB=It("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),rB=["primary","secondary","info","success","warning","error"];function oB(e){var t="light"===e.palette.mode;return{MuiPagination:{styleOverrides:{root:function(n){return function(n){var r,o,a="standard"===n.color,i="text"===n.variant,s="outlined"===n.variant,l="soft"===n.variant,c=((r={})["& .".concat(nB.root)]=Z(Z({},s&&{borderColor:Ar(e.palette.grey[500],.24)}),((o={})["&.".concat(nB.selected)]=Z(Z({fontWeight:e.typography.fontWeightSemiBold},s&&{borderColor:"currentColor"}),a&&Z({backgroundColor:Ar(e.palette.grey[500],.08)},i&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})),o)),r),u=rB.map((function(r){var o,a;return Z({},n.color===r&&((o={})["& .".concat(nB.root)]=((a={})["&.".concat(nB.selected)]=Z({},n.color===r&&Z({},l&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.08),"&:hover":{backgroundColor:Ar(e.palette[r].main,.16)}})),a),o))}));return K([c],u,!0)}(n.ownerState)}}}}}var aB=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})}))},iB=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})}))};var sB=It("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),lB=["primary","secondary","info","success","warning","error"];function cB(e){return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:function(t){return function(t){var n,r,o,a="inherit"===t.color,i="contained"===t.variant,s="outlined"===t.variant,l="text"===t.variant,c="soft"===t.variant,u="horizontal"===t.orientation,d="vertical"===t.orientation,p=((n={})["& .".concat(sB.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z(Z(Z({borderStyle:"solid"},a&&{borderColor:Ar(e.palette.grey[500],.32)}),u&&{borderWidth:"0px 1px 0px 0px"}),d&&{borderWidth:"0px 0px 1px 0px"}))},n),f=lB.map((function(n){var r;return(r={})["& .".concat(sB.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z({},t.color===n&&Z(Z(Z({},i&&{borderColor:Ar(e.palette[n].dark,.48)}),l&&{borderColor:Ar(e.palette[n].main,.48)}),c&&{borderColor:Ar(e.palette[n].dark,.24)})))},r})),m=((r={})["& .".concat(sB.grouped)]=((o={})["&.".concat(sB.disabled)]={"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}},o),r);return K(K([p],f,!0),[m],!1)}(t.ownerState)}}}}}var uB=function(){return Y.jsx(wo,{icon:"eva:chevron-down-fill",width:24})},dB=function(){return Y.jsx(wo,{icon:"eva:arrow-ios-back-fill",width:24})},pB=function(){return Y.jsx(wo,{icon:"eva:arrow-ios-forward-fill",width:24})},fB=function(){return Y.jsx(wo,{icon:"solar:calendar-mark-bold-duotone",width:24})},mB=function(){return Y.jsx(wo,{icon:"solar:clock-circle-outline",width:24})},hB=["DatePicker","DateTimePicker","StaticDatePicker","DesktopDatePicker","DesktopDateTimePicker","MobileDatePicker","MobileDateTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:fB,leftArrowIcon:dB,rightArrowIcon:pB,switchViewIcon:uB}}},e}),{}),gB=["TimePicker","MobileTimePicker","StaticTimePicker","DesktopTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:mB,rightArrowIcon:pB,switchViewIcon:uB}}},e}),{});var vB=It("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),AB=["primary","secondary","info","success","warning","error"];function yB(e){var t;return{MuiToggleButton:{styleOverrides:{root:function(t){return function(t){var n,r,o,a=((n={})["&.".concat(vB.selected)]={borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"},n),i=AB.map((function(n){return Z({},t.color===n&&{"&:hover":{borderColor:Ar(e.palette[n].main,.48),backgroundColor:Ar(e.palette[n].main,e.palette.action.hoverOpacity)}})})),s=((r={})["&.".concat(vB.disabled)]=((o={})["&.".concat(vB.selected)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground},o),r);return K(K([a],i,!0),[s],!1)}(t.ownerState)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"solid 1px ".concat(Ar(e.palette.grey[500],.08))},grouped:(t={margin:4},t["&.".concat(vB.selected)]={boxShadow:"none"},t["&:not(:first-of-type), &:not(:last-of-type)"]={borderRadius:e.shape.borderRadius,borderColor:"transparent"},t)}}}}function bB(e){var t=tE(zE(e),function(e){var t,n;return{MuiTabs:{defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{indicator:{backgroundColor:e.palette.text.primary},scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:(t={padding:0,opacity:1,minWidth:48,minHeight:48,fontWeight:e.typography.fontWeightSemiBold,"&:not(:last-of-type)":(n={marginRight:e.spacing(3)},n[e.breakpoints.up("sm")]={marginRight:e.spacing(5)},n)},t["&:not(.".concat(sy.selected,")")]={color:e.palette.text.secondary},t)}}}}(e),TE(e),function(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:2*e.shape.borderRadius,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}(e),function(e){return{MuiMenuItem:{styleOverrides:{root:Z({},xv(e))}}}}(e),{MuiLink:{defaultProps:{underline:"hover"}}},{MuiStack:{defaultProps:{useFlexGap:!0}}},function(e){return{MuiBadge:{styleOverrides:{dot:{borderRadius:"50%"},root:function(t){var n,r,o,a,i,s,l=t.ownerState,c="alway"===l.variant,u="online"===l.variant,d="busy"===l.variant,p="offline"===l.variant,f="invisible"===l.variant,m=((n={})["&.".concat(LE.invisible)]={transform:"unset"},n.width=10,n.zIndex=9,n.padding=0,n.height=10,n.minWidth="auto",n["&:before, &:after"]={content:"''",borderRadius:1,backgroundColor:e.palette.common.white},n);return Z(Z(Z(Z(Z({},u&&((r={})["& .".concat(LE.badge)]=Z(Z({},m),{backgroundColor:e.palette.success.main}),r)),d&&((o={})["& .".concat(LE.badge)]=Z(Z({},m),{backgroundColor:e.palette.error.main,"&:before":{width:6,height:2}}),o)),p&&((a={})["& .".concat(LE.badge)]=Z(Z({},m),{backgroundColor:e.palette.text.disabled,"&:before":{width:6,height:6,borderRadius:"50%"}}),a)),c&&((i={})["& .".concat(LE.badge)]=Z(Z({},m),{backgroundColor:e.palette.warning.main,"&:before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&:after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}),i)),f&&((s={})["& .".concat(LE.badge)]={display:"none"},s))}}}}}(e),function(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{defaultProps:{primaryTypographyProps:{typography:"subtitle2"},secondaryTypographyProps:{component:"span"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}}}}(e),function(e){var t,n;return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:(t={},t["&.".concat(NE.selected)]={backgroundColor:Ar(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Ar(e.palette.primary.dark,.08)}},t["&:last-of-type"]=(n={},n["& .".concat(PE.root)]={borderColor:"transparent"},n),t)}},MuiTableCell:{styleOverrides:{root:{borderBottomStyle:"dashed"},head:{fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:"linear-gradient(to bottom, ".concat(e.palette.background.neutral," 0%, ").concat(e.palette.background.neutral," 100%)")},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:{paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}},selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}}}}(e),function(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:{borderColor:Ar(e.palette.grey[500],.16)}}}}}(e),kE(e),XE(e),function(e){var t=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))};return{MuiSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},MuiNativeSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}}}}(),function(e){return{MuiButton:{styleOverrides:{root:{"&:hover":{boxShadow:"none"}},sizeLarge:{height:48},containedInherit:{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},containedPrimary:{boxShadow:e.customShadows.primary},containedSecondary:{boxShadow:e.customShadows.secondary},containedInfo:{boxShadow:e.customShadows.info},containedSuccess:{boxShadow:e.customShadows.success},containedWarning:{boxShadow:e.customShadows.warning},containedError:{boxShadow:e.customShadows.error},outlinedInherit:{border:"1px solid ".concat(e.palette.grey[500]),"&:hover":{backgroundColor:e.palette.action.hover}},textInherit:{"&:hover":{backgroundColor:e.palette.action.hover}}}}}}(e),function(e){var t,n,r,o;return{MuiRating:{defaultProps:{emptyIcon:Y.jsx(RE,{}),icon:Y.jsx(RE,{})},styleOverrides:{root:(t={},t["&.".concat(HE.disabled)]={opacity:.48},t),iconEmpty:{color:Ar(e.palette.grey[500],.48)},sizeSmall:(n={},n["& .".concat(Na.root)]={width:20,height:20},n),sizeMedium:(r={},r["& .".concat(Na.root)]={width:24,height:24},r),sizeLarge:(o={},o["& .".concat(Na.root)]={width:28,height:28},o)}}}}(e),function(e){return{MuiDialog:{styleOverrides:{paper:function(t){var n=t.ownerState;return Z({boxShadow:e.customShadows.dialog,borderRadius:2*e.shape.borderRadius},!n.fullScreen&&{margin:e.spacing(2)})},paperFullScreen:{borderRadius:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{defaultProps:{disableSpacing:!0},styleOverrides:{root:{padding:e.spacing(3),"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}(e),{MuiAppBar:{defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}}},function(e){return{MuiAvatar:{variants:SE.map((function(t){return"default"===t?{props:{color:"default"},style:{color:e.palette.text.secondary,backgroundColor:Ar(e.palette.grey[500],.24)}}:{props:{color:t},style:{color:e.palette[t].contrastText,backgroundColor:e.palette[t].main}}})),styleOverrides:{rounded:{borderRadius:1.5*e.shape.borderRadius},colorDefault:function(t){var n=t.ownerState,r=WE("".concat(n.alt));return Z({},!!n.alt&&Z({},"default"!==r?{color:e.palette[r].contrastText,backgroundColor:e.palette[r].main}:{color:e.palette.text.secondary,backgroundColor:Ar(e.palette.grey[500],.24)}))}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:function(e){var t,n=e.ownerState;return Z({justifyContent:"flex-end"},"compact"===n.variant&&((t={width:40,height:40,position:"relative"})["& .".concat(IE.avatar)]={margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}},t))},avatar:{fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}}}}}}(e),function(e){var t,n="light"===e.palette.mode;return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:(t={},t["&.".concat(VE.disabled)]={color:e.palette.action.disabled},t),rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[n?800:700]}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:function(n){var r,o=n.ownerState;return Z({},"temporary"===o.variant&&((r={})["& .".concat(Ja.paper)]=Z(Z(Z({},bv({theme:e})),"left"===o.anchor&&{boxShadow:"40px 40px 80px -8px ".concat(Ar(t?e.palette.grey[500]:e.palette.common.black,.24))}),"right"===o.anchor&&{boxShadow:"-40px 40px 80px -8px ".concat(Ar(t?e.palette.grey[500]:e.palette.common.black,.24))}),r))}}}}}(e),function(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(e),function(e){var t;return{MuiPopover:{styleOverrides:{paper:Z(Z({},bv({theme:e,dropdown:!0})),(t={},t["& .".concat(zu.root)]={paddingTop:0,paddingBottom:0},t))}}}}(e),{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){return{MuiCheckbox:{defaultProps:{size:"small",icon:Y.jsx(GE,{}),checkedIcon:Y.jsx(UE,{}),indeterminateIcon:Y.jsx(qE,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),function(e){var t,n,r,o,a=bv({theme:e,dropdown:!0});return{MuiDataGrid:{styleOverrides:{root:(t={borderRadius:0,borderWidth:0},t["& .".concat(KE.root)]={borderTop:0},t["& .".concat(KE.toolbar)]={height:"auto"},t),cell:{borderBottom:"1px dashed ".concat(e.palette.divider)},selectedRowCount:{whiteSpace:"nowrap"},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),borderBottom:"1px dashed ".concat(e.palette.divider),backgroundColor:e.palette.background.neutral},paper:Z(Z({},a),{padding:0}),menu:(n={},n["& .".concat(Ya.root)]=Z({},a),n["& .".concat(zu.root)]=(r={padding:0},r["& .".concat(rv.root)]={minWidth:0,marginRight:e.spacing(2)},r),n),columnHeaders:{borderRadius:0,backgroundColor:e.palette.background.neutral},panelHeader:{padding:e.spacing(2)},panelFooter:(o={padding:e.spacing(2),justifyContent:"flex-end",borderTop:"dashed 1px ".concat(e.palette.divider)},o["& .".concat(Hx.root)]={"&:first-of-type":{border:"solid 1px ".concat(Ar(e.palette.grey[500],.24))},"&:last-of-type":{marginLeft:e.spacing(1.5),color:e.palette.background.paper,backgroundColor:e.palette.text.primary}},o),filterForm:{padding:e.spacing(2)},filterFormValueInput:{marginLeft:e.spacing(2)},filterFormColumnInput:{marginLeft:e.spacing(2)},filterFormOperatorInput:{marginLeft:e.spacing(2)}}}}}(e),function(e){return{MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral},rounded:{borderRadius:2*e.shape.borderRadius}}}}}(e),function(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}(e),function(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:Y.jsx(JE,{}),defaultExpandIcon:Y.jsx(_E,{}),defaultEndIcon:Y.jsx($E,{})}},MuiTreeItem:{styleOverrides:{label:Z({},e.typography.body2),iconContainer:{width:"auto"}}}}}(e),function(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:Ar(e.palette.grey[900],.8)},invisible:{background:"transparent"}}}}}(e),ZE(e),function(e){var t,n,r,o,a,i,s,l,c,u={focused:e.palette.text.primary,active:e.palette.text.secondary,placeholder:e.palette.text.disabled},d={label:e.typography.body1,value:e.typography.body2};return{MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:Z(Z({},d.value),(t={color:u.placeholder},t["&.".concat(tu.shrink)]=Z(Z({},d.label),(n={fontWeight:600,color:u.active},n["&.".concat(tu.focused)]={color:u.focused},n["&.".concat(tu.error)]={color:e.palette.error.main},n["&.".concat(tu.disabled)]={color:e.palette.text.disabled},n["&.".concat(tu.filled)]={transform:"translate(12px, 6px) scale(0.75)"},n)),t))}},MuiInputBase:{styleOverrides:{root:(r={},r["&.".concat(dc.disabled)]={"& svg":{color:e.palette.text.disabled}},r),input:Z(Z({},d.value),{"&::placeholder":{opacity:1,color:u.placeholder}})}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:Ar(e.palette.grey[500],.32)},"&:after":{borderBottomColor:u.focused}}}},MuiOutlinedInput:{styleOverrides:{root:(o={},o["&.".concat(Rc.focused)]=(a={},a["& .".concat(Rc.notchedOutline)]={borderColor:u.focused},a),o["&.".concat(Rc.error)]=(i={},i["& .".concat(Rc.notchedOutline)]={borderColor:e.palette.error.main},i),o["&.".concat(Rc.disabled)]=(s={},s["& .".concat(Rc.notchedOutline)]={borderColor:e.palette.action.disabledBackground},s),o),notchedOutline:{borderColor:Ar(e.palette.grey[500],.2),transition:e.transitions.create(["border-color"],{duration:e.transitions.duration.shortest})}}},MuiFilledInput:{defaultProps:{disableUnderline:!0},styleOverrides:{root:(l={borderRadius:e.shape.borderRadius,backgroundColor:Ar(e.palette.grey[500],.08),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.16)}},l["&.".concat(Dc.focused)]={backgroundColor:Ar(e.palette.grey[500],.16)},l["&.".concat(Dc.error)]=(c={backgroundColor:Ar(e.palette.error.main,.08)},c["&.".concat(Dc.focused)]={backgroundColor:Ar(e.palette.error.main,.16)},c),l["&.".concat(Dc.disabled)]={backgroundColor:e.palette.action.disabledBackground},l)}}}}(e),function(e){var t,n,r;return{MuiAccordion:{styleOverrides:{root:(t={backgroundColor:"transparent"},t["&.".concat(eB.expanded)]={boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},t["&.".concat(eB.disabled)]={backgroundColor:"transparent"},t)}},MuiAccordionSummary:{styleOverrides:{root:(n={paddingLeft:e.spacing(2),paddingRight:e.spacing(1)},n["&.".concat(tB.disabled)]=(r={opacity:1,color:e.palette.action.disabled},r["& .".concat(bf.root)]={color:"inherit"},r),n),expandIconWrapper:{color:"inherit"}}}}}(e),function(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}(e),oB(e),function(e){return{MuiFormControlLabel:{styleOverrides:{label:Z({},e.typography.body2)}},MuiRadio:{defaultProps:{size:"small",icon:Y.jsx(aB,{}),checkedIcon:Y.jsx(iB,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),cB(e),function(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":Z({},e.typography.body2)}}}}}(e),{MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root, #__next":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{maxWidth:"100%",display:"inline-block",verticalAlign:"bottom"}}}},function(e){var t,n,r;return{MuiAutocomplete:{defaultProps:{popupIcon:Y.jsx((function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))}),{})},styleOverrides:{root:(t={},t["& span.".concat(Xp.tag)]=Z(Z({},e.typography.subtitle2),{height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:e.spacing(0,.75),color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,backgroundColor:Ar(e.palette.grey[500],.16)}),t),paper:Z({},bv({theme:e,dropdown:!0})),listbox:(n={padding:0},n["& .".concat(Xp.option)]=Z({},xv(e)),n),endAdornment:(r={},r["& .".concat(Na.root)]={width:18,height:18},r)}}}}(e),yB(e),function(e){var t;return Z(Z({MuiPickersLayout:{styleOverrides:{root:{"& .MuiPickersLayout-actionBar":(t={},t["& .".concat(Hx.root,":last-of-type")]={backgroundColor:e.palette.text.primary,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[800]},t)}}}},hB),gB)}(e),{MuiLoadingButton:{styleOverrides:{root:{"&.MuiButton-text":{"& .MuiLoadingButton-startIconPendingStart":{marginLeft:0},"& .MuiLoadingButton-endIconPendingEnd":{marginRight:0}}}}}});return t}var xB=mE("light"),wB=[Z({name:"default"},xB.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:xB.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}];function jB(t){var n=t.children,r=t.themeDirection;e.useEffect((function(){document.dir=r}),[r]);var o=E({key:"rtl",prepend:!0,stylisPlugins:[P.prefixer,N]});return"rtl"===r?Y.jsx(s.CacheProvider,{value:o,children:n}):Y.jsx(Y.Fragment,{children:n})}exports.ApiContext=Rm,exports.ApiContextProvider=function(t){var n=e.useState({statusCode:null,dashbaordUrlPrefix:t.dashbaordUrlPrefix}),r=n[0],o=n[1],a=t.language,i=t.onLogout,s=t.baseUrl,l=t.sleepTime,c=t.dashbaordUrlPrefix;Wm.defaults.baseURL=s;return Wm.interceptors.request.use((function(e){return e.headers=Z(Z({},e.headers),{Accept:"application/json","Content-Type":"application/json","accept-language":a,language:a}),e.withCredentials=!0,e._auth=!1!==e._auth,e}),(function(e){Promise.reject(e.request.response)})),Wm.interceptors.response.use((function(e){return U(void 0,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return l?[4,(n=l,new Promise((function(e){return setTimeout(e,n)})))]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,e]}var n}))}))}),(function(e){var t,n,r;return U(this,void 0,void 0,(function(){var a;return q(this,(function(s){return a=e.config,x.isAxiosError(e)&&401===(null===(t=e.response)||void 0===t?void 0:t.status)&&a._auth?(o({statusCode:401,dashbaordUrlPrefix:c}),i()):o({statusCode:401,dashbaordUrlPrefix:c}),[2,Promise.reject(null!==(r=null===(n=e.request)||void 0===n?void 0:n.response)&&void 0!==r?r:e)]}))}))})),Y.jsx(Rm.Provider,{value:r,children:t.children})},exports.AppConfigurationsContext=_m,exports.AppConfigurationsContextProvider=function(t){var n,r,o,a,i=e.useContext(Ym).resources,s=null==i?void 0:i.appConfigurations,l=e.useState(null!==(n=null==s?void 0:s.themeLayout)&&void 0!==n?n:"vertical"),c=l[0],u=l[1],d=null!==(r=null==s?void 0:s.textFieldSize)&&void 0!==r?r:"small",p=null!==(o=null==s?void 0:s.defaultRowsPerPage)&&void 0!==o?o:50,f=null===(a=null==s?void 0:s.themeStretch)||void 0===a||a;return Y.jsx(_m.Provider,{value:{textFieldSize:d,themeLayout:c,defaultRowsPerPage:p,themeStretch:f,setThemeLayout:u},children:t.children})},exports.CredentialsContext=$m,exports.CredentialsContextProvider=function(e){var t=e.identityPoolId,n=e.region,r=e.userPoolId,o=e.userPoolWebClientId,a=e.bucket,i=e.googleApiKey,s=e.bucketUrl;return j.Auth.configure({Auth:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o}}),j.Storage.configure({region:n,bucket:a}),Y.jsx($m.Provider,{value:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o,bucket:a,googleApiKey:i,bucketUrl:s},children:e.children})},exports.DashboardLayout=Qz,exports.DialogContext=th,exports.DialogContextProvider=function(t){var n=t.children,r=e.useState(!1),o=r[0],a=r[1],i=e.useState(void 0),s=i[0],l=i[1],c=function(){a(!1)};return Y.jsxs(th.Provider,{value:{openDialog:function(e,t){a(!0),l(Y.jsx(e,{open:!0,onDismiss:c,data:t}))}},children:[o&&s,n]})},exports.IdenityModelConfiguration=function(t){var n=t.path,r=t.modelRoute,o=e.useContext(Rm).dashbaordUrlPrefix;return Y.jsx(xM,{path:n,isEdit:!0,Component:function(e){return Y.jsx(CM,Z({},e,{baseApiRoute:o,apiRoute:"".concat(o,"/").concat(r),path:n}))},modelRoute:r})},exports.IdentityClient=Wm,exports.IdentityEdit=xM,exports.IdentityGrid=cA,exports.IdentityList=yA,exports.IdentityPage=function(e){var t=e.Component,r=e.LoadingSkelton,o=e.Actions,a=e.HeadingView,i=e.BreadcrumbsChildren,s=e.DefaultActions,l=e.BreadCrumbLinks;e.variant;var c=e.loading,u=e.data,d=e.taptitle,p=e.headingTitle,f=e.themeStretch,m=void 0!==f&&f;return Y.jsx(J,{title:d,children:Y.jsxs(n.Container,{maxWidth:!m&&"lg",children:[!c&&Y.jsx(ee,{heading:p,headingView:a&&Y.jsx(a,{record:u}),links:l?l(u):[],action:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[o&&Y.jsx(o,{record:u}),s&&Y.jsx(s,{})]}),children:u&&i&&Y.jsx(i,{data:u})}),c?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(r,{})},"skeleton"):t&&Y.jsx(t,{data:u})]})})},exports.IdentityPermissionPage=function(t){var n=this,r=t.isEdit,o=UM().id,a=void 0===o?"":o,i=e.useContext(Rm).dashbaordUrlPrefix,s=e.useState([]),l=s[0],c=s[1],u=e.useState(void 0),d=u[0],p=u[1],f=e.useState(!0),m=f[0],h=f[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){var e,t,n,o;return q(this,(function(s){switch(s.label){case 0:return e=r?"?id=".concat(a):"",[4,Wm.get("".concat(i,"/permissions/all")+e)];case 1:return t=s.sent(),n=t.data.data.permissions,o=t.data.data.permissionGroup,c(n),p(o),h(!1),[2]}}))}))}),[]),Y.jsx(Y.Fragment,{children:r&&(m||0===l.length)||r&&!d?Y.jsx(Y.Fragment,{children:"... loading"}):Y.jsx(lO,{modelPermissions:l,fetchLoading:m,isEdit:r,permissionGroup:d})})},exports.IdentityRouter=function(t){var n=e.useContext(Ym).resources,o=e.useContext(qm),a=o.paths,i=o.root,s=o.home,l=e.useContext(_m).themeLayout,c=e.useContext(Rm).dashbaordUrlPrefix,u=[];if(n)for(var d in u=[],n)if("modelParents"!==d&&"appConfigurations"!==d){var p=n[d],f=p.properties.path,m=p.properties.modelName,h={path:f,children:[{element:Y.jsx(r.Navigate,{to:a[d].list,replace:!0}),index:!0},{path:"list",element:Y.jsx(yA,{apiRoute:"".concat(c,"/").concat(f),path:d,modelName:m},"".concat(f,".list"))},{path:"new",element:Y.jsx(xM,{modelRoute:"".concat(f),path:d,isEdit:!1})},{path:":id/edit",element:Y.jsx(xM,{modelRoute:"".concat(f),path:d,isEdit:!0})},{path:":id/show",element:Y.jsx(TA,{path:d,modelRoute:f},"".concat(d,".show"))}]};u.push(h)}return{path:i,children:[{path:"",element:n?Y.jsx(Qz,{Logo:"mini"===l?t.MiniLogo:t.Logo,children:Y.jsx(r.Outlet,{})}):Y.jsx(Y.Fragment,{}),children:K(K([],u,!0),[{path:"",element:n?Y.jsx(r.Navigate,{to:a[s].root}):Y.jsx(Y.Fragment,{})}],!1)}]}},exports.IdentityShow=TA,exports.NextPreviousButtons=DA,exports.PathsContext=qm,exports.PathsContextProvider=function(t){var n=t.root,r=t.children,o=t.home,a=e.useContext(Ym).resources,i={},s=function(e){if("modelParents"===e||"appConfigurations"===e)return"continue";var t=a[e].properties.path;i[e]={root:Km(n,"/"+t),list:Km(n,"/"+t+"/list"),edit:function(e){return Km(n,"/"+t+"/".concat(e,"/edit"))},show:function(e){return Km(n,"/"+t+"/".concat(e,"/show"))},new:Km(n,"/"+t+"/new")}};for(var l in a)s(l);return Y.jsx(qm.Provider,{value:{paths:i,root:n,home:o},children:r})},exports.ResourcesContext=Ym,exports.ResourcesContextProvider=function(t){var n,r=t.resourcesUrl,o=t.laodingLogo,a=t.logoSxProps,i=Vm(),s=i.requestState,l=i.get,c=i.revertToIdle;e.useEffect((function(){u()}),[]);var u=e.useCallback((function(){l({url:r})}),[]);return Y.jsx(Ym.Provider,{value:{resources:null===(n=s.data)||void 0===n?void 0:n.resources,getResources:u,state:s.state,clearResources:function(){c()}},children:s.state===exports.RequestState.LOADING?Y.jsx(Qm,{loadingLogo:o,logoSxProps:a}):t.children})},exports.ShowRecord=OA,exports.SnackAlertContext=eh,exports.SnackAlertProvider=function(t){var r,o=t.children,a=e.useState({state:!1}),i=a[0],s=a[1],l=function(e,t,n,r){setTimeout((function(){s({state:!1})}),r||4e3),s({state:!0,message:e,severity:t,position:n})};return Y.jsxs(eh.Provider,{value:{setAlert:l,setErrorAlert:function(e,t,n){l(e,"error",t,n)},setSuccessAlert:function(e,t,n){l(e,"success",t,n)}},children:[i.state&&Y.jsx(n.Snackbar,{open:i.state,anchorOrigin:null!==(r=i.position)&&void 0!==r?r:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){s({state:!1})},severity:i.severity,children:i.message})}),o]})},exports.State=Hm,exports.ThemeProvider=function(t){var n,r=t.children,o=t.themeColorPresets,a=t.themeContrast,i=t.themeDirection,s=t.themeMode,l=t.customColorPresets,c=function(e,t){return{palette:mE(e,t),shadows:yE(e),customShadows:CE(e,t)}}(null!=s?s:"light",l),u=l?{palette:{presetsColor:n=l},customShadows:{primary:"0 8px 16px 0 ".concat(Ar("".concat(null==n?void 0:n.main),.24))}}:function(e){var t=wB.find((function(t){return t.name===e}));return{palette:{primary:t},customShadows:{primary:"0 8px 16px 0 ".concat(Ar("".concat(null==t?void 0:t.main),.24))}}}(null!=o?o:"default"),d=function(e,t,n){return{theme:Z({},e&&"light"===t&&{palette:{background:{default:mE(t,n).grey[100]}}}),components:Z({},e&&{MuiCard:{styleOverrides:{root:{boxShadow:CE(t,n).z4}}}})}}("bold"===a,null!=s?s:"light",l),p=function(e){return{direction:e}}(null!=i?i:"ltr"),f=e.useMemo((function(){return{palette:mE("light",l),shadows:yE("light"),customShadows:CE("light",l),typography:wE,shape:{borderRadius:8}}}),[]),m=lo(e.useMemo((function(){return tE(f,p,c,u,d.theme)}),[f,p,c,u,d.theme]));return m.components=tE(bB(m),d.components),Y.jsx(vo,{theme:m,children:Y.jsxs(jB,{themeDirection:null!=i?i:"ltr",children:[Y.jsx(aE,{}),r]})})},exports.path=Km,exports.useApi=Vm,exports.useAppConfigurations=rh,exports.useCredentials=function(){return e.useContext($m)},exports.useDialogs=function(){return e.useContext(th)},exports.useNavData=Jm,exports.usePaths=ih,exports.useResources=oh,exports.useSnackAlert=ah;
157
+ function IM(){return IM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IM.apply(this,arguments)}new Set(LM);const SM=k.createContext(null);"production"!==process.env.NODE_ENV&&(SM.displayName="DataRouter");const WM=k.createContext(null);"production"!==process.env.NODE_ENV&&(WM.displayName="DataRouterState");const HM=k.createContext(null);"production"!==process.env.NODE_ENV&&(HM.displayName="Await");const RM=k.createContext(null);"production"!==process.env.NODE_ENV&&(RM.displayName="Navigation");const VM=k.createContext(null);"production"!==process.env.NODE_ENV&&(VM.displayName="Location");const FM=k.createContext({outlet:null,matches:[],isDataRoute:!1});"production"!==process.env.NODE_ENV&&(FM.displayName="Route");const XM=k.createContext(null);function QM(){return null!=k.useContext(VM)}"production"!==process.env.NODE_ENV&&(XM.displayName="RouteError");const YM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ZM(e){k.useContext(RM).static||k.useLayoutEffect(e)}function GM(){let{isDataRoute:e}=k.useContext(FM);return e?function(){let{router:e}=function(e){let t=k.useContext(SM);return t||("production"!==process.env.NODE_ENV?OM(!1,_M(e)):OM(!1)),t}(UM.UseNavigateStable),t=function(e){let t=function(e){let t=k.useContext(FM);return t||("production"!==process.env.NODE_ENV?OM(!1,_M(e)):OM(!1)),t}(e),n=t.matches[t.matches.length-1];return n.route.id||("production"!==process.env.NODE_ENV?OM(!1,e+' can only be used on routes that contain a unique "id"'):OM(!1)),n.route.id}(qM.UseNavigateStable),n=k.useRef(!1);return ZM((()=>{n.current=!0})),k.useCallback((function(r,o){void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&zM(n.current,YM),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,IM({fromRouteId:t},o)))}),[e,t])}():function(){QM()||("production"!==process.env.NODE_ENV?OM(!1,"useNavigate() may be used only in the context of a <Router> component."):OM(!1));let e=k.useContext(SM),{basename:t,navigator:n}=k.useContext(RM),{matches:r}=k.useContext(FM),{pathname:o}=(QM()||("production"!==process.env.NODE_ENV?OM(!1,"useLocation() may be used only in the context of a <Router> component."):OM(!1)),k.useContext(VM).location),a=JSON.stringify(function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(r).map((e=>e.pathnameBase))),i=k.useRef(!1);ZM((()=>{i.current=!0}));let s=k.useCallback((function(r,s){if(void 0===s&&(s={}),"production"!==process.env.NODE_ENV&&zM(i.current,YM),!i.current)return;if("number"==typeof r)return void n.go(r);let l=PM(r,JSON.parse(a),o,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:NM([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,a,o,e]);return s}()}var UM,qM,KM,JM;function _M(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function $M(e){var t=e.direction,n=e.sxProps,r=e.onClick,o=e.color,a=function(e){switch(e){case JM.LEFT:return"material-symbols:arrow-back-ios-new";case JM.RIGHT:return"eva:arrow-ios-forward-fill";case JM.DOWN:return"eva:arrow-ios-downward-fill";case JM.UP:return"eva:arrow-ios-upward-fill"}}(t);return Y.jsx(wo,{icon:a,onClick:r,sx:Z({width:16,height:16,color:null!=o?o:"white"},n)})}function eO(e){var t=e.onClickOpen,r=e.modelName,o=e.checked,a=JM.RIGHT;return Y.jsx(n.IconButton,{onClick:function(){return t(r)},children:Y.jsx($M,{direction:o&&o[r].opened?JM.DOWN:a,color:"black"})})}function tO(t){var r=t.label,o=t.checked,a=t.onChange,i=e.memo((function(e){var t=e.checked,r=e.onChange;return Y.jsx(n.Checkbox,{checked:t,onChange:function(e,t){return r(e,t)}})}));return Y.jsx(n.FormControlLabel,{label:r,control:Y.jsx(i,{checked:o,onChange:a})})}function nO(){return Y.jsx(n.FormControlLabel,{label:Y.jsx(n.Skeleton,{variant:"text",width:160,height:20}),control:Y.jsx(n.Checkbox,{disabled:!0})})}function rO(){return Y.jsx(n.IconButton,{children:Y.jsx($M,{direction:JM.DOWN,color:"black"})})}function oO(){return Y.jsx(Y.Fragment,{children:Array.from(Array(2).keys()).map((function(e){return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(rO,{}),Y.jsx(nO,{})]}),Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:Array.from(Array(4).keys()).map((function(e){return Y.jsx(nO,{},e)}))})]},e)}))})}function aO(e){var t=e.modelPermissions,r=e.checked,o=e.fetchLoading,a=e.onCheckAll,i=e.handleChange,s=e.onClickOpen;return Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{sx:{py:1},fontWeight:700,fontSize:{xs:"14px",md:"18px"},children:"Permissions"}),Y.jsx(n.Button,{onClick:a,children:"Check all"})]}),o?Y.jsx(oO,{}):t.map((function(e){var t=e.modelName;return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(eO,{modelName:t,checked:r,onClickOpen:s}),Y.jsx(tO,{label:e.label,checked:r&&r[t].all,onChange:function(e,n){return i(t,"all",n)}})]}),r&&r[t].opened&&Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:e.permissions.map((function(e){var n=e.id;return Y.jsx(tO,{label:e.label,checked:r&&r[t][n],onChange:function(e,r){return i(t,n,r)}},n)}))})]},t)}))]})}function iO(e){var t=rh().textFieldSize;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(is,{name:"name",label:"Name",size:t}),Y.jsx(aO,Z({},e))]})}function sO(t){var r=this,o=t.modelPermissions,a=t.fetchLoading,i=t.isEdit,s=t.permissionGroup,u=e.useState(void 0),d=u[0],p=u[1],f=function(){let{matches:e}=k.useContext(FM),t=e[e.length-1];return t?t.params:{}}().id,m=void 0===f?"":f,h=e.useContext(Rm).dashbaordUrlPrefix,g=ih().paths,v=L.object().shape({}),A=e.useState(!1),y=A[0],b=A[1],x=GM(),w=e.useMemo((function(){return{name:null==s?void 0:s.name}}),[]),j=c.useForm({resolver:zi(v),defaultValues:w}),C=j.getValues,M=j.handleSubmit;e.useEffect((function(){o.length>0&&p(function(e){var t={};return e.forEach((function(e,n){t[e.modelName]={all:!1,opened:0===n};var r=!0;e.permissions.forEach((function(n){t[e.modelName][n.id]=n.checked,n.checked?t[e.modelName].opened=!0:r=!1})),r&&(t[e.modelName].all=!0)})),t}(o))}),[o]);return Y.jsxs(_i,{methods:j,onSubmit:M((function(e){return U(r,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return b(!0),i?[4,Wm.patch("".concat(h,"/permissionGroups/").concat(m),Z(Z({},e),{checked:d}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,Wm.post("".concat(h,"/permissionGroups"),Z(Z({},e),{checked:d}))];case 3:t.sent(),t.label=4;case 4:return b(!1),x(g.permissionGroup.list),[2]}}))}))})),children:[Y.jsx(iO,{checked:d,handleChange:function(e,t,n){var r,a,i,s=Z({},d);if(s[e][t]=n,"all"===t)(i=null===(r=o.find((function(t){return t.modelName===e})))||void 0===r?void 0:r.permissions)&&i.forEach((function(t){s[e][t.id]=n}));else if(i=null===(a=o.find((function(t){return t.modelName===e})))||void 0===a?void 0:a.permissions){var l=i.every((function(t){return s[e][t.id]}));s[e].all=l}p(s)},onClickOpen:function(e){var t=Z({},d);t[e].opened=!t[e].opened,p(t)},modelPermissions:o,getValues:C,fetchLoading:a,onCheckAll:function(){var e=Z({},d);for(var t in e)for(var n in e[t])e[t][n]=!0;p(e)}}),Y.jsx(n.Stack,{direction:"row",flexDirection:"row-reverse",children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",size:"large",loading:y,children:"Save"})})]})}function lO(t){var n=e.useState(!!t),r=n[0],o=n[1];return{value:r,onTrue:e.useCallback((function(){o(!0)}),[]),onFalse:e.useCallback((function(){o(!1)}),[]),onToggle:e.useCallback((function(){o((function(e){return!e}))}),[]),setValue:o}}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(UM||(UM={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(qM||(qM={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(KM||(KM={})),new Promise((()=>{})),function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN"}(JM||(JM={}));var cO={H_MOBILE:64,H_DESKTOP:80,H_DESKTOP_OFFSET:64},uO={W_VERTICAL:280,W_MINI:88},dO=8;function pO(t){var n=t.children,r=t.sx,o=G(t,["children","sx"]),a=e.useContext(_m),i=Fi("up","lg"),s="horizontal"===a.themeLayout,l="mini"===a.themeLayout;return s?Y.jsx(xo,{component:"main",sx:Z({minHeight:1,display:"flex",flexDirection:"column",pt:"".concat(cO.H_MOBILE+24,"px"),pb:10},i&&{pt:"".concat(2*cO.H_MOBILE+40,"px"),pb:15}),children:n}):Y.jsx(xo,Z({component:"main",sx:Z(Z({flexGrow:1,py:"".concat(cO.H_MOBILE+dO,"px")},i&&Z({px:2,py:"".concat(cO.H_DESKTOP+dO,"px"),width:"calc(100% - ".concat(uO.W_VERTICAL,"px)")},l&&{width:"calc(100% - ".concat(uO.W_MINI,"px)")})),r)},o,{children:n}))}function fO(e){return Lt("MuiAppBar",e)}var mO=It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const hO=["className","color","enableColorOnDark","position"],gO=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,vO=ho(qa,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${qe(n.position)}`],t[`color${qe(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return re({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&re({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&re({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&re({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gO(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gO(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:gO(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gO(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),AO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=n,s=Ht(n,hO),l=re({},n,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:n,classes:r}=e;return Nt({root:["root",`color${qe(t)}`,`position${qe(n)}`]},fO,r)})(l);return Y.jsx(vO,re({square:!0,component:"header",ownerState:l,elevation:4,className:_n(c.root,r,"fixed"===i&&"mui-fixed"),ref:t},s))}));"production"!==process.env.NODE_ENV&&(AO.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["default","inherit","primary","secondary","transparent"]),Ne.string]),enableColorOnDark:Ne.bool,position:Ne.oneOf(["absolute","fixed","relative","static","sticky"]),sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object])});var yO=AO;function bO(e){return Lt("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const xO=["className","component","disableGutters","variant"],wO=ho("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})=>re({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)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),jO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,s=Ht(n,xO),l=re({},n,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Nt({root:["root",!n&&"gutters",r]},bO,t)})(l);return Y.jsx(wO,re({as:o,className:_n(c.root,r),ref:t,ownerState:l},s))}));"production"!==process.env.NODE_ENV&&(jO.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,component:Ne.elementType,disableGutters:Ne.bool,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),variant:Ne.oneOfType([Ne.oneOf(["dense","regular"]),Ne.string])});var CO=jO;var MO=e.forwardRef((function(e,t){var n=e.src,r=e.sx,o=G(e,["src","sx"]);return Y.jsx(xo,Z({component:"span",className:"svg-color",ref:t,sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(n,") no-repeat center / contain"),WebkitMask:"url(".concat(n,") no-repeat center / contain")},r)},o))})),OO={exports:{}};OO.exports=(()=>{return e={772:(e,t,n)=>{const r=n(826).remove,o=/[.*+?^${}()|[\]\\]/g,a=/[a-z0-9_]/i,i=/\s+/;e.exports=function(e,t,n){var s,l;l={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},s=(s=n)||{},Object.keys(s).forEach((e=>{l[e]=!!s[e]})),n=l;const c=Array.from(e).map((e=>r(e)));let u=c.join("");return(t=r(t)).trim().split(i).filter((e=>e.length>0)).reduce(((e,t)=>{const r=t.length,i=!n.insideWords&&a.test(t[0])?"\\b":"",s=new RegExp(i+t.replace(o,"\\$&"),"i");let l,d;if(l=s.exec(u),n.requireMatchAll&&null===l)return u="",[];for(;l;){d=l.index;const t=r-c.slice(d,d+r).join("").length,o=d-c.slice(0,d).join("").length,a=[d+o,d+r+o+t];if(a[0]!==a[1]&&e.push(a),u=u.slice(0,d)+new Array(r+1).join(" ")+u.slice(d+r),!n.findAllOccurrences)break;l=s.exec(u)}return e}),[]).sort(((e,t)=>e[0]-t[0]))}},826:e=>{var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),a=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}(772);var e,t})();var zO=W(OO.exports),DO="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var TO=ho(xo)((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode,o="filled"===n.variant,a="outlined"===n.variant,i="soft"===n.variant,s=Z({},"default"===n.color&&Z(Z(Z({},o&&{color:r?t.palette.common.white:t.palette.grey[800],backgroundColor:t.palette.text.primary}),a&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"2px solid ".concat(t.palette.text.primary)}),i&&{color:t.palette.text.secondary,backgroundColor:Ar(t.palette.grey[500],.16)})),l=Z({},"default"!==n.color&&Z(Z(Z({},o&&{color:t.palette[n.color].contrastText,backgroundColor:t.palette[n.color].main}),a&&{backgroundColor:"transparent",color:t.palette[n.color].main,border:"2px solid ".concat(t.palette[n.color].main)}),i&&{color:t.palette[n.color][r?"dark":"light"],backgroundColor:Ar(t.palette[n.color].main,.16)}));return Z(Z({height:24,minWidth:24,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter})},s),l)})),PO=e.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?"default":r,a=e.variant,i=void 0===a?"soft":a,s=e.startIcon,l=e.endIcon,c=e.sx,u=G(e,["children","color","variant","startIcon","endIcon","sx"]),d=uo(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return Y.jsxs(TO,Z({ref:t,component:"span",ownerState:{color:o,variant:i},sx:Z(Z(Z({},s&&{pl:.75}),l&&{pr:.75}),c),theme:d},u,{children:[s&&Y.jsxs(xo,{sx:Z({mr:.75},p),children:[" ",s," "]}),n,l&&Y.jsxs(xo,{sx:Z({ml:.75},p),children:[" ",l," "]})]}))}));function NO(){var t=r.useNavigate();return e.useMemo((function(){return{back:function(){return t(-1)},forward:function(){return t(1)},reload:function(){return window.location.reload()},push:function(e){return t(e)},replace:function(e){return t(e,{replace:!0})}}}),[t])}function EO(e){var t=e.query,n=e.sx,r=G(e,["query","sx"]);return t?Y.jsxs(qa,Z({sx:Z({bgcolor:"unset",textAlign:"center"},n)},r,{children:[Y.jsx(Df,{variant:"h6",gutterBottom:!0,children:"Not Found"}),Y.jsxs(Df,{variant:"body2",children:["No results found for  ",Y.jsxs("strong",{children:['"',t,'"']}),".",Y.jsx("br",{})," Try checking for typos or using complete words."]})]})):Y.jsx(Df,{variant:"body2",sx:n,children:"Please enter keywords"})}function BO(e){var t=e.title,n=e.path,r=e.groupLabel,o=e.onClickItem;return Y.jsxs(_w,{onClick:o,sx:{borderWidth:1,borderStyle:"dashed",borderColor:"transparent",borderBottomColor:function(e){return e.palette.divider},"&:hover":{borderRadius:1,borderColor:function(e){return e.palette.primary.main},backgroundColor:function(e){return Ar(e.palette.primary.main,e.palette.action.hoverOpacity)}}},children:[Y.jsx(fv,{primaryTypographyProps:{typography:"subtitle2",sx:{textTransform:"capitalize"}},secondaryTypographyProps:{typography:"caption"},primary:t.map((function(e,t){return Y.jsx(xo,{component:"span",sx:{color:e.highlight?"primary.main":"text.primary"},children:e.text},t)})),secondary:n.map((function(e,t){return Y.jsx(xo,{component:"span",sx:{color:e.highlight?"primary.main":"text.secondary"},children:e.text},t)}))}),r&&Y.jsx(PO,{color:"info",children:r})]})}function kO(e,t){void 0===t&&(t="children");var n=[],r=null==e?void 0:e.map((function(e){return e[t]&&e[t].length&&(n=K(K([],n,!0),e[t],!0)),e}));return null==r?void 0:r.concat(n.length?kO(n,t):n)}function LO(e){var t=e.data.map((function(e){return IO(e.items,e.subheader)})).flat(),n=kO(t).map((function(e){var n=function(e,t){var n,r=e.map((function(e){return{path:[e.title],currItem:e}})),o=function(){var e=r.pop(),o=e.path,a=e.currItem;if(a.path===t)return{value:o};(null===(n=a.children)||void 0===n?void 0:n.length)&&(r=r.concat(a.children.map((function(e){return{path:o.concat(e.title),currItem:e}}))))};for(;r.length;){var a=o();if("object"==typeof a)return a.value}return null}(t,e.path);return{group:n&&n.length>1?n[0]:e.subheader,title:e.title,path:e.path}}));return n}function IO(e,t){return null==e?void 0:e.map((function(e){return Z(Z({subheader:t},e),e.children&&{children:IO(e.children,t)})}))}var SO=e.memo((function(){var t,n,r,o,a,i,s=uo(),l=NO(),c=lO(),u=Fi("up","md"),d=e.useState(""),p=d[0],f=d[1],m=Jm(),h=e.useCallback((function(){c.onFalse(),f("")}),[c]);n="keydown",r=function(e){"k"===e.key&&e.metaKey&&(c.onToggle(),f(""))},i=e.useRef(r),DO((function(){i.current=r}),[r]),e.useEffect((function(){var e=(null==o?void 0:o.current)||window;if(e&&e.addEventListener){var t=function(e){return i.current(e)};return e.addEventListener(n,t,a),function(){e.removeEventListener(n,t)}}}),[n,o,a]);var g,v=e.useCallback((function(e){e.includes("http")?window.open(e):l.push(e),h()}),[h,l]),A=e.useCallback((function(e){f(e.target.value)}),[]),y=function(e){var t=e.inputData,n=e.query;return n&&(t=t.filter((function(e){var t,r;return void 0!==e.path&&void 0!==e.title&&-1!==(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().indexOf(n.toLowerCase()))||-1!==(null===(r=e.path)||void 0===r?void 0:r.toLowerCase().indexOf(n.toLowerCase()))}))),t}({inputData:LO({data:m}),query:p}),b=p&&!y.length,x=Y.jsxs(Fg,{direction:"row",alignItems:"center",children:[Y.jsx(Tp,{onClick:c.onTrue,children:Y.jsx(wo,{icon:"eva:search-fill"})}),u&&Y.jsx(PO,{sx:{px:.75,fontSize:12,color:"text.secondary"},children:"⌘K"})]});return Y.jsxs(Y.Fragment,{children:[x,Y.jsxs(ZC,{fullWidth:!0,maxWidth:"sm",open:c.value,onClose:h,transitionDuration:{enter:s.transitions.duration.shortest,exit:0},PaperProps:{sx:{mt:15,overflow:"unset"}},sx:(t={},t["& .".concat(SC.container)]={alignItems:"flex-start"},t),children:[Y.jsx(xo,{sx:{p:3,borderBottom:"solid 1px ".concat(s.palette.divider)},children:Y.jsx(yc,{fullWidth:!0,autoFocus:!0,placeholder:"Search...",value:p,onChange:A,startAdornment:Y.jsx(jw,{position:"start",children:Y.jsx(wo,{icon:"eva:search-fill",width:24,sx:{color:"text.disabled"}})}),endAdornment:Y.jsx(PO,{sx:{letterSpacing:1,color:"text.secondary"},children:"esc"}),inputProps:{sx:{typography:"h6"}}})}),Y.jsx(Em,{sx:{p:3,pt:2,height:400},children:b?Y.jsx(EO,{query:p,sx:{py:10}}):(g=y.reduce((function(e,t){return e[t.group]=e[t.group]||[],e[t.group].push(t),e}),{}),Object.keys(g).sort((function(e,t){return-t.localeCompare(e)})).filter((function(e){return""!==e})).map((function(e,t){return Y.jsx(Nu,{disablePadding:!0,children:g[e].map((function(t){var n=t.title,r=t.path,o=Pf(n,zO(n,p)),a=Pf(r,zO(r,p));return Y.jsx(BO,{path:a,title:o,groupLabel:p&&e,onClickItem:function(){return v(r)}},"".concat(n).concat(r))}))},e||t)})))})]})]})})),WO=Ia(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 HO(e){return Lt("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const RO=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],VO=ho("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>re({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"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&re({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]})))),FO=ho("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),XO=ho(WO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const QO=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:i="div",imgProps:s,sizes:l,src:c,srcSet:u,variant:d="circular"}=n,p=Ht(n,RO);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=k.useState(!1);return k.useEffect((()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(re({},s,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=re({},n,{colorDefault:!g,component:i,variant:d}),A=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Nt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},HO,t)})(v);return f=g?Y.jsx(FO,re({alt:r,src:c,srcSet:u,sizes:l,ownerState:v,className:A.img},s)):null!=o?o:h&&r?r[0]:Y.jsx(XO,{ownerState:v,className:A.fallback}),Y.jsx(VO,re({as:i,ownerState:v,className:_n(A.root,a),ref:t},p,{children:f}))}));"production"!==process.env.NODE_ENV&&(QO.propTypes={alt:Ne.string,children:Ne.node,classes:Ne.object,className:Ne.string,component:Ne.elementType,imgProps:Ne.object,sizes:Ne.string,src:Ne.string,srcSet:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),variant:Ne.oneOfType([Ne.oneOf(["circular","rounded","square"]),Ne.string])});var YO=QO,ZO=[];function GO(){var t,n,r,o=this,a=NO(),i={photo:"",firstname:"Mohamed",lastname:"Ismail",email:"admin@test.com"},s=(t=e.useState(null),n=t[0],r=t[1],{open:n,onOpen:e.useCallback((function(e){r(e.currentTarget)}),[]),onClose:e.useCallback((function(){r(null)}),[]),setOpen:r});return Y.jsxs(Y.Fragment,{children:[Y.jsx(Tp,{component:p.m.button,whileTap:"tap",whileHover:"hover",variants:Si(1.05),onClick:s.onOpen,sx:Z({width:40,height:40,background:function(e){return Ar(e.palette.grey[500],.08)}},s.open&&{background:function(e){return"linear-gradient(135deg, ".concat(e.palette.primary.light," 0%, ").concat(e.palette.primary.main," 100%)")}}),children:Y.jsx(YO,{src:null==i?void 0:i.photo,alt:null==i?void 0:i.firstname,sx:{width:36,height:36,border:function(e){return"solid 2px ".concat(e.palette.background.default)}}})}),Y.jsxs(Ov,{open:s.open,onClose:s.onClose,sx:{width:200,p:0},children:[Y.jsxs(xo,{sx:{p:2,pb:1.5},children:[Y.jsx(Df,{variant:"subtitle2",noWrap:!0,children:(null==i?void 0:i.firstname)+" "+i.lastname}),Y.jsx(Df,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:null==i?void 0:i.email})]}),Y.jsx(Fg,{sx:{p:1},children:ZO.map((function(e){return Y.jsx(yv,{onClick:function(){return function(e){s.onClose(),a.push(e)}(e.linkTo)},children:e.label},e.label)}))}),Y.jsx(mi,{sx:{borderStyle:"dashed"}}),Y.jsx(yv,{onClick:function(){return U(o,void 0,void 0,(function(){return q(this,(function(e){try{s.onClose(),a.replace("/")}catch(e){console.error(e)}return[2]}))}))},sx:{m:1,fontWeight:"fontWeightBold",color:"error.main"},children:"Logout"})]})]})}function UO(t){var n=t.onOpenNav,r=t.Logo,o=uo(),a=e.useContext(_m),i="horizontal"===a.themeLayout,s="mini"===a.themeLayout,l=Fi("up","lg"),c=function(t,n){void 0===t&&(t=0);var r=p.useScroll(n).scrollY,o=e.useState(!1),a=o[0],i=o[1],s=e.useCallback((function(){r.on("change",(function(e){i(e>t)}))}),[r,t]);return e.useEffect((function(){s()}),[s]),e.useMemo((function(){return a}),[a])}(cO.H_DESKTOP),u=c&&!i,d=Y.jsxs(Y.Fragment,{children:[l&&i&&r&&Y.jsx(r,{sx:{mr:2.5}}),!l&&Y.jsx(Tp,{onClick:n,children:Y.jsx(MO,{src:"/assets/icons/navbar/ic_menu_item.svg"})}),Y.jsx(SO,{}),Y.jsx(Fg,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1},children:Y.jsx(GO,{})})]});return Y.jsx(yO,{sx:Z(Z(Z({height:cO.H_MOBILE,zIndex:o.zIndex.appBar+1},wv({color:o.palette.background.default})),{transition:o.transitions.create(["height"],{duration:o.transitions.duration.shorter})}),l&&Z(Z(Z({width:"calc(100% - ".concat(uO.W_VERTICAL+1,"px)"),height:cO.H_DESKTOP},u&&{height:cO.H_DESKTOP_OFFSET}),i&&{width:1,bgcolor:"background.default",height:cO.H_DESKTOP_OFFSET,borderBottom:"dashed 1px ".concat(o.palette.divider)}),s&&{width:"calc(100% - ".concat(uO.W_MINI+1,"px)")})),children:Y.jsx(CO,{sx:{height:1,px:{lg:5}},children:d})})}var qO=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||24,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||44,itemSubHeight:(null==e?void 0:e.itemSubHeight)||36,itemPadding:(null==e?void 0:e.itemPadding)||"4px 8px 4px 12px",itemRadius:(null==e?void 0:e.itemRadius)||8,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},KO=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||56,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"6px 0 0 0",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},JO=function(e){return{itemGap:(null==e?void 0:e.itemGap)||6,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||32,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"0 6px 0 6px",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}};function _O(e){return Lt("MuiLink",e)}var $O=It("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const ez={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var tz=({theme:e,ownerState:t})=>{const n=(e=>ez[e]||e)(t.color),r=Jt(e,`palette.${n}`,!1)||t.color,o=Jt(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ar(r,.4)};const nz=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rz=ho(Df,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${qe(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>re({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&re({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:tz({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{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"},[`&.${$O.focusVisible}`]:{outline:"auto"}}))),oz=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:a="a",onBlur:i,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=Ht(n,nz),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=yt(),[v,A]=k.useState(!1),y=ut(t,g),b=re({},n,{color:o,component:a,focusVisible:v,underline:c,variant:u}),x=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Nt({root:["root",`underline${qe(o)}`,"button"===n&&"button",r&&"focusVisible"]},_O,t)})(b);return Y.jsx(rz,re({color:o,className:_n(x.root,r),classes:l,component:a,onBlur:e=>{m(e),!1===f.current&&A(!1),i&&i(e)},onFocus:e=>{h(e),!0===f.current&&A(!0),s&&s(e)},ref:y,ownerState:b,variant:u,sx:[...Object.keys(ez).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));"production"!==process.env.NODE_ENV&&(oz.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.any,component:Le,onBlur:Ne.func,onFocus:Ne.func,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),TypographyClasses:Ne.object,underline:Ne.oneOf(["always","hover","none"]),variant:Ne.oneOfType([Ne.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Ne.string])});var az=oz,iz=e.forwardRef((function(e,t){var n=e.href,o=G(e,["href"]);return Y.jsx(r.Link,Z({ref:t,to:n},o))})),sz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,a=e.theme,i=1!==r,s={root:{color:"light"===a.palette.mode?a.palette.primary.main:a.palette.primary.light,backgroundColor:Ar(a.palette.primary.main,.08),"&:hover":{backgroundColor:Ar(a.palette.primary.main,.16)}},sub:{color:a.palette.text.primary,backgroundColor:a.palette.action.selected,"&:hover":{backgroundColor:a.palette.action.hover}}};return Z(Z(Z(Z({flexDirection:"column",justifyContent:"center",borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:a.palette.text.secondary,margin:"0 ".concat(o.itemGap,"px ").concat(o.itemGap,"px ").concat(o.itemGap,"px")},o.hiddenLabel&&!i&&{padding:o.itemPadding}),t&&Z({},s.root)),i&&Z({margin:0,flexDirection:"row",padding:a.spacing(0,1),minHeight:o.itemSubHeight},t&&Z({},s.sub))),n&&!t&&{color:a.palette.text.primary,backgroundColor:a.palette.action.hover})})),lz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,marginRight:0}})),cz=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,a=e.active,i=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=uo(),u=n.title,d=n.path,p=n.icon,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(sz,Z({disableGutters:!0,ref:t,open:o,depth:r,active:a,disabled:m,config:s},l,{children:[p&&Y.jsx(lz,{size:s.iconSize,children:p}),!(s.hiddenLabel&&!v)&&Y.jsx(fv,{sx:Z({width:1,flex:"unset"},!v&&{px:.5,mt:.5}),primary:u,primaryTypographyProps:Z({noWrap:!0,fontSize:10,lineHeight:"16px",textAlign:"center",textTransform:"capitalize",fontWeight:a?"fontWeightBold":"fontWeightSemiBold"},v&&{textAlign:"unset",fontSize:c.typography.body2.fontSize,lineHeight:c.typography.body2.lineHeight,fontWeight:a?"fontWeightSemiBold":"fontWeightMedium"})}),h&&Y.jsx(ev,{title:h,arrow:!0,placement:"right",children:Y.jsx(wo,{width:16,icon:"eva:info-outline",sx:Z({color:"text.disabled"},!v&&{top:11,left:6,position:"absolute"})})}),!!f&&Y.jsx(wo,{width:16,icon:"eva:arrow-ios-forward-fill",sx:{top:11,right:6,position:"absolute"}})]}));return g&&!g.includes("".concat(s.currentRole))?null:i?Y.jsx(az,{href:d,target:"_blank",rel:"noopener",underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A}):Y.jsx(az,{component:iz,href:d,underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A})}));function uz(e,t){void 0===t&&(t=!0);var n=r.useLocation().pathname,o=!!e&&!!r.matchPath({path:e,end:!0},n),a=!!e&&!!r.matchPath({path:e,end:!1},n);return t?a:o}function dz(t){var n,r,o=t.data,a=t.depth,i=t.hasChild,s=t.config,l=e.useRef(null),c=bM(),u=uz(o.path,i),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(mO.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=e.useCallback((function(){m(!0)}),[]),g=e.useCallback((function(){m(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(cz,{ref:l,item:o,depth:a,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),i&&Y.jsx(rd,{open:f,anchorEl:l.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Zu.paper)]=Z({mt:.5,width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(pz,{data:o.children,depth:a,config:s})})]})}function pz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Fg,{spacing:.5,children:t.map((function(e){return Y.jsx(dz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var fz=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(mz,{items:e.items,config:KO(n)},e.subheader||t)}))}))}));function mz(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(dz,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function hz(t){var n=t.sx,r=G(t,["sx"]),o=uo(),a=e.useContext(_m),i=a.themeLayout,s=a.setThemeLayout;return Fi("up","lg")?Y.jsx(Tp,Z({size:"small",onClick:function(){s&&s("vertical"===i?"mini":"vertical")},sx:Z(Z(Z({p:.5,top:32,position:"fixed",left:uO.W_VERTICAL-12,zIndex:o.zIndex.appBar+1,border:"dashed 1px ".concat(o.palette.divider)},wv({opacity:.48,color:o.palette.background.default})),{"&:hover":{bgcolor:"background.default"}}),n)},r,{children:Y.jsx(wo,{width:16,icon:"vertical"===i?"eva:arrow-ios-back-fill":"eva:arrow-ios-forward-fill"})})):null}function gz(e){var t=e.Logo,n=Jm();return Y.jsxs(xo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:uO.W_MINI}},children:[Y.jsx(hz,{sx:{top:22,left:uO.W_MINI-12}}),Y.jsxs(Fg,{sx:Z({pb:2,height:1,position:"fixed",width:uO.W_MINI,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},jv.x),children:[t&&Y.jsx(t,{sx:{mx:"auto",my:2}}),Y.jsx(fz,{data:n,config:{currentRole:"admin"}})]})]})}function vz(e){return Lt("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Az=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],yz=ho("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>re({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&re({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),bz=ho("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>re({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),xz=ho("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>re({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),wz=k.forwardRef((function(e,t){const n=po({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:A=no.standard,TransitionComponent:y=sa}=n,b=Ht(n,Az),x=re({},n,{orientation:g,collapsedSize:i}),w=(e=>{const{orientation:t,classes:n}=e;return Nt({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},vz,n)})(x),j=uo(),C=k.useRef(),M=k.useRef(null),O=k.useRef(),z="number"==typeof i?`${i}px`:i,D="horizontal"===g,T=D?"width":"height";k.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const P=k.useRef(null),N=ut(t,P),E=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},B=()=>M.current?M.current[D?"clientWidth":"clientHeight"]:0,L=E(((e,t)=>{M.current&&D&&(M.current.style.position="absolute"),e.style[T]=z,u&&u(e,t)})),I=E(((e,t)=>{const n=B();M.current&&D&&(M.current.style.position="");const{duration:r,easing:o}=ha({style:v,timeout:A,easing:l},{mode:"enter"});if("auto"===A){const t=j.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[T]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),S=E(((e,t)=>{e.style[T]="auto",d&&d(e,t)})),W=E((e=>{e.style[T]=`${B()}px`,f&&f(e)})),H=E(m),R=E((e=>{const t=B(),{duration:n,easing:r}=ha({style:v,timeout:A,easing:l},{mode:"exit"});if("auto"===A){const n=j.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[T]=z,e.style.transitionTimingFunction=r,h&&h(e)}));return Y.jsx(y,re({in:c,onEnter:L,onEntered:S,onEntering:I,onExit:W,onExited:H,onExiting:R,addEndListener:e=>{"auto"===A&&(C.current=setTimeout(e,O.current||0)),r&&r(P.current,e)},nodeRef:P,timeout:"auto"===A?null:A},b,{children:(e,t)=>Y.jsx(yz,re({as:s,className:_n(w.root,a,{entered:w.entered,exited:!c&&"0px"===z&&w.hidden}[e]),style:re({[D?"minWidth":"minHeight"]:z},v),ownerState:re({},x,{state:e}),ref:N},t,{children:Y.jsx(bz,{ownerState:re({},x,{state:e}),className:w.wrapper,ref:M,children:Y.jsx(xz,{ownerState:re({},x,{state:e}),className:w.wrapperInner,children:o})})}))}))}));"production"!==process.env.NODE_ENV&&(wz.propTypes={addEndListener:Ne.func,children:Ne.node,classes:Ne.object,className:Ne.string,collapsedSize:Ne.oneOfType([Ne.number,Ne.string]),component:Le,easing:Ne.oneOfType([Ne.shape({enter:Ne.string,exit:Ne.string}),Ne.string]),in:Ne.bool,onEnter:Ne.func,onEntered:Ne.func,onEntering:Ne.func,onExit:Ne.func,onExited:Ne.func,onExiting:Ne.func,orientation:Ne.oneOf(["horizontal","vertical"]),style:Ne.object,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),timeout:Ne.oneOfType([Ne.oneOf(["auto"]),Ne.number,Ne.shape({appear:Ne.number,enter:Ne.number,exit:Ne.number})])}),wz.muiSupportAuto=!0;var jz=wz,Cz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.depth,r=e.config,o=e.theme,a=1!==n,i=n>2,s={root:{color:"light"===o.palette.mode?o.palette.primary.main:o.palette.primary.light,backgroundColor:Ar(o.palette.primary.main,.08),"&:hover":{backgroundColor:Ar(o.palette.primary.main,.16)}},sub:{color:o.palette.text.primary,backgroundColor:"transparent","&:hover":{backgroundColor:o.palette.action.hover}}};return Z(Z(Z({padding:r.itemPadding,marginBottom:r.itemGap,borderRadius:r.itemRadius,minHeight:r.itemRootHeight,color:o.palette.text.secondary},t&&Z({},s.root)),a&&Z({minHeight:r.itemSubHeight},t&&Z({},s.sub))),i&&{paddingLeft:o.spacing(n)})})),Mz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,alignItems:"center",justifyContent:"center"}})),Oz=ho("span")((function(e){var t=e.active,n=e.theme;return Z({width:4,height:4,borderRadius:"50%",backgroundColor:n.palette.text.disabled,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shorter})},t&&{transform:"scale(2)",backgroundColor:n.palette.primary.main})})),zz=ho(np)((function(e){var t=e.config,n=e.theme;return Z(Z({},n.typography.overline),{fontSize:11,cursor:"pointer",display:"inline-flex",padding:t.itemPadding,paddingTop:n.spacing(2),marginBottom:t.itemGap,paddingBottom:n.spacing(1),color:n.palette.text.disabled,transition:n.transitions.create(["color"],{duration:n.transitions.duration.shortest}),"&:hover":{color:n.palette.text.primary}})}));function Dz(e){var t=e.item,n=e.open,r=e.depth,o=e.active,a=e.config,i=e.externalLink,s=G(e,["item","open","depth","active","config","externalLink"]),l=t.title,c=t.path,u=t.icon,d=t.info,p=t.children,f=t.disabled,m=t.caption,h=t.roles,g=1!==r,v=Y.jsxs(Cz,Z({disableGutters:!0,disabled:f,active:o,depth:r,config:a},s,{children:[Y.jsxs(Y.Fragment,{children:[u&&Y.jsx(Mz,{size:a.iconSize,children:u}),g&&Y.jsx(Mz,{size:a.iconSize,children:Y.jsx(Oz,{active:o})})]}),!(a.hiddenLabel&&!g)&&Y.jsx(fv,{primary:l,secondary:m?Y.jsx(ev,{title:m,placement:"top-start",children:Y.jsx("span",{children:m})}):null,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:o?"fontWeightSemiBold":"fontWeightMedium"},secondaryTypographyProps:{noWrap:!0,component:"span",typography:"caption",color:"text.disabled"}}),d&&Y.jsx(xo,{component:"span",sx:{ml:1,lineHeight:0},children:d}),!!p&&Y.jsx(wo,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]}));return h&&!h.includes("".concat(a.currentRole))?null:i?Y.jsx(az,{href:c,target:"_blank",rel:"noopener",underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v}):p?v:Y.jsx(az,{component:iz,href:c,underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v})}function Tz(t){var n,r=t.data,o=t.depth,a=t.hasChild,i=t.config;bM();var s=uz(r.path,a),l=null===(n=r.path)||void 0===n?void 0:n.includes("http"),c=e.useState(s),u=c[0],d=c[1];e.useEffect((function(){s||f()}),[]);var p=e.useCallback((function(){d((function(e){return!e}))}),[]),f=e.useCallback((function(){d(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(Dz,{item:r,depth:o,open:u,active:s,externalLink:l,onClick:p,config:i}),a&&Y.jsx(jz,{in:u,unmountOnExit:!0,children:Y.jsx(Pz,{data:r.children,depth:o,config:i})})]})}function Pz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(Tz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var Nz=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(Ez,{subheader:e.subheader,items:e.items,config:qO(n)},e.subheader||t)}))}))}));function Ez(t){var n=t.subheader,r=t.items,o=t.config,a=e.useState(!0),i=a[0],s=a[1],l=e.useCallback((function(){s((function(e){return!e}))}),[]),c=r.map((function(e){return Y.jsx(Tz,{data:e,depth:1,hasChild:!!e.children,config:o},e.title+e.path)}));return Y.jsx(Nu,{disablePadding:!0,sx:{px:2},children:n?Y.jsxs(Y.Fragment,{children:[Y.jsx(zz,{disableGutters:!0,disableSticky:!0,onClick:l,config:o,children:n}),Y.jsx(jz,{in:i,children:c})]}):c})}function Bz(t){var n=t.openNav,r=t.onCloseNav,o=t.Logo,a=bM(),i=Fi("up","lg"),s=Jm();e.useEffect((function(){n&&r()}),[a]);var l=Y.jsxs(Em,{sx:{height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[o&&Y.jsx(o,{sx:{mt:3,ml:4,mb:1}}),Y.jsx(Nz,{data:s,config:{currentRole:"admin"}}),Y.jsx(xo,{sx:{flexGrow:1}})]});return Y.jsxs(xo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:uO.W_VERTICAL}},children:[Y.jsx(hz,{}),i?Y.jsx(Fg,{sx:{height:1,position:"fixed",width:uO.W_VERTICAL,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},children:l}):Y.jsx(ii,{open:n,onClose:r,PaperProps:{sx:{width:uO.W_VERTICAL}},children:l})]})}var kz=ho(_w,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,a=e.theme,i=1!==r,s={color:a.palette.text.primary,backgroundColor:a.palette.action.selected};return Z(Z(Z({flexShrink:0,padding:o.itemPadding,marginRight:o.itemGap,borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:a.palette.text.secondary},t&&Z({},s)),i&&{margin:0,padding:a.spacing(0,1),minHeight:o.itemSubHeight}),n&&!t&&{color:a.palette.text.primary,backgroundColor:a.palette.action.hover})})),Lz=ho(sv)((function(e){var t=e.size;return{width:t,height:t,flexShrink:0,marginRight:0}})),Iz=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,a=e.active,i=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=n.title,u=n.path,d=n.icon,p=n.info,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(kz,Z({disableGutters:!0,ref:t,open:o,depth:r,active:a,disabled:m,config:s},l,{children:[d&&Y.jsx(Lz,{size:s.iconSize,children:d}),!(s.hiddenLabel&&!v)&&Y.jsx(fv,{sx:Z({},!v&&{ml:1}),primary:c,primaryTypographyProps:Z({noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:a?"fontWeightBold":"fontWeightMedium"},v&&{fontWeight:a?"fontWeightSemiBold":"fontWeightMedium"})}),p&&Y.jsx(xo,{component:"span",sx:{ml:.5,lineHeight:0},children:p}),h&&Y.jsx(ev,{title:h,arrow:!0,children:Y.jsx(wo,{width:16,icon:"eva:info-outline",sx:{ml:.5,color:"text.disabled"}})}),!!f&&Y.jsx(wo,{icon:v?"eva:arrow-ios-forward-fill":"eva:arrow-ios-downward-fill",width:16,sx:{flexShrink:0,ml:.5}})]}));return g&&!g.includes("".concat(s.currentRole))?null:i?Y.jsx(az,{href:u,target:"_blank",rel:"noopener",underline:"none",sx:Z({},m&&{cursor:"default"}),children:A}):Y.jsx(az,{component:iz,href:u,underline:"none",sx:Z({},m&&{cursor:"default"}),children:A})}));function Sz(t){var n,r,o=t.data,a=t.depth,i=t.hasChild,s=t.config,l=e.useRef(null),c=bM(),u=uz(o.path,i),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(mO.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=function(){m(!0)},g=function(){m(!1)};return Y.jsxs(Y.Fragment,{children:[Y.jsx(Iz,{ref:l,item:o,depth:a,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),i&&Y.jsx(rd,{open:f,anchorEl:l.current,anchorOrigin:1===a?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===a?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Zu.paper)]=Z({width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(Wz,{data:o.children,depth:a,config:s})})]})}function Wz(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Fg,{spacing:.5,children:t.map((function(e){return Y.jsx(Sz,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var Hz=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(Fg,Z({direction:"row",sx:Z(Z({mx:"auto"},jv.y),r)},o,{children:t.map((function(e,t){return Y.jsx(Rz,{items:e.items,config:JO(n)},e.subheader||t)}))}))}));function Rz(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(Sz,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function Vz(e){var t=e.sx,n=G(e,["sx"]);return Y.jsx(xo,Z({sx:Z({left:0,right:0,bottom:0,m:"auto",height:24,zIndex:-1,opacity:.48,borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:function(e){return e.customShadows.z8}},t)},n))}var Fz=e.memo((function(){var e=uo(),t=Jm();return Y.jsxs(yO,{component:"nav",sx:{top:cO.H_DESKTOP_OFFSET},children:[Y.jsx(CO,{sx:Z({},wv({color:e.palette.background.default})),children:Y.jsx(Hz,{data:t,config:{currentRole:"admin"}})}),Y.jsx(Vz,{})]})}));function Xz(t){var n=t.children,r=t.Logo,o=Fi("up","lg"),a=e.useContext(_m),i=lO(),s="horizontal"===a.themeLayout,l="mini"===a.themeLayout,c=Y.jsx(gz,{Logo:r}),u=Y.jsx(Fz,{}),d=Y.jsx(Bz,{openNav:i.value,onCloseNav:i.onFalse,Logo:r});return s?Y.jsxs(Y.Fragment,{children:[Y.jsx(UO,{onOpenNav:i.onTrue,Logo:r}),o?u:d,Y.jsx(pO,{children:n})]}):l?Y.jsxs(Y.Fragment,{children:[Y.jsx(UO,{onOpenNav:i.onTrue,Logo:r}),Y.jsxs(xo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[o?c:d,Y.jsx(pO,{children:n})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(UO,{onOpenNav:i.onTrue,Logo:r}),Y.jsxs(xo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[d,Y.jsx(pO,{children:n})]})]})}var Qz=function(){this.__data__=[],this.size=0};var Yz=function(e,t){return e===t||e!=e&&t!=t},Zz=Yz;var Gz=function(e,t){for(var n=e.length;n--;)if(Zz(e[n][0],t))return n;return-1},Uz=Gz,qz=Array.prototype.splice;var Kz=Gz;var Jz=Gz;var _z=Gz;var $z=Qz,eD=function(e){var t=this.__data__,n=Uz(t,e);return!(n<0)&&(n==t.length-1?t.pop():qz.call(t,n,1),--this.size,!0)},tD=function(e){var t=this.__data__,n=Kz(t,e);return n<0?void 0:t[n][1]},nD=function(e){return Jz(this.__data__,e)>-1},rD=function(e,t){var n=this.__data__,r=_z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function oD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oD.prototype.clear=$z,oD.prototype.delete=eD,oD.prototype.get=tD,oD.prototype.has=nD,oD.prototype.set=rD;var aD=oD,iD=aD;var sD=function(){this.__data__=new iD,this.size=0};var lD=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var cD=function(e){return this.__data__.get(e)};var uD=function(e){return this.__data__.has(e)},dD=$f,pD=Nf;var fD,mD=function(e){if(!pD(e))return!1;var t=dD(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},hD=Lf["__core-js_shared__"],gD=(fD=/[^.]+$/.exec(hD&&hD.keys&&hD.keys.IE_PROTO||""))?"Symbol(src)_1."+fD:"";var vD=function(e){return!!gD&&gD in e},AD=Function.prototype.toString;var yD=mD,bD=vD,xD=Nf,wD=function(e){if(null!=e){try{return AD.call(e)}catch(e){}try{return e+""}catch(e){}}return""},jD=/^\[object .+?Constructor\]$/,CD=Function.prototype,MD=Object.prototype,OD=CD.toString,zD=MD.hasOwnProperty,DD=RegExp("^"+OD.call(zD).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var TD=function(e){return!(!xD(e)||bD(e))&&(yD(e)?DD:jD).test(wD(e))},PD=function(e,t){return null==e?void 0:e[t]};var ND=function(e,t){var n=PD(e,t);return TD(n)?n:void 0},ED=ND(Lf,"Map"),BD=ND(Object,"create"),kD=BD;var LD=function(){this.__data__=kD?kD(null):{},this.size=0};var ID=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},SD=BD,WD=Object.prototype.hasOwnProperty;var HD=function(e){var t=this.__data__;if(SD){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return WD.call(t,e)?t[e]:void 0},RD=BD,VD=Object.prototype.hasOwnProperty;var FD=BD;var XD=LD,QD=ID,YD=HD,ZD=function(e){var t=this.__data__;return RD?void 0!==t[e]:VD.call(t,e)},GD=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=FD&&void 0===t?"__lodash_hash_undefined__":t,this};function UD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}UD.prototype.clear=XD,UD.prototype.delete=QD,UD.prototype.get=YD,UD.prototype.has=ZD,UD.prototype.set=GD;var qD=UD,KD=aD,JD=ED;var _D=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var $D=function(e,t){var n=e.__data__;return _D(t)?n["string"==typeof t?"string":"hash"]:n.map},eT=$D;var tT=function(e){var t=eT(this,e).delete(e);return this.size-=t?1:0,t},nT=$D;var rT=$D;var oT=$D;var aT=function(){this.size=0,this.__data__={hash:new qD,map:new(JD||KD),string:new qD}},iT=tT,sT=function(e){return nT(this,e).get(e)},lT=function(e){return rT(this,e).has(e)},cT=function(e,t){var n=oT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function uT(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}uT.prototype.clear=aT,uT.prototype.delete=iT,uT.prototype.get=sT,uT.prototype.has=lT,uT.prototype.set=cT;var dT=aD,pT=ED,fT=uT;var mT=aD,hT=sD,gT=lD,vT=cD,AT=uD,yT=function(e,t){var n=this.__data__;if(n instanceof dT){var r=n.__data__;if(!pT||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fT(r)}return n.set(e,t),this.size=n.size,this};function bT(e){var t=this.__data__=new mT(e);this.size=t.size}bT.prototype.clear=hT,bT.prototype.delete=gT,bT.prototype.get=vT,bT.prototype.has=AT,bT.prototype.set=yT;var xT=bT,wT=ND,jT=function(){try{var e=wT(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),CT=jT;var MT=function(e,t,n){"__proto__"==t&&CT?CT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OT=MT,zT=Yz;var DT=function(e,t,n){(void 0!==n&&!zT(e[t],n)||void 0===n&&!(t in e))&&OT(e,t,n)};var TT=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}(),PT={exports:{}};!function(e,t){var n=Lf,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}(PT,PT.exports);var NT=PT.exports,ET=Lf.Uint8Array;var BT=function(e){var t=new e.constructor(e.byteLength);return new ET(t).set(new ET(e)),t},kT=BT;var LT=function(e,t){var n=t?kT(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var IT=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},ST=Nf,WT=Object.create,HT=function(){function e(){}return function(t){if(!ST(t))return{};if(WT)return WT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),RT=HT;var VT=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),FT=Object.prototype;var XT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||FT)},QT=RT,YT=VT,ZT=XT;var GT=function(e){return"function"!=typeof e.constructor||ZT(e)?{}:QT(YT(e))},UT=$f,qT=em;var KT=function(e){return qT(e)&&"[object Arguments]"==UT(e)},JT=em,_T=Object.prototype,$T=_T.hasOwnProperty,eP=_T.propertyIsEnumerable,tP=KT(function(){return arguments}())?KT:function(e){return JT(e)&&$T.call(e,"callee")&&!eP.call(e,"callee")},nP=Array.isArray;var rP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},oP=mD,aP=rP;var iP=function(e){return null!=e&&aP(e.length)&&!oP(e)},sP=iP,lP=em;var cP=function(e){return lP(e)&&sP(e)},uP={exports:{}};var dP=function(){return!1};!function(e,t){var n=Lf,r=dP,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s}(uP,uP.exports);var pP=uP.exports,fP=$f,mP=VT,hP=em,gP=Function.prototype,vP=Object.prototype,AP=gP.toString,yP=vP.hasOwnProperty,bP=AP.call(Object);var xP=function(e){if(!hP(e)||"[object Object]"!=fP(e))return!1;var t=mP(e);if(null===t)return!0;var n=yP.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&AP.call(n)==bP},wP=$f,jP=rP,CP=em,MP={};MP["[object Float32Array]"]=MP["[object Float64Array]"]=MP["[object Int8Array]"]=MP["[object Int16Array]"]=MP["[object Int32Array]"]=MP["[object Uint8Array]"]=MP["[object Uint8ClampedArray]"]=MP["[object Uint16Array]"]=MP["[object Uint32Array]"]=!0,MP["[object Arguments]"]=MP["[object Array]"]=MP["[object ArrayBuffer]"]=MP["[object Boolean]"]=MP["[object DataView]"]=MP["[object Date]"]=MP["[object Error]"]=MP["[object Function]"]=MP["[object Map]"]=MP["[object Number]"]=MP["[object Object]"]=MP["[object RegExp]"]=MP["[object Set]"]=MP["[object String]"]=MP["[object WeakMap]"]=!1;var OP=function(e){return CP(e)&&jP(e.length)&&!!MP[wP(e)]};var zP=function(e){return function(t){return e(t)}},DP={exports:{}};!function(e,t){var n=Ef,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(DP,DP.exports);var TP=DP.exports,PP=OP,NP=zP,EP=TP&&TP.isTypedArray,BP=EP?NP(EP):PP;var kP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},LP=MT,IP=Yz,SP=Object.prototype.hasOwnProperty;var WP=function(e,t,n){var r=e[t];SP.call(e,t)&&IP(r,n)&&(void 0!==n||t in e)||LP(e,t,n)},HP=MT;var RP=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?HP(n,s,l):WP(n,s,l)}return n};var VP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},FP=/^(?:0|[1-9]\d*)$/;var XP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&FP.test(e))&&e>-1&&e%1==0&&e<t},QP=VP,YP=tP,ZP=nP,GP=pP,UP=XP,qP=BP,KP=Object.prototype.hasOwnProperty;var JP=function(e,t){var n=ZP(e),r=!n&&YP(e),o=!n&&!r&&GP(e),a=!n&&!r&&!o&&qP(e),i=n||r||o||a,s=i?QP(e.length,String):[],l=s.length;for(var c in e)!t&&!KP.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||UP(c,l))||s.push(c);return s};var _P=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},$P=Nf,eN=XT,tN=_P,nN=Object.prototype.hasOwnProperty;var rN=function(e){if(!$P(e))return tN(e);var t=eN(e),n=[];for(var r in e)("constructor"!=r||!t&&nN.call(e,r))&&n.push(r);return n},oN=JP,aN=rN,iN=iP;var sN=function(e){return iN(e)?oN(e,!0):aN(e)},lN=RP,cN=sN;var uN=DT,dN=NT,pN=LT,fN=IT,mN=GT,hN=tP,gN=nP,vN=cP,AN=pP,yN=mD,bN=Nf,xN=xP,wN=BP,jN=kP,CN=function(e){return lN(e,cN(e))};var MN=xT,ON=DT,zN=TT,DN=function(e,t,n,r,o,a,i){var s=jN(e,n),l=jN(t,n),c=i.get(l);if(c)uN(e,n,c);else{var u=a?a(s,l,n+"",e,t,i):void 0,d=void 0===u;if(d){var p=gN(l),f=!p&&AN(l),m=!p&&!f&&wN(l);u=l,p||f||m?gN(s)?u=s:vN(s)?u=fN(s):f?(d=!1,u=dN(l,!0)):m?(d=!1,u=pN(l,!0)):u=[]:xN(l)||hN(l)?(u=s,hN(s)?u=CN(s):bN(s)&&!yN(s)||(u=mN(l))):d=!1}d&&(i.set(l,u),o(u,l,r,a,i),i.delete(l)),uN(e,n,u)}},TN=Nf,PN=sN,NN=kP;var EN=function e(t,n,r,o,a){t!==n&&zN(n,(function(i,s){if(a||(a=new MN),TN(i))DN(t,n,s,r,e,o,a);else{var l=o?o(NN(t,s),i,s+"",t,n,a):void 0;void 0===l&&(l=i),ON(t,s,l)}}),PN)};var BN=function(e){return e};var kN=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},LN=kN,IN=Math.max;var SN=function(e,t,n){return t=IN(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=IN(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),LN(e,this,s)}};var WN=function(e){return function(){return e}},HN=jT,RN=HN?function(e,t){return HN(e,"toString",{configurable:!0,enumerable:!1,value:WN(t),writable:!0})}:BN,VN=Date.now;var FN=function(e){var t=0,n=0;return function(){var r=VN(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(RN),XN=BN,QN=SN,YN=FN;var ZN=function(e,t){return YN(QN(e,t,XN),e+"")},GN=Yz,UN=iP,qN=XP,KN=Nf;var JN=ZN,_N=function(e,t,n){if(!KN(n))return!1;var r=typeof t;return!!("number"==r?UN(n)&&qN(t,n.length):"string"==r&&t in n)&&GN(n[t],e)};var $N=EN,eE=W(function(e){return JN((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&_N(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n){$N(e,t,n)})));const tE=(e,t)=>re({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),nE=e=>re({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}}),rE=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var o;r[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}}));let o=re({html:tE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:re({margin:0},nE(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(o=[o,a]),o};function oE(e){const t=po({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Y.jsxs(k.Fragment,{children:[Y.jsx(sc,{styles:e=>rE(e,r)}),n]})}"production"!==process.env.NODE_ENV&&(oE.propTypes={children:Ne.node,enableColorScheme:Ne.bool});var aE={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},iE={lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},sE={lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},lE={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},cE={lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},uE={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:aE[800]},dE={lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},pE=function(e){return{common:{black:"#000000",white:"#FFFFFF"},primary:null!=e?e:iE,secondary:sE,info:lE,success:cE,warning:uE,error:dE,grey:aE,divider:Ar(aE[500],.2),action:{hover:Ar(aE[500],.08),selected:Ar(aE[500],.16),disabled:Ar(aE[500],.8),disabledBackground:Ar(aE[500],.24),focus:Ar(aE[500],.24),hoverOpacity:.08,disabledOpacity:.48}}};function fE(e,t){var n=Z(Z({},pE(t)),{mode:"light",text:{primary:aE[800],secondary:aE[600],disabled:aE[500]},background:{paper:"#FFFFFF",default:"#FFFFFF",neutral:aE[200]},action:Z(Z({},pE().action),{active:aE[600]})}),r=Z(Z({},pE(t)),{mode:"dark",text:{primary:"#FFFFFF",secondary:aE[500],disabled:aE[600]},background:{paper:aE[800],default:aE[900],neutral:Ar(aE[500],.12)},action:Z(Z({},pE().action),{active:aE[500]})});return"light"===e?n:r}var mE=fE("light"),hE=mE.grey[500],gE=mE.common.black;function vE(e){var t=Ar(e,.2),n=Ar(e,.14),r=Ar(e,.12);return["none","0px 2px 1px -1px ".concat(t,",0px 1px 1px 0px ").concat(n,",0px 1px 3px 0px ").concat(r),"0px 3px 1px -2px ".concat(t,",0px 2px 2px 0px ").concat(n,",0px 1px 5px 0px ").concat(r),"0px 3px 3px -2px ".concat(t,",0px 3px 4px 0px ").concat(n,",0px 1px 8px 0px ").concat(r),"0px 2px 4px -1px ".concat(t,",0px 4px 5px 0px ").concat(n,",0px 1px 10px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 5px 8px 0px ").concat(n,",0px 1px 14px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 6px 10px 0px ").concat(n,",0px 1px 18px 0px ").concat(r),"0px 4px 5px -2px ".concat(t,",0px 7px 10px 1px ").concat(n,",0px 2px 16px 1px ").concat(r),"0px 5px 5px -3px ".concat(t,",0px 8px 10px 1px ").concat(n,",0px 3px 14px 2px ").concat(r),"0px 5px 6px -3px ".concat(t,",0px 9px 12px 1px ").concat(n,",0px 3px 16px 2px ").concat(r),"0px 6px 6px -3px ".concat(t,",0px 10px 14px 1px ").concat(n,",0px 4px 18px 3px ").concat(r),"0px 6px 7px -4px ".concat(t,",0px 11px 15px 1px ").concat(n,",0px 4px 20px 3px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 12px 17px 2px ").concat(n,",0px 5px 22px 4px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 13px 19px 2px ").concat(n,",0px 5px 24px 4px ").concat(r),"0px 7px 9px -4px ".concat(t,",0px 14px 21px 2px ").concat(n,",0px 5px 26px 4px ").concat(r),"0px 8px 9px -5px ".concat(t,",0px 15px 22px 2px ").concat(n,",0px 6px 28px 5px ").concat(r),"0px 8px 10px -5px ".concat(t,",0px 16px 24px 2px ").concat(n,",0px 6px 30px 5px ").concat(r),"0px 8px 11px -5px ".concat(t,",0px 17px 26px 2px ").concat(n,",0px 6px 32px 5px ").concat(r),"0px 9px 11px -5px ".concat(t,",0px 18px 28px 2px ").concat(n,",0px 7px 34px 6px ").concat(r),"0px 9px 12px -6px ".concat(t,",0px 19px 29px 2px ").concat(n,",0px 7px 36px 6px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 20px 31px 3px ").concat(n,",0px 8px 38px 7px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 21px 33px 3px ").concat(n,",0px 8px 40px 7px ").concat(r),"0px 10px 14px -6px ".concat(t,",0px 22px 35px 3px ").concat(n,",0px 8px 42px 7px ").concat(r),"0px 11px 14px -7px ".concat(t,",0px 23px 36px 3px ").concat(n,",0px 9px 44px 8px ").concat(r),"0px 11px 15px -7px ".concat(t,",0px 24px 38px 3px ").concat(n,",0px 9px 46px 8px ").concat(r)]}function AE(e){return vE("light"===e?hE:gE)}function yE(e){return"".concat(e/16,"rem")}function bE(e){var t=e.sm,n=e.md,r=e.lg;return{"@media (min-width:600px)":{fontSize:yE(t)},"@media (min-width:900px)":{fontSize:yE(n)},"@media (min-width:1200px)":{fontSize:yE(r)}}}var xE={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:Z({fontWeight:800,lineHeight:1.25,fontSize:yE(40)},bE({sm:52,md:58,lg:64})),h2:Z({fontWeight:800,lineHeight:64/48,fontSize:yE(32)},bE({sm:40,md:44,lg:48})),h3:Z({fontWeight:700,lineHeight:1.5,fontSize:yE(24)},bE({sm:26,md:30,lg:32})),h4:Z({fontWeight:700,lineHeight:1.5,fontSize:yE(20)},bE({sm:20,md:24,lg:24})),h5:Z({fontWeight:700,lineHeight:1.5,fontSize:yE(18)},bE({sm:19,md:20,lg:20})),h6:Z({fontWeight:700,lineHeight:28/18,fontSize:yE(17)},bE({sm:18,md:18,lg:18})),subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:yE(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:yE(14)},body1:{lineHeight:1.5,fontSize:yE(16)},body2:{lineHeight:22/14,fontSize:yE(14)},caption:{lineHeight:1.5,fontSize:yE(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:yE(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:yE(14),textTransform:"unset"}};function wE(e,t){var n=fE("light",t);n.grey[500],n.common.black;var r=Ar(e,.16);return{z1:"0 1px 2px 0 ".concat(r),z4:"0 4px 8px 0 ".concat(r),z8:"0 8px 16px 0 ".concat(r),z12:"0 12px 24px -4px ".concat(r),z16:"0 16px 32px -4px ".concat(r),z20:"0 20px 40px -4px ".concat(r),z24:"0 24px 48px 0 ".concat(r),card:"0 0 2px 0 ".concat(Ar(e,.2),", 0 12px 24px -4px ").concat(Ar(e,.12)),dropdown:"0 0 2px 0 ".concat(Ar(e,.24),", -20px 20px 40px -4px ").concat(Ar(e,.24)),dialog:"-40px 40px 80px -8px ".concat(Ar(n.common.black,.24)),primary:"0 8px 16px 0 ".concat(Ar(n.primary.main,.24)),info:"0 8px 16px 0 ".concat(Ar(n.info.main,.24)),secondary:"0 8px 16px 0 ".concat(Ar(n.secondary.main,.24)),success:"0 8px 16px 0 ".concat(Ar(n.success.main,.24)),warning:"0 8px 16px 0 ".concat(Ar(n.warning.main,.24)),error:"0 8px 16px 0 ".concat(Ar(n.error.main,.24))}}function jE(e,t){var n=fE("light"),r=n.grey[500],o=n.common.black;return wE("light"===e?r:o,t)}var CE=It("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),ME=["primary","secondary","info","success","warning","error"];function OE(e){var t="light"===e.palette.mode;return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:function(n){return function(n){var r,o="default"===n.color,a="inherit"===n.color,i="circular"===n.variant,s="extended"===n.variant,l="outlined"===n.variant,c="outlinedExtended"===n.variant,u="soft"===n.variant,d="softExtended"===n.variant,p=Z(Z(Z({"&:hover, &:active":{boxShadow:"none"}},(i||s)&&Z(Z({},(o||a)&&{boxShadow:e.customShadows.z8}),a&&{backgroundColor:e.palette.text.primary,color:t?e.palette.common.white:e.palette.grey[800],"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}})),(l||c)&&Z(Z(Z({boxShadow:"none",backgroundColor:"transparent"},(o||a)&&{border:"solid 1px ".concat(Ar(e.palette.grey[500],.32))}),o&&Z({},!t&&{color:e.palette.text.secondary})),{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor",backgroundColor:e.palette.action.hover}})),(u||d)&&Z(Z({boxShadow:"none"},o&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}}),a&&{backgroundColor:Ar(e.palette.grey[500],.08),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.24)}})),f=ME.map((function(r){return Z({},n.color===r&&Z(Z(Z({},(i||s)&&{boxShadow:e.customShadows[r],"&:hover":{backgroundColor:e.palette[r].dark}}),(l||c)&&{color:e.palette[r].main,border:"solid 1px ".concat(Ar(e.palette[r].main,.48)),"&:hover":{backgroundColor:Ar(e.palette[r].main,.08)}}),(u||d)&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.16),"&:hover":{backgroundColor:Ar(e.palette[r].main,.32)}}))})),m=((r={})["&.".concat(CE.disabled)]=Z({},(l||c)&&{backgroundColor:"transparent",border:"solid 1px ".concat(e.palette.action.disabledBackground)}),r),h=Z({},(s||c||d)&&Z(Z(Z({width:"auto","& svg":{marginRight:e.spacing(1)}},"small"===n.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)}),"medium"===n.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)}),"large"===n.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}));return K(K([p],f,!0),[m,h],!1)}(n.ownerState)}}}}}var zE=["primary","secondary","info","success","warning","error"];function DE(e){var t="light"===e.palette.mode;return{MuiChip:{defaultProps:{deleteIcon:Y.jsx(wo,{icon:"solar:close-circle-bold"})},styleOverrides:{root:function(n){return function(n){var r,o,a,i,s,l="default"===n.color,c="filled"===n.variant,u="outlined"===n.variant,d="soft"===n.variant,p=Z(((r={})["& .".concat(Ep.deleteIcon)]={opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},r),l&&Z(Z(Z(((o={})["& .".concat(Ep.avatar)]={color:e.palette.text.primary},o),c&&((a={color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})["& .".concat(Ep.icon)]={color:t?e.palette.common.white:e.palette.grey[800]},a)),u&&{border:"solid 1px ".concat(Ar(e.palette.grey[500],.32))}),d&&{color:e.palette.text.primary,backgroundColor:Ar(e.palette.grey[500],.16),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.32)}})),f=zE.map((function(r){var o;return Z({},n.color===r&&Z(((o={})["& .".concat(Ep.avatar)]={color:e.palette[r].lighter,backgroundColor:e.palette[r].dark},o),d&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.16),"&:hover":{backgroundColor:Ar(e.palette[r].main,.32)}}))})),m=((i={})["&.".concat(Ep.disabled)]=Z(Z(Z(((s={opacity:1,color:e.palette.action.disabled})["& .".concat(Ep.icon)]={color:e.palette.action.disabled},s["& .".concat(Ep.avatar)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground},s),c&&{backgroundColor:e.palette.action.disabledBackground}),u&&{borderColor:e.palette.action.disabledBackground}),d&&{backgroundColor:e.palette.action.disabledBackground}),i);return K(K([p],f,!0),[m,{fontWeight:500,borderRadius:e.shape.borderRadius}],!1)}(n.ownerState)}}}}}var TE=It("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var PE=It("MuiTableRow",["root","selected","hover","head","footer"]);var NE=It("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),EE=["info","success","warning","error"];function BE(e){var t="light"===e.palette.mode;return{MuiAlert:{defaultProps:{iconMapping:{error:Y.jsx(wo,{icon:"solar:danger-bold",width:24}),info:Y.jsx(wo,{icon:"eva:info-fill",width:24}),success:Y.jsx(wo,{icon:"eva:checkmark-circle-2-fill",width:24}),warning:Y.jsx(wo,{icon:"eva:alert-triangle-fill",width:24})}},styleOverrides:{root:function(n){return function(n){var r="standard"===n.variant,o="filled"===n.variant,a="outlined"===n.variant,i=EE.map((function(i){var s,l;return Z({},n.severity===i&&Z(Z(Z({},r&&((s={color:e.palette[i][t?"darker":"lighter"],backgroundColor:e.palette[i][t?"lighter":"darker"]})["& .".concat(NE.icon)]={color:e.palette[i][t?"main":"light"]},s)),o&&{color:e.palette[i].contrastText,backgroundColor:e.palette[i].main}),a&&((l={backgroundColor:Ar(e.palette[i].main,.08),color:e.palette[i][t?"dark":"light"],border:"solid 1px ".concat(Ar(e.palette[i].main,.16))})["& .".concat(NE.icon)]={color:e.palette[i].main},l)))}));return K([],i,!0)}(n.ownerState)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5),fontWeight:e.typography.fontWeightSemiBold}}}}}var kE=It("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"]);var LE=It("MuiAvatarGroup",["root","avatar"]),IE=["default","primary","secondary","info","success","warning","error"],SE=function(e){var t=e.charAt(0);return["A","C","F"].includes(t)?"primary":["E","D","H"].includes(t)?"secondary":["I","K","L"].includes(t)?"info":["M","N","P"].includes(t)?"success":["Q","S","T"].includes(t)?"warning":["V","X","Y"].includes(t)?"error":"default"};var WE=It("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),HE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}))};var RE=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var VE=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function FE(e){var t="light"===e.palette.mode;return{MuiSwitch:{styleOverrides:{root:function(n){return function(n){var r,o,a,i;return Z(Z({padding:"9px 13px 9px 12px",width:58,height:38},"small"===n.size&&{padding:"4px 8px 4px 7px",width:40,height:24}),((r={})["& .".concat(VE.thumb)]=Z({width:14,height:14,boxShadow:"none",color:e.palette.common.white},"small"===n.size&&{width:10,height:10}),r["& .".concat(VE.track)]={opacity:1,borderRadius:14,backgroundColor:Ar(e.palette.grey[500],.48)},r["& .".concat(VE.switchBase)]=Z(Z({left:3,padding:12},"small"===n.size&&{padding:7}),((o={})["&.".concat(VE.checked)]=Z(((a={transform:"translateX(13px)"})["&+.".concat(VE.track)]={opacity:1},a),"small"===n.size&&{transform:"translateX(9px)"}),o["&.".concat(VE.disabled)]=((i={})["& .".concat(VE.thumb)]={opacity:t?1:.48},i["&+.".concat(VE.track)]={opacity:.48},i),o)),r))}(n.ownerState)}}}}}var XE=It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),QE=["primary","secondary","info","success","warning","error"];function YE(e){return{MuiLinearProgress:{styleOverrides:{root:function(t){return function(t){var n,r="buffer"===t.variant,o=Z(((n={borderRadius:4})["& .".concat(XE.bar)]={borderRadius:4},n),r&&{backgroundColor:"transparent"}),a=QE.map((function(n){return Z({},t.color===n&&{backgroundColor:Ar(e.palette[n].main,.24)})}));return K([o],a,!0)}(t.ownerState)}}}}}var ZE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}))},GE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}))},UE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}))};var qE=It("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var KE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})}))},JE=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})}))},_E=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})}))};var $E=It("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var eB=It("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var tB=It("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),nB=["primary","secondary","info","success","warning","error"];function rB(e){var t="light"===e.palette.mode;return{MuiPagination:{styleOverrides:{root:function(n){return function(n){var r,o,a="standard"===n.color,i="text"===n.variant,s="outlined"===n.variant,l="soft"===n.variant,c=((r={})["& .".concat(tB.root)]=Z(Z({},s&&{borderColor:Ar(e.palette.grey[500],.24)}),((o={})["&.".concat(tB.selected)]=Z(Z({fontWeight:e.typography.fontWeightSemiBold},s&&{borderColor:"currentColor"}),a&&Z({backgroundColor:Ar(e.palette.grey[500],.08)},i&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})),o)),r),u=nB.map((function(r){var o,a;return Z({},n.color===r&&((o={})["& .".concat(tB.root)]=((a={})["&.".concat(tB.selected)]=Z({},n.color===r&&Z({},l&&{color:e.palette[r][t?"dark":"light"],backgroundColor:Ar(e.palette[r].main,.08),"&:hover":{backgroundColor:Ar(e.palette[r].main,.16)}})),a),o))}));return K([c],u,!0)}(n.ownerState)}}}}}var oB=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})}))},aB=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})}))};var iB=It("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),sB=["primary","secondary","info","success","warning","error"];function lB(e){return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:function(t){return function(t){var n,r,o,a="inherit"===t.color,i="contained"===t.variant,s="outlined"===t.variant,l="text"===t.variant,c="soft"===t.variant,u="horizontal"===t.orientation,d="vertical"===t.orientation,p=((n={})["& .".concat(iB.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z(Z(Z({borderStyle:"solid"},a&&{borderColor:Ar(e.palette.grey[500],.32)}),u&&{borderWidth:"0px 1px 0px 0px"}),d&&{borderWidth:"0px 0px 1px 0px"}))},n),f=sB.map((function(n){var r;return(r={})["& .".concat(iB.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z({},t.color===n&&Z(Z(Z({},i&&{borderColor:Ar(e.palette[n].dark,.48)}),l&&{borderColor:Ar(e.palette[n].main,.48)}),c&&{borderColor:Ar(e.palette[n].dark,.24)})))},r})),m=((r={})["& .".concat(iB.grouped)]=((o={})["&.".concat(iB.disabled)]={"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}},o),r);return K(K([p],f,!0),[m],!1)}(t.ownerState)}}}}}var cB=function(){return Y.jsx(wo,{icon:"eva:chevron-down-fill",width:24})},uB=function(){return Y.jsx(wo,{icon:"eva:arrow-ios-back-fill",width:24})},dB=function(){return Y.jsx(wo,{icon:"eva:arrow-ios-forward-fill",width:24})},pB=function(){return Y.jsx(wo,{icon:"solar:calendar-mark-bold-duotone",width:24})},fB=function(){return Y.jsx(wo,{icon:"solar:clock-circle-outline",width:24})},mB=["DatePicker","DateTimePicker","StaticDatePicker","DesktopDatePicker","DesktopDateTimePicker","MobileDatePicker","MobileDateTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:pB,leftArrowIcon:uB,rightArrowIcon:dB,switchViewIcon:cB}}},e}),{}),hB=["TimePicker","MobileTimePicker","StaticTimePicker","DesktopTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:fB,rightArrowIcon:dB,switchViewIcon:cB}}},e}),{});var gB=It("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),vB=["primary","secondary","info","success","warning","error"];function AB(e){var t;return{MuiToggleButton:{styleOverrides:{root:function(t){return function(t){var n,r,o,a=((n={})["&.".concat(gB.selected)]={borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"},n),i=vB.map((function(n){return Z({},t.color===n&&{"&:hover":{borderColor:Ar(e.palette[n].main,.48),backgroundColor:Ar(e.palette[n].main,e.palette.action.hoverOpacity)}})})),s=((r={})["&.".concat(gB.disabled)]=((o={})["&.".concat(gB.selected)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground},o),r);return K(K([a],i,!0),[s],!1)}(t.ownerState)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"solid 1px ".concat(Ar(e.palette.grey[500],.08))},grouped:(t={margin:4},t["&.".concat(gB.selected)]={boxShadow:"none"},t["&:not(:first-of-type), &:not(:last-of-type)"]={borderRadius:e.shape.borderRadius,borderColor:"transparent"},t)}}}}function yB(e){var t=eE(OE(e),function(e){var t,n;return{MuiTabs:{defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{indicator:{backgroundColor:e.palette.text.primary},scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:(t={padding:0,opacity:1,minWidth:48,minHeight:48,fontWeight:e.typography.fontWeightSemiBold,"&:not(:last-of-type)":(n={marginRight:e.spacing(3)},n[e.breakpoints.up("sm")]={marginRight:e.spacing(5)},n)},t["&:not(.".concat(sy.selected,")")]={color:e.palette.text.secondary},t)}}}}(e),DE(e),function(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:2*e.shape.borderRadius,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}(e),function(e){return{MuiMenuItem:{styleOverrides:{root:Z({},xv(e))}}}}(e),{MuiLink:{defaultProps:{underline:"hover"}}},{MuiStack:{defaultProps:{useFlexGap:!0}}},function(e){return{MuiBadge:{styleOverrides:{dot:{borderRadius:"50%"},root:function(t){var n,r,o,a,i,s,l=t.ownerState,c="alway"===l.variant,u="online"===l.variant,d="busy"===l.variant,p="offline"===l.variant,f="invisible"===l.variant,m=((n={})["&.".concat(kE.invisible)]={transform:"unset"},n.width=10,n.zIndex=9,n.padding=0,n.height=10,n.minWidth="auto",n["&:before, &:after"]={content:"''",borderRadius:1,backgroundColor:e.palette.common.white},n);return Z(Z(Z(Z(Z({},u&&((r={})["& .".concat(kE.badge)]=Z(Z({},m),{backgroundColor:e.palette.success.main}),r)),d&&((o={})["& .".concat(kE.badge)]=Z(Z({},m),{backgroundColor:e.palette.error.main,"&:before":{width:6,height:2}}),o)),p&&((a={})["& .".concat(kE.badge)]=Z(Z({},m),{backgroundColor:e.palette.text.disabled,"&:before":{width:6,height:6,borderRadius:"50%"}}),a)),c&&((i={})["& .".concat(kE.badge)]=Z(Z({},m),{backgroundColor:e.palette.warning.main,"&:before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&:after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}),i)),f&&((s={})["& .".concat(kE.badge)]={display:"none"},s))}}}}}(e),function(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{defaultProps:{primaryTypographyProps:{typography:"subtitle2"},secondaryTypographyProps:{component:"span"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}}}}(e),function(e){var t,n;return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:(t={},t["&.".concat(PE.selected)]={backgroundColor:Ar(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Ar(e.palette.primary.dark,.08)}},t["&:last-of-type"]=(n={},n["& .".concat(TE.root)]={borderColor:"transparent"},n),t)}},MuiTableCell:{styleOverrides:{root:{borderBottomStyle:"dashed"},head:{fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:"linear-gradient(to bottom, ".concat(e.palette.background.neutral," 0%, ").concat(e.palette.background.neutral," 100%)")},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:{paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}},selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}}}}(e),function(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:{borderColor:Ar(e.palette.grey[500],.16)}}}}}(e),BE(e),FE(e),function(e){var t=function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))};return{MuiSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},MuiNativeSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}}}}(),function(e){return{MuiButton:{styleOverrides:{root:{"&:hover":{boxShadow:"none"}},sizeLarge:{height:48},containedInherit:{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},containedPrimary:{boxShadow:e.customShadows.primary},containedSecondary:{boxShadow:e.customShadows.secondary},containedInfo:{boxShadow:e.customShadows.info},containedSuccess:{boxShadow:e.customShadows.success},containedWarning:{boxShadow:e.customShadows.warning},containedError:{boxShadow:e.customShadows.error},outlinedInherit:{border:"1px solid ".concat(e.palette.grey[500]),"&:hover":{backgroundColor:e.palette.action.hover}},textInherit:{"&:hover":{backgroundColor:e.palette.action.hover}}}}}}(e),function(e){var t,n,r,o;return{MuiRating:{defaultProps:{emptyIcon:Y.jsx(HE,{}),icon:Y.jsx(HE,{})},styleOverrides:{root:(t={},t["&.".concat(WE.disabled)]={opacity:.48},t),iconEmpty:{color:Ar(e.palette.grey[500],.48)},sizeSmall:(n={},n["& .".concat(Na.root)]={width:20,height:20},n),sizeMedium:(r={},r["& .".concat(Na.root)]={width:24,height:24},r),sizeLarge:(o={},o["& .".concat(Na.root)]={width:28,height:28},o)}}}}(e),function(e){return{MuiDialog:{styleOverrides:{paper:function(t){var n=t.ownerState;return Z({boxShadow:e.customShadows.dialog,borderRadius:2*e.shape.borderRadius},!n.fullScreen&&{margin:e.spacing(2)})},paperFullScreen:{borderRadius:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{defaultProps:{disableSpacing:!0},styleOverrides:{root:{padding:e.spacing(3),"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}(e),{MuiAppBar:{defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}}},function(e){return{MuiAvatar:{variants:IE.map((function(t){return"default"===t?{props:{color:"default"},style:{color:e.palette.text.secondary,backgroundColor:Ar(e.palette.grey[500],.24)}}:{props:{color:t},style:{color:e.palette[t].contrastText,backgroundColor:e.palette[t].main}}})),styleOverrides:{rounded:{borderRadius:1.5*e.shape.borderRadius},colorDefault:function(t){var n=t.ownerState,r=SE("".concat(n.alt));return Z({},!!n.alt&&Z({},"default"!==r?{color:e.palette[r].contrastText,backgroundColor:e.palette[r].main}:{color:e.palette.text.secondary,backgroundColor:Ar(e.palette.grey[500],.24)}))}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:function(e){var t,n=e.ownerState;return Z({justifyContent:"flex-end"},"compact"===n.variant&&((t={width:40,height:40,position:"relative"})["& .".concat(LE.avatar)]={margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}},t))},avatar:{fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}}}}}}(e),function(e){var t,n="light"===e.palette.mode;return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:(t={},t["&.".concat(RE.disabled)]={color:e.palette.action.disabled},t),rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[n?800:700]}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:function(n){var r,o=n.ownerState;return Z({},"temporary"===o.variant&&((r={})["& .".concat(Ja.paper)]=Z(Z(Z({},bv({theme:e})),"left"===o.anchor&&{boxShadow:"40px 40px 80px -8px ".concat(Ar(t?e.palette.grey[500]:e.palette.common.black,.24))}),"right"===o.anchor&&{boxShadow:"-40px 40px 80px -8px ".concat(Ar(t?e.palette.grey[500]:e.palette.common.black,.24))}),r))}}}}}(e),function(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(e),function(e){var t;return{MuiPopover:{styleOverrides:{paper:Z(Z({},bv({theme:e,dropdown:!0})),(t={},t["& .".concat(zu.root)]={paddingTop:0,paddingBottom:0},t))}}}}(e),{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){return{MuiCheckbox:{defaultProps:{size:"small",icon:Y.jsx(ZE,{}),checkedIcon:Y.jsx(GE,{}),indeterminateIcon:Y.jsx(UE,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),function(e){var t,n,r,o,a=bv({theme:e,dropdown:!0});return{MuiDataGrid:{styleOverrides:{root:(t={borderRadius:0,borderWidth:0},t["& .".concat(qE.root)]={borderTop:0},t["& .".concat(qE.toolbar)]={height:"auto"},t),cell:{borderBottom:"1px dashed ".concat(e.palette.divider)},selectedRowCount:{whiteSpace:"nowrap"},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),borderBottom:"1px dashed ".concat(e.palette.divider),backgroundColor:e.palette.background.neutral},paper:Z(Z({},a),{padding:0}),menu:(n={},n["& .".concat(Ya.root)]=Z({},a),n["& .".concat(zu.root)]=(r={padding:0},r["& .".concat(rv.root)]={minWidth:0,marginRight:e.spacing(2)},r),n),columnHeaders:{borderRadius:0,backgroundColor:e.palette.background.neutral},panelHeader:{padding:e.spacing(2)},panelFooter:(o={padding:e.spacing(2),justifyContent:"flex-end",borderTop:"dashed 1px ".concat(e.palette.divider)},o["& .".concat(Hx.root)]={"&:first-of-type":{border:"solid 1px ".concat(Ar(e.palette.grey[500],.24))},"&:last-of-type":{marginLeft:e.spacing(1.5),color:e.palette.background.paper,backgroundColor:e.palette.text.primary}},o),filterForm:{padding:e.spacing(2)},filterFormValueInput:{marginLeft:e.spacing(2)},filterFormColumnInput:{marginLeft:e.spacing(2)},filterFormOperatorInput:{marginLeft:e.spacing(2)}}}}}(e),function(e){return{MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral},rounded:{borderRadius:2*e.shape.borderRadius}}}}}(e),function(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}(e),function(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:Y.jsx(KE,{}),defaultExpandIcon:Y.jsx(JE,{}),defaultEndIcon:Y.jsx(_E,{})}},MuiTreeItem:{styleOverrides:{label:Z({},e.typography.body2),iconContainer:{width:"auto"}}}}}(e),function(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:Ar(e.palette.grey[900],.8)},invisible:{background:"transparent"}}}}}(e),YE(e),function(e){var t,n,r,o,a,i,s,l,c,u={focused:e.palette.text.primary,active:e.palette.text.secondary,placeholder:e.palette.text.disabled},d={label:e.typography.body1,value:e.typography.body2};return{MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:Z(Z({},d.value),(t={color:u.placeholder},t["&.".concat(tu.shrink)]=Z(Z({},d.label),(n={fontWeight:600,color:u.active},n["&.".concat(tu.focused)]={color:u.focused},n["&.".concat(tu.error)]={color:e.palette.error.main},n["&.".concat(tu.disabled)]={color:e.palette.text.disabled},n["&.".concat(tu.filled)]={transform:"translate(12px, 6px) scale(0.75)"},n)),t))}},MuiInputBase:{styleOverrides:{root:(r={},r["&.".concat(dc.disabled)]={"& svg":{color:e.palette.text.disabled}},r),input:Z(Z({},d.value),{"&::placeholder":{opacity:1,color:u.placeholder}})}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:Ar(e.palette.grey[500],.32)},"&:after":{borderBottomColor:u.focused}}}},MuiOutlinedInput:{styleOverrides:{root:(o={},o["&.".concat(Rc.focused)]=(a={},a["& .".concat(Rc.notchedOutline)]={borderColor:u.focused},a),o["&.".concat(Rc.error)]=(i={},i["& .".concat(Rc.notchedOutline)]={borderColor:e.palette.error.main},i),o["&.".concat(Rc.disabled)]=(s={},s["& .".concat(Rc.notchedOutline)]={borderColor:e.palette.action.disabledBackground},s),o),notchedOutline:{borderColor:Ar(e.palette.grey[500],.2),transition:e.transitions.create(["border-color"],{duration:e.transitions.duration.shortest})}}},MuiFilledInput:{defaultProps:{disableUnderline:!0},styleOverrides:{root:(l={borderRadius:e.shape.borderRadius,backgroundColor:Ar(e.palette.grey[500],.08),"&:hover":{backgroundColor:Ar(e.palette.grey[500],.16)}},l["&.".concat(Dc.focused)]={backgroundColor:Ar(e.palette.grey[500],.16)},l["&.".concat(Dc.error)]=(c={backgroundColor:Ar(e.palette.error.main,.08)},c["&.".concat(Dc.focused)]={backgroundColor:Ar(e.palette.error.main,.16)},c),l["&.".concat(Dc.disabled)]={backgroundColor:e.palette.action.disabledBackground},l)}}}}(e),function(e){var t,n,r;return{MuiAccordion:{styleOverrides:{root:(t={backgroundColor:"transparent"},t["&.".concat($E.expanded)]={boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},t["&.".concat($E.disabled)]={backgroundColor:"transparent"},t)}},MuiAccordionSummary:{styleOverrides:{root:(n={paddingLeft:e.spacing(2),paddingRight:e.spacing(1)},n["&.".concat(eB.disabled)]=(r={opacity:1,color:e.palette.action.disabled},r["& .".concat(bf.root)]={color:"inherit"},r),n),expandIconWrapper:{color:"inherit"}}}}}(e),function(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}(e),rB(e),function(e){return{MuiFormControlLabel:{styleOverrides:{label:Z({},e.typography.body2)}},MuiRadio:{defaultProps:{size:"small",icon:Y.jsx(oB,{}),checkedIcon:Y.jsx(aB,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),lB(e),function(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":Z({},e.typography.body2)}}}}}(e),{MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root, #__next":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{maxWidth:"100%",display:"inline-block",verticalAlign:"bottom"}}}},function(e){var t,n,r;return{MuiAutocomplete:{defaultProps:{popupIcon:Y.jsx((function(e){return Y.jsx(La,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))}),{})},styleOverrides:{root:(t={},t["& span.".concat(Xp.tag)]=Z(Z({},e.typography.subtitle2),{height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:e.spacing(0,.75),color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,backgroundColor:Ar(e.palette.grey[500],.16)}),t),paper:Z({},bv({theme:e,dropdown:!0})),listbox:(n={padding:0},n["& .".concat(Xp.option)]=Z({},xv(e)),n),endAdornment:(r={},r["& .".concat(Na.root)]={width:18,height:18},r)}}}}(e),AB(e),function(e){var t;return Z(Z({MuiPickersLayout:{styleOverrides:{root:{"& .MuiPickersLayout-actionBar":(t={},t["& .".concat(Hx.root,":last-of-type")]={backgroundColor:e.palette.text.primary,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[800]},t)}}}},mB),hB)}(e),{MuiLoadingButton:{styleOverrides:{root:{"&.MuiButton-text":{"& .MuiLoadingButton-startIconPendingStart":{marginLeft:0},"& .MuiLoadingButton-endIconPendingEnd":{marginRight:0}}}}}});return t}var bB=fE("light"),xB=[Z({name:"default"},bB.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:bB.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}];function wB(t){var n=t.children,r=t.themeDirection;e.useEffect((function(){document.dir=r}),[r]);var o=E({key:"rtl",prepend:!0,stylisPlugins:[P.prefixer,N]});return"rtl"===r?Y.jsx(s.CacheProvider,{value:o,children:n}):Y.jsx(Y.Fragment,{children:n})}exports.ApiContext=Rm,exports.ApiContextProvider=function(t){var n=e.useState({statusCode:null,dashbaordUrlPrefix:t.dashbaordUrlPrefix}),r=n[0],o=n[1],a=t.language,i=t.onLogout,s=t.baseUrl,l=t.sleepTime,c=t.dashbaordUrlPrefix;Wm.defaults.baseURL=s;return Wm.interceptors.request.use((function(e){return e.headers=Z(Z({},e.headers),{Accept:"application/json","Content-Type":"application/json","accept-language":a,language:a}),e.withCredentials=!0,e._auth=!1!==e._auth,e}),(function(e){Promise.reject(e.request.response)})),Wm.interceptors.response.use((function(e){return U(void 0,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return l?[4,(n=l,new Promise((function(e){return setTimeout(e,n)})))]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,e]}var n}))}))}),(function(e){var t,n,r;return U(this,void 0,void 0,(function(){var a;return q(this,(function(s){return a=e.config,x.isAxiosError(e)&&401===(null===(t=e.response)||void 0===t?void 0:t.status)&&a._auth?(o({statusCode:401,dashbaordUrlPrefix:c}),i()):o({statusCode:401,dashbaordUrlPrefix:c}),[2,Promise.reject(null!==(r=null===(n=e.request)||void 0===n?void 0:n.response)&&void 0!==r?r:e)]}))}))})),Y.jsx(Rm.Provider,{value:r,children:t.children})},exports.AppConfigurationsContext=_m,exports.AppConfigurationsContextProvider=function(t){var n,r,o,a,i=e.useContext(Ym).resources,s=null==i?void 0:i.appConfigurations,l=e.useState(null!==(n=null==s?void 0:s.themeLayout)&&void 0!==n?n:"vertical"),c=l[0],u=l[1],d=null!==(r=null==s?void 0:s.textFieldSize)&&void 0!==r?r:"small",p=null!==(o=null==s?void 0:s.defaultRowsPerPage)&&void 0!==o?o:50,f=null===(a=null==s?void 0:s.themeStretch)||void 0===a||a;return Y.jsx(_m.Provider,{value:{textFieldSize:d,themeLayout:c,defaultRowsPerPage:p,themeStretch:f,setThemeLayout:u},children:t.children})},exports.CredentialsContext=$m,exports.CredentialsContextProvider=function(e){var t=e.identityPoolId,n=e.region,r=e.userPoolId,o=e.userPoolWebClientId,a=e.bucket,i=e.googleApiKey,s=e.bucketUrl;return j.Auth.configure({Auth:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o}}),j.Storage.configure({region:n,bucket:a}),Y.jsx($m.Provider,{value:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o,bucket:a,googleApiKey:i,bucketUrl:s},children:e.children})},exports.DashboardLayout=Xz,exports.DialogContext=th,exports.DialogContextProvider=function(t){var n=t.children,r=e.useState(!1),o=r[0],a=r[1],i=e.useState(void 0),s=i[0],l=i[1],c=function(){a(!1)};return Y.jsxs(th.Provider,{value:{openDialog:function(e,t){a(!0),l(Y.jsx(e,{open:!0,onDismiss:c,data:t}))}},children:[o&&s,n]})},exports.IdenityModelConfiguration=function(t){var n=t.path,r=t.modelRoute,o=e.useContext(Rm).dashbaordUrlPrefix;return Y.jsx(xM,{path:n,isEdit:!0,Component:function(e){return Y.jsx(CM,Z({},e,{baseApiRoute:o,apiRoute:"".concat(o,"/").concat(r),path:n}))},modelRoute:r})},exports.IdentityClient=Wm,exports.IdentityEdit=xM,exports.IdentityGrid=cA,exports.IdentityList=yA,exports.IdentityPage=function(e){var t=e.Component,r=e.LoadingSkelton,o=e.Actions,a=e.HeadingView,i=e.BreadcrumbsChildren,s=e.DefaultActions,l=e.BreadCrumbLinks;e.variant;var c=e.loading,u=e.data,d=e.taptitle,p=e.headingTitle,f=e.themeStretch,m=void 0!==f&&f;return Y.jsx(J,{title:d,children:Y.jsxs(n.Container,{maxWidth:!m&&"lg",children:[!c&&Y.jsx(ee,{heading:p,headingView:a&&Y.jsx(a,{record:u}),links:l?l(u):[],action:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[o&&Y.jsx(o,{record:u}),s&&Y.jsx(s,{})]}),children:u&&i&&Y.jsx(i,{data:u})}),c?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(r,{})},"skeleton"):t&&Y.jsx(t,{data:u})]})})},exports.IdentityPermissionPage=function(t){var n=this,o=t.isEdit,a=r.useParams().id,i=void 0===a?"":a,s=e.useContext(Rm).dashbaordUrlPrefix,l=e.useState([]),c=l[0],u=l[1],d=e.useState(void 0),p=d[0],f=d[1],m=e.useState(!0),h=m[0],g=m[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){var e,t,n,r;return q(this,(function(a){switch(a.label){case 0:return e=o?"?id=".concat(i):"",[4,Wm.get("".concat(s,"/permissions/all")+e)];case 1:return t=a.sent(),n=t.data.data.permissions,r=t.data.data.permissionGroup,u(n),f(r),g(!1),[2]}}))}))}),[]),Y.jsx(Y.Fragment,{children:o&&(h||0===c.length)||o&&!p?Y.jsx(Y.Fragment,{children:"... loading"}):Y.jsx(sO,{modelPermissions:c,fetchLoading:h,isEdit:o,permissionGroup:p})})},exports.IdentityRouter=function(t){var n=e.useContext(Ym).resources,o=e.useContext(qm),a=o.paths,i=o.root,s=o.home,l=e.useContext(_m).themeLayout,c=e.useContext(Rm).dashbaordUrlPrefix,u=[];if(n)for(var d in u=[],n)if("modelParents"!==d&&"appConfigurations"!==d){var p=n[d],f=p.properties.path,m=p.properties.modelName,h={path:f,children:[{element:Y.jsx(r.Navigate,{to:a[d].list,replace:!0}),index:!0},{path:"list",element:Y.jsx(yA,{apiRoute:"".concat(c,"/").concat(f),path:d,modelName:m},"".concat(f,".list"))},{path:"new",element:Y.jsx(xM,{modelRoute:"".concat(f),path:d,isEdit:!1})},{path:":id/edit",element:Y.jsx(xM,{modelRoute:"".concat(f),path:d,isEdit:!0})},{path:":id/show",element:Y.jsx(TA,{path:d,modelRoute:f},"".concat(d,".show"))}]};u.push(h)}return{path:i,children:[{path:"",element:n?Y.jsx(Xz,{Logo:"mini"===l?t.MiniLogo:t.Logo,children:Y.jsx(r.Outlet,{})}):Y.jsx(Y.Fragment,{}),children:K(K([],u,!0),[{path:"",element:n?Y.jsx(r.Navigate,{to:a[s].root}):Y.jsx(Y.Fragment,{})}],!1)}]}},exports.IdentityShow=TA,exports.NextPreviousButtons=DA,exports.PathsContext=qm,exports.PathsContextProvider=function(t){var n=t.root,r=t.children,o=t.home,a=e.useContext(Ym).resources,i={},s=function(e){if("modelParents"===e||"appConfigurations"===e)return"continue";var t=a[e].properties.path;i[e]={root:Km(n,"/"+t),list:Km(n,"/"+t+"/list"),edit:function(e){return Km(n,"/"+t+"/".concat(e,"/edit"))},show:function(e){return Km(n,"/"+t+"/".concat(e,"/show"))},new:Km(n,"/"+t+"/new")}};for(var l in a)s(l);return Y.jsx(qm.Provider,{value:{paths:i,root:n,home:o},children:r})},exports.ResourcesContext=Ym,exports.ResourcesContextProvider=function(t){var n,r=t.resourcesUrl,o=t.laodingLogo,a=t.logoSxProps,i=Vm(),s=i.requestState,l=i.get,c=i.revertToIdle;e.useEffect((function(){u()}),[]);var u=e.useCallback((function(){l({url:r})}),[]);return Y.jsx(Ym.Provider,{value:{resources:null===(n=s.data)||void 0===n?void 0:n.resources,getResources:u,state:s.state,clearResources:function(){c()}},children:s.state===exports.RequestState.LOADING?Y.jsx(Qm,{loadingLogo:o,logoSxProps:a}):t.children})},exports.ShowRecord=OA,exports.SnackAlertContext=eh,exports.SnackAlertProvider=function(t){var r,o=t.children,a=e.useState({state:!1}),i=a[0],s=a[1],l=function(e,t,n,r){setTimeout((function(){s({state:!1})}),r||4e3),s({state:!0,message:e,severity:t,position:n})};return Y.jsxs(eh.Provider,{value:{setAlert:l,setErrorAlert:function(e,t,n){l(e,"error",t,n)},setSuccessAlert:function(e,t,n){l(e,"success",t,n)}},children:[i.state&&Y.jsx(n.Snackbar,{open:i.state,anchorOrigin:null!==(r=i.position)&&void 0!==r?r:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){s({state:!1})},severity:i.severity,children:i.message})}),o]})},exports.State=Hm,exports.ThemeProvider=function(t){var n,r=t.children,o=t.themeColorPresets,a=t.themeContrast,i=t.themeDirection,s=t.themeMode,l=t.customColorPresets,c=function(e,t){return{palette:fE(e,t),shadows:AE(e),customShadows:jE(e,t)}}(null!=s?s:"light",l),u=l?{palette:{presetsColor:n=l},customShadows:{primary:"0 8px 16px 0 ".concat(Ar("".concat(null==n?void 0:n.main),.24))}}:function(e){var t=xB.find((function(t){return t.name===e}));return{palette:{primary:t},customShadows:{primary:"0 8px 16px 0 ".concat(Ar("".concat(null==t?void 0:t.main),.24))}}}(null!=o?o:"default"),d=function(e,t,n){return{theme:Z({},e&&"light"===t&&{palette:{background:{default:fE(t,n).grey[100]}}}),components:Z({},e&&{MuiCard:{styleOverrides:{root:{boxShadow:jE(t,n).z4}}}})}}("bold"===a,null!=s?s:"light",l),p=function(e){return{direction:e}}(null!=i?i:"ltr"),f=e.useMemo((function(){return{palette:fE("light",l),shadows:AE("light"),customShadows:jE("light",l),typography:xE,shape:{borderRadius:8}}}),[]),m=lo(e.useMemo((function(){return eE(f,p,c,u,d.theme)}),[f,p,c,u,d.theme]));return m.components=eE(yB(m),d.components),Y.jsx(vo,{theme:m,children:Y.jsxs(wB,{themeDirection:null!=i?i:"ltr",children:[Y.jsx(oE,{}),r]})})},exports.path=Km,exports.useApi=Vm,exports.useAppConfigurations=rh,exports.useCredentials=function(){return e.useContext($m)},exports.useDialogs=function(){return e.useContext(th)},exports.useNavData=Jm,exports.usePaths=ih,exports.useResources=oh,exports.useSnackAlert=ah;