@applica-software-guru/react-admin 1.4.189 → 1.4.192

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.
@@ -67,7 +67,7 @@ const theme2 = createTheme({ palette: {
67
67
  primary: { main: green[500] },
68
68
  } });`:Cs(12,v?` (${v})`:"",JSON.stringify(B.main)));return Wm(B,"light",O,r),Wm(B,"dark",x,r),B.contrastText||(B.contrastText=h(B.main)),B},m={dark:jd,light:zm};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Zr(z({common:z({},Oa),mode:t,primary:C({color:s,name:"primary"}),secondary:C({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:c,name:"error"}),warning:C({color:p,name:"warning"}),info:C({color:u,name:"info"}),success:C({color:A,name:"success"}),grey:Tj,contrastThreshold:n,getContrastText:h,augmentColor:C,tonalOffset:r},m[t]),o)}const Wj=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uj(e){return Math.round(e*1e5)/1e5}const Um={textTransform:"uppercase"},Ym='"Roboto", "Helvetica", "Arial", sans-serif';function Yj(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ym,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:A=16,allVariants:p,pxToRem:h}=n,C=Ne(n,Wj);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof A!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=o/14,I=h||(S=>`${S/A*m}rem`),B=(S,O,x,R,P)=>z({fontFamily:r,fontWeight:S,fontSize:I(O),lineHeight:x},r===Ym?{letterSpacing:`${Uj(R/O)}em`}:{},P,p),v={h1:B(s,96,1.167,-1.5),h2:B(s,60,1.2,-.5),h3:B(a,48,1.167,0),h4:B(a,34,1.235,.25),h5:B(a,24,1.334,0),h6:B(c,20,1.6,.15),subtitle1:B(a,16,1.75,.15),subtitle2:B(c,14,1.57,.1),body1:B(a,16,1.5,.15),body2:B(a,14,1.43,.15),button:B(c,14,1.75,.4,Um),caption:B(a,12,1.66,.4),overline:B(a,12,2.66,1,Um),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr(z({htmlFontSize:A,pxToRem:I,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u},v),C,{clone:!1})}const Gj=.2,Kj=.14,qj=.12;function Bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qj})`].join(",")}const Jj=["none",Bt(0,2,1,-1,0,1,1,0,0,1,3,0),Bt(0,3,1,-2,0,2,2,0,0,1,5,0),Bt(0,3,3,-2,0,3,4,0,0,1,8,0),Bt(0,2,4,-1,0,4,5,0,0,1,10,0),Bt(0,3,5,-1,0,5,8,0,0,1,14,0),Bt(0,3,5,-1,0,6,10,0,0,1,18,0),Bt(0,4,5,-2,0,7,10,1,0,2,16,1),Bt(0,5,5,-3,0,8,10,1,0,3,14,2),Bt(0,5,6,-3,0,9,12,1,0,3,16,2),Bt(0,6,6,-3,0,10,14,1,0,4,18,3),Bt(0,6,7,-4,0,11,15,1,0,4,20,3),Bt(0,7,8,-4,0,12,17,2,0,5,22,4),Bt(0,7,8,-4,0,13,19,2,0,5,24,4),Bt(0,7,9,-4,0,14,21,2,0,5,26,4),Bt(0,8,9,-5,0,15,22,2,0,6,28,5),Bt(0,8,10,-5,0,16,24,2,0,6,30,5),Bt(0,8,11,-5,0,17,26,2,0,6,32,5),Bt(0,9,11,-5,0,18,28,2,0,7,34,6),Bt(0,9,12,-6,0,19,29,2,0,7,36,6),Bt(0,10,13,-6,0,20,31,3,0,8,38,7),Bt(0,10,13,-6,0,21,33,3,0,8,40,7),Bt(0,10,14,-6,0,22,35,3,0,8,42,7),Bt(0,11,14,-7,0,23,36,3,0,9,44,8),Bt(0,11,15,-7,0,24,38,3,0,9,46,8)],Xj=Jj,Zj=["duration","easing","delay"],_j={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$j={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gm(e){return`${Math.round(e)}ms`}function eD(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function tD(e){const t=z({},_j,e.easing),n=z({},$j,e.duration);return z({getAutoHeightDuration:eD,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0}=s,A=Ne(s,Zj);if(process.env.NODE_ENV!=="production"){const p=C=>typeof C=="string",h=C=>!isNaN(parseFloat(C));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
69
69
  `)),Object.keys(A).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(A).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Gm(a)} ${c} ${typeof u=="string"?u:Gm(u)}`).join(",")}},e,{easing:t,duration:n})}const nD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},rD=nD,oD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,a=Ne(e,oD);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Cs(18));const c=zj(r),u=df(e);let A=Zr(u,{mixins:Qj(u.breakpoints,n),palette:c,shadows:Xj.slice(),typography:Yj(c,s),transitions:tD(o),zIndex:z({},rD)});if(A=Zr(A,a),A=t.reduce((p,h)=>Zr(p,h),A),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(C,m)=>{let I;for(I in C){const B=C[I];if(p.indexOf(I)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=Dt("",I);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
70
- `))}C[I]={}}}};Object.keys(A.components).forEach(C=>{const m=A.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&h(m,C)})}return A.unstable_sxConfig=z({},Qu,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return Af({sx:h,theme:this})},A}const iD=hf(),Cf=iD;function bt(){const e=z0(Cf);return process.env.NODE_ENV!=="production"&&M.useDebugValue(e),e[Ra]||e}function Ht({props:e,name:t}){return Cj({props:e,name:t,defaultTheme:Cf,themeId:Ra})}const mf=e=>bc(e)&&e!=="classes",sD=U0({themeId:Ra,defaultTheme:Cf,rootShouldForwardProp:mf}),Ae=sD,aD=["theme"];function J0(e){let{theme:t}=e,n=Ne(e,aD);const r=t[Ra];return g.jsx(Hc,z({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(J0.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const lD=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Km=lD,cD=Ae("span")(({arrow:e,theme:t})=>{const o=`solid 1px ${ze(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function uD(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const Ef=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=uD(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(cD,{arrow:n}),t]})};Ef.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const AD=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),dD=y.styled(Ef,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Bi({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=u=>{u.stopPropagation(),u.preventDefault(),r(u.currentTarget),o.current=u.currentTarget},a=Q.useCallback(u=>{u.stopPropagation(),u.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(u=>Q.isValidElement(u)).length)===0)return null;const c=Q.useCallback(u=>{var A;u.stopPropagation(),u.preventDefault(),r(null),typeof((A=u.currentTarget)==null?void 0:A.onClick)=="function"&&u.currentTarget.onClick(u)},[]);return g.jsxs(AD,{children:[g.jsx(y.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:s,color:n?"inherit":"default",children:e?g.jsx(rr.MoreHoriz,{}):g.jsx(rr.MoreVert,{})}),g.jsx(dD,{open:n,onClose:a,arrow:"right-top",children:Q.Children.map(t,(u,A)=>Q.isValidElement(u)&&g.jsx(y.MenuItem,{onClick:c,children:Q.cloneElement(u)},A))})]})}function gD(e){return Dt("MuiPaper",e)}Vt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fD=["className","component","elevation","square","variant"],pD=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return nn(s,gD,o)},hD=Ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Km(t.elevation))}, ${ze("#fff",Km(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),X0=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,A=Ne(r,fD),p=z({},r,{component:s,elevation:a,square:c,variant:u}),h=pD(p);return process.env.NODE_ENV!=="production"&&bt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
70
+ `))}C[I]={}}}};Object.keys(A.components).forEach(C=>{const m=A.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&h(m,C)})}return A.unstable_sxConfig=z({},Qu,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return Af({sx:h,theme:this})},A}const iD=hf(),Cf=iD;function bt(){const e=z0(Cf);return process.env.NODE_ENV!=="production"&&M.useDebugValue(e),e[Ra]||e}function Ht({props:e,name:t}){return Cj({props:e,name:t,defaultTheme:Cf,themeId:Ra})}const mf=e=>bc(e)&&e!=="classes",sD=U0({themeId:Ra,defaultTheme:Cf,rootShouldForwardProp:mf}),Ae=sD,aD=["theme"];function J0(e){let{theme:t}=e,n=Ne(e,aD);const r=t[Ra];return g.jsx(Hc,z({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(J0.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const lD=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Km=lD,cD=Ae("span")(({arrow:e,theme:t})=>{const o=`solid 1px ${ze(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function uD(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const Ef=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=uD(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(cD,{arrow:n}),t]})};Ef.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const AD=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),dD=y.styled(Ef,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Bi({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=A=>{A.stopPropagation(),A.preventDefault(),r(A.currentTarget),o.current=A.currentTarget},a=Q.useCallback(A=>{A.stopPropagation(),A.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(A=>Q.isValidElement(A)).length)===0)return null;const c=Q.useCallback(A=>{var p;A.stopPropagation(),A.preventDefault(),r(null),typeof((p=A.currentTarget)==null?void 0:p.onClick)=="function"&&A.currentTarget.onClick(A)},[]),u={width:"100%",justifyContent:"flex-start"};return g.jsxs(AD,{children:[g.jsx(y.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:s,color:n?"inherit":"default",children:e?g.jsx(rr.MoreHoriz,{}):g.jsx(rr.MoreVert,{})}),g.jsx(dD,{open:n,onClose:a,arrow:"right-top",children:Q.Children.map(t,(A,p)=>Q.isValidElement(A)&&g.jsx(y.MenuItem,{onClick:c,children:Q.cloneElement(A,{style:{...u}})},p))})]})}function gD(e){return Dt("MuiPaper",e)}Vt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fD=["className","component","elevation","square","variant"],pD=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return nn(s,gD,o)},hD=Ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Km(t.elevation))}, ${ze("#fff",Km(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),X0=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,A=Ne(r,fD),p=z({},r,{component:s,elevation:a,square:c,variant:u}),h=pD(p);return process.env.NODE_ENV!=="production"&&bt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
71
71
  `)),g.jsx(hD,z({as:s,ownerState:p,className:Ge(h.root,o),ref:n},A))});process.env.NODE_ENV!=="production"&&(X0.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,elevation:Or(Ia,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["elevation","outlined"]),f.string])});const If=X0;function CD(e){return Dt("MuiAppBar",e)}Vt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const mD=["className","color","enableColorOnDark","position"],ED=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return nn(o,CD,r)},oc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ID=Ae(If,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],t[`color${Pe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&z({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oc(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:oc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Z0=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:a=!1,position:c="fixed"}=r,u=Ne(r,mD),A=z({},r,{color:s,position:c,enableColorOnDark:a}),p=ED(A);return g.jsx(ID,z({square:!0,component:"header",ownerState:A,elevation:4,className:Ge(p.root,o,c==="fixed"&&"mui-fixed"),ref:n},u))});process.env.NODE_ENV!=="production"&&(Z0.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["default","inherit","primary","secondary","transparent"]),f.string]),enableColorOnDark:f.bool,position:f.oneOf(["absolute","fixed","relative","static","sticky"]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const BD=Z0,_0={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},Bf=Q.createContext(_0),vf=({children:e})=>{const[t,n]=Q.useState(_0),r=(a,c)=>{n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()},o=(a,c)=>{n(u=>({...u,openDialogs:u.openDialogs.filter(A=>A!==a)})),c&&c()},s=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return g.jsx(Bf.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:s},children:e})};vf.propTypes={children:f.node};const vi=()=>Q.useContext(Bf);var zc={exports:{}};/**
72
72
  * @license
73
73
  * Lodash <https://lodash.com/>
@@ -75,9 +75,9 @@ const theme2 = createTheme({ palette: {
75
75
  * Released under MIT license <https://lodash.com/license>
76
76
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
77
77
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
78
- */zc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",A=500,p="__lodash_placeholder__",h=1,C=2,m=4,I=1,B=2,v=1,S=2,O=4,x=8,R=16,P=32,k=64,F=128,G=256,K=512,$=30,Y="...",ie=800,se=16,X=1,Z=2,H=3,J=1/0,L=9007199254740991,_=17976931348623157e292,V=0/0,q=4294967295,le=q-1,pe=q>>>1,de=[["ary",F],["bind",v],["bindKey",S],["curry",x],["curryRight",R],["flip",K],["partial",P],["partialRight",k],["rearg",G]],ge="[object Arguments]",he="[object Array]",Be="[object AsyncFunction]",Ee="[object Boolean]",Ce="[object Date]",Ie="[object DOMException]",xe="[object Error]",ue="[object Function]",qe="[object GeneratorFunction]",fe="[object Map]",st="[object Number]",zt="[object Null]",ft="[object Object]",yt="[object Promise]",Ir="[object Proxy]",Et="[object RegExp]",pt="[object Set]",ct="[object String]",kt="[object Symbol]",Ft="[object Undefined]",Se="[object WeakMap]",ke="[object WeakSet]",we="[object ArrayBuffer]",We="[object DataView]",Te="[object Float32Array]",ut="[object Float64Array]",Ue="[object Int8Array]",Qe="[object Int16Array]",Lt="[object Int32Array]",Br="[object Uint8Array]",cr="[object Uint8ClampedArray]",Vo="[object Uint16Array]",Si="[object Uint32Array]",sl=/\b__p \+= '';/g,oA=/\b(__p \+=) '' \+/g,iA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,al=/&(?:amp|lt|gt|quot|#39);/g,Ls=/[&<>"']/g,ll=RegExp(al.source),cl=RegExp(Ls.source),ul=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ns=/<%=([\s\S]+?)%>/g,sA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aA=/^\w*$/,lA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ho=/[\\^$.*+?()[\]{}|]/g,cA=RegExp(Ho.source),jr=/^\s+/,Vs=/\s/,An=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zo=/\{\n\/\* \[wrapped with (.+)\] \*/,uA=/,? & /,Wo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hs=/[()=,{}\[\]\/\s]/,dl=/\\(\\)?/g,gl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zs=/\w*$/,fl=/^[-+]0x[0-9a-f]+$/i,AA=/^0b[01]+$/i,dA=/^\[object .+?Constructor\]$/,gA=/^0o[0-7]+$/i,fA=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,n1=/['\n\r\u2028\u2029\\]/g,pl="\\ud800-\\udfff",r1="\\u0300-\\u036f",o1="\\ufe20-\\ufe2f",i1="\\u20d0-\\u20ff",Jp=r1+o1+i1,Xp="\\u2700-\\u27bf",Zp="a-z\\xdf-\\xf6\\xf8-\\xff",s1="\\xac\\xb1\\xd7\\xf7",a1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l1="\\u2000-\\u206f",c1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_p="A-Z\\xc0-\\xd6\\xd8-\\xde",$p="\\ufe0e\\ufe0f",eh=s1+a1+l1+c1,pA="['’]",u1="["+pl+"]",th="["+eh+"]",hl="["+Jp+"]",nh="\\d+",A1="["+Xp+"]",rh="["+Zp+"]",oh="[^"+pl+eh+nh+Xp+Zp+_p+"]",hA="\\ud83c[\\udffb-\\udfff]",d1="(?:"+hl+"|"+hA+")",ih="[^"+pl+"]",CA="(?:\\ud83c[\\udde6-\\uddff]){2}",mA="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+_p+"]",sh="\\u200d",ah="(?:"+rh+"|"+oh+")",g1="(?:"+Pi+"|"+oh+")",lh="(?:"+pA+"(?:d|ll|m|re|s|t|ve))?",ch="(?:"+pA+"(?:D|LL|M|RE|S|T|VE))?",uh=d1+"?",Ah="["+$p+"]?",f1="(?:"+sh+"(?:"+[ih,CA,mA].join("|")+")"+Ah+uh+")*",p1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dh=Ah+uh+f1,C1="(?:"+[A1,CA,mA].join("|")+")"+dh,m1="(?:"+[ih+hl+"?",hl,CA,mA,u1].join("|")+")",E1=RegExp(pA,"g"),I1=RegExp(hl,"g"),EA=RegExp(hA+"(?="+hA+")|"+m1+dh,"g"),B1=RegExp([Pi+"?"+rh+"+"+lh+"(?="+[th,Pi,"$"].join("|")+")",g1+"+"+ch+"(?="+[th,Pi+ah,"$"].join("|")+")",Pi+"?"+ah+"+"+lh,Pi+"+"+ch,h1,p1,nh,C1].join("|"),"g"),v1=RegExp("["+sh+pl+Jp+$p+"]"),b1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Q1=-1,ht={};ht[Te]=ht[ut]=ht[Ue]=ht[Qe]=ht[Lt]=ht[Br]=ht[cr]=ht[Vo]=ht[Si]=!0,ht[ge]=ht[he]=ht[we]=ht[Ee]=ht[We]=ht[Ce]=ht[xe]=ht[ue]=ht[fe]=ht[st]=ht[ft]=ht[Et]=ht[pt]=ht[ct]=ht[Se]=!1;var dt={};dt[ge]=dt[he]=dt[we]=dt[We]=dt[Ee]=dt[Ce]=dt[Te]=dt[ut]=dt[Ue]=dt[Qe]=dt[Lt]=dt[fe]=dt[st]=dt[ft]=dt[Et]=dt[pt]=dt[ct]=dt[kt]=dt[Br]=dt[cr]=dt[Vo]=dt[Si]=!0,dt[xe]=dt[ue]=dt[Se]=!1;var x1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"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",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},S1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},P1=parseFloat,R1=parseInt,gh=typeof In=="object"&&In&&In.Object===Object&&In,O1=typeof self=="object"&&self&&self.Object===Object&&self,Jt=gh||O1||Function("return this")(),IA=t&&!t.nodeType&&t,Uo=IA&&!0&&e&&!e.nodeType&&e,fh=Uo&&Uo.exports===IA,BA=fh&&gh.process,Hn=function(){try{var W=Uo&&Uo.require&&Uo.require("util").types;return W||BA&&BA.binding&&BA.binding("util")}catch{}}(),ph=Hn&&Hn.isArrayBuffer,hh=Hn&&Hn.isDate,Ch=Hn&&Hn.isMap,mh=Hn&&Hn.isRegExp,Eh=Hn&&Hn.isSet,Ih=Hn&&Hn.isTypedArray;function xn(W,ne,ee){switch(ee.length){case 0:return W.call(ne);case 1:return W.call(ne,ee[0]);case 2:return W.call(ne,ee[0],ee[1]);case 3:return W.call(ne,ee[0],ee[1],ee[2])}return W.apply(ne,ee)}function j1(W,ne,ee,ve){for(var Fe=-1,et=W==null?0:W.length;++Fe<et;){var Wt=W[Fe];ne(ve,Wt,ee(Wt),W)}return ve}function zn(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve&&ne(W[ee],ee,W)!==!1;);return W}function D1(W,ne){for(var ee=W==null?0:W.length;ee--&&ne(W[ee],ee,W)!==!1;);return W}function Bh(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve;)if(!ne(W[ee],ee,W))return!1;return!0}function io(W,ne){for(var ee=-1,ve=W==null?0:W.length,Fe=0,et=[];++ee<ve;){var Wt=W[ee];ne(Wt,ee,W)&&(et[Fe++]=Wt)}return et}function Cl(W,ne){var ee=W==null?0:W.length;return!!ee&&Ri(W,ne,0)>-1}function vA(W,ne,ee){for(var ve=-1,Fe=W==null?0:W.length;++ve<Fe;)if(ee(ne,W[ve]))return!0;return!1}function It(W,ne){for(var ee=-1,ve=W==null?0:W.length,Fe=Array(ve);++ee<ve;)Fe[ee]=ne(W[ee],ee,W);return Fe}function so(W,ne){for(var ee=-1,ve=ne.length,Fe=W.length;++ee<ve;)W[Fe+ee]=ne[ee];return W}function bA(W,ne,ee,ve){var Fe=-1,et=W==null?0:W.length;for(ve&&et&&(ee=W[++Fe]);++Fe<et;)ee=ne(ee,W[Fe],Fe,W);return ee}function M1(W,ne,ee,ve){var Fe=W==null?0:W.length;for(ve&&Fe&&(ee=W[--Fe]);Fe--;)ee=ne(ee,W[Fe],Fe,W);return ee}function yA(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve;)if(ne(W[ee],ee,W))return!0;return!1}var k1=QA("length");function F1(W){return W.split("")}function L1(W){return W.match(Wo)||[]}function vh(W,ne,ee){var ve;return ee(W,function(Fe,et,Wt){if(ne(Fe,et,Wt))return ve=et,!1}),ve}function ml(W,ne,ee,ve){for(var Fe=W.length,et=ee+(ve?1:-1);ve?et--:++et<Fe;)if(ne(W[et],et,W))return et;return-1}function Ri(W,ne,ee){return ne===ne?X1(W,ne,ee):ml(W,bh,ee)}function N1(W,ne,ee,ve){for(var Fe=ee-1,et=W.length;++Fe<et;)if(ve(W[Fe],ne))return Fe;return-1}function bh(W){return W!==W}function yh(W,ne){var ee=W==null?0:W.length;return ee?wA(W,ne)/ee:V}function QA(W){return function(ne){return ne==null?n:ne[W]}}function xA(W){return function(ne){return W==null?n:W[ne]}}function Qh(W,ne,ee,ve,Fe){return Fe(W,function(et,Wt,At){ee=ve?(ve=!1,et):ne(ee,et,Wt,At)}),ee}function V1(W,ne){var ee=W.length;for(W.sort(ne);ee--;)W[ee]=W[ee].value;return W}function wA(W,ne){for(var ee,ve=-1,Fe=W.length;++ve<Fe;){var et=ne(W[ve]);et!==n&&(ee=ee===n?et:ee+et)}return ee}function TA(W,ne){for(var ee=-1,ve=Array(W);++ee<W;)ve[ee]=ne(ee);return ve}function H1(W,ne){return It(ne,function(ee){return[ee,W[ee]]})}function xh(W){return W&&W.slice(0,Ph(W)+1).replace(jr,"")}function wn(W){return function(ne){return W(ne)}}function SA(W,ne){return It(ne,function(ee){return W[ee]})}function Ws(W,ne){return W.has(ne)}function wh(W,ne){for(var ee=-1,ve=W.length;++ee<ve&&Ri(ne,W[ee],0)>-1;);return ee}function Th(W,ne){for(var ee=W.length;ee--&&Ri(ne,W[ee],0)>-1;);return ee}function z1(W,ne){for(var ee=W.length,ve=0;ee--;)W[ee]===ne&&++ve;return ve}var W1=xA(x1),U1=xA(w1);function Y1(W){return"\\"+S1[W]}function G1(W,ne){return W==null?n:W[ne]}function Oi(W){return v1.test(W)}function K1(W){return b1.test(W)}function q1(W){for(var ne,ee=[];!(ne=W.next()).done;)ee.push(ne.value);return ee}function PA(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve,Fe){ee[++ne]=[Fe,ve]}),ee}function Sh(W,ne){return function(ee){return W(ne(ee))}}function ao(W,ne){for(var ee=-1,ve=W.length,Fe=0,et=[];++ee<ve;){var Wt=W[ee];(Wt===ne||Wt===p)&&(W[ee]=p,et[Fe++]=ee)}return et}function El(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve){ee[++ne]=ve}),ee}function J1(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve){ee[++ne]=[ve,ve]}),ee}function X1(W,ne,ee){for(var ve=ee-1,Fe=W.length;++ve<Fe;)if(W[ve]===ne)return ve;return-1}function Z1(W,ne,ee){for(var ve=ee+1;ve--;)if(W[ve]===ne)return ve;return ve}function ji(W){return Oi(W)?$1(W):k1(W)}function ur(W){return Oi(W)?ew(W):F1(W)}function Ph(W){for(var ne=W.length;ne--&&Vs.test(W.charAt(ne)););return ne}var _1=xA(T1);function $1(W){for(var ne=EA.lastIndex=0;EA.test(W);)++ne;return ne}function ew(W){return W.match(EA)||[]}function tw(W){return W.match(B1)||[]}var nw=function W(ne){ne=ne==null?Jt:Di.defaults(Jt.Object(),ne,Di.pick(Jt,y1));var ee=ne.Array,ve=ne.Date,Fe=ne.Error,et=ne.Function,Wt=ne.Math,At=ne.Object,RA=ne.RegExp,rw=ne.String,Wn=ne.TypeError,Il=ee.prototype,ow=et.prototype,Mi=At.prototype,Bl=ne["__core-js_shared__"],vl=ow.toString,at=Mi.hasOwnProperty,iw=0,Rh=function(){var i=/[^.]+$/.exec(Bl&&Bl.keys&&Bl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),bl=Mi.toString,sw=vl.call(At),aw=Jt._,lw=RA("^"+vl.call(at).replace(Ho,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yl=fh?ne.Buffer:n,lo=ne.Symbol,Ql=ne.Uint8Array,Oh=yl?yl.allocUnsafe:n,xl=Sh(At.getPrototypeOf,At),jh=At.create,Dh=Mi.propertyIsEnumerable,wl=Il.splice,Mh=lo?lo.isConcatSpreadable:n,Us=lo?lo.iterator:n,Yo=lo?lo.toStringTag:n,Tl=function(){try{var i=Xo(At,"defineProperty");return i({},"",{}),i}catch{}}(),cw=ne.clearTimeout!==Jt.clearTimeout&&ne.clearTimeout,uw=ve&&ve.now!==Jt.Date.now&&ve.now,Aw=ne.setTimeout!==Jt.setTimeout&&ne.setTimeout,Sl=Wt.ceil,Pl=Wt.floor,OA=At.getOwnPropertySymbols,dw=yl?yl.isBuffer:n,kh=ne.isFinite,gw=Il.join,fw=Sh(At.keys,At),Ut=Wt.max,Zt=Wt.min,pw=ve.now,hw=ne.parseInt,Fh=Wt.random,Cw=Il.reverse,jA=Xo(ne,"DataView"),Ys=Xo(ne,"Map"),DA=Xo(ne,"Promise"),ki=Xo(ne,"Set"),Gs=Xo(ne,"WeakMap"),Ks=Xo(At,"create"),Rl=Gs&&new Gs,Fi={},mw=Zo(jA),Ew=Zo(Ys),Iw=Zo(DA),Bw=Zo(ki),vw=Zo(Gs),Ol=lo?lo.prototype:n,qs=Ol?Ol.valueOf:n,Lh=Ol?Ol.toString:n;function w(i){if(wt(i)&&!Le(i)&&!(i instanceof Xe)){if(i instanceof Un)return i;if(at.call(i,"__wrapped__"))return NC(i)}return new Un(i)}var Li=function(){function i(){}return function(l){if(!Qt(l))return{};if(jh)return jh(l);i.prototype=l;var d=new i;return i.prototype=n,d}}();function jl(){}function Un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}w.templateSettings={escape:ul,evaluate:Al,interpolate:Ns,variable:"",imports:{_:w}},w.prototype=jl.prototype,w.prototype.constructor=w,Un.prototype=Li(jl.prototype),Un.prototype.constructor=Un;function Xe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function bw(){var i=new Xe(this.__wrapped__);return i.__actions__=dn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=dn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=dn(this.__views__),i}function yw(){if(this.__filtered__){var i=new Xe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Qw(){var i=this.__wrapped__.value(),l=this.__dir__,d=Le(i),E=l<0,b=d?i.length:0,T=FT(0,b,this.__views__),D=T.start,N=T.end,U=N-D,re=E?N:D-1,oe=this.__iteratees__,ae=oe.length,me=0,ye=Zt(U,this.__takeCount__);if(!d||!E&&b==U&&ye==U)return lC(i,this.__actions__);var Oe=[];e:for(;U--&&me<ye;){re+=l;for(var Ye=-1,je=i[re];++Ye<ae;){var Je=oe[Ye],_e=Je.iteratee,Pn=Je.type,ln=_e(je);if(Pn==Z)je=ln;else if(!ln){if(Pn==X)continue e;break e}}Oe[me++]=je}return Oe}Xe.prototype=Li(jl.prototype),Xe.prototype.constructor=Xe;function Go(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function xw(){this.__data__=Ks?Ks(null):{},this.size=0}function ww(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Tw(i){var l=this.__data__;if(Ks){var d=l[i];return d===u?n:d}return at.call(l,i)?l[i]:n}function Sw(i){var l=this.__data__;return Ks?l[i]!==n:at.call(l,i)}function Pw(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Ks&&l===n?u:l,this}Go.prototype.clear=xw,Go.prototype.delete=ww,Go.prototype.get=Tw,Go.prototype.has=Sw,Go.prototype.set=Pw;function Dr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function Rw(){this.__data__=[],this.size=0}function Ow(i){var l=this.__data__,d=Dl(l,i);if(d<0)return!1;var E=l.length-1;return d==E?l.pop():wl.call(l,d,1),--this.size,!0}function jw(i){var l=this.__data__,d=Dl(l,i);return d<0?n:l[d][1]}function Dw(i){return Dl(this.__data__,i)>-1}function Mw(i,l){var d=this.__data__,E=Dl(d,i);return E<0?(++this.size,d.push([i,l])):d[E][1]=l,this}Dr.prototype.clear=Rw,Dr.prototype.delete=Ow,Dr.prototype.get=jw,Dr.prototype.has=Dw,Dr.prototype.set=Mw;function Mr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function kw(){this.size=0,this.__data__={hash:new Go,map:new(Ys||Dr),string:new Go}}function Fw(i){var l=Gl(this,i).delete(i);return this.size-=l?1:0,l}function Lw(i){return Gl(this,i).get(i)}function Nw(i){return Gl(this,i).has(i)}function Vw(i,l){var d=Gl(this,i),E=d.size;return d.set(i,l),this.size+=d.size==E?0:1,this}Mr.prototype.clear=kw,Mr.prototype.delete=Fw,Mr.prototype.get=Lw,Mr.prototype.has=Nw,Mr.prototype.set=Vw;function Ko(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new Mr;++l<d;)this.add(i[l])}function Hw(i){return this.__data__.set(i,u),this}function zw(i){return this.__data__.has(i)}Ko.prototype.add=Ko.prototype.push=Hw,Ko.prototype.has=zw;function Ar(i){var l=this.__data__=new Dr(i);this.size=l.size}function Ww(){this.__data__=new Dr,this.size=0}function Uw(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Yw(i){return this.__data__.get(i)}function Gw(i){return this.__data__.has(i)}function Kw(i,l){var d=this.__data__;if(d instanceof Dr){var E=d.__data__;if(!Ys||E.length<o-1)return E.push([i,l]),this.size=++d.size,this;d=this.__data__=new Mr(E)}return d.set(i,l),this.size=d.size,this}Ar.prototype.clear=Ww,Ar.prototype.delete=Uw,Ar.prototype.get=Yw,Ar.prototype.has=Gw,Ar.prototype.set=Kw;function Nh(i,l){var d=Le(i),E=!d&&_o(i),b=!d&&!E&&fo(i),T=!d&&!E&&!b&&zi(i),D=d||E||b||T,N=D?TA(i.length,rw):[],U=N.length;for(var re in i)(l||at.call(i,re))&&!(D&&(re=="length"||b&&(re=="offset"||re=="parent")||T&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Nr(re,U)))&&N.push(re);return N}function Vh(i){var l=i.length;return l?i[YA(0,l-1)]:n}function qw(i,l){return Kl(dn(i),qo(l,0,i.length))}function Jw(i){return Kl(dn(i))}function MA(i,l,d){(d!==n&&!dr(i[l],d)||d===n&&!(l in i))&&kr(i,l,d)}function Js(i,l,d){var E=i[l];(!(at.call(i,l)&&dr(E,d))||d===n&&!(l in i))&&kr(i,l,d)}function Dl(i,l){for(var d=i.length;d--;)if(dr(i[d][0],l))return d;return-1}function Xw(i,l,d,E){return co(i,function(b,T,D){l(E,b,d(b),D)}),E}function Hh(i,l){return i&&br(l,Gt(l),i)}function Zw(i,l){return i&&br(l,fn(l),i)}function kr(i,l,d){l=="__proto__"&&Tl?Tl(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function kA(i,l){for(var d=-1,E=l.length,b=ee(E),T=i==null;++d<E;)b[d]=T?n:hd(i,l[d]);return b}function qo(i,l,d){return i===i&&(d!==n&&(i=i<=d?i:d),l!==n&&(i=i>=l?i:l)),i}function Yn(i,l,d,E,b,T){var D,N=l&h,U=l&C,re=l&m;if(d&&(D=b?d(i,E,b,T):d(i)),D!==n)return D;if(!Qt(i))return i;var oe=Le(i);if(oe){if(D=NT(i),!N)return dn(i,D)}else{var ae=_t(i),me=ae==ue||ae==qe;if(fo(i))return AC(i,N);if(ae==ft||ae==ge||me&&!b){if(D=U||me?{}:PC(i),!N)return U?TT(i,Zw(D,i)):wT(i,Hh(D,i))}else{if(!dt[ae])return b?i:{};D=VT(i,ae,N)}}T||(T=new Ar);var ye=T.get(i);if(ye)return ye;T.set(i,D),im(i)?i.forEach(function(je){D.add(Yn(je,l,d,je,i,T))}):rm(i)&&i.forEach(function(je,Je){D.set(Je,Yn(je,l,d,Je,i,T))});var Oe=re?U?nd:td:U?fn:Gt,Ye=oe?n:Oe(i);return zn(Ye||i,function(je,Je){Ye&&(Je=je,je=i[Je]),Js(D,Je,Yn(je,l,d,Je,i,T))}),D}function _w(i){var l=Gt(i);return function(d){return zh(d,i,l)}}function zh(i,l,d){var E=d.length;if(i==null)return!E;for(i=At(i);E--;){var b=d[E],T=l[b],D=i[b];if(D===n&&!(b in i)||!T(D))return!1}return!0}function Wh(i,l,d){if(typeof i!="function")throw new Wn(a);return na(function(){i.apply(n,d)},l)}function Xs(i,l,d,E){var b=-1,T=Cl,D=!0,N=i.length,U=[],re=l.length;if(!N)return U;d&&(l=It(l,wn(d))),E?(T=vA,D=!1):l.length>=o&&(T=Ws,D=!1,l=new Ko(l));e:for(;++b<N;){var oe=i[b],ae=d==null?oe:d(oe);if(oe=E||oe!==0?oe:0,D&&ae===ae){for(var me=re;me--;)if(l[me]===ae)continue e;U.push(oe)}else T(l,ae,E)||U.push(oe)}return U}var co=hC(vr),Uh=hC(LA,!0);function $w(i,l){var d=!0;return co(i,function(E,b,T){return d=!!l(E,b,T),d}),d}function Ml(i,l,d){for(var E=-1,b=i.length;++E<b;){var T=i[E],D=l(T);if(D!=null&&(N===n?D===D&&!Sn(D):d(D,N)))var N=D,U=T}return U}function eT(i,l,d,E){var b=i.length;for(d=He(d),d<0&&(d=-d>b?0:b+d),E=E===n||E>b?b:He(E),E<0&&(E+=b),E=d>E?0:am(E);d<E;)i[d++]=l;return i}function Yh(i,l){var d=[];return co(i,function(E,b,T){l(E,b,T)&&d.push(E)}),d}function Xt(i,l,d,E,b){var T=-1,D=i.length;for(d||(d=zT),b||(b=[]);++T<D;){var N=i[T];l>0&&d(N)?l>1?Xt(N,l-1,d,E,b):so(b,N):E||(b[b.length]=N)}return b}var FA=CC(),Gh=CC(!0);function vr(i,l){return i&&FA(i,l,Gt)}function LA(i,l){return i&&Gh(i,l,Gt)}function kl(i,l){return io(l,function(d){return Vr(i[d])})}function Jo(i,l){l=Ao(l,i);for(var d=0,E=l.length;i!=null&&d<E;)i=i[yr(l[d++])];return d&&d==E?i:n}function Kh(i,l,d){var E=l(i);return Le(i)?E:so(E,d(i))}function sn(i){return i==null?i===n?Ft:zt:Yo&&Yo in At(i)?kT(i):JT(i)}function NA(i,l){return i>l}function tT(i,l){return i!=null&&at.call(i,l)}function nT(i,l){return i!=null&&l in At(i)}function rT(i,l,d){return i>=Zt(l,d)&&i<Ut(l,d)}function VA(i,l,d){for(var E=d?vA:Cl,b=i[0].length,T=i.length,D=T,N=ee(T),U=1/0,re=[];D--;){var oe=i[D];D&&l&&(oe=It(oe,wn(l))),U=Zt(oe.length,U),N[D]=!d&&(l||b>=120&&oe.length>=120)?new Ko(D&&oe):n}oe=i[0];var ae=-1,me=N[0];e:for(;++ae<b&&re.length<U;){var ye=oe[ae],Oe=l?l(ye):ye;if(ye=d||ye!==0?ye:0,!(me?Ws(me,Oe):E(re,Oe,d))){for(D=T;--D;){var Ye=N[D];if(!(Ye?Ws(Ye,Oe):E(i[D],Oe,d)))continue e}me&&me.push(Oe),re.push(ye)}}return re}function oT(i,l,d,E){return vr(i,function(b,T,D){l(E,d(b),T,D)}),E}function Zs(i,l,d){l=Ao(l,i),i=DC(i,l);var E=i==null?i:i[yr(Kn(l))];return E==null?n:xn(E,i,d)}function qh(i){return wt(i)&&sn(i)==ge}function iT(i){return wt(i)&&sn(i)==we}function sT(i){return wt(i)&&sn(i)==Ce}function _s(i,l,d,E,b){return i===l?!0:i==null||l==null||!wt(i)&&!wt(l)?i!==i&&l!==l:aT(i,l,d,E,_s,b)}function aT(i,l,d,E,b,T){var D=Le(i),N=Le(l),U=D?he:_t(i),re=N?he:_t(l);U=U==ge?ft:U,re=re==ge?ft:re;var oe=U==ft,ae=re==ft,me=U==re;if(me&&fo(i)){if(!fo(l))return!1;D=!0,oe=!1}if(me&&!oe)return T||(T=new Ar),D||zi(i)?wC(i,l,d,E,b,T):DT(i,l,U,d,E,b,T);if(!(d&I)){var ye=oe&&at.call(i,"__wrapped__"),Oe=ae&&at.call(l,"__wrapped__");if(ye||Oe){var Ye=ye?i.value():i,je=Oe?l.value():l;return T||(T=new Ar),b(Ye,je,d,E,T)}}return me?(T||(T=new Ar),MT(i,l,d,E,b,T)):!1}function lT(i){return wt(i)&&_t(i)==fe}function HA(i,l,d,E){var b=d.length,T=b,D=!E;if(i==null)return!T;for(i=At(i);b--;){var N=d[b];if(D&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++b<T;){N=d[b];var U=N[0],re=i[U],oe=N[1];if(D&&N[2]){if(re===n&&!(U in i))return!1}else{var ae=new Ar;if(E)var me=E(re,oe,U,i,l,ae);if(!(me===n?_s(oe,re,I|B,E,ae):me))return!1}}return!0}function Jh(i){if(!Qt(i)||UT(i))return!1;var l=Vr(i)?lw:dA;return l.test(Zo(i))}function cT(i){return wt(i)&&sn(i)==Et}function uT(i){return wt(i)&&_t(i)==pt}function AT(i){return wt(i)&&$l(i.length)&&!!ht[sn(i)]}function Xh(i){return typeof i=="function"?i:i==null?pn:typeof i=="object"?Le(i)?$h(i[0],i[1]):_h(i):mm(i)}function zA(i){if(!ta(i))return fw(i);var l=[];for(var d in At(i))at.call(i,d)&&d!="constructor"&&l.push(d);return l}function dT(i){if(!Qt(i))return qT(i);var l=ta(i),d=[];for(var E in i)E=="constructor"&&(l||!at.call(i,E))||d.push(E);return d}function WA(i,l){return i<l}function Zh(i,l){var d=-1,E=gn(i)?ee(i.length):[];return co(i,function(b,T,D){E[++d]=l(b,T,D)}),E}function _h(i){var l=od(i);return l.length==1&&l[0][2]?OC(l[0][0],l[0][1]):function(d){return d===i||HA(d,i,l)}}function $h(i,l){return sd(i)&&RC(l)?OC(yr(i),l):function(d){var E=hd(d,i);return E===n&&E===l?Cd(d,i):_s(l,E,I|B)}}function Fl(i,l,d,E,b){i!==l&&FA(l,function(T,D){if(b||(b=new Ar),Qt(T))gT(i,l,D,d,Fl,E,b);else{var N=E?E(ld(i,D),T,D+"",i,l,b):n;N===n&&(N=T),MA(i,D,N)}},fn)}function gT(i,l,d,E,b,T,D){var N=ld(i,d),U=ld(l,d),re=D.get(U);if(re){MA(i,d,re);return}var oe=T?T(N,U,d+"",i,l,D):n,ae=oe===n;if(ae){var me=Le(U),ye=!me&&fo(U),Oe=!me&&!ye&&zi(U);oe=U,me||ye||Oe?Le(N)?oe=N:Ot(N)?oe=dn(N):ye?(ae=!1,oe=AC(U,!0)):Oe?(ae=!1,oe=dC(U,!0)):oe=[]:ra(U)||_o(U)?(oe=N,_o(N)?oe=lm(N):(!Qt(N)||Vr(N))&&(oe=PC(U))):ae=!1}ae&&(D.set(U,oe),b(oe,U,E,T,D),D.delete(U)),MA(i,d,oe)}function eC(i,l){var d=i.length;if(d)return l+=l<0?d:0,Nr(l,d)?i[l]:n}function tC(i,l,d){l.length?l=It(l,function(T){return Le(T)?function(D){return Jo(D,T.length===1?T[0]:T)}:T}):l=[pn];var E=-1;l=It(l,wn(Re()));var b=Zh(i,function(T,D,N){var U=It(l,function(re){return re(T)});return{criteria:U,index:++E,value:T}});return V1(b,function(T,D){return xT(T,D,d)})}function fT(i,l){return nC(i,l,function(d,E){return Cd(i,E)})}function nC(i,l,d){for(var E=-1,b=l.length,T={};++E<b;){var D=l[E],N=Jo(i,D);d(N,D)&&$s(T,Ao(D,i),N)}return T}function pT(i){return function(l){return Jo(l,i)}}function UA(i,l,d,E){var b=E?N1:Ri,T=-1,D=l.length,N=i;for(i===l&&(l=dn(l)),d&&(N=It(i,wn(d)));++T<D;)for(var U=0,re=l[T],oe=d?d(re):re;(U=b(N,oe,U,E))>-1;)N!==i&&wl.call(N,U,1),wl.call(i,U,1);return i}function rC(i,l){for(var d=i?l.length:0,E=d-1;d--;){var b=l[d];if(d==E||b!==T){var T=b;Nr(b)?wl.call(i,b,1):qA(i,b)}}return i}function YA(i,l){return i+Pl(Fh()*(l-i+1))}function hT(i,l,d,E){for(var b=-1,T=Ut(Sl((l-i)/(d||1)),0),D=ee(T);T--;)D[E?T:++b]=i,i+=d;return D}function GA(i,l){var d="";if(!i||l<1||l>L)return d;do l%2&&(d+=i),l=Pl(l/2),l&&(i+=i);while(l);return d}function Ke(i,l){return cd(jC(i,l,pn),i+"")}function CT(i){return Vh(Wi(i))}function mT(i,l){var d=Wi(i);return Kl(d,qo(l,0,d.length))}function $s(i,l,d,E){if(!Qt(i))return i;l=Ao(l,i);for(var b=-1,T=l.length,D=T-1,N=i;N!=null&&++b<T;){var U=yr(l[b]),re=d;if(U==="__proto__"||U==="constructor"||U==="prototype")return i;if(b!=D){var oe=N[U];re=E?E(oe,U,N):n,re===n&&(re=Qt(oe)?oe:Nr(l[b+1])?[]:{})}Js(N,U,re),N=N[U]}return i}var oC=Rl?function(i,l){return Rl.set(i,l),i}:pn,ET=Tl?function(i,l){return Tl(i,"toString",{configurable:!0,enumerable:!1,value:Ed(l),writable:!0})}:pn;function IT(i){return Kl(Wi(i))}function Gn(i,l,d){var E=-1,b=i.length;l<0&&(l=-l>b?0:b+l),d=d>b?b:d,d<0&&(d+=b),b=l>d?0:d-l>>>0,l>>>=0;for(var T=ee(b);++E<b;)T[E]=i[E+l];return T}function BT(i,l){var d;return co(i,function(E,b,T){return d=l(E,b,T),!d}),!!d}function Ll(i,l,d){var E=0,b=i==null?E:i.length;if(typeof l=="number"&&l===l&&b<=pe){for(;E<b;){var T=E+b>>>1,D=i[T];D!==null&&!Sn(D)&&(d?D<=l:D<l)?E=T+1:b=T}return b}return KA(i,l,pn,d)}function KA(i,l,d,E){var b=0,T=i==null?0:i.length;if(T===0)return 0;l=d(l);for(var D=l!==l,N=l===null,U=Sn(l),re=l===n;b<T;){var oe=Pl((b+T)/2),ae=d(i[oe]),me=ae!==n,ye=ae===null,Oe=ae===ae,Ye=Sn(ae);if(D)var je=E||Oe;else re?je=Oe&&(E||me):N?je=Oe&&me&&(E||!ye):U?je=Oe&&me&&!ye&&(E||!Ye):ye||Ye?je=!1:je=E?ae<=l:ae<l;je?b=oe+1:T=oe}return Zt(T,le)}function iC(i,l){for(var d=-1,E=i.length,b=0,T=[];++d<E;){var D=i[d],N=l?l(D):D;if(!d||!dr(N,U)){var U=N;T[b++]=D===0?0:D}}return T}function sC(i){return typeof i=="number"?i:Sn(i)?V:+i}function Tn(i){if(typeof i=="string")return i;if(Le(i))return It(i,Tn)+"";if(Sn(i))return Lh?Lh.call(i):"";var l=i+"";return l=="0"&&1/i==-J?"-0":l}function uo(i,l,d){var E=-1,b=Cl,T=i.length,D=!0,N=[],U=N;if(d)D=!1,b=vA;else if(T>=o){var re=l?null:OT(i);if(re)return El(re);D=!1,b=Ws,U=new Ko}else U=l?[]:N;e:for(;++E<T;){var oe=i[E],ae=l?l(oe):oe;if(oe=d||oe!==0?oe:0,D&&ae===ae){for(var me=U.length;me--;)if(U[me]===ae)continue e;l&&U.push(ae),N.push(oe)}else b(U,ae,d)||(U!==N&&U.push(ae),N.push(oe))}return N}function qA(i,l){return l=Ao(l,i),i=DC(i,l),i==null||delete i[yr(Kn(l))]}function aC(i,l,d,E){return $s(i,l,d(Jo(i,l)),E)}function Nl(i,l,d,E){for(var b=i.length,T=E?b:-1;(E?T--:++T<b)&&l(i[T],T,i););return d?Gn(i,E?0:T,E?T+1:b):Gn(i,E?T+1:0,E?b:T)}function lC(i,l){var d=i;return d instanceof Xe&&(d=d.value()),bA(l,function(E,b){return b.func.apply(b.thisArg,so([E],b.args))},d)}function JA(i,l,d){var E=i.length;if(E<2)return E?uo(i[0]):[];for(var b=-1,T=ee(E);++b<E;)for(var D=i[b],N=-1;++N<E;)N!=b&&(T[b]=Xs(T[b]||D,i[N],l,d));return uo(Xt(T,1),l,d)}function cC(i,l,d){for(var E=-1,b=i.length,T=l.length,D={};++E<b;){var N=E<T?l[E]:n;d(D,i[E],N)}return D}function XA(i){return Ot(i)?i:[]}function ZA(i){return typeof i=="function"?i:pn}function Ao(i,l){return Le(i)?i:sd(i,l)?[i]:LC(tt(i))}var vT=Ke;function go(i,l,d){var E=i.length;return d=d===n?E:d,!l&&d>=E?i:Gn(i,l,d)}var uC=cw||function(i){return Jt.clearTimeout(i)};function AC(i,l){if(l)return i.slice();var d=i.length,E=Oh?Oh(d):new i.constructor(d);return i.copy(E),E}function _A(i){var l=new i.constructor(i.byteLength);return new Ql(l).set(new Ql(i)),l}function bT(i,l){var d=l?_A(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function yT(i){var l=new i.constructor(i.source,zs.exec(i));return l.lastIndex=i.lastIndex,l}function QT(i){return qs?At(qs.call(i)):{}}function dC(i,l){var d=l?_A(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function gC(i,l){if(i!==l){var d=i!==n,E=i===null,b=i===i,T=Sn(i),D=l!==n,N=l===null,U=l===l,re=Sn(l);if(!N&&!re&&!T&&i>l||T&&D&&U&&!N&&!re||E&&D&&U||!d&&U||!b)return 1;if(!E&&!T&&!re&&i<l||re&&d&&b&&!E&&!T||N&&d&&b||!D&&b||!U)return-1}return 0}function xT(i,l,d){for(var E=-1,b=i.criteria,T=l.criteria,D=b.length,N=d.length;++E<D;){var U=gC(b[E],T[E]);if(U){if(E>=N)return U;var re=d[E];return U*(re=="desc"?-1:1)}}return i.index-l.index}function fC(i,l,d,E){for(var b=-1,T=i.length,D=d.length,N=-1,U=l.length,re=Ut(T-D,0),oe=ee(U+re),ae=!E;++N<U;)oe[N]=l[N];for(;++b<D;)(ae||b<T)&&(oe[d[b]]=i[b]);for(;re--;)oe[N++]=i[b++];return oe}function pC(i,l,d,E){for(var b=-1,T=i.length,D=-1,N=d.length,U=-1,re=l.length,oe=Ut(T-N,0),ae=ee(oe+re),me=!E;++b<oe;)ae[b]=i[b];for(var ye=b;++U<re;)ae[ye+U]=l[U];for(;++D<N;)(me||b<T)&&(ae[ye+d[D]]=i[b++]);return ae}function dn(i,l){var d=-1,E=i.length;for(l||(l=ee(E));++d<E;)l[d]=i[d];return l}function br(i,l,d,E){var b=!d;d||(d={});for(var T=-1,D=l.length;++T<D;){var N=l[T],U=E?E(d[N],i[N],N,d,i):n;U===n&&(U=i[N]),b?kr(d,N,U):Js(d,N,U)}return d}function wT(i,l){return br(i,id(i),l)}function TT(i,l){return br(i,TC(i),l)}function Vl(i,l){return function(d,E){var b=Le(d)?j1:Xw,T=l?l():{};return b(d,i,Re(E,2),T)}}function Ni(i){return Ke(function(l,d){var E=-1,b=d.length,T=b>1?d[b-1]:n,D=b>2?d[2]:n;for(T=i.length>3&&typeof T=="function"?(b--,T):n,D&&an(d[0],d[1],D)&&(T=b<3?n:T,b=1),l=At(l);++E<b;){var N=d[E];N&&i(l,N,E,T)}return l})}function hC(i,l){return function(d,E){if(d==null)return d;if(!gn(d))return i(d,E);for(var b=d.length,T=l?b:-1,D=At(d);(l?T--:++T<b)&&E(D[T],T,D)!==!1;);return d}}function CC(i){return function(l,d,E){for(var b=-1,T=At(l),D=E(l),N=D.length;N--;){var U=D[i?N:++b];if(d(T[U],U,T)===!1)break}return l}}function ST(i,l,d){var E=l&v,b=ea(i);function T(){var D=this&&this!==Jt&&this instanceof T?b:i;return D.apply(E?d:this,arguments)}return T}function mC(i){return function(l){l=tt(l);var d=Oi(l)?ur(l):n,E=d?d[0]:l.charAt(0),b=d?go(d,1).join(""):l.slice(1);return E[i]()+b}}function Vi(i){return function(l){return bA(hm(pm(l).replace(E1,"")),i,"")}}function ea(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=Li(i.prototype),E=i.apply(d,l);return Qt(E)?E:d}}function PT(i,l,d){var E=ea(i);function b(){for(var T=arguments.length,D=ee(T),N=T,U=Hi(b);N--;)D[N]=arguments[N];var re=T<3&&D[0]!==U&&D[T-1]!==U?[]:ao(D,U);if(T-=re.length,T<d)return bC(i,l,Hl,b.placeholder,n,D,re,n,n,d-T);var oe=this&&this!==Jt&&this instanceof b?E:i;return xn(oe,this,D)}return b}function EC(i){return function(l,d,E){var b=At(l);if(!gn(l)){var T=Re(d,3);l=Gt(l),d=function(N){return T(b[N],N,b)}}var D=i(l,d,E);return D>-1?b[T?l[D]:D]:n}}function IC(i){return Lr(function(l){var d=l.length,E=d,b=Un.prototype.thru;for(i&&l.reverse();E--;){var T=l[E];if(typeof T!="function")throw new Wn(a);if(b&&!D&&Yl(T)=="wrapper")var D=new Un([],!0)}for(E=D?E:d;++E<d;){T=l[E];var N=Yl(T),U=N=="wrapper"?rd(T):n;U&&ad(U[0])&&U[1]==(F|x|P|G)&&!U[4].length&&U[9]==1?D=D[Yl(U[0])].apply(D,U[3]):D=T.length==1&&ad(T)?D[N]():D.thru(T)}return function(){var re=arguments,oe=re[0];if(D&&re.length==1&&Le(oe))return D.plant(oe).value();for(var ae=0,me=d?l[ae].apply(this,re):oe;++ae<d;)me=l[ae].call(this,me);return me}})}function Hl(i,l,d,E,b,T,D,N,U,re){var oe=l&F,ae=l&v,me=l&S,ye=l&(x|R),Oe=l&K,Ye=me?n:ea(i);function je(){for(var Je=arguments.length,_e=ee(Je),Pn=Je;Pn--;)_e[Pn]=arguments[Pn];if(ye)var ln=Hi(je),Rn=z1(_e,ln);if(E&&(_e=fC(_e,E,b,ye)),T&&(_e=pC(_e,T,D,ye)),Je-=Rn,ye&&Je<re){var jt=ao(_e,ln);return bC(i,l,Hl,je.placeholder,d,_e,jt,N,U,re-Je)}var gr=ae?d:this,zr=me?gr[i]:i;return Je=_e.length,N?_e=XT(_e,N):Oe&&Je>1&&_e.reverse(),oe&&U<Je&&(_e.length=U),this&&this!==Jt&&this instanceof je&&(zr=Ye||ea(zr)),zr.apply(gr,_e)}return je}function BC(i,l){return function(d,E){return oT(d,i,l(E),{})}}function zl(i,l){return function(d,E){var b;if(d===n&&E===n)return l;if(d!==n&&(b=d),E!==n){if(b===n)return E;typeof d=="string"||typeof E=="string"?(d=Tn(d),E=Tn(E)):(d=sC(d),E=sC(E)),b=i(d,E)}return b}}function $A(i){return Lr(function(l){return l=It(l,wn(Re())),Ke(function(d){var E=this;return i(l,function(b){return xn(b,E,d)})})})}function Wl(i,l){l=l===n?" ":Tn(l);var d=l.length;if(d<2)return d?GA(l,i):l;var E=GA(l,Sl(i/ji(l)));return Oi(l)?go(ur(E),0,i).join(""):E.slice(0,i)}function RT(i,l,d,E){var b=l&v,T=ea(i);function D(){for(var N=-1,U=arguments.length,re=-1,oe=E.length,ae=ee(oe+U),me=this&&this!==Jt&&this instanceof D?T:i;++re<oe;)ae[re]=E[re];for(;U--;)ae[re++]=arguments[++N];return xn(me,b?d:this,ae)}return D}function vC(i){return function(l,d,E){return E&&typeof E!="number"&&an(l,d,E)&&(d=E=n),l=Hr(l),d===n?(d=l,l=0):d=Hr(d),E=E===n?l<d?1:-1:Hr(E),hT(l,d,E,i)}}function Ul(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=qn(l),d=qn(d)),i(l,d)}}function bC(i,l,d,E,b,T,D,N,U,re){var oe=l&x,ae=oe?D:n,me=oe?n:D,ye=oe?T:n,Oe=oe?n:T;l|=oe?P:k,l&=~(oe?k:P),l&O||(l&=~(v|S));var Ye=[i,l,b,ye,ae,Oe,me,N,U,re],je=d.apply(n,Ye);return ad(i)&&MC(je,Ye),je.placeholder=E,kC(je,i,l)}function ed(i){var l=Wt[i];return function(d,E){if(d=qn(d),E=E==null?0:Zt(He(E),292),E&&kh(d)){var b=(tt(d)+"e").split("e"),T=l(b[0]+"e"+(+b[1]+E));return b=(tt(T)+"e").split("e"),+(b[0]+"e"+(+b[1]-E))}return l(d)}}var OT=ki&&1/El(new ki([,-0]))[1]==J?function(i){return new ki(i)}:vd;function yC(i){return function(l){var d=_t(l);return d==fe?PA(l):d==pt?J1(l):H1(l,i(l))}}function Fr(i,l,d,E,b,T,D,N){var U=l&S;if(!U&&typeof i!="function")throw new Wn(a);var re=E?E.length:0;if(re||(l&=~(P|k),E=b=n),D=D===n?D:Ut(He(D),0),N=N===n?N:He(N),re-=b?b.length:0,l&k){var oe=E,ae=b;E=b=n}var me=U?n:rd(i),ye=[i,l,d,E,b,oe,ae,T,D,N];if(me&&KT(ye,me),i=ye[0],l=ye[1],d=ye[2],E=ye[3],b=ye[4],N=ye[9]=ye[9]===n?U?0:i.length:Ut(ye[9]-re,0),!N&&l&(x|R)&&(l&=~(x|R)),!l||l==v)var Oe=ST(i,l,d);else l==x||l==R?Oe=PT(i,l,N):(l==P||l==(v|P))&&!b.length?Oe=RT(i,l,d,E):Oe=Hl.apply(n,ye);var Ye=me?oC:MC;return kC(Ye(Oe,ye),i,l)}function QC(i,l,d,E){return i===n||dr(i,Mi[d])&&!at.call(E,d)?l:i}function xC(i,l,d,E,b,T){return Qt(i)&&Qt(l)&&(T.set(l,i),Fl(i,l,n,xC,T),T.delete(l)),i}function jT(i){return ra(i)?n:i}function wC(i,l,d,E,b,T){var D=d&I,N=i.length,U=l.length;if(N!=U&&!(D&&U>N))return!1;var re=T.get(i),oe=T.get(l);if(re&&oe)return re==l&&oe==i;var ae=-1,me=!0,ye=d&B?new Ko:n;for(T.set(i,l),T.set(l,i);++ae<N;){var Oe=i[ae],Ye=l[ae];if(E)var je=D?E(Ye,Oe,ae,l,i,T):E(Oe,Ye,ae,i,l,T);if(je!==n){if(je)continue;me=!1;break}if(ye){if(!yA(l,function(Je,_e){if(!Ws(ye,_e)&&(Oe===Je||b(Oe,Je,d,E,T)))return ye.push(_e)})){me=!1;break}}else if(!(Oe===Ye||b(Oe,Ye,d,E,T))){me=!1;break}}return T.delete(i),T.delete(l),me}function DT(i,l,d,E,b,T,D){switch(d){case We:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case we:return!(i.byteLength!=l.byteLength||!T(new Ql(i),new Ql(l)));case Ee:case Ce:case st:return dr(+i,+l);case xe:return i.name==l.name&&i.message==l.message;case Et:case ct:return i==l+"";case fe:var N=PA;case pt:var U=E&I;if(N||(N=El),i.size!=l.size&&!U)return!1;var re=D.get(i);if(re)return re==l;E|=B,D.set(i,l);var oe=wC(N(i),N(l),E,b,T,D);return D.delete(i),oe;case kt:if(qs)return qs.call(i)==qs.call(l)}return!1}function MT(i,l,d,E,b,T){var D=d&I,N=td(i),U=N.length,re=td(l),oe=re.length;if(U!=oe&&!D)return!1;for(var ae=U;ae--;){var me=N[ae];if(!(D?me in l:at.call(l,me)))return!1}var ye=T.get(i),Oe=T.get(l);if(ye&&Oe)return ye==l&&Oe==i;var Ye=!0;T.set(i,l),T.set(l,i);for(var je=D;++ae<U;){me=N[ae];var Je=i[me],_e=l[me];if(E)var Pn=D?E(_e,Je,me,l,i,T):E(Je,_e,me,i,l,T);if(!(Pn===n?Je===_e||b(Je,_e,d,E,T):Pn)){Ye=!1;break}je||(je=me=="constructor")}if(Ye&&!je){var ln=i.constructor,Rn=l.constructor;ln!=Rn&&"constructor"in i&&"constructor"in l&&!(typeof ln=="function"&&ln instanceof ln&&typeof Rn=="function"&&Rn instanceof Rn)&&(Ye=!1)}return T.delete(i),T.delete(l),Ye}function Lr(i){return cd(jC(i,n,zC),i+"")}function td(i){return Kh(i,Gt,id)}function nd(i){return Kh(i,fn,TC)}var rd=Rl?function(i){return Rl.get(i)}:vd;function Yl(i){for(var l=i.name+"",d=Fi[l],E=at.call(Fi,l)?d.length:0;E--;){var b=d[E],T=b.func;if(T==null||T==i)return b.name}return l}function Hi(i){var l=at.call(w,"placeholder")?w:i;return l.placeholder}function Re(){var i=w.iteratee||Id;return i=i===Id?Xh:i,arguments.length?i(arguments[0],arguments[1]):i}function Gl(i,l){var d=i.__data__;return WT(l)?d[typeof l=="string"?"string":"hash"]:d.map}function od(i){for(var l=Gt(i),d=l.length;d--;){var E=l[d],b=i[E];l[d]=[E,b,RC(b)]}return l}function Xo(i,l){var d=G1(i,l);return Jh(d)?d:n}function kT(i){var l=at.call(i,Yo),d=i[Yo];try{i[Yo]=n;var E=!0}catch{}var b=bl.call(i);return E&&(l?i[Yo]=d:delete i[Yo]),b}var id=OA?function(i){return i==null?[]:(i=At(i),io(OA(i),function(l){return Dh.call(i,l)}))}:bd,TC=OA?function(i){for(var l=[];i;)so(l,id(i)),i=xl(i);return l}:bd,_t=sn;(jA&&_t(new jA(new ArrayBuffer(1)))!=We||Ys&&_t(new Ys)!=fe||DA&&_t(DA.resolve())!=yt||ki&&_t(new ki)!=pt||Gs&&_t(new Gs)!=Se)&&(_t=function(i){var l=sn(i),d=l==ft?i.constructor:n,E=d?Zo(d):"";if(E)switch(E){case mw:return We;case Ew:return fe;case Iw:return yt;case Bw:return pt;case vw:return Se}return l});function FT(i,l,d){for(var E=-1,b=d.length;++E<b;){var T=d[E],D=T.size;switch(T.type){case"drop":i+=D;break;case"dropRight":l-=D;break;case"take":l=Zt(l,i+D);break;case"takeRight":i=Ut(i,l-D);break}}return{start:i,end:l}}function LT(i){var l=i.match(zo);return l?l[1].split(uA):[]}function SC(i,l,d){l=Ao(l,i);for(var E=-1,b=l.length,T=!1;++E<b;){var D=yr(l[E]);if(!(T=i!=null&&d(i,D)))break;i=i[D]}return T||++E!=b?T:(b=i==null?0:i.length,!!b&&$l(b)&&Nr(D,b)&&(Le(i)||_o(i)))}function NT(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&at.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function PC(i){return typeof i.constructor=="function"&&!ta(i)?Li(xl(i)):{}}function VT(i,l,d){var E=i.constructor;switch(l){case we:return _A(i);case Ee:case Ce:return new E(+i);case We:return bT(i,d);case Te:case ut:case Ue:case Qe:case Lt:case Br:case cr:case Vo:case Si:return dC(i,d);case fe:return new E;case st:case ct:return new E(i);case Et:return yT(i);case pt:return new E;case kt:return QT(i)}}function HT(i,l){var d=l.length;if(!d)return i;var E=d-1;return l[E]=(d>1?"& ":"")+l[E],l=l.join(d>2?", ":" "),i.replace(An,`{
78
+ */zc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",A=500,p="__lodash_placeholder__",h=1,C=2,m=4,I=1,B=2,v=1,S=2,O=4,x=8,R=16,P=32,k=64,F=128,G=256,K=512,$=30,Y="...",ie=800,se=16,X=1,Z=2,H=3,J=1/0,L=9007199254740991,_=17976931348623157e292,V=0/0,q=4294967295,le=q-1,pe=q>>>1,de=[["ary",F],["bind",v],["bindKey",S],["curry",x],["curryRight",R],["flip",K],["partial",P],["partialRight",k],["rearg",G]],ge="[object Arguments]",he="[object Array]",Be="[object AsyncFunction]",Ee="[object Boolean]",Ce="[object Date]",Ie="[object DOMException]",xe="[object Error]",ue="[object Function]",qe="[object GeneratorFunction]",fe="[object Map]",st="[object Number]",zt="[object Null]",ft="[object Object]",yt="[object Promise]",Ir="[object Proxy]",Et="[object RegExp]",pt="[object Set]",ct="[object String]",kt="[object Symbol]",Ft="[object Undefined]",Se="[object WeakMap]",ke="[object WeakSet]",we="[object ArrayBuffer]",We="[object DataView]",Te="[object Float32Array]",ut="[object Float64Array]",Ue="[object Int8Array]",Qe="[object Int16Array]",Lt="[object Int32Array]",Br="[object Uint8Array]",cr="[object Uint8ClampedArray]",Vo="[object Uint16Array]",Si="[object Uint32Array]",sl=/\b__p \+= '';/g,oA=/\b(__p \+=) '' \+/g,iA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,al=/&(?:amp|lt|gt|quot|#39);/g,Ls=/[&<>"']/g,ll=RegExp(al.source),cl=RegExp(Ls.source),ul=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ns=/<%=([\s\S]+?)%>/g,sA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aA=/^\w*$/,lA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ho=/[\\^$.*+?()[\]{}|]/g,cA=RegExp(Ho.source),jr=/^\s+/,Vs=/\s/,An=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zo=/\{\n\/\* \[wrapped with (.+)\] \*/,uA=/,? & /,Wo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hs=/[()=,{}\[\]\/\s]/,dl=/\\(\\)?/g,gl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zs=/\w*$/,fl=/^[-+]0x[0-9a-f]+$/i,AA=/^0b[01]+$/i,dA=/^\[object .+?Constructor\]$/,gA=/^0o[0-7]+$/i,fA=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,n1=/['\n\r\u2028\u2029\\]/g,pl="\\ud800-\\udfff",r1="\\u0300-\\u036f",o1="\\ufe20-\\ufe2f",i1="\\u20d0-\\u20ff",Jp=r1+o1+i1,Xp="\\u2700-\\u27bf",Zp="a-z\\xdf-\\xf6\\xf8-\\xff",s1="\\xac\\xb1\\xd7\\xf7",a1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l1="\\u2000-\\u206f",c1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_p="A-Z\\xc0-\\xd6\\xd8-\\xde",$p="\\ufe0e\\ufe0f",eh=s1+a1+l1+c1,pA="['’]",u1="["+pl+"]",th="["+eh+"]",hl="["+Jp+"]",nh="\\d+",A1="["+Xp+"]",rh="["+Zp+"]",oh="[^"+pl+eh+nh+Xp+Zp+_p+"]",hA="\\ud83c[\\udffb-\\udfff]",d1="(?:"+hl+"|"+hA+")",ih="[^"+pl+"]",CA="(?:\\ud83c[\\udde6-\\uddff]){2}",mA="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+_p+"]",sh="\\u200d",ah="(?:"+rh+"|"+oh+")",g1="(?:"+Pi+"|"+oh+")",lh="(?:"+pA+"(?:d|ll|m|re|s|t|ve))?",ch="(?:"+pA+"(?:D|LL|M|RE|S|T|VE))?",uh=d1+"?",Ah="["+$p+"]?",f1="(?:"+sh+"(?:"+[ih,CA,mA].join("|")+")"+Ah+uh+")*",p1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dh=Ah+uh+f1,C1="(?:"+[A1,CA,mA].join("|")+")"+dh,m1="(?:"+[ih+hl+"?",hl,CA,mA,u1].join("|")+")",E1=RegExp(pA,"g"),I1=RegExp(hl,"g"),EA=RegExp(hA+"(?="+hA+")|"+m1+dh,"g"),B1=RegExp([Pi+"?"+rh+"+"+lh+"(?="+[th,Pi,"$"].join("|")+")",g1+"+"+ch+"(?="+[th,Pi+ah,"$"].join("|")+")",Pi+"?"+ah+"+"+lh,Pi+"+"+ch,h1,p1,nh,C1].join("|"),"g"),v1=RegExp("["+sh+pl+Jp+$p+"]"),b1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Q1=-1,ht={};ht[Te]=ht[ut]=ht[Ue]=ht[Qe]=ht[Lt]=ht[Br]=ht[cr]=ht[Vo]=ht[Si]=!0,ht[ge]=ht[he]=ht[we]=ht[Ee]=ht[We]=ht[Ce]=ht[xe]=ht[ue]=ht[fe]=ht[st]=ht[ft]=ht[Et]=ht[pt]=ht[ct]=ht[Se]=!1;var dt={};dt[ge]=dt[he]=dt[we]=dt[We]=dt[Ee]=dt[Ce]=dt[Te]=dt[ut]=dt[Ue]=dt[Qe]=dt[Lt]=dt[fe]=dt[st]=dt[ft]=dt[Et]=dt[pt]=dt[ct]=dt[kt]=dt[Br]=dt[cr]=dt[Vo]=dt[Si]=!0,dt[xe]=dt[ue]=dt[Se]=!1;var x1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"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",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},S1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},P1=parseFloat,R1=parseInt,gh=typeof In=="object"&&In&&In.Object===Object&&In,O1=typeof self=="object"&&self&&self.Object===Object&&self,Jt=gh||O1||Function("return this")(),IA=t&&!t.nodeType&&t,Uo=IA&&!0&&e&&!e.nodeType&&e,fh=Uo&&Uo.exports===IA,BA=fh&&gh.process,Hn=function(){try{var W=Uo&&Uo.require&&Uo.require("util").types;return W||BA&&BA.binding&&BA.binding("util")}catch{}}(),ph=Hn&&Hn.isArrayBuffer,hh=Hn&&Hn.isDate,Ch=Hn&&Hn.isMap,mh=Hn&&Hn.isRegExp,Eh=Hn&&Hn.isSet,Ih=Hn&&Hn.isTypedArray;function xn(W,ne,ee){switch(ee.length){case 0:return W.call(ne);case 1:return W.call(ne,ee[0]);case 2:return W.call(ne,ee[0],ee[1]);case 3:return W.call(ne,ee[0],ee[1],ee[2])}return W.apply(ne,ee)}function j1(W,ne,ee,ve){for(var Fe=-1,et=W==null?0:W.length;++Fe<et;){var Wt=W[Fe];ne(ve,Wt,ee(Wt),W)}return ve}function zn(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve&&ne(W[ee],ee,W)!==!1;);return W}function D1(W,ne){for(var ee=W==null?0:W.length;ee--&&ne(W[ee],ee,W)!==!1;);return W}function Bh(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve;)if(!ne(W[ee],ee,W))return!1;return!0}function io(W,ne){for(var ee=-1,ve=W==null?0:W.length,Fe=0,et=[];++ee<ve;){var Wt=W[ee];ne(Wt,ee,W)&&(et[Fe++]=Wt)}return et}function Cl(W,ne){var ee=W==null?0:W.length;return!!ee&&Ri(W,ne,0)>-1}function vA(W,ne,ee){for(var ve=-1,Fe=W==null?0:W.length;++ve<Fe;)if(ee(ne,W[ve]))return!0;return!1}function It(W,ne){for(var ee=-1,ve=W==null?0:W.length,Fe=Array(ve);++ee<ve;)Fe[ee]=ne(W[ee],ee,W);return Fe}function so(W,ne){for(var ee=-1,ve=ne.length,Fe=W.length;++ee<ve;)W[Fe+ee]=ne[ee];return W}function bA(W,ne,ee,ve){var Fe=-1,et=W==null?0:W.length;for(ve&&et&&(ee=W[++Fe]);++Fe<et;)ee=ne(ee,W[Fe],Fe,W);return ee}function M1(W,ne,ee,ve){var Fe=W==null?0:W.length;for(ve&&Fe&&(ee=W[--Fe]);Fe--;)ee=ne(ee,W[Fe],Fe,W);return ee}function yA(W,ne){for(var ee=-1,ve=W==null?0:W.length;++ee<ve;)if(ne(W[ee],ee,W))return!0;return!1}var k1=QA("length");function F1(W){return W.split("")}function L1(W){return W.match(Wo)||[]}function vh(W,ne,ee){var ve;return ee(W,function(Fe,et,Wt){if(ne(Fe,et,Wt))return ve=et,!1}),ve}function ml(W,ne,ee,ve){for(var Fe=W.length,et=ee+(ve?1:-1);ve?et--:++et<Fe;)if(ne(W[et],et,W))return et;return-1}function Ri(W,ne,ee){return ne===ne?X1(W,ne,ee):ml(W,bh,ee)}function N1(W,ne,ee,ve){for(var Fe=ee-1,et=W.length;++Fe<et;)if(ve(W[Fe],ne))return Fe;return-1}function bh(W){return W!==W}function yh(W,ne){var ee=W==null?0:W.length;return ee?wA(W,ne)/ee:V}function QA(W){return function(ne){return ne==null?n:ne[W]}}function xA(W){return function(ne){return W==null?n:W[ne]}}function Qh(W,ne,ee,ve,Fe){return Fe(W,function(et,Wt,At){ee=ve?(ve=!1,et):ne(ee,et,Wt,At)}),ee}function V1(W,ne){var ee=W.length;for(W.sort(ne);ee--;)W[ee]=W[ee].value;return W}function wA(W,ne){for(var ee,ve=-1,Fe=W.length;++ve<Fe;){var et=ne(W[ve]);et!==n&&(ee=ee===n?et:ee+et)}return ee}function TA(W,ne){for(var ee=-1,ve=Array(W);++ee<W;)ve[ee]=ne(ee);return ve}function H1(W,ne){return It(ne,function(ee){return[ee,W[ee]]})}function xh(W){return W&&W.slice(0,Ph(W)+1).replace(jr,"")}function wn(W){return function(ne){return W(ne)}}function SA(W,ne){return It(ne,function(ee){return W[ee]})}function Ws(W,ne){return W.has(ne)}function wh(W,ne){for(var ee=-1,ve=W.length;++ee<ve&&Ri(ne,W[ee],0)>-1;);return ee}function Th(W,ne){for(var ee=W.length;ee--&&Ri(ne,W[ee],0)>-1;);return ee}function z1(W,ne){for(var ee=W.length,ve=0;ee--;)W[ee]===ne&&++ve;return ve}var W1=xA(x1),U1=xA(w1);function Y1(W){return"\\"+S1[W]}function G1(W,ne){return W==null?n:W[ne]}function Oi(W){return v1.test(W)}function K1(W){return b1.test(W)}function q1(W){for(var ne,ee=[];!(ne=W.next()).done;)ee.push(ne.value);return ee}function PA(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve,Fe){ee[++ne]=[Fe,ve]}),ee}function Sh(W,ne){return function(ee){return W(ne(ee))}}function ao(W,ne){for(var ee=-1,ve=W.length,Fe=0,et=[];++ee<ve;){var Wt=W[ee];(Wt===ne||Wt===p)&&(W[ee]=p,et[Fe++]=ee)}return et}function El(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve){ee[++ne]=ve}),ee}function J1(W){var ne=-1,ee=Array(W.size);return W.forEach(function(ve){ee[++ne]=[ve,ve]}),ee}function X1(W,ne,ee){for(var ve=ee-1,Fe=W.length;++ve<Fe;)if(W[ve]===ne)return ve;return-1}function Z1(W,ne,ee){for(var ve=ee+1;ve--;)if(W[ve]===ne)return ve;return ve}function ji(W){return Oi(W)?$1(W):k1(W)}function ur(W){return Oi(W)?ew(W):F1(W)}function Ph(W){for(var ne=W.length;ne--&&Vs.test(W.charAt(ne)););return ne}var _1=xA(T1);function $1(W){for(var ne=EA.lastIndex=0;EA.test(W);)++ne;return ne}function ew(W){return W.match(EA)||[]}function tw(W){return W.match(B1)||[]}var nw=function W(ne){ne=ne==null?Jt:Di.defaults(Jt.Object(),ne,Di.pick(Jt,y1));var ee=ne.Array,ve=ne.Date,Fe=ne.Error,et=ne.Function,Wt=ne.Math,At=ne.Object,RA=ne.RegExp,rw=ne.String,Wn=ne.TypeError,Il=ee.prototype,ow=et.prototype,Mi=At.prototype,Bl=ne["__core-js_shared__"],vl=ow.toString,at=Mi.hasOwnProperty,iw=0,Rh=function(){var i=/[^.]+$/.exec(Bl&&Bl.keys&&Bl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),bl=Mi.toString,sw=vl.call(At),aw=Jt._,lw=RA("^"+vl.call(at).replace(Ho,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yl=fh?ne.Buffer:n,lo=ne.Symbol,Ql=ne.Uint8Array,Oh=yl?yl.allocUnsafe:n,xl=Sh(At.getPrototypeOf,At),jh=At.create,Dh=Mi.propertyIsEnumerable,wl=Il.splice,Mh=lo?lo.isConcatSpreadable:n,Us=lo?lo.iterator:n,Yo=lo?lo.toStringTag:n,Tl=function(){try{var i=Xo(At,"defineProperty");return i({},"",{}),i}catch{}}(),cw=ne.clearTimeout!==Jt.clearTimeout&&ne.clearTimeout,uw=ve&&ve.now!==Jt.Date.now&&ve.now,Aw=ne.setTimeout!==Jt.setTimeout&&ne.setTimeout,Sl=Wt.ceil,Pl=Wt.floor,OA=At.getOwnPropertySymbols,dw=yl?yl.isBuffer:n,kh=ne.isFinite,gw=Il.join,fw=Sh(At.keys,At),Ut=Wt.max,Zt=Wt.min,pw=ve.now,hw=ne.parseInt,Fh=Wt.random,Cw=Il.reverse,jA=Xo(ne,"DataView"),Ys=Xo(ne,"Map"),DA=Xo(ne,"Promise"),ki=Xo(ne,"Set"),Gs=Xo(ne,"WeakMap"),Ks=Xo(At,"create"),Rl=Gs&&new Gs,Fi={},mw=Zo(jA),Ew=Zo(Ys),Iw=Zo(DA),Bw=Zo(ki),vw=Zo(Gs),Ol=lo?lo.prototype:n,qs=Ol?Ol.valueOf:n,Lh=Ol?Ol.toString:n;function w(i){if(wt(i)&&!Le(i)&&!(i instanceof Xe)){if(i instanceof Un)return i;if(at.call(i,"__wrapped__"))return NC(i)}return new Un(i)}var Li=function(){function i(){}return function(l){if(!Qt(l))return{};if(jh)return jh(l);i.prototype=l;var d=new i;return i.prototype=n,d}}();function jl(){}function Un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}w.templateSettings={escape:ul,evaluate:Al,interpolate:Ns,variable:"",imports:{_:w}},w.prototype=jl.prototype,w.prototype.constructor=w,Un.prototype=Li(jl.prototype),Un.prototype.constructor=Un;function Xe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function bw(){var i=new Xe(this.__wrapped__);return i.__actions__=dn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=dn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=dn(this.__views__),i}function yw(){if(this.__filtered__){var i=new Xe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Qw(){var i=this.__wrapped__.value(),l=this.__dir__,d=Le(i),E=l<0,b=d?i.length:0,T=F2(0,b,this.__views__),D=T.start,N=T.end,U=N-D,re=E?N:D-1,oe=this.__iteratees__,ae=oe.length,me=0,ye=Zt(U,this.__takeCount__);if(!d||!E&&b==U&&ye==U)return lC(i,this.__actions__);var Oe=[];e:for(;U--&&me<ye;){re+=l;for(var Ye=-1,je=i[re];++Ye<ae;){var Je=oe[Ye],_e=Je.iteratee,Pn=Je.type,ln=_e(je);if(Pn==Z)je=ln;else if(!ln){if(Pn==X)continue e;break e}}Oe[me++]=je}return Oe}Xe.prototype=Li(jl.prototype),Xe.prototype.constructor=Xe;function Go(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function xw(){this.__data__=Ks?Ks(null):{},this.size=0}function ww(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Tw(i){var l=this.__data__;if(Ks){var d=l[i];return d===u?n:d}return at.call(l,i)?l[i]:n}function Sw(i){var l=this.__data__;return Ks?l[i]!==n:at.call(l,i)}function Pw(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Ks&&l===n?u:l,this}Go.prototype.clear=xw,Go.prototype.delete=ww,Go.prototype.get=Tw,Go.prototype.has=Sw,Go.prototype.set=Pw;function Dr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function Rw(){this.__data__=[],this.size=0}function Ow(i){var l=this.__data__,d=Dl(l,i);if(d<0)return!1;var E=l.length-1;return d==E?l.pop():wl.call(l,d,1),--this.size,!0}function jw(i){var l=this.__data__,d=Dl(l,i);return d<0?n:l[d][1]}function Dw(i){return Dl(this.__data__,i)>-1}function Mw(i,l){var d=this.__data__,E=Dl(d,i);return E<0?(++this.size,d.push([i,l])):d[E][1]=l,this}Dr.prototype.clear=Rw,Dr.prototype.delete=Ow,Dr.prototype.get=jw,Dr.prototype.has=Dw,Dr.prototype.set=Mw;function Mr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var E=i[l];this.set(E[0],E[1])}}function kw(){this.size=0,this.__data__={hash:new Go,map:new(Ys||Dr),string:new Go}}function Fw(i){var l=Gl(this,i).delete(i);return this.size-=l?1:0,l}function Lw(i){return Gl(this,i).get(i)}function Nw(i){return Gl(this,i).has(i)}function Vw(i,l){var d=Gl(this,i),E=d.size;return d.set(i,l),this.size+=d.size==E?0:1,this}Mr.prototype.clear=kw,Mr.prototype.delete=Fw,Mr.prototype.get=Lw,Mr.prototype.has=Nw,Mr.prototype.set=Vw;function Ko(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new Mr;++l<d;)this.add(i[l])}function Hw(i){return this.__data__.set(i,u),this}function zw(i){return this.__data__.has(i)}Ko.prototype.add=Ko.prototype.push=Hw,Ko.prototype.has=zw;function Ar(i){var l=this.__data__=new Dr(i);this.size=l.size}function Ww(){this.__data__=new Dr,this.size=0}function Uw(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Yw(i){return this.__data__.get(i)}function Gw(i){return this.__data__.has(i)}function Kw(i,l){var d=this.__data__;if(d instanceof Dr){var E=d.__data__;if(!Ys||E.length<o-1)return E.push([i,l]),this.size=++d.size,this;d=this.__data__=new Mr(E)}return d.set(i,l),this.size=d.size,this}Ar.prototype.clear=Ww,Ar.prototype.delete=Uw,Ar.prototype.get=Yw,Ar.prototype.has=Gw,Ar.prototype.set=Kw;function Nh(i,l){var d=Le(i),E=!d&&_o(i),b=!d&&!E&&fo(i),T=!d&&!E&&!b&&zi(i),D=d||E||b||T,N=D?TA(i.length,rw):[],U=N.length;for(var re in i)(l||at.call(i,re))&&!(D&&(re=="length"||b&&(re=="offset"||re=="parent")||T&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Nr(re,U)))&&N.push(re);return N}function Vh(i){var l=i.length;return l?i[YA(0,l-1)]:n}function qw(i,l){return Kl(dn(i),qo(l,0,i.length))}function Jw(i){return Kl(dn(i))}function MA(i,l,d){(d!==n&&!dr(i[l],d)||d===n&&!(l in i))&&kr(i,l,d)}function Js(i,l,d){var E=i[l];(!(at.call(i,l)&&dr(E,d))||d===n&&!(l in i))&&kr(i,l,d)}function Dl(i,l){for(var d=i.length;d--;)if(dr(i[d][0],l))return d;return-1}function Xw(i,l,d,E){return co(i,function(b,T,D){l(E,b,d(b),D)}),E}function Hh(i,l){return i&&br(l,Gt(l),i)}function Zw(i,l){return i&&br(l,fn(l),i)}function kr(i,l,d){l=="__proto__"&&Tl?Tl(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function kA(i,l){for(var d=-1,E=l.length,b=ee(E),T=i==null;++d<E;)b[d]=T?n:hd(i,l[d]);return b}function qo(i,l,d){return i===i&&(d!==n&&(i=i<=d?i:d),l!==n&&(i=i>=l?i:l)),i}function Yn(i,l,d,E,b,T){var D,N=l&h,U=l&C,re=l&m;if(d&&(D=b?d(i,E,b,T):d(i)),D!==n)return D;if(!Qt(i))return i;var oe=Le(i);if(oe){if(D=N2(i),!N)return dn(i,D)}else{var ae=_t(i),me=ae==ue||ae==qe;if(fo(i))return AC(i,N);if(ae==ft||ae==ge||me&&!b){if(D=U||me?{}:PC(i),!N)return U?T2(i,Zw(D,i)):w2(i,Hh(D,i))}else{if(!dt[ae])return b?i:{};D=V2(i,ae,N)}}T||(T=new Ar);var ye=T.get(i);if(ye)return ye;T.set(i,D),im(i)?i.forEach(function(je){D.add(Yn(je,l,d,je,i,T))}):rm(i)&&i.forEach(function(je,Je){D.set(Je,Yn(je,l,d,Je,i,T))});var Oe=re?U?nd:td:U?fn:Gt,Ye=oe?n:Oe(i);return zn(Ye||i,function(je,Je){Ye&&(Je=je,je=i[Je]),Js(D,Je,Yn(je,l,d,Je,i,T))}),D}function _w(i){var l=Gt(i);return function(d){return zh(d,i,l)}}function zh(i,l,d){var E=d.length;if(i==null)return!E;for(i=At(i);E--;){var b=d[E],T=l[b],D=i[b];if(D===n&&!(b in i)||!T(D))return!1}return!0}function Wh(i,l,d){if(typeof i!="function")throw new Wn(a);return na(function(){i.apply(n,d)},l)}function Xs(i,l,d,E){var b=-1,T=Cl,D=!0,N=i.length,U=[],re=l.length;if(!N)return U;d&&(l=It(l,wn(d))),E?(T=vA,D=!1):l.length>=o&&(T=Ws,D=!1,l=new Ko(l));e:for(;++b<N;){var oe=i[b],ae=d==null?oe:d(oe);if(oe=E||oe!==0?oe:0,D&&ae===ae){for(var me=re;me--;)if(l[me]===ae)continue e;U.push(oe)}else T(l,ae,E)||U.push(oe)}return U}var co=hC(vr),Uh=hC(LA,!0);function $w(i,l){var d=!0;return co(i,function(E,b,T){return d=!!l(E,b,T),d}),d}function Ml(i,l,d){for(var E=-1,b=i.length;++E<b;){var T=i[E],D=l(T);if(D!=null&&(N===n?D===D&&!Sn(D):d(D,N)))var N=D,U=T}return U}function e2(i,l,d,E){var b=i.length;for(d=He(d),d<0&&(d=-d>b?0:b+d),E=E===n||E>b?b:He(E),E<0&&(E+=b),E=d>E?0:am(E);d<E;)i[d++]=l;return i}function Yh(i,l){var d=[];return co(i,function(E,b,T){l(E,b,T)&&d.push(E)}),d}function Xt(i,l,d,E,b){var T=-1,D=i.length;for(d||(d=z2),b||(b=[]);++T<D;){var N=i[T];l>0&&d(N)?l>1?Xt(N,l-1,d,E,b):so(b,N):E||(b[b.length]=N)}return b}var FA=CC(),Gh=CC(!0);function vr(i,l){return i&&FA(i,l,Gt)}function LA(i,l){return i&&Gh(i,l,Gt)}function kl(i,l){return io(l,function(d){return Vr(i[d])})}function Jo(i,l){l=Ao(l,i);for(var d=0,E=l.length;i!=null&&d<E;)i=i[yr(l[d++])];return d&&d==E?i:n}function Kh(i,l,d){var E=l(i);return Le(i)?E:so(E,d(i))}function sn(i){return i==null?i===n?Ft:zt:Yo&&Yo in At(i)?k2(i):J2(i)}function NA(i,l){return i>l}function t2(i,l){return i!=null&&at.call(i,l)}function n2(i,l){return i!=null&&l in At(i)}function r2(i,l,d){return i>=Zt(l,d)&&i<Ut(l,d)}function VA(i,l,d){for(var E=d?vA:Cl,b=i[0].length,T=i.length,D=T,N=ee(T),U=1/0,re=[];D--;){var oe=i[D];D&&l&&(oe=It(oe,wn(l))),U=Zt(oe.length,U),N[D]=!d&&(l||b>=120&&oe.length>=120)?new Ko(D&&oe):n}oe=i[0];var ae=-1,me=N[0];e:for(;++ae<b&&re.length<U;){var ye=oe[ae],Oe=l?l(ye):ye;if(ye=d||ye!==0?ye:0,!(me?Ws(me,Oe):E(re,Oe,d))){for(D=T;--D;){var Ye=N[D];if(!(Ye?Ws(Ye,Oe):E(i[D],Oe,d)))continue e}me&&me.push(Oe),re.push(ye)}}return re}function o2(i,l,d,E){return vr(i,function(b,T,D){l(E,d(b),T,D)}),E}function Zs(i,l,d){l=Ao(l,i),i=DC(i,l);var E=i==null?i:i[yr(Kn(l))];return E==null?n:xn(E,i,d)}function qh(i){return wt(i)&&sn(i)==ge}function i2(i){return wt(i)&&sn(i)==we}function s2(i){return wt(i)&&sn(i)==Ce}function _s(i,l,d,E,b){return i===l?!0:i==null||l==null||!wt(i)&&!wt(l)?i!==i&&l!==l:a2(i,l,d,E,_s,b)}function a2(i,l,d,E,b,T){var D=Le(i),N=Le(l),U=D?he:_t(i),re=N?he:_t(l);U=U==ge?ft:U,re=re==ge?ft:re;var oe=U==ft,ae=re==ft,me=U==re;if(me&&fo(i)){if(!fo(l))return!1;D=!0,oe=!1}if(me&&!oe)return T||(T=new Ar),D||zi(i)?wC(i,l,d,E,b,T):D2(i,l,U,d,E,b,T);if(!(d&I)){var ye=oe&&at.call(i,"__wrapped__"),Oe=ae&&at.call(l,"__wrapped__");if(ye||Oe){var Ye=ye?i.value():i,je=Oe?l.value():l;return T||(T=new Ar),b(Ye,je,d,E,T)}}return me?(T||(T=new Ar),M2(i,l,d,E,b,T)):!1}function l2(i){return wt(i)&&_t(i)==fe}function HA(i,l,d,E){var b=d.length,T=b,D=!E;if(i==null)return!T;for(i=At(i);b--;){var N=d[b];if(D&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++b<T;){N=d[b];var U=N[0],re=i[U],oe=N[1];if(D&&N[2]){if(re===n&&!(U in i))return!1}else{var ae=new Ar;if(E)var me=E(re,oe,U,i,l,ae);if(!(me===n?_s(oe,re,I|B,E,ae):me))return!1}}return!0}function Jh(i){if(!Qt(i)||U2(i))return!1;var l=Vr(i)?lw:dA;return l.test(Zo(i))}function c2(i){return wt(i)&&sn(i)==Et}function u2(i){return wt(i)&&_t(i)==pt}function A2(i){return wt(i)&&$l(i.length)&&!!ht[sn(i)]}function Xh(i){return typeof i=="function"?i:i==null?pn:typeof i=="object"?Le(i)?$h(i[0],i[1]):_h(i):mm(i)}function zA(i){if(!ta(i))return fw(i);var l=[];for(var d in At(i))at.call(i,d)&&d!="constructor"&&l.push(d);return l}function d2(i){if(!Qt(i))return q2(i);var l=ta(i),d=[];for(var E in i)E=="constructor"&&(l||!at.call(i,E))||d.push(E);return d}function WA(i,l){return i<l}function Zh(i,l){var d=-1,E=gn(i)?ee(i.length):[];return co(i,function(b,T,D){E[++d]=l(b,T,D)}),E}function _h(i){var l=od(i);return l.length==1&&l[0][2]?OC(l[0][0],l[0][1]):function(d){return d===i||HA(d,i,l)}}function $h(i,l){return sd(i)&&RC(l)?OC(yr(i),l):function(d){var E=hd(d,i);return E===n&&E===l?Cd(d,i):_s(l,E,I|B)}}function Fl(i,l,d,E,b){i!==l&&FA(l,function(T,D){if(b||(b=new Ar),Qt(T))g2(i,l,D,d,Fl,E,b);else{var N=E?E(ld(i,D),T,D+"",i,l,b):n;N===n&&(N=T),MA(i,D,N)}},fn)}function g2(i,l,d,E,b,T,D){var N=ld(i,d),U=ld(l,d),re=D.get(U);if(re){MA(i,d,re);return}var oe=T?T(N,U,d+"",i,l,D):n,ae=oe===n;if(ae){var me=Le(U),ye=!me&&fo(U),Oe=!me&&!ye&&zi(U);oe=U,me||ye||Oe?Le(N)?oe=N:Ot(N)?oe=dn(N):ye?(ae=!1,oe=AC(U,!0)):Oe?(ae=!1,oe=dC(U,!0)):oe=[]:ra(U)||_o(U)?(oe=N,_o(N)?oe=lm(N):(!Qt(N)||Vr(N))&&(oe=PC(U))):ae=!1}ae&&(D.set(U,oe),b(oe,U,E,T,D),D.delete(U)),MA(i,d,oe)}function eC(i,l){var d=i.length;if(d)return l+=l<0?d:0,Nr(l,d)?i[l]:n}function tC(i,l,d){l.length?l=It(l,function(T){return Le(T)?function(D){return Jo(D,T.length===1?T[0]:T)}:T}):l=[pn];var E=-1;l=It(l,wn(Re()));var b=Zh(i,function(T,D,N){var U=It(l,function(re){return re(T)});return{criteria:U,index:++E,value:T}});return V1(b,function(T,D){return x2(T,D,d)})}function f2(i,l){return nC(i,l,function(d,E){return Cd(i,E)})}function nC(i,l,d){for(var E=-1,b=l.length,T={};++E<b;){var D=l[E],N=Jo(i,D);d(N,D)&&$s(T,Ao(D,i),N)}return T}function p2(i){return function(l){return Jo(l,i)}}function UA(i,l,d,E){var b=E?N1:Ri,T=-1,D=l.length,N=i;for(i===l&&(l=dn(l)),d&&(N=It(i,wn(d)));++T<D;)for(var U=0,re=l[T],oe=d?d(re):re;(U=b(N,oe,U,E))>-1;)N!==i&&wl.call(N,U,1),wl.call(i,U,1);return i}function rC(i,l){for(var d=i?l.length:0,E=d-1;d--;){var b=l[d];if(d==E||b!==T){var T=b;Nr(b)?wl.call(i,b,1):qA(i,b)}}return i}function YA(i,l){return i+Pl(Fh()*(l-i+1))}function h2(i,l,d,E){for(var b=-1,T=Ut(Sl((l-i)/(d||1)),0),D=ee(T);T--;)D[E?T:++b]=i,i+=d;return D}function GA(i,l){var d="";if(!i||l<1||l>L)return d;do l%2&&(d+=i),l=Pl(l/2),l&&(i+=i);while(l);return d}function Ke(i,l){return cd(jC(i,l,pn),i+"")}function C2(i){return Vh(Wi(i))}function m2(i,l){var d=Wi(i);return Kl(d,qo(l,0,d.length))}function $s(i,l,d,E){if(!Qt(i))return i;l=Ao(l,i);for(var b=-1,T=l.length,D=T-1,N=i;N!=null&&++b<T;){var U=yr(l[b]),re=d;if(U==="__proto__"||U==="constructor"||U==="prototype")return i;if(b!=D){var oe=N[U];re=E?E(oe,U,N):n,re===n&&(re=Qt(oe)?oe:Nr(l[b+1])?[]:{})}Js(N,U,re),N=N[U]}return i}var oC=Rl?function(i,l){return Rl.set(i,l),i}:pn,E2=Tl?function(i,l){return Tl(i,"toString",{configurable:!0,enumerable:!1,value:Ed(l),writable:!0})}:pn;function I2(i){return Kl(Wi(i))}function Gn(i,l,d){var E=-1,b=i.length;l<0&&(l=-l>b?0:b+l),d=d>b?b:d,d<0&&(d+=b),b=l>d?0:d-l>>>0,l>>>=0;for(var T=ee(b);++E<b;)T[E]=i[E+l];return T}function B2(i,l){var d;return co(i,function(E,b,T){return d=l(E,b,T),!d}),!!d}function Ll(i,l,d){var E=0,b=i==null?E:i.length;if(typeof l=="number"&&l===l&&b<=pe){for(;E<b;){var T=E+b>>>1,D=i[T];D!==null&&!Sn(D)&&(d?D<=l:D<l)?E=T+1:b=T}return b}return KA(i,l,pn,d)}function KA(i,l,d,E){var b=0,T=i==null?0:i.length;if(T===0)return 0;l=d(l);for(var D=l!==l,N=l===null,U=Sn(l),re=l===n;b<T;){var oe=Pl((b+T)/2),ae=d(i[oe]),me=ae!==n,ye=ae===null,Oe=ae===ae,Ye=Sn(ae);if(D)var je=E||Oe;else re?je=Oe&&(E||me):N?je=Oe&&me&&(E||!ye):U?je=Oe&&me&&!ye&&(E||!Ye):ye||Ye?je=!1:je=E?ae<=l:ae<l;je?b=oe+1:T=oe}return Zt(T,le)}function iC(i,l){for(var d=-1,E=i.length,b=0,T=[];++d<E;){var D=i[d],N=l?l(D):D;if(!d||!dr(N,U)){var U=N;T[b++]=D===0?0:D}}return T}function sC(i){return typeof i=="number"?i:Sn(i)?V:+i}function Tn(i){if(typeof i=="string")return i;if(Le(i))return It(i,Tn)+"";if(Sn(i))return Lh?Lh.call(i):"";var l=i+"";return l=="0"&&1/i==-J?"-0":l}function uo(i,l,d){var E=-1,b=Cl,T=i.length,D=!0,N=[],U=N;if(d)D=!1,b=vA;else if(T>=o){var re=l?null:O2(i);if(re)return El(re);D=!1,b=Ws,U=new Ko}else U=l?[]:N;e:for(;++E<T;){var oe=i[E],ae=l?l(oe):oe;if(oe=d||oe!==0?oe:0,D&&ae===ae){for(var me=U.length;me--;)if(U[me]===ae)continue e;l&&U.push(ae),N.push(oe)}else b(U,ae,d)||(U!==N&&U.push(ae),N.push(oe))}return N}function qA(i,l){return l=Ao(l,i),i=DC(i,l),i==null||delete i[yr(Kn(l))]}function aC(i,l,d,E){return $s(i,l,d(Jo(i,l)),E)}function Nl(i,l,d,E){for(var b=i.length,T=E?b:-1;(E?T--:++T<b)&&l(i[T],T,i););return d?Gn(i,E?0:T,E?T+1:b):Gn(i,E?T+1:0,E?b:T)}function lC(i,l){var d=i;return d instanceof Xe&&(d=d.value()),bA(l,function(E,b){return b.func.apply(b.thisArg,so([E],b.args))},d)}function JA(i,l,d){var E=i.length;if(E<2)return E?uo(i[0]):[];for(var b=-1,T=ee(E);++b<E;)for(var D=i[b],N=-1;++N<E;)N!=b&&(T[b]=Xs(T[b]||D,i[N],l,d));return uo(Xt(T,1),l,d)}function cC(i,l,d){for(var E=-1,b=i.length,T=l.length,D={};++E<b;){var N=E<T?l[E]:n;d(D,i[E],N)}return D}function XA(i){return Ot(i)?i:[]}function ZA(i){return typeof i=="function"?i:pn}function Ao(i,l){return Le(i)?i:sd(i,l)?[i]:LC(tt(i))}var v2=Ke;function go(i,l,d){var E=i.length;return d=d===n?E:d,!l&&d>=E?i:Gn(i,l,d)}var uC=cw||function(i){return Jt.clearTimeout(i)};function AC(i,l){if(l)return i.slice();var d=i.length,E=Oh?Oh(d):new i.constructor(d);return i.copy(E),E}function _A(i){var l=new i.constructor(i.byteLength);return new Ql(l).set(new Ql(i)),l}function b2(i,l){var d=l?_A(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function y2(i){var l=new i.constructor(i.source,zs.exec(i));return l.lastIndex=i.lastIndex,l}function Q2(i){return qs?At(qs.call(i)):{}}function dC(i,l){var d=l?_A(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function gC(i,l){if(i!==l){var d=i!==n,E=i===null,b=i===i,T=Sn(i),D=l!==n,N=l===null,U=l===l,re=Sn(l);if(!N&&!re&&!T&&i>l||T&&D&&U&&!N&&!re||E&&D&&U||!d&&U||!b)return 1;if(!E&&!T&&!re&&i<l||re&&d&&b&&!E&&!T||N&&d&&b||!D&&b||!U)return-1}return 0}function x2(i,l,d){for(var E=-1,b=i.criteria,T=l.criteria,D=b.length,N=d.length;++E<D;){var U=gC(b[E],T[E]);if(U){if(E>=N)return U;var re=d[E];return U*(re=="desc"?-1:1)}}return i.index-l.index}function fC(i,l,d,E){for(var b=-1,T=i.length,D=d.length,N=-1,U=l.length,re=Ut(T-D,0),oe=ee(U+re),ae=!E;++N<U;)oe[N]=l[N];for(;++b<D;)(ae||b<T)&&(oe[d[b]]=i[b]);for(;re--;)oe[N++]=i[b++];return oe}function pC(i,l,d,E){for(var b=-1,T=i.length,D=-1,N=d.length,U=-1,re=l.length,oe=Ut(T-N,0),ae=ee(oe+re),me=!E;++b<oe;)ae[b]=i[b];for(var ye=b;++U<re;)ae[ye+U]=l[U];for(;++D<N;)(me||b<T)&&(ae[ye+d[D]]=i[b++]);return ae}function dn(i,l){var d=-1,E=i.length;for(l||(l=ee(E));++d<E;)l[d]=i[d];return l}function br(i,l,d,E){var b=!d;d||(d={});for(var T=-1,D=l.length;++T<D;){var N=l[T],U=E?E(d[N],i[N],N,d,i):n;U===n&&(U=i[N]),b?kr(d,N,U):Js(d,N,U)}return d}function w2(i,l){return br(i,id(i),l)}function T2(i,l){return br(i,TC(i),l)}function Vl(i,l){return function(d,E){var b=Le(d)?j1:Xw,T=l?l():{};return b(d,i,Re(E,2),T)}}function Ni(i){return Ke(function(l,d){var E=-1,b=d.length,T=b>1?d[b-1]:n,D=b>2?d[2]:n;for(T=i.length>3&&typeof T=="function"?(b--,T):n,D&&an(d[0],d[1],D)&&(T=b<3?n:T,b=1),l=At(l);++E<b;){var N=d[E];N&&i(l,N,E,T)}return l})}function hC(i,l){return function(d,E){if(d==null)return d;if(!gn(d))return i(d,E);for(var b=d.length,T=l?b:-1,D=At(d);(l?T--:++T<b)&&E(D[T],T,D)!==!1;);return d}}function CC(i){return function(l,d,E){for(var b=-1,T=At(l),D=E(l),N=D.length;N--;){var U=D[i?N:++b];if(d(T[U],U,T)===!1)break}return l}}function S2(i,l,d){var E=l&v,b=ea(i);function T(){var D=this&&this!==Jt&&this instanceof T?b:i;return D.apply(E?d:this,arguments)}return T}function mC(i){return function(l){l=tt(l);var d=Oi(l)?ur(l):n,E=d?d[0]:l.charAt(0),b=d?go(d,1).join(""):l.slice(1);return E[i]()+b}}function Vi(i){return function(l){return bA(hm(pm(l).replace(E1,"")),i,"")}}function ea(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=Li(i.prototype),E=i.apply(d,l);return Qt(E)?E:d}}function P2(i,l,d){var E=ea(i);function b(){for(var T=arguments.length,D=ee(T),N=T,U=Hi(b);N--;)D[N]=arguments[N];var re=T<3&&D[0]!==U&&D[T-1]!==U?[]:ao(D,U);if(T-=re.length,T<d)return bC(i,l,Hl,b.placeholder,n,D,re,n,n,d-T);var oe=this&&this!==Jt&&this instanceof b?E:i;return xn(oe,this,D)}return b}function EC(i){return function(l,d,E){var b=At(l);if(!gn(l)){var T=Re(d,3);l=Gt(l),d=function(N){return T(b[N],N,b)}}var D=i(l,d,E);return D>-1?b[T?l[D]:D]:n}}function IC(i){return Lr(function(l){var d=l.length,E=d,b=Un.prototype.thru;for(i&&l.reverse();E--;){var T=l[E];if(typeof T!="function")throw new Wn(a);if(b&&!D&&Yl(T)=="wrapper")var D=new Un([],!0)}for(E=D?E:d;++E<d;){T=l[E];var N=Yl(T),U=N=="wrapper"?rd(T):n;U&&ad(U[0])&&U[1]==(F|x|P|G)&&!U[4].length&&U[9]==1?D=D[Yl(U[0])].apply(D,U[3]):D=T.length==1&&ad(T)?D[N]():D.thru(T)}return function(){var re=arguments,oe=re[0];if(D&&re.length==1&&Le(oe))return D.plant(oe).value();for(var ae=0,me=d?l[ae].apply(this,re):oe;++ae<d;)me=l[ae].call(this,me);return me}})}function Hl(i,l,d,E,b,T,D,N,U,re){var oe=l&F,ae=l&v,me=l&S,ye=l&(x|R),Oe=l&K,Ye=me?n:ea(i);function je(){for(var Je=arguments.length,_e=ee(Je),Pn=Je;Pn--;)_e[Pn]=arguments[Pn];if(ye)var ln=Hi(je),Rn=z1(_e,ln);if(E&&(_e=fC(_e,E,b,ye)),T&&(_e=pC(_e,T,D,ye)),Je-=Rn,ye&&Je<re){var jt=ao(_e,ln);return bC(i,l,Hl,je.placeholder,d,_e,jt,N,U,re-Je)}var gr=ae?d:this,zr=me?gr[i]:i;return Je=_e.length,N?_e=X2(_e,N):Oe&&Je>1&&_e.reverse(),oe&&U<Je&&(_e.length=U),this&&this!==Jt&&this instanceof je&&(zr=Ye||ea(zr)),zr.apply(gr,_e)}return je}function BC(i,l){return function(d,E){return o2(d,i,l(E),{})}}function zl(i,l){return function(d,E){var b;if(d===n&&E===n)return l;if(d!==n&&(b=d),E!==n){if(b===n)return E;typeof d=="string"||typeof E=="string"?(d=Tn(d),E=Tn(E)):(d=sC(d),E=sC(E)),b=i(d,E)}return b}}function $A(i){return Lr(function(l){return l=It(l,wn(Re())),Ke(function(d){var E=this;return i(l,function(b){return xn(b,E,d)})})})}function Wl(i,l){l=l===n?" ":Tn(l);var d=l.length;if(d<2)return d?GA(l,i):l;var E=GA(l,Sl(i/ji(l)));return Oi(l)?go(ur(E),0,i).join(""):E.slice(0,i)}function R2(i,l,d,E){var b=l&v,T=ea(i);function D(){for(var N=-1,U=arguments.length,re=-1,oe=E.length,ae=ee(oe+U),me=this&&this!==Jt&&this instanceof D?T:i;++re<oe;)ae[re]=E[re];for(;U--;)ae[re++]=arguments[++N];return xn(me,b?d:this,ae)}return D}function vC(i){return function(l,d,E){return E&&typeof E!="number"&&an(l,d,E)&&(d=E=n),l=Hr(l),d===n?(d=l,l=0):d=Hr(d),E=E===n?l<d?1:-1:Hr(E),h2(l,d,E,i)}}function Ul(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=qn(l),d=qn(d)),i(l,d)}}function bC(i,l,d,E,b,T,D,N,U,re){var oe=l&x,ae=oe?D:n,me=oe?n:D,ye=oe?T:n,Oe=oe?n:T;l|=oe?P:k,l&=~(oe?k:P),l&O||(l&=~(v|S));var Ye=[i,l,b,ye,ae,Oe,me,N,U,re],je=d.apply(n,Ye);return ad(i)&&MC(je,Ye),je.placeholder=E,kC(je,i,l)}function ed(i){var l=Wt[i];return function(d,E){if(d=qn(d),E=E==null?0:Zt(He(E),292),E&&kh(d)){var b=(tt(d)+"e").split("e"),T=l(b[0]+"e"+(+b[1]+E));return b=(tt(T)+"e").split("e"),+(b[0]+"e"+(+b[1]-E))}return l(d)}}var O2=ki&&1/El(new ki([,-0]))[1]==J?function(i){return new ki(i)}:vd;function yC(i){return function(l){var d=_t(l);return d==fe?PA(l):d==pt?J1(l):H1(l,i(l))}}function Fr(i,l,d,E,b,T,D,N){var U=l&S;if(!U&&typeof i!="function")throw new Wn(a);var re=E?E.length:0;if(re||(l&=~(P|k),E=b=n),D=D===n?D:Ut(He(D),0),N=N===n?N:He(N),re-=b?b.length:0,l&k){var oe=E,ae=b;E=b=n}var me=U?n:rd(i),ye=[i,l,d,E,b,oe,ae,T,D,N];if(me&&K2(ye,me),i=ye[0],l=ye[1],d=ye[2],E=ye[3],b=ye[4],N=ye[9]=ye[9]===n?U?0:i.length:Ut(ye[9]-re,0),!N&&l&(x|R)&&(l&=~(x|R)),!l||l==v)var Oe=S2(i,l,d);else l==x||l==R?Oe=P2(i,l,N):(l==P||l==(v|P))&&!b.length?Oe=R2(i,l,d,E):Oe=Hl.apply(n,ye);var Ye=me?oC:MC;return kC(Ye(Oe,ye),i,l)}function QC(i,l,d,E){return i===n||dr(i,Mi[d])&&!at.call(E,d)?l:i}function xC(i,l,d,E,b,T){return Qt(i)&&Qt(l)&&(T.set(l,i),Fl(i,l,n,xC,T),T.delete(l)),i}function j2(i){return ra(i)?n:i}function wC(i,l,d,E,b,T){var D=d&I,N=i.length,U=l.length;if(N!=U&&!(D&&U>N))return!1;var re=T.get(i),oe=T.get(l);if(re&&oe)return re==l&&oe==i;var ae=-1,me=!0,ye=d&B?new Ko:n;for(T.set(i,l),T.set(l,i);++ae<N;){var Oe=i[ae],Ye=l[ae];if(E)var je=D?E(Ye,Oe,ae,l,i,T):E(Oe,Ye,ae,i,l,T);if(je!==n){if(je)continue;me=!1;break}if(ye){if(!yA(l,function(Je,_e){if(!Ws(ye,_e)&&(Oe===Je||b(Oe,Je,d,E,T)))return ye.push(_e)})){me=!1;break}}else if(!(Oe===Ye||b(Oe,Ye,d,E,T))){me=!1;break}}return T.delete(i),T.delete(l),me}function D2(i,l,d,E,b,T,D){switch(d){case We:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case we:return!(i.byteLength!=l.byteLength||!T(new Ql(i),new Ql(l)));case Ee:case Ce:case st:return dr(+i,+l);case xe:return i.name==l.name&&i.message==l.message;case Et:case ct:return i==l+"";case fe:var N=PA;case pt:var U=E&I;if(N||(N=El),i.size!=l.size&&!U)return!1;var re=D.get(i);if(re)return re==l;E|=B,D.set(i,l);var oe=wC(N(i),N(l),E,b,T,D);return D.delete(i),oe;case kt:if(qs)return qs.call(i)==qs.call(l)}return!1}function M2(i,l,d,E,b,T){var D=d&I,N=td(i),U=N.length,re=td(l),oe=re.length;if(U!=oe&&!D)return!1;for(var ae=U;ae--;){var me=N[ae];if(!(D?me in l:at.call(l,me)))return!1}var ye=T.get(i),Oe=T.get(l);if(ye&&Oe)return ye==l&&Oe==i;var Ye=!0;T.set(i,l),T.set(l,i);for(var je=D;++ae<U;){me=N[ae];var Je=i[me],_e=l[me];if(E)var Pn=D?E(_e,Je,me,l,i,T):E(Je,_e,me,i,l,T);if(!(Pn===n?Je===_e||b(Je,_e,d,E,T):Pn)){Ye=!1;break}je||(je=me=="constructor")}if(Ye&&!je){var ln=i.constructor,Rn=l.constructor;ln!=Rn&&"constructor"in i&&"constructor"in l&&!(typeof ln=="function"&&ln instanceof ln&&typeof Rn=="function"&&Rn instanceof Rn)&&(Ye=!1)}return T.delete(i),T.delete(l),Ye}function Lr(i){return cd(jC(i,n,zC),i+"")}function td(i){return Kh(i,Gt,id)}function nd(i){return Kh(i,fn,TC)}var rd=Rl?function(i){return Rl.get(i)}:vd;function Yl(i){for(var l=i.name+"",d=Fi[l],E=at.call(Fi,l)?d.length:0;E--;){var b=d[E],T=b.func;if(T==null||T==i)return b.name}return l}function Hi(i){var l=at.call(w,"placeholder")?w:i;return l.placeholder}function Re(){var i=w.iteratee||Id;return i=i===Id?Xh:i,arguments.length?i(arguments[0],arguments[1]):i}function Gl(i,l){var d=i.__data__;return W2(l)?d[typeof l=="string"?"string":"hash"]:d.map}function od(i){for(var l=Gt(i),d=l.length;d--;){var E=l[d],b=i[E];l[d]=[E,b,RC(b)]}return l}function Xo(i,l){var d=G1(i,l);return Jh(d)?d:n}function k2(i){var l=at.call(i,Yo),d=i[Yo];try{i[Yo]=n;var E=!0}catch{}var b=bl.call(i);return E&&(l?i[Yo]=d:delete i[Yo]),b}var id=OA?function(i){return i==null?[]:(i=At(i),io(OA(i),function(l){return Dh.call(i,l)}))}:bd,TC=OA?function(i){for(var l=[];i;)so(l,id(i)),i=xl(i);return l}:bd,_t=sn;(jA&&_t(new jA(new ArrayBuffer(1)))!=We||Ys&&_t(new Ys)!=fe||DA&&_t(DA.resolve())!=yt||ki&&_t(new ki)!=pt||Gs&&_t(new Gs)!=Se)&&(_t=function(i){var l=sn(i),d=l==ft?i.constructor:n,E=d?Zo(d):"";if(E)switch(E){case mw:return We;case Ew:return fe;case Iw:return yt;case Bw:return pt;case vw:return Se}return l});function F2(i,l,d){for(var E=-1,b=d.length;++E<b;){var T=d[E],D=T.size;switch(T.type){case"drop":i+=D;break;case"dropRight":l-=D;break;case"take":l=Zt(l,i+D);break;case"takeRight":i=Ut(i,l-D);break}}return{start:i,end:l}}function L2(i){var l=i.match(zo);return l?l[1].split(uA):[]}function SC(i,l,d){l=Ao(l,i);for(var E=-1,b=l.length,T=!1;++E<b;){var D=yr(l[E]);if(!(T=i!=null&&d(i,D)))break;i=i[D]}return T||++E!=b?T:(b=i==null?0:i.length,!!b&&$l(b)&&Nr(D,b)&&(Le(i)||_o(i)))}function N2(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&at.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function PC(i){return typeof i.constructor=="function"&&!ta(i)?Li(xl(i)):{}}function V2(i,l,d){var E=i.constructor;switch(l){case we:return _A(i);case Ee:case Ce:return new E(+i);case We:return b2(i,d);case Te:case ut:case Ue:case Qe:case Lt:case Br:case cr:case Vo:case Si:return dC(i,d);case fe:return new E;case st:case ct:return new E(i);case Et:return y2(i);case pt:return new E;case kt:return Q2(i)}}function H2(i,l){var d=l.length;if(!d)return i;var E=d-1;return l[E]=(d>1?"& ":"")+l[E],l=l.join(d>2?", ":" "),i.replace(An,`{
79
79
  /* [wrapped with `+l+`] */
80
- `)}function zT(i){return Le(i)||_o(i)||!!(Mh&&i&&i[Mh])}function Nr(i,l){var d=typeof i;return l=l??L,!!l&&(d=="number"||d!="symbol"&&fA.test(i))&&i>-1&&i%1==0&&i<l}function an(i,l,d){if(!Qt(d))return!1;var E=typeof l;return(E=="number"?gn(d)&&Nr(l,d.length):E=="string"&&l in d)?dr(d[l],i):!1}function sd(i,l){if(Le(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||Sn(i)?!0:aA.test(i)||!sA.test(i)||l!=null&&i in At(l)}function WT(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function ad(i){var l=Yl(i),d=w[l];if(typeof d!="function"||!(l in Xe.prototype))return!1;if(i===d)return!0;var E=rd(d);return!!E&&i===E[0]}function UT(i){return!!Rh&&Rh in i}var YT=Bl?Vr:yd;function ta(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Mi;return i===d}function RC(i){return i===i&&!Qt(i)}function OC(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==n||i in At(d))}}function GT(i){var l=Zl(i,function(E){return d.size===A&&d.clear(),E}),d=l.cache;return l}function KT(i,l){var d=i[1],E=l[1],b=d|E,T=b<(v|S|F),D=E==F&&d==x||E==F&&d==G&&i[7].length<=l[8]||E==(F|G)&&l[7].length<=l[8]&&d==x;if(!(T||D))return i;E&v&&(i[2]=l[2],b|=d&v?0:O);var N=l[3];if(N){var U=i[3];i[3]=U?fC(U,N,l[4]):N,i[4]=U?ao(i[3],p):l[4]}return N=l[5],N&&(U=i[5],i[5]=U?pC(U,N,l[6]):N,i[6]=U?ao(i[5],p):l[6]),N=l[7],N&&(i[7]=N),E&F&&(i[8]=i[8]==null?l[8]:Zt(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=b,i}function qT(i){var l=[];if(i!=null)for(var d in At(i))l.push(d);return l}function JT(i){return bl.call(i)}function jC(i,l,d){return l=Ut(l===n?i.length-1:l,0),function(){for(var E=arguments,b=-1,T=Ut(E.length-l,0),D=ee(T);++b<T;)D[b]=E[l+b];b=-1;for(var N=ee(l+1);++b<l;)N[b]=E[b];return N[l]=d(D),xn(i,this,N)}}function DC(i,l){return l.length<2?i:Jo(i,Gn(l,0,-1))}function XT(i,l){for(var d=i.length,E=Zt(l.length,d),b=dn(i);E--;){var T=l[E];i[E]=Nr(T,d)?b[T]:n}return i}function ld(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var MC=FC(oC),na=Aw||function(i,l){return Jt.setTimeout(i,l)},cd=FC(ET);function kC(i,l,d){var E=l+"";return cd(i,HT(E,ZT(LT(E),d)))}function FC(i){var l=0,d=0;return function(){var E=pw(),b=se-(E-d);if(d=E,b>0){if(++l>=ie)return arguments[0]}else l=0;return i.apply(n,arguments)}}function Kl(i,l){var d=-1,E=i.length,b=E-1;for(l=l===n?E:l;++d<l;){var T=YA(d,b),D=i[T];i[T]=i[d],i[d]=D}return i.length=l,i}var LC=GT(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(lA,function(d,E,b,T){l.push(b?T.replace(dl,"$1"):E||d)}),l});function yr(i){if(typeof i=="string"||Sn(i))return i;var l=i+"";return l=="0"&&1/i==-J?"-0":l}function Zo(i){if(i!=null){try{return vl.call(i)}catch{}try{return i+""}catch{}}return""}function ZT(i,l){return zn(de,function(d){var E="_."+d[0];l&d[1]&&!Cl(i,E)&&i.push(E)}),i.sort()}function NC(i){if(i instanceof Xe)return i.clone();var l=new Un(i.__wrapped__,i.__chain__);return l.__actions__=dn(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function _T(i,l,d){(d?an(i,l,d):l===n)?l=1:l=Ut(He(l),0);var E=i==null?0:i.length;if(!E||l<1)return[];for(var b=0,T=0,D=ee(Sl(E/l));b<E;)D[T++]=Gn(i,b,b+=l);return D}function $T(i){for(var l=-1,d=i==null?0:i.length,E=0,b=[];++l<d;){var T=i[l];T&&(b[E++]=T)}return b}function e2(){var i=arguments.length;if(!i)return[];for(var l=ee(i-1),d=arguments[0],E=i;E--;)l[E-1]=arguments[E];return so(Le(d)?dn(d):[d],Xt(l,1))}var t2=Ke(function(i,l){return Ot(i)?Xs(i,Xt(l,1,Ot,!0)):[]}),n2=Ke(function(i,l){var d=Kn(l);return Ot(d)&&(d=n),Ot(i)?Xs(i,Xt(l,1,Ot,!0),Re(d,2)):[]}),r2=Ke(function(i,l){var d=Kn(l);return Ot(d)&&(d=n),Ot(i)?Xs(i,Xt(l,1,Ot,!0),n,d):[]});function o2(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),Gn(i,l<0?0:l,E)):[]}function i2(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),l=E-l,Gn(i,0,l<0?0:l)):[]}function s2(i,l){return i&&i.length?Nl(i,Re(l,3),!0,!0):[]}function a2(i,l){return i&&i.length?Nl(i,Re(l,3),!0):[]}function l2(i,l,d,E){var b=i==null?0:i.length;return b?(d&&typeof d!="number"&&an(i,l,d)&&(d=0,E=b),eT(i,l,d,E)):[]}function VC(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=d==null?0:He(d);return b<0&&(b=Ut(E+b,0)),ml(i,Re(l,3),b)}function HC(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=E-1;return d!==n&&(b=He(d),b=d<0?Ut(E+b,0):Zt(b,E-1)),ml(i,Re(l,3),b,!0)}function zC(i){var l=i==null?0:i.length;return l?Xt(i,1):[]}function c2(i){var l=i==null?0:i.length;return l?Xt(i,J):[]}function u2(i,l){var d=i==null?0:i.length;return d?(l=l===n?1:He(l),Xt(i,l)):[]}function A2(i){for(var l=-1,d=i==null?0:i.length,E={};++l<d;){var b=i[l];E[b[0]]=b[1]}return E}function WC(i){return i&&i.length?i[0]:n}function d2(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=d==null?0:He(d);return b<0&&(b=Ut(E+b,0)),Ri(i,l,b)}function g2(i){var l=i==null?0:i.length;return l?Gn(i,0,-1):[]}var f2=Ke(function(i){var l=It(i,XA);return l.length&&l[0]===i[0]?VA(l):[]}),p2=Ke(function(i){var l=Kn(i),d=It(i,XA);return l===Kn(d)?l=n:d.pop(),d.length&&d[0]===i[0]?VA(d,Re(l,2)):[]}),h2=Ke(function(i){var l=Kn(i),d=It(i,XA);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===i[0]?VA(d,n,l):[]});function C2(i,l){return i==null?"":gw.call(i,l)}function Kn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function m2(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=E;return d!==n&&(b=He(d),b=b<0?Ut(E+b,0):Zt(b,E-1)),l===l?Z1(i,l,b):ml(i,bh,b,!0)}function E2(i,l){return i&&i.length?eC(i,He(l)):n}var I2=Ke(UC);function UC(i,l){return i&&i.length&&l&&l.length?UA(i,l):i}function B2(i,l,d){return i&&i.length&&l&&l.length?UA(i,l,Re(d,2)):i}function v2(i,l,d){return i&&i.length&&l&&l.length?UA(i,l,n,d):i}var b2=Lr(function(i,l){var d=i==null?0:i.length,E=kA(i,l);return rC(i,It(l,function(b){return Nr(b,d)?+b:b}).sort(gC)),E});function y2(i,l){var d=[];if(!(i&&i.length))return d;var E=-1,b=[],T=i.length;for(l=Re(l,3);++E<T;){var D=i[E];l(D,E,i)&&(d.push(D),b.push(E))}return rC(i,b),d}function ud(i){return i==null?i:Cw.call(i)}function Q2(i,l,d){var E=i==null?0:i.length;return E?(d&&typeof d!="number"&&an(i,l,d)?(l=0,d=E):(l=l==null?0:He(l),d=d===n?E:He(d)),Gn(i,l,d)):[]}function x2(i,l){return Ll(i,l)}function w2(i,l,d){return KA(i,l,Re(d,2))}function T2(i,l){var d=i==null?0:i.length;if(d){var E=Ll(i,l);if(E<d&&dr(i[E],l))return E}return-1}function S2(i,l){return Ll(i,l,!0)}function P2(i,l,d){return KA(i,l,Re(d,2),!0)}function R2(i,l){var d=i==null?0:i.length;if(d){var E=Ll(i,l,!0)-1;if(dr(i[E],l))return E}return-1}function O2(i){return i&&i.length?iC(i):[]}function j2(i,l){return i&&i.length?iC(i,Re(l,2)):[]}function D2(i){var l=i==null?0:i.length;return l?Gn(i,1,l):[]}function M2(i,l,d){return i&&i.length?(l=d||l===n?1:He(l),Gn(i,0,l<0?0:l)):[]}function k2(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),l=E-l,Gn(i,l<0?0:l,E)):[]}function F2(i,l){return i&&i.length?Nl(i,Re(l,3),!1,!0):[]}function L2(i,l){return i&&i.length?Nl(i,Re(l,3)):[]}var N2=Ke(function(i){return uo(Xt(i,1,Ot,!0))}),V2=Ke(function(i){var l=Kn(i);return Ot(l)&&(l=n),uo(Xt(i,1,Ot,!0),Re(l,2))}),H2=Ke(function(i){var l=Kn(i);return l=typeof l=="function"?l:n,uo(Xt(i,1,Ot,!0),n,l)});function z2(i){return i&&i.length?uo(i):[]}function W2(i,l){return i&&i.length?uo(i,Re(l,2)):[]}function U2(i,l){return l=typeof l=="function"?l:n,i&&i.length?uo(i,n,l):[]}function Ad(i){if(!(i&&i.length))return[];var l=0;return i=io(i,function(d){if(Ot(d))return l=Ut(d.length,l),!0}),TA(l,function(d){return It(i,QA(d))})}function YC(i,l){if(!(i&&i.length))return[];var d=Ad(i);return l==null?d:It(d,function(E){return xn(l,n,E)})}var Y2=Ke(function(i,l){return Ot(i)?Xs(i,l):[]}),G2=Ke(function(i){return JA(io(i,Ot))}),K2=Ke(function(i){var l=Kn(i);return Ot(l)&&(l=n),JA(io(i,Ot),Re(l,2))}),q2=Ke(function(i){var l=Kn(i);return l=typeof l=="function"?l:n,JA(io(i,Ot),n,l)}),J2=Ke(Ad);function X2(i,l){return cC(i||[],l||[],Js)}function Z2(i,l){return cC(i||[],l||[],$s)}var _2=Ke(function(i){var l=i.length,d=l>1?i[l-1]:n;return d=typeof d=="function"?(i.pop(),d):n,YC(i,d)});function GC(i){var l=w(i);return l.__chain__=!0,l}function $2(i,l){return l(i),i}function ql(i,l){return l(i)}var eS=Lr(function(i){var l=i.length,d=l?i[0]:0,E=this.__wrapped__,b=function(T){return kA(T,i)};return l>1||this.__actions__.length||!(E instanceof Xe)||!Nr(d)?this.thru(b):(E=E.slice(d,+d+(l?1:0)),E.__actions__.push({func:ql,args:[b],thisArg:n}),new Un(E,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function tS(){return GC(this)}function nS(){return new Un(this.value(),this.__chain__)}function rS(){this.__values__===n&&(this.__values__=sm(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function oS(){return this}function iS(i){for(var l,d=this;d instanceof jl;){var E=NC(d);E.__index__=0,E.__values__=n,l?b.__wrapped__=E:l=E;var b=E;d=d.__wrapped__}return b.__wrapped__=i,l}function sS(){var i=this.__wrapped__;if(i instanceof Xe){var l=i;return this.__actions__.length&&(l=new Xe(this)),l=l.reverse(),l.__actions__.push({func:ql,args:[ud],thisArg:n}),new Un(l,this.__chain__)}return this.thru(ud)}function aS(){return lC(this.__wrapped__,this.__actions__)}var lS=Vl(function(i,l,d){at.call(i,d)?++i[d]:kr(i,d,1)});function cS(i,l,d){var E=Le(i)?Bh:$w;return d&&an(i,l,d)&&(l=n),E(i,Re(l,3))}function uS(i,l){var d=Le(i)?io:Yh;return d(i,Re(l,3))}var AS=EC(VC),dS=EC(HC);function gS(i,l){return Xt(Jl(i,l),1)}function fS(i,l){return Xt(Jl(i,l),J)}function pS(i,l,d){return d=d===n?1:He(d),Xt(Jl(i,l),d)}function KC(i,l){var d=Le(i)?zn:co;return d(i,Re(l,3))}function qC(i,l){var d=Le(i)?D1:Uh;return d(i,Re(l,3))}var hS=Vl(function(i,l,d){at.call(i,d)?i[d].push(l):kr(i,d,[l])});function CS(i,l,d,E){i=gn(i)?i:Wi(i),d=d&&!E?He(d):0;var b=i.length;return d<0&&(d=Ut(b+d,0)),ec(i)?d<=b&&i.indexOf(l,d)>-1:!!b&&Ri(i,l,d)>-1}var mS=Ke(function(i,l,d){var E=-1,b=typeof l=="function",T=gn(i)?ee(i.length):[];return co(i,function(D){T[++E]=b?xn(l,D,d):Zs(D,l,d)}),T}),ES=Vl(function(i,l,d){kr(i,d,l)});function Jl(i,l){var d=Le(i)?It:Zh;return d(i,Re(l,3))}function IS(i,l,d,E){return i==null?[]:(Le(l)||(l=l==null?[]:[l]),d=E?n:d,Le(d)||(d=d==null?[]:[d]),tC(i,l,d))}var BS=Vl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function vS(i,l,d){var E=Le(i)?bA:Qh,b=arguments.length<3;return E(i,Re(l,4),d,b,co)}function bS(i,l,d){var E=Le(i)?M1:Qh,b=arguments.length<3;return E(i,Re(l,4),d,b,Uh)}function yS(i,l){var d=Le(i)?io:Yh;return d(i,_l(Re(l,3)))}function QS(i){var l=Le(i)?Vh:CT;return l(i)}function xS(i,l,d){(d?an(i,l,d):l===n)?l=1:l=He(l);var E=Le(i)?qw:mT;return E(i,l)}function wS(i){var l=Le(i)?Jw:IT;return l(i)}function TS(i){if(i==null)return 0;if(gn(i))return ec(i)?ji(i):i.length;var l=_t(i);return l==fe||l==pt?i.size:zA(i).length}function SS(i,l,d){var E=Le(i)?yA:BT;return d&&an(i,l,d)&&(l=n),E(i,Re(l,3))}var PS=Ke(function(i,l){if(i==null)return[];var d=l.length;return d>1&&an(i,l[0],l[1])?l=[]:d>2&&an(l[0],l[1],l[2])&&(l=[l[0]]),tC(i,Xt(l,1),[])}),Xl=uw||function(){return Jt.Date.now()};function RS(i,l){if(typeof l!="function")throw new Wn(a);return i=He(i),function(){if(--i<1)return l.apply(this,arguments)}}function JC(i,l,d){return l=d?n:l,l=i&&l==null?i.length:l,Fr(i,F,n,n,n,n,l)}function XC(i,l){var d;if(typeof l!="function")throw new Wn(a);return i=He(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=n),d}}var dd=Ke(function(i,l,d){var E=v;if(d.length){var b=ao(d,Hi(dd));E|=P}return Fr(i,E,l,d,b)}),ZC=Ke(function(i,l,d){var E=v|S;if(d.length){var b=ao(d,Hi(ZC));E|=P}return Fr(l,E,i,d,b)});function _C(i,l,d){l=d?n:l;var E=Fr(i,x,n,n,n,n,n,l);return E.placeholder=_C.placeholder,E}function $C(i,l,d){l=d?n:l;var E=Fr(i,R,n,n,n,n,n,l);return E.placeholder=$C.placeholder,E}function em(i,l,d){var E,b,T,D,N,U,re=0,oe=!1,ae=!1,me=!0;if(typeof i!="function")throw new Wn(a);l=qn(l)||0,Qt(d)&&(oe=!!d.leading,ae="maxWait"in d,T=ae?Ut(qn(d.maxWait)||0,l):T,me="trailing"in d?!!d.trailing:me);function ye(jt){var gr=E,zr=b;return E=b=n,re=jt,D=i.apply(zr,gr),D}function Oe(jt){return re=jt,N=na(Je,l),oe?ye(jt):D}function Ye(jt){var gr=jt-U,zr=jt-re,Em=l-gr;return ae?Zt(Em,T-zr):Em}function je(jt){var gr=jt-U,zr=jt-re;return U===n||gr>=l||gr<0||ae&&zr>=T}function Je(){var jt=Xl();if(je(jt))return _e(jt);N=na(Je,Ye(jt))}function _e(jt){return N=n,me&&E?ye(jt):(E=b=n,D)}function Pn(){N!==n&&uC(N),re=0,E=U=b=N=n}function ln(){return N===n?D:_e(Xl())}function Rn(){var jt=Xl(),gr=je(jt);if(E=arguments,b=this,U=jt,gr){if(N===n)return Oe(U);if(ae)return uC(N),N=na(Je,l),ye(U)}return N===n&&(N=na(Je,l)),D}return Rn.cancel=Pn,Rn.flush=ln,Rn}var OS=Ke(function(i,l){return Wh(i,1,l)}),jS=Ke(function(i,l,d){return Wh(i,qn(l)||0,d)});function DS(i){return Fr(i,K)}function Zl(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new Wn(a);var d=function(){var E=arguments,b=l?l.apply(this,E):E[0],T=d.cache;if(T.has(b))return T.get(b);var D=i.apply(this,E);return d.cache=T.set(b,D)||T,D};return d.cache=new(Zl.Cache||Mr),d}Zl.Cache=Mr;function _l(i){if(typeof i!="function")throw new Wn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function MS(i){return XC(2,i)}var kS=vT(function(i,l){l=l.length==1&&Le(l[0])?It(l[0],wn(Re())):It(Xt(l,1),wn(Re()));var d=l.length;return Ke(function(E){for(var b=-1,T=Zt(E.length,d);++b<T;)E[b]=l[b].call(this,E[b]);return xn(i,this,E)})}),gd=Ke(function(i,l){var d=ao(l,Hi(gd));return Fr(i,P,n,l,d)}),tm=Ke(function(i,l){var d=ao(l,Hi(tm));return Fr(i,k,n,l,d)}),FS=Lr(function(i,l){return Fr(i,G,n,n,n,l)});function LS(i,l){if(typeof i!="function")throw new Wn(a);return l=l===n?l:He(l),Ke(i,l)}function NS(i,l){if(typeof i!="function")throw new Wn(a);return l=l==null?0:Ut(He(l),0),Ke(function(d){var E=d[l],b=go(d,0,l);return E&&so(b,E),xn(i,this,b)})}function VS(i,l,d){var E=!0,b=!0;if(typeof i!="function")throw new Wn(a);return Qt(d)&&(E="leading"in d?!!d.leading:E,b="trailing"in d?!!d.trailing:b),em(i,l,{leading:E,maxWait:l,trailing:b})}function HS(i){return JC(i,1)}function zS(i,l){return gd(ZA(l),i)}function WS(){if(!arguments.length)return[];var i=arguments[0];return Le(i)?i:[i]}function US(i){return Yn(i,m)}function YS(i,l){return l=typeof l=="function"?l:n,Yn(i,m,l)}function GS(i){return Yn(i,h|m)}function KS(i,l){return l=typeof l=="function"?l:n,Yn(i,h|m,l)}function qS(i,l){return l==null||zh(i,l,Gt(l))}function dr(i,l){return i===l||i!==i&&l!==l}var JS=Ul(NA),XS=Ul(function(i,l){return i>=l}),_o=qh(function(){return arguments}())?qh:function(i){return wt(i)&&at.call(i,"callee")&&!Dh.call(i,"callee")},Le=ee.isArray,ZS=ph?wn(ph):iT;function gn(i){return i!=null&&$l(i.length)&&!Vr(i)}function Ot(i){return wt(i)&&gn(i)}function _S(i){return i===!0||i===!1||wt(i)&&sn(i)==Ee}var fo=dw||yd,$S=hh?wn(hh):sT;function eP(i){return wt(i)&&i.nodeType===1&&!ra(i)}function tP(i){if(i==null)return!0;if(gn(i)&&(Le(i)||typeof i=="string"||typeof i.splice=="function"||fo(i)||zi(i)||_o(i)))return!i.length;var l=_t(i);if(l==fe||l==pt)return!i.size;if(ta(i))return!zA(i).length;for(var d in i)if(at.call(i,d))return!1;return!0}function nP(i,l){return _s(i,l)}function rP(i,l,d){d=typeof d=="function"?d:n;var E=d?d(i,l):n;return E===n?_s(i,l,n,d):!!E}function fd(i){if(!wt(i))return!1;var l=sn(i);return l==xe||l==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!ra(i)}function oP(i){return typeof i=="number"&&kh(i)}function Vr(i){if(!Qt(i))return!1;var l=sn(i);return l==ue||l==qe||l==Be||l==Ir}function nm(i){return typeof i=="number"&&i==He(i)}function $l(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=L}function Qt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function wt(i){return i!=null&&typeof i=="object"}var rm=Ch?wn(Ch):lT;function iP(i,l){return i===l||HA(i,l,od(l))}function sP(i,l,d){return d=typeof d=="function"?d:n,HA(i,l,od(l),d)}function aP(i){return om(i)&&i!=+i}function lP(i){if(YT(i))throw new Fe(s);return Jh(i)}function cP(i){return i===null}function uP(i){return i==null}function om(i){return typeof i=="number"||wt(i)&&sn(i)==st}function ra(i){if(!wt(i)||sn(i)!=ft)return!1;var l=xl(i);if(l===null)return!0;var d=at.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&vl.call(d)==sw}var pd=mh?wn(mh):cT;function AP(i){return nm(i)&&i>=-L&&i<=L}var im=Eh?wn(Eh):uT;function ec(i){return typeof i=="string"||!Le(i)&&wt(i)&&sn(i)==ct}function Sn(i){return typeof i=="symbol"||wt(i)&&sn(i)==kt}var zi=Ih?wn(Ih):AT;function dP(i){return i===n}function gP(i){return wt(i)&&_t(i)==Se}function fP(i){return wt(i)&&sn(i)==ke}var pP=Ul(WA),hP=Ul(function(i,l){return i<=l});function sm(i){if(!i)return[];if(gn(i))return ec(i)?ur(i):dn(i);if(Us&&i[Us])return q1(i[Us]());var l=_t(i),d=l==fe?PA:l==pt?El:Wi;return d(i)}function Hr(i){if(!i)return i===0?i:0;if(i=qn(i),i===J||i===-J){var l=i<0?-1:1;return l*_}return i===i?i:0}function He(i){var l=Hr(i),d=l%1;return l===l?d?l-d:l:0}function am(i){return i?qo(He(i),0,q):0}function qn(i){if(typeof i=="number")return i;if(Sn(i))return V;if(Qt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=Qt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=xh(i);var d=AA.test(i);return d||gA.test(i)?R1(i.slice(2),d?2:8):fl.test(i)?V:+i}function lm(i){return br(i,fn(i))}function CP(i){return i?qo(He(i),-L,L):i===0?i:0}function tt(i){return i==null?"":Tn(i)}var mP=Ni(function(i,l){if(ta(l)||gn(l)){br(l,Gt(l),i);return}for(var d in l)at.call(l,d)&&Js(i,d,l[d])}),cm=Ni(function(i,l){br(l,fn(l),i)}),tc=Ni(function(i,l,d,E){br(l,fn(l),i,E)}),EP=Ni(function(i,l,d,E){br(l,Gt(l),i,E)}),IP=Lr(kA);function BP(i,l){var d=Li(i);return l==null?d:Hh(d,l)}var vP=Ke(function(i,l){i=At(i);var d=-1,E=l.length,b=E>2?l[2]:n;for(b&&an(l[0],l[1],b)&&(E=1);++d<E;)for(var T=l[d],D=fn(T),N=-1,U=D.length;++N<U;){var re=D[N],oe=i[re];(oe===n||dr(oe,Mi[re])&&!at.call(i,re))&&(i[re]=T[re])}return i}),bP=Ke(function(i){return i.push(n,xC),xn(um,n,i)});function yP(i,l){return vh(i,Re(l,3),vr)}function QP(i,l){return vh(i,Re(l,3),LA)}function xP(i,l){return i==null?i:FA(i,Re(l,3),fn)}function wP(i,l){return i==null?i:Gh(i,Re(l,3),fn)}function TP(i,l){return i&&vr(i,Re(l,3))}function SP(i,l){return i&&LA(i,Re(l,3))}function PP(i){return i==null?[]:kl(i,Gt(i))}function RP(i){return i==null?[]:kl(i,fn(i))}function hd(i,l,d){var E=i==null?n:Jo(i,l);return E===n?d:E}function OP(i,l){return i!=null&&SC(i,l,tT)}function Cd(i,l){return i!=null&&SC(i,l,nT)}var jP=BC(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=bl.call(l)),i[l]=d},Ed(pn)),DP=BC(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=bl.call(l)),at.call(i,l)?i[l].push(d):i[l]=[d]},Re),MP=Ke(Zs);function Gt(i){return gn(i)?Nh(i):zA(i)}function fn(i){return gn(i)?Nh(i,!0):dT(i)}function kP(i,l){var d={};return l=Re(l,3),vr(i,function(E,b,T){kr(d,l(E,b,T),E)}),d}function FP(i,l){var d={};return l=Re(l,3),vr(i,function(E,b,T){kr(d,b,l(E,b,T))}),d}var LP=Ni(function(i,l,d){Fl(i,l,d)}),um=Ni(function(i,l,d,E){Fl(i,l,d,E)}),NP=Lr(function(i,l){var d={};if(i==null)return d;var E=!1;l=It(l,function(T){return T=Ao(T,i),E||(E=T.length>1),T}),br(i,nd(i),d),E&&(d=Yn(d,h|C|m,jT));for(var b=l.length;b--;)qA(d,l[b]);return d});function VP(i,l){return Am(i,_l(Re(l)))}var HP=Lr(function(i,l){return i==null?{}:fT(i,l)});function Am(i,l){if(i==null)return{};var d=It(nd(i),function(E){return[E]});return l=Re(l),nC(i,d,function(E,b){return l(E,b[0])})}function zP(i,l,d){l=Ao(l,i);var E=-1,b=l.length;for(b||(b=1,i=n);++E<b;){var T=i==null?n:i[yr(l[E])];T===n&&(E=b,T=d),i=Vr(T)?T.call(i):T}return i}function WP(i,l,d){return i==null?i:$s(i,l,d)}function UP(i,l,d,E){return E=typeof E=="function"?E:n,i==null?i:$s(i,l,d,E)}var dm=yC(Gt),gm=yC(fn);function YP(i,l,d){var E=Le(i),b=E||fo(i)||zi(i);if(l=Re(l,4),d==null){var T=i&&i.constructor;b?d=E?new T:[]:Qt(i)?d=Vr(T)?Li(xl(i)):{}:d={}}return(b?zn:vr)(i,function(D,N,U){return l(d,D,N,U)}),d}function GP(i,l){return i==null?!0:qA(i,l)}function KP(i,l,d){return i==null?i:aC(i,l,ZA(d))}function qP(i,l,d,E){return E=typeof E=="function"?E:n,i==null?i:aC(i,l,ZA(d),E)}function Wi(i){return i==null?[]:SA(i,Gt(i))}function JP(i){return i==null?[]:SA(i,fn(i))}function XP(i,l,d){return d===n&&(d=l,l=n),d!==n&&(d=qn(d),d=d===d?d:0),l!==n&&(l=qn(l),l=l===l?l:0),qo(qn(i),l,d)}function ZP(i,l,d){return l=Hr(l),d===n?(d=l,l=0):d=Hr(d),i=qn(i),rT(i,l,d)}function _P(i,l,d){if(d&&typeof d!="boolean"&&an(i,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof i=="boolean"&&(d=i,i=n)),i===n&&l===n?(i=0,l=1):(i=Hr(i),l===n?(l=i,i=0):l=Hr(l)),i>l){var E=i;i=l,l=E}if(d||i%1||l%1){var b=Fh();return Zt(i+b*(l-i+P1("1e-"+((b+"").length-1))),l)}return YA(i,l)}var $P=Vi(function(i,l,d){return l=l.toLowerCase(),i+(d?fm(l):l)});function fm(i){return md(tt(i).toLowerCase())}function pm(i){return i=tt(i),i&&i.replace(Ve,W1).replace(I1,"")}function eR(i,l,d){i=tt(i),l=Tn(l);var E=i.length;d=d===n?E:qo(He(d),0,E);var b=d;return d-=l.length,d>=0&&i.slice(d,b)==l}function tR(i){return i=tt(i),i&&cl.test(i)?i.replace(Ls,U1):i}function nR(i){return i=tt(i),i&&cA.test(i)?i.replace(Ho,"\\$&"):i}var rR=Vi(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),oR=Vi(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),iR=mC("toLowerCase");function sR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;if(!l||E>=l)return i;var b=(l-E)/2;return Wl(Pl(b),d)+i+Wl(Sl(b),d)}function aR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;return l&&E<l?i+Wl(l-E,d):i}function lR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;return l&&E<l?Wl(l-E,d)+i:i}function cR(i,l,d){return d||l==null?l=0:l&&(l=+l),hw(tt(i).replace(jr,""),l||0)}function uR(i,l,d){return(d?an(i,l,d):l===n)?l=1:l=He(l),GA(tt(i),l)}function AR(){var i=arguments,l=tt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var dR=Vi(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function gR(i,l,d){return d&&typeof d!="number"&&an(i,l,d)&&(l=d=n),d=d===n?q:d>>>0,d?(i=tt(i),i&&(typeof l=="string"||l!=null&&!pd(l))&&(l=Tn(l),!l&&Oi(i))?go(ur(i),0,d):i.split(l,d)):[]}var fR=Vi(function(i,l,d){return i+(d?" ":"")+md(l)});function pR(i,l,d){return i=tt(i),d=d==null?0:qo(He(d),0,i.length),l=Tn(l),i.slice(d,d+l.length)==l}function hR(i,l,d){var E=w.templateSettings;d&&an(i,l,d)&&(l=n),i=tt(i),l=tc({},l,E,QC);var b=tc({},l.imports,E.imports,QC),T=Gt(b),D=SA(b,T),N,U,re=0,oe=l.interpolate||Yt,ae="__p += '",me=RA((l.escape||Yt).source+"|"+oe.source+"|"+(oe===Ns?gl:Yt).source+"|"+(l.evaluate||Yt).source+"|$","g"),ye="//# sourceURL="+(at.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Q1+"]")+`
80
+ `)}function z2(i){return Le(i)||_o(i)||!!(Mh&&i&&i[Mh])}function Nr(i,l){var d=typeof i;return l=l??L,!!l&&(d=="number"||d!="symbol"&&fA.test(i))&&i>-1&&i%1==0&&i<l}function an(i,l,d){if(!Qt(d))return!1;var E=typeof l;return(E=="number"?gn(d)&&Nr(l,d.length):E=="string"&&l in d)?dr(d[l],i):!1}function sd(i,l){if(Le(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||Sn(i)?!0:aA.test(i)||!sA.test(i)||l!=null&&i in At(l)}function W2(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function ad(i){var l=Yl(i),d=w[l];if(typeof d!="function"||!(l in Xe.prototype))return!1;if(i===d)return!0;var E=rd(d);return!!E&&i===E[0]}function U2(i){return!!Rh&&Rh in i}var Y2=Bl?Vr:yd;function ta(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Mi;return i===d}function RC(i){return i===i&&!Qt(i)}function OC(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==n||i in At(d))}}function G2(i){var l=Zl(i,function(E){return d.size===A&&d.clear(),E}),d=l.cache;return l}function K2(i,l){var d=i[1],E=l[1],b=d|E,T=b<(v|S|F),D=E==F&&d==x||E==F&&d==G&&i[7].length<=l[8]||E==(F|G)&&l[7].length<=l[8]&&d==x;if(!(T||D))return i;E&v&&(i[2]=l[2],b|=d&v?0:O);var N=l[3];if(N){var U=i[3];i[3]=U?fC(U,N,l[4]):N,i[4]=U?ao(i[3],p):l[4]}return N=l[5],N&&(U=i[5],i[5]=U?pC(U,N,l[6]):N,i[6]=U?ao(i[5],p):l[6]),N=l[7],N&&(i[7]=N),E&F&&(i[8]=i[8]==null?l[8]:Zt(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=b,i}function q2(i){var l=[];if(i!=null)for(var d in At(i))l.push(d);return l}function J2(i){return bl.call(i)}function jC(i,l,d){return l=Ut(l===n?i.length-1:l,0),function(){for(var E=arguments,b=-1,T=Ut(E.length-l,0),D=ee(T);++b<T;)D[b]=E[l+b];b=-1;for(var N=ee(l+1);++b<l;)N[b]=E[b];return N[l]=d(D),xn(i,this,N)}}function DC(i,l){return l.length<2?i:Jo(i,Gn(l,0,-1))}function X2(i,l){for(var d=i.length,E=Zt(l.length,d),b=dn(i);E--;){var T=l[E];i[E]=Nr(T,d)?b[T]:n}return i}function ld(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var MC=FC(oC),na=Aw||function(i,l){return Jt.setTimeout(i,l)},cd=FC(E2);function kC(i,l,d){var E=l+"";return cd(i,H2(E,Z2(L2(E),d)))}function FC(i){var l=0,d=0;return function(){var E=pw(),b=se-(E-d);if(d=E,b>0){if(++l>=ie)return arguments[0]}else l=0;return i.apply(n,arguments)}}function Kl(i,l){var d=-1,E=i.length,b=E-1;for(l=l===n?E:l;++d<l;){var T=YA(d,b),D=i[T];i[T]=i[d],i[d]=D}return i.length=l,i}var LC=G2(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(lA,function(d,E,b,T){l.push(b?T.replace(dl,"$1"):E||d)}),l});function yr(i){if(typeof i=="string"||Sn(i))return i;var l=i+"";return l=="0"&&1/i==-J?"-0":l}function Zo(i){if(i!=null){try{return vl.call(i)}catch{}try{return i+""}catch{}}return""}function Z2(i,l){return zn(de,function(d){var E="_."+d[0];l&d[1]&&!Cl(i,E)&&i.push(E)}),i.sort()}function NC(i){if(i instanceof Xe)return i.clone();var l=new Un(i.__wrapped__,i.__chain__);return l.__actions__=dn(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function _2(i,l,d){(d?an(i,l,d):l===n)?l=1:l=Ut(He(l),0);var E=i==null?0:i.length;if(!E||l<1)return[];for(var b=0,T=0,D=ee(Sl(E/l));b<E;)D[T++]=Gn(i,b,b+=l);return D}function $2(i){for(var l=-1,d=i==null?0:i.length,E=0,b=[];++l<d;){var T=i[l];T&&(b[E++]=T)}return b}function eT(){var i=arguments.length;if(!i)return[];for(var l=ee(i-1),d=arguments[0],E=i;E--;)l[E-1]=arguments[E];return so(Le(d)?dn(d):[d],Xt(l,1))}var tT=Ke(function(i,l){return Ot(i)?Xs(i,Xt(l,1,Ot,!0)):[]}),nT=Ke(function(i,l){var d=Kn(l);return Ot(d)&&(d=n),Ot(i)?Xs(i,Xt(l,1,Ot,!0),Re(d,2)):[]}),rT=Ke(function(i,l){var d=Kn(l);return Ot(d)&&(d=n),Ot(i)?Xs(i,Xt(l,1,Ot,!0),n,d):[]});function oT(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),Gn(i,l<0?0:l,E)):[]}function iT(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),l=E-l,Gn(i,0,l<0?0:l)):[]}function sT(i,l){return i&&i.length?Nl(i,Re(l,3),!0,!0):[]}function aT(i,l){return i&&i.length?Nl(i,Re(l,3),!0):[]}function lT(i,l,d,E){var b=i==null?0:i.length;return b?(d&&typeof d!="number"&&an(i,l,d)&&(d=0,E=b),e2(i,l,d,E)):[]}function VC(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=d==null?0:He(d);return b<0&&(b=Ut(E+b,0)),ml(i,Re(l,3),b)}function HC(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=E-1;return d!==n&&(b=He(d),b=d<0?Ut(E+b,0):Zt(b,E-1)),ml(i,Re(l,3),b,!0)}function zC(i){var l=i==null?0:i.length;return l?Xt(i,1):[]}function cT(i){var l=i==null?0:i.length;return l?Xt(i,J):[]}function uT(i,l){var d=i==null?0:i.length;return d?(l=l===n?1:He(l),Xt(i,l)):[]}function AT(i){for(var l=-1,d=i==null?0:i.length,E={};++l<d;){var b=i[l];E[b[0]]=b[1]}return E}function WC(i){return i&&i.length?i[0]:n}function dT(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=d==null?0:He(d);return b<0&&(b=Ut(E+b,0)),Ri(i,l,b)}function gT(i){var l=i==null?0:i.length;return l?Gn(i,0,-1):[]}var fT=Ke(function(i){var l=It(i,XA);return l.length&&l[0]===i[0]?VA(l):[]}),pT=Ke(function(i){var l=Kn(i),d=It(i,XA);return l===Kn(d)?l=n:d.pop(),d.length&&d[0]===i[0]?VA(d,Re(l,2)):[]}),hT=Ke(function(i){var l=Kn(i),d=It(i,XA);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===i[0]?VA(d,n,l):[]});function CT(i,l){return i==null?"":gw.call(i,l)}function Kn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function mT(i,l,d){var E=i==null?0:i.length;if(!E)return-1;var b=E;return d!==n&&(b=He(d),b=b<0?Ut(E+b,0):Zt(b,E-1)),l===l?Z1(i,l,b):ml(i,bh,b,!0)}function ET(i,l){return i&&i.length?eC(i,He(l)):n}var IT=Ke(UC);function UC(i,l){return i&&i.length&&l&&l.length?UA(i,l):i}function BT(i,l,d){return i&&i.length&&l&&l.length?UA(i,l,Re(d,2)):i}function vT(i,l,d){return i&&i.length&&l&&l.length?UA(i,l,n,d):i}var bT=Lr(function(i,l){var d=i==null?0:i.length,E=kA(i,l);return rC(i,It(l,function(b){return Nr(b,d)?+b:b}).sort(gC)),E});function yT(i,l){var d=[];if(!(i&&i.length))return d;var E=-1,b=[],T=i.length;for(l=Re(l,3);++E<T;){var D=i[E];l(D,E,i)&&(d.push(D),b.push(E))}return rC(i,b),d}function ud(i){return i==null?i:Cw.call(i)}function QT(i,l,d){var E=i==null?0:i.length;return E?(d&&typeof d!="number"&&an(i,l,d)?(l=0,d=E):(l=l==null?0:He(l),d=d===n?E:He(d)),Gn(i,l,d)):[]}function xT(i,l){return Ll(i,l)}function wT(i,l,d){return KA(i,l,Re(d,2))}function TT(i,l){var d=i==null?0:i.length;if(d){var E=Ll(i,l);if(E<d&&dr(i[E],l))return E}return-1}function ST(i,l){return Ll(i,l,!0)}function PT(i,l,d){return KA(i,l,Re(d,2),!0)}function RT(i,l){var d=i==null?0:i.length;if(d){var E=Ll(i,l,!0)-1;if(dr(i[E],l))return E}return-1}function OT(i){return i&&i.length?iC(i):[]}function jT(i,l){return i&&i.length?iC(i,Re(l,2)):[]}function DT(i){var l=i==null?0:i.length;return l?Gn(i,1,l):[]}function MT(i,l,d){return i&&i.length?(l=d||l===n?1:He(l),Gn(i,0,l<0?0:l)):[]}function kT(i,l,d){var E=i==null?0:i.length;return E?(l=d||l===n?1:He(l),l=E-l,Gn(i,l<0?0:l,E)):[]}function FT(i,l){return i&&i.length?Nl(i,Re(l,3),!1,!0):[]}function LT(i,l){return i&&i.length?Nl(i,Re(l,3)):[]}var NT=Ke(function(i){return uo(Xt(i,1,Ot,!0))}),VT=Ke(function(i){var l=Kn(i);return Ot(l)&&(l=n),uo(Xt(i,1,Ot,!0),Re(l,2))}),HT=Ke(function(i){var l=Kn(i);return l=typeof l=="function"?l:n,uo(Xt(i,1,Ot,!0),n,l)});function zT(i){return i&&i.length?uo(i):[]}function WT(i,l){return i&&i.length?uo(i,Re(l,2)):[]}function UT(i,l){return l=typeof l=="function"?l:n,i&&i.length?uo(i,n,l):[]}function Ad(i){if(!(i&&i.length))return[];var l=0;return i=io(i,function(d){if(Ot(d))return l=Ut(d.length,l),!0}),TA(l,function(d){return It(i,QA(d))})}function YC(i,l){if(!(i&&i.length))return[];var d=Ad(i);return l==null?d:It(d,function(E){return xn(l,n,E)})}var YT=Ke(function(i,l){return Ot(i)?Xs(i,l):[]}),GT=Ke(function(i){return JA(io(i,Ot))}),KT=Ke(function(i){var l=Kn(i);return Ot(l)&&(l=n),JA(io(i,Ot),Re(l,2))}),qT=Ke(function(i){var l=Kn(i);return l=typeof l=="function"?l:n,JA(io(i,Ot),n,l)}),JT=Ke(Ad);function XT(i,l){return cC(i||[],l||[],Js)}function ZT(i,l){return cC(i||[],l||[],$s)}var _T=Ke(function(i){var l=i.length,d=l>1?i[l-1]:n;return d=typeof d=="function"?(i.pop(),d):n,YC(i,d)});function GC(i){var l=w(i);return l.__chain__=!0,l}function $T(i,l){return l(i),i}function ql(i,l){return l(i)}var eS=Lr(function(i){var l=i.length,d=l?i[0]:0,E=this.__wrapped__,b=function(T){return kA(T,i)};return l>1||this.__actions__.length||!(E instanceof Xe)||!Nr(d)?this.thru(b):(E=E.slice(d,+d+(l?1:0)),E.__actions__.push({func:ql,args:[b],thisArg:n}),new Un(E,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function tS(){return GC(this)}function nS(){return new Un(this.value(),this.__chain__)}function rS(){this.__values__===n&&(this.__values__=sm(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function oS(){return this}function iS(i){for(var l,d=this;d instanceof jl;){var E=NC(d);E.__index__=0,E.__values__=n,l?b.__wrapped__=E:l=E;var b=E;d=d.__wrapped__}return b.__wrapped__=i,l}function sS(){var i=this.__wrapped__;if(i instanceof Xe){var l=i;return this.__actions__.length&&(l=new Xe(this)),l=l.reverse(),l.__actions__.push({func:ql,args:[ud],thisArg:n}),new Un(l,this.__chain__)}return this.thru(ud)}function aS(){return lC(this.__wrapped__,this.__actions__)}var lS=Vl(function(i,l,d){at.call(i,d)?++i[d]:kr(i,d,1)});function cS(i,l,d){var E=Le(i)?Bh:$w;return d&&an(i,l,d)&&(l=n),E(i,Re(l,3))}function uS(i,l){var d=Le(i)?io:Yh;return d(i,Re(l,3))}var AS=EC(VC),dS=EC(HC);function gS(i,l){return Xt(Jl(i,l),1)}function fS(i,l){return Xt(Jl(i,l),J)}function pS(i,l,d){return d=d===n?1:He(d),Xt(Jl(i,l),d)}function KC(i,l){var d=Le(i)?zn:co;return d(i,Re(l,3))}function qC(i,l){var d=Le(i)?D1:Uh;return d(i,Re(l,3))}var hS=Vl(function(i,l,d){at.call(i,d)?i[d].push(l):kr(i,d,[l])});function CS(i,l,d,E){i=gn(i)?i:Wi(i),d=d&&!E?He(d):0;var b=i.length;return d<0&&(d=Ut(b+d,0)),ec(i)?d<=b&&i.indexOf(l,d)>-1:!!b&&Ri(i,l,d)>-1}var mS=Ke(function(i,l,d){var E=-1,b=typeof l=="function",T=gn(i)?ee(i.length):[];return co(i,function(D){T[++E]=b?xn(l,D,d):Zs(D,l,d)}),T}),ES=Vl(function(i,l,d){kr(i,d,l)});function Jl(i,l){var d=Le(i)?It:Zh;return d(i,Re(l,3))}function IS(i,l,d,E){return i==null?[]:(Le(l)||(l=l==null?[]:[l]),d=E?n:d,Le(d)||(d=d==null?[]:[d]),tC(i,l,d))}var BS=Vl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function vS(i,l,d){var E=Le(i)?bA:Qh,b=arguments.length<3;return E(i,Re(l,4),d,b,co)}function bS(i,l,d){var E=Le(i)?M1:Qh,b=arguments.length<3;return E(i,Re(l,4),d,b,Uh)}function yS(i,l){var d=Le(i)?io:Yh;return d(i,_l(Re(l,3)))}function QS(i){var l=Le(i)?Vh:C2;return l(i)}function xS(i,l,d){(d?an(i,l,d):l===n)?l=1:l=He(l);var E=Le(i)?qw:m2;return E(i,l)}function wS(i){var l=Le(i)?Jw:I2;return l(i)}function TS(i){if(i==null)return 0;if(gn(i))return ec(i)?ji(i):i.length;var l=_t(i);return l==fe||l==pt?i.size:zA(i).length}function SS(i,l,d){var E=Le(i)?yA:B2;return d&&an(i,l,d)&&(l=n),E(i,Re(l,3))}var PS=Ke(function(i,l){if(i==null)return[];var d=l.length;return d>1&&an(i,l[0],l[1])?l=[]:d>2&&an(l[0],l[1],l[2])&&(l=[l[0]]),tC(i,Xt(l,1),[])}),Xl=uw||function(){return Jt.Date.now()};function RS(i,l){if(typeof l!="function")throw new Wn(a);return i=He(i),function(){if(--i<1)return l.apply(this,arguments)}}function JC(i,l,d){return l=d?n:l,l=i&&l==null?i.length:l,Fr(i,F,n,n,n,n,l)}function XC(i,l){var d;if(typeof l!="function")throw new Wn(a);return i=He(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=n),d}}var dd=Ke(function(i,l,d){var E=v;if(d.length){var b=ao(d,Hi(dd));E|=P}return Fr(i,E,l,d,b)}),ZC=Ke(function(i,l,d){var E=v|S;if(d.length){var b=ao(d,Hi(ZC));E|=P}return Fr(l,E,i,d,b)});function _C(i,l,d){l=d?n:l;var E=Fr(i,x,n,n,n,n,n,l);return E.placeholder=_C.placeholder,E}function $C(i,l,d){l=d?n:l;var E=Fr(i,R,n,n,n,n,n,l);return E.placeholder=$C.placeholder,E}function em(i,l,d){var E,b,T,D,N,U,re=0,oe=!1,ae=!1,me=!0;if(typeof i!="function")throw new Wn(a);l=qn(l)||0,Qt(d)&&(oe=!!d.leading,ae="maxWait"in d,T=ae?Ut(qn(d.maxWait)||0,l):T,me="trailing"in d?!!d.trailing:me);function ye(jt){var gr=E,zr=b;return E=b=n,re=jt,D=i.apply(zr,gr),D}function Oe(jt){return re=jt,N=na(Je,l),oe?ye(jt):D}function Ye(jt){var gr=jt-U,zr=jt-re,Em=l-gr;return ae?Zt(Em,T-zr):Em}function je(jt){var gr=jt-U,zr=jt-re;return U===n||gr>=l||gr<0||ae&&zr>=T}function Je(){var jt=Xl();if(je(jt))return _e(jt);N=na(Je,Ye(jt))}function _e(jt){return N=n,me&&E?ye(jt):(E=b=n,D)}function Pn(){N!==n&&uC(N),re=0,E=U=b=N=n}function ln(){return N===n?D:_e(Xl())}function Rn(){var jt=Xl(),gr=je(jt);if(E=arguments,b=this,U=jt,gr){if(N===n)return Oe(U);if(ae)return uC(N),N=na(Je,l),ye(U)}return N===n&&(N=na(Je,l)),D}return Rn.cancel=Pn,Rn.flush=ln,Rn}var OS=Ke(function(i,l){return Wh(i,1,l)}),jS=Ke(function(i,l,d){return Wh(i,qn(l)||0,d)});function DS(i){return Fr(i,K)}function Zl(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new Wn(a);var d=function(){var E=arguments,b=l?l.apply(this,E):E[0],T=d.cache;if(T.has(b))return T.get(b);var D=i.apply(this,E);return d.cache=T.set(b,D)||T,D};return d.cache=new(Zl.Cache||Mr),d}Zl.Cache=Mr;function _l(i){if(typeof i!="function")throw new Wn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function MS(i){return XC(2,i)}var kS=v2(function(i,l){l=l.length==1&&Le(l[0])?It(l[0],wn(Re())):It(Xt(l,1),wn(Re()));var d=l.length;return Ke(function(E){for(var b=-1,T=Zt(E.length,d);++b<T;)E[b]=l[b].call(this,E[b]);return xn(i,this,E)})}),gd=Ke(function(i,l){var d=ao(l,Hi(gd));return Fr(i,P,n,l,d)}),tm=Ke(function(i,l){var d=ao(l,Hi(tm));return Fr(i,k,n,l,d)}),FS=Lr(function(i,l){return Fr(i,G,n,n,n,l)});function LS(i,l){if(typeof i!="function")throw new Wn(a);return l=l===n?l:He(l),Ke(i,l)}function NS(i,l){if(typeof i!="function")throw new Wn(a);return l=l==null?0:Ut(He(l),0),Ke(function(d){var E=d[l],b=go(d,0,l);return E&&so(b,E),xn(i,this,b)})}function VS(i,l,d){var E=!0,b=!0;if(typeof i!="function")throw new Wn(a);return Qt(d)&&(E="leading"in d?!!d.leading:E,b="trailing"in d?!!d.trailing:b),em(i,l,{leading:E,maxWait:l,trailing:b})}function HS(i){return JC(i,1)}function zS(i,l){return gd(ZA(l),i)}function WS(){if(!arguments.length)return[];var i=arguments[0];return Le(i)?i:[i]}function US(i){return Yn(i,m)}function YS(i,l){return l=typeof l=="function"?l:n,Yn(i,m,l)}function GS(i){return Yn(i,h|m)}function KS(i,l){return l=typeof l=="function"?l:n,Yn(i,h|m,l)}function qS(i,l){return l==null||zh(i,l,Gt(l))}function dr(i,l){return i===l||i!==i&&l!==l}var JS=Ul(NA),XS=Ul(function(i,l){return i>=l}),_o=qh(function(){return arguments}())?qh:function(i){return wt(i)&&at.call(i,"callee")&&!Dh.call(i,"callee")},Le=ee.isArray,ZS=ph?wn(ph):i2;function gn(i){return i!=null&&$l(i.length)&&!Vr(i)}function Ot(i){return wt(i)&&gn(i)}function _S(i){return i===!0||i===!1||wt(i)&&sn(i)==Ee}var fo=dw||yd,$S=hh?wn(hh):s2;function eP(i){return wt(i)&&i.nodeType===1&&!ra(i)}function tP(i){if(i==null)return!0;if(gn(i)&&(Le(i)||typeof i=="string"||typeof i.splice=="function"||fo(i)||zi(i)||_o(i)))return!i.length;var l=_t(i);if(l==fe||l==pt)return!i.size;if(ta(i))return!zA(i).length;for(var d in i)if(at.call(i,d))return!1;return!0}function nP(i,l){return _s(i,l)}function rP(i,l,d){d=typeof d=="function"?d:n;var E=d?d(i,l):n;return E===n?_s(i,l,n,d):!!E}function fd(i){if(!wt(i))return!1;var l=sn(i);return l==xe||l==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!ra(i)}function oP(i){return typeof i=="number"&&kh(i)}function Vr(i){if(!Qt(i))return!1;var l=sn(i);return l==ue||l==qe||l==Be||l==Ir}function nm(i){return typeof i=="number"&&i==He(i)}function $l(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=L}function Qt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function wt(i){return i!=null&&typeof i=="object"}var rm=Ch?wn(Ch):l2;function iP(i,l){return i===l||HA(i,l,od(l))}function sP(i,l,d){return d=typeof d=="function"?d:n,HA(i,l,od(l),d)}function aP(i){return om(i)&&i!=+i}function lP(i){if(Y2(i))throw new Fe(s);return Jh(i)}function cP(i){return i===null}function uP(i){return i==null}function om(i){return typeof i=="number"||wt(i)&&sn(i)==st}function ra(i){if(!wt(i)||sn(i)!=ft)return!1;var l=xl(i);if(l===null)return!0;var d=at.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&vl.call(d)==sw}var pd=mh?wn(mh):c2;function AP(i){return nm(i)&&i>=-L&&i<=L}var im=Eh?wn(Eh):u2;function ec(i){return typeof i=="string"||!Le(i)&&wt(i)&&sn(i)==ct}function Sn(i){return typeof i=="symbol"||wt(i)&&sn(i)==kt}var zi=Ih?wn(Ih):A2;function dP(i){return i===n}function gP(i){return wt(i)&&_t(i)==Se}function fP(i){return wt(i)&&sn(i)==ke}var pP=Ul(WA),hP=Ul(function(i,l){return i<=l});function sm(i){if(!i)return[];if(gn(i))return ec(i)?ur(i):dn(i);if(Us&&i[Us])return q1(i[Us]());var l=_t(i),d=l==fe?PA:l==pt?El:Wi;return d(i)}function Hr(i){if(!i)return i===0?i:0;if(i=qn(i),i===J||i===-J){var l=i<0?-1:1;return l*_}return i===i?i:0}function He(i){var l=Hr(i),d=l%1;return l===l?d?l-d:l:0}function am(i){return i?qo(He(i),0,q):0}function qn(i){if(typeof i=="number")return i;if(Sn(i))return V;if(Qt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=Qt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=xh(i);var d=AA.test(i);return d||gA.test(i)?R1(i.slice(2),d?2:8):fl.test(i)?V:+i}function lm(i){return br(i,fn(i))}function CP(i){return i?qo(He(i),-L,L):i===0?i:0}function tt(i){return i==null?"":Tn(i)}var mP=Ni(function(i,l){if(ta(l)||gn(l)){br(l,Gt(l),i);return}for(var d in l)at.call(l,d)&&Js(i,d,l[d])}),cm=Ni(function(i,l){br(l,fn(l),i)}),tc=Ni(function(i,l,d,E){br(l,fn(l),i,E)}),EP=Ni(function(i,l,d,E){br(l,Gt(l),i,E)}),IP=Lr(kA);function BP(i,l){var d=Li(i);return l==null?d:Hh(d,l)}var vP=Ke(function(i,l){i=At(i);var d=-1,E=l.length,b=E>2?l[2]:n;for(b&&an(l[0],l[1],b)&&(E=1);++d<E;)for(var T=l[d],D=fn(T),N=-1,U=D.length;++N<U;){var re=D[N],oe=i[re];(oe===n||dr(oe,Mi[re])&&!at.call(i,re))&&(i[re]=T[re])}return i}),bP=Ke(function(i){return i.push(n,xC),xn(um,n,i)});function yP(i,l){return vh(i,Re(l,3),vr)}function QP(i,l){return vh(i,Re(l,3),LA)}function xP(i,l){return i==null?i:FA(i,Re(l,3),fn)}function wP(i,l){return i==null?i:Gh(i,Re(l,3),fn)}function TP(i,l){return i&&vr(i,Re(l,3))}function SP(i,l){return i&&LA(i,Re(l,3))}function PP(i){return i==null?[]:kl(i,Gt(i))}function RP(i){return i==null?[]:kl(i,fn(i))}function hd(i,l,d){var E=i==null?n:Jo(i,l);return E===n?d:E}function OP(i,l){return i!=null&&SC(i,l,t2)}function Cd(i,l){return i!=null&&SC(i,l,n2)}var jP=BC(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=bl.call(l)),i[l]=d},Ed(pn)),DP=BC(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=bl.call(l)),at.call(i,l)?i[l].push(d):i[l]=[d]},Re),MP=Ke(Zs);function Gt(i){return gn(i)?Nh(i):zA(i)}function fn(i){return gn(i)?Nh(i,!0):d2(i)}function kP(i,l){var d={};return l=Re(l,3),vr(i,function(E,b,T){kr(d,l(E,b,T),E)}),d}function FP(i,l){var d={};return l=Re(l,3),vr(i,function(E,b,T){kr(d,b,l(E,b,T))}),d}var LP=Ni(function(i,l,d){Fl(i,l,d)}),um=Ni(function(i,l,d,E){Fl(i,l,d,E)}),NP=Lr(function(i,l){var d={};if(i==null)return d;var E=!1;l=It(l,function(T){return T=Ao(T,i),E||(E=T.length>1),T}),br(i,nd(i),d),E&&(d=Yn(d,h|C|m,j2));for(var b=l.length;b--;)qA(d,l[b]);return d});function VP(i,l){return Am(i,_l(Re(l)))}var HP=Lr(function(i,l){return i==null?{}:f2(i,l)});function Am(i,l){if(i==null)return{};var d=It(nd(i),function(E){return[E]});return l=Re(l),nC(i,d,function(E,b){return l(E,b[0])})}function zP(i,l,d){l=Ao(l,i);var E=-1,b=l.length;for(b||(b=1,i=n);++E<b;){var T=i==null?n:i[yr(l[E])];T===n&&(E=b,T=d),i=Vr(T)?T.call(i):T}return i}function WP(i,l,d){return i==null?i:$s(i,l,d)}function UP(i,l,d,E){return E=typeof E=="function"?E:n,i==null?i:$s(i,l,d,E)}var dm=yC(Gt),gm=yC(fn);function YP(i,l,d){var E=Le(i),b=E||fo(i)||zi(i);if(l=Re(l,4),d==null){var T=i&&i.constructor;b?d=E?new T:[]:Qt(i)?d=Vr(T)?Li(xl(i)):{}:d={}}return(b?zn:vr)(i,function(D,N,U){return l(d,D,N,U)}),d}function GP(i,l){return i==null?!0:qA(i,l)}function KP(i,l,d){return i==null?i:aC(i,l,ZA(d))}function qP(i,l,d,E){return E=typeof E=="function"?E:n,i==null?i:aC(i,l,ZA(d),E)}function Wi(i){return i==null?[]:SA(i,Gt(i))}function JP(i){return i==null?[]:SA(i,fn(i))}function XP(i,l,d){return d===n&&(d=l,l=n),d!==n&&(d=qn(d),d=d===d?d:0),l!==n&&(l=qn(l),l=l===l?l:0),qo(qn(i),l,d)}function ZP(i,l,d){return l=Hr(l),d===n?(d=l,l=0):d=Hr(d),i=qn(i),r2(i,l,d)}function _P(i,l,d){if(d&&typeof d!="boolean"&&an(i,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof i=="boolean"&&(d=i,i=n)),i===n&&l===n?(i=0,l=1):(i=Hr(i),l===n?(l=i,i=0):l=Hr(l)),i>l){var E=i;i=l,l=E}if(d||i%1||l%1){var b=Fh();return Zt(i+b*(l-i+P1("1e-"+((b+"").length-1))),l)}return YA(i,l)}var $P=Vi(function(i,l,d){return l=l.toLowerCase(),i+(d?fm(l):l)});function fm(i){return md(tt(i).toLowerCase())}function pm(i){return i=tt(i),i&&i.replace(Ve,W1).replace(I1,"")}function eR(i,l,d){i=tt(i),l=Tn(l);var E=i.length;d=d===n?E:qo(He(d),0,E);var b=d;return d-=l.length,d>=0&&i.slice(d,b)==l}function tR(i){return i=tt(i),i&&cl.test(i)?i.replace(Ls,U1):i}function nR(i){return i=tt(i),i&&cA.test(i)?i.replace(Ho,"\\$&"):i}var rR=Vi(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),oR=Vi(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),iR=mC("toLowerCase");function sR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;if(!l||E>=l)return i;var b=(l-E)/2;return Wl(Pl(b),d)+i+Wl(Sl(b),d)}function aR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;return l&&E<l?i+Wl(l-E,d):i}function lR(i,l,d){i=tt(i),l=He(l);var E=l?ji(i):0;return l&&E<l?Wl(l-E,d)+i:i}function cR(i,l,d){return d||l==null?l=0:l&&(l=+l),hw(tt(i).replace(jr,""),l||0)}function uR(i,l,d){return(d?an(i,l,d):l===n)?l=1:l=He(l),GA(tt(i),l)}function AR(){var i=arguments,l=tt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var dR=Vi(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function gR(i,l,d){return d&&typeof d!="number"&&an(i,l,d)&&(l=d=n),d=d===n?q:d>>>0,d?(i=tt(i),i&&(typeof l=="string"||l!=null&&!pd(l))&&(l=Tn(l),!l&&Oi(i))?go(ur(i),0,d):i.split(l,d)):[]}var fR=Vi(function(i,l,d){return i+(d?" ":"")+md(l)});function pR(i,l,d){return i=tt(i),d=d==null?0:qo(He(d),0,i.length),l=Tn(l),i.slice(d,d+l.length)==l}function hR(i,l,d){var E=w.templateSettings;d&&an(i,l,d)&&(l=n),i=tt(i),l=tc({},l,E,QC);var b=tc({},l.imports,E.imports,QC),T=Gt(b),D=SA(b,T),N,U,re=0,oe=l.interpolate||Yt,ae="__p += '",me=RA((l.escape||Yt).source+"|"+oe.source+"|"+(oe===Ns?gl:Yt).source+"|"+(l.evaluate||Yt).source+"|$","g"),ye="//# sourceURL="+(at.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Q1+"]")+`
81
81
  `;i.replace(me,function(je,Je,_e,Pn,ln,Rn){return _e||(_e=Pn),ae+=i.slice(re,Rn).replace(n1,Y1),Je&&(N=!0,ae+=`' +
82
82
  __e(`+Je+`) +
83
83
  '`),ln&&(U=!0,ae+=`';
@@ -94,7 +94,7 @@ __p += '`),_e&&(ae+=`' +
94
94
  function print() { __p += __j.call(arguments, '') }
95
95
  `:`;
96
96
  `)+ae+`return __p
97
- }`;var Ye=Cm(function(){return et(T,ye+"return "+ae).apply(n,D)});if(Ye.source=ae,fd(Ye))throw Ye;return Ye}function CR(i){return tt(i).toLowerCase()}function mR(i){return tt(i).toUpperCase()}function ER(i,l,d){if(i=tt(i),i&&(d||l===n))return xh(i);if(!i||!(l=Tn(l)))return i;var E=ur(i),b=ur(l),T=wh(E,b),D=Th(E,b)+1;return go(E,T,D).join("")}function IR(i,l,d){if(i=tt(i),i&&(d||l===n))return i.slice(0,Ph(i)+1);if(!i||!(l=Tn(l)))return i;var E=ur(i),b=Th(E,ur(l))+1;return go(E,0,b).join("")}function BR(i,l,d){if(i=tt(i),i&&(d||l===n))return i.replace(jr,"");if(!i||!(l=Tn(l)))return i;var E=ur(i),b=wh(E,ur(l));return go(E,b).join("")}function vR(i,l){var d=$,E=Y;if(Qt(l)){var b="separator"in l?l.separator:b;d="length"in l?He(l.length):d,E="omission"in l?Tn(l.omission):E}i=tt(i);var T=i.length;if(Oi(i)){var D=ur(i);T=D.length}if(d>=T)return i;var N=d-ji(E);if(N<1)return E;var U=D?go(D,0,N).join(""):i.slice(0,N);if(b===n)return U+E;if(D&&(N+=U.length-N),pd(b)){if(i.slice(N).search(b)){var re,oe=U;for(b.global||(b=RA(b.source,tt(zs.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var ae=re.index;U=U.slice(0,ae===n?N:ae)}}else if(i.indexOf(Tn(b),N)!=N){var me=U.lastIndexOf(b);me>-1&&(U=U.slice(0,me))}return U+E}function bR(i){return i=tt(i),i&&ll.test(i)?i.replace(al,_1):i}var yR=Vi(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),md=mC("toUpperCase");function hm(i,l,d){return i=tt(i),l=d?n:l,l===n?K1(i)?tw(i):L1(i):i.match(l)||[]}var Cm=Ke(function(i,l){try{return xn(i,n,l)}catch(d){return fd(d)?d:new Fe(d)}}),QR=Lr(function(i,l){return zn(l,function(d){d=yr(d),kr(i,d,dd(i[d],i))}),i});function xR(i){var l=i==null?0:i.length,d=Re();return i=l?It(i,function(E){if(typeof E[1]!="function")throw new Wn(a);return[d(E[0]),E[1]]}):[],Ke(function(E){for(var b=-1;++b<l;){var T=i[b];if(xn(T[0],this,E))return xn(T[1],this,E)}})}function wR(i){return _w(Yn(i,h))}function Ed(i){return function(){return i}}function TR(i,l){return i==null||i!==i?l:i}var SR=IC(),PR=IC(!0);function pn(i){return i}function Id(i){return Xh(typeof i=="function"?i:Yn(i,h))}function RR(i){return _h(Yn(i,h))}function OR(i,l){return $h(i,Yn(l,h))}var jR=Ke(function(i,l){return function(d){return Zs(d,i,l)}}),DR=Ke(function(i,l){return function(d){return Zs(i,d,l)}});function Bd(i,l,d){var E=Gt(l),b=kl(l,E);d==null&&!(Qt(l)&&(b.length||!E.length))&&(d=l,l=i,i=this,b=kl(l,Gt(l)));var T=!(Qt(d)&&"chain"in d)||!!d.chain,D=Vr(i);return zn(b,function(N){var U=l[N];i[N]=U,D&&(i.prototype[N]=function(){var re=this.__chain__;if(T||re){var oe=i(this.__wrapped__),ae=oe.__actions__=dn(this.__actions__);return ae.push({func:U,args:arguments,thisArg:i}),oe.__chain__=re,oe}return U.apply(i,so([this.value()],arguments))})}),i}function MR(){return Jt._===this&&(Jt._=aw),this}function vd(){}function kR(i){return i=He(i),Ke(function(l){return eC(l,i)})}var FR=$A(It),LR=$A(Bh),NR=$A(yA);function mm(i){return sd(i)?QA(yr(i)):pT(i)}function VR(i){return function(l){return i==null?n:Jo(i,l)}}var HR=vC(),zR=vC(!0);function bd(){return[]}function yd(){return!1}function WR(){return{}}function UR(){return""}function YR(){return!0}function GR(i,l){if(i=He(i),i<1||i>L)return[];var d=q,E=Zt(i,q);l=Re(l),i-=q;for(var b=TA(E,l);++d<i;)l(d);return b}function KR(i){return Le(i)?It(i,yr):Sn(i)?[i]:dn(LC(tt(i)))}function qR(i){var l=++iw;return tt(i)+l}var JR=zl(function(i,l){return i+l},0),XR=ed("ceil"),ZR=zl(function(i,l){return i/l},1),_R=ed("floor");function $R(i){return i&&i.length?Ml(i,pn,NA):n}function eO(i,l){return i&&i.length?Ml(i,Re(l,2),NA):n}function tO(i){return yh(i,pn)}function nO(i,l){return yh(i,Re(l,2))}function rO(i){return i&&i.length?Ml(i,pn,WA):n}function oO(i,l){return i&&i.length?Ml(i,Re(l,2),WA):n}var iO=zl(function(i,l){return i*l},1),sO=ed("round"),aO=zl(function(i,l){return i-l},0);function lO(i){return i&&i.length?wA(i,pn):0}function cO(i,l){return i&&i.length?wA(i,Re(l,2)):0}return w.after=RS,w.ary=JC,w.assign=mP,w.assignIn=cm,w.assignInWith=tc,w.assignWith=EP,w.at=IP,w.before=XC,w.bind=dd,w.bindAll=QR,w.bindKey=ZC,w.castArray=WS,w.chain=GC,w.chunk=_T,w.compact=$T,w.concat=e2,w.cond=xR,w.conforms=wR,w.constant=Ed,w.countBy=lS,w.create=BP,w.curry=_C,w.curryRight=$C,w.debounce=em,w.defaults=vP,w.defaultsDeep=bP,w.defer=OS,w.delay=jS,w.difference=t2,w.differenceBy=n2,w.differenceWith=r2,w.drop=o2,w.dropRight=i2,w.dropRightWhile=s2,w.dropWhile=a2,w.fill=l2,w.filter=uS,w.flatMap=gS,w.flatMapDeep=fS,w.flatMapDepth=pS,w.flatten=zC,w.flattenDeep=c2,w.flattenDepth=u2,w.flip=DS,w.flow=SR,w.flowRight=PR,w.fromPairs=A2,w.functions=PP,w.functionsIn=RP,w.groupBy=hS,w.initial=g2,w.intersection=f2,w.intersectionBy=p2,w.intersectionWith=h2,w.invert=jP,w.invertBy=DP,w.invokeMap=mS,w.iteratee=Id,w.keyBy=ES,w.keys=Gt,w.keysIn=fn,w.map=Jl,w.mapKeys=kP,w.mapValues=FP,w.matches=RR,w.matchesProperty=OR,w.memoize=Zl,w.merge=LP,w.mergeWith=um,w.method=jR,w.methodOf=DR,w.mixin=Bd,w.negate=_l,w.nthArg=kR,w.omit=NP,w.omitBy=VP,w.once=MS,w.orderBy=IS,w.over=FR,w.overArgs=kS,w.overEvery=LR,w.overSome=NR,w.partial=gd,w.partialRight=tm,w.partition=BS,w.pick=HP,w.pickBy=Am,w.property=mm,w.propertyOf=VR,w.pull=I2,w.pullAll=UC,w.pullAllBy=B2,w.pullAllWith=v2,w.pullAt=b2,w.range=HR,w.rangeRight=zR,w.rearg=FS,w.reject=yS,w.remove=y2,w.rest=LS,w.reverse=ud,w.sampleSize=xS,w.set=WP,w.setWith=UP,w.shuffle=wS,w.slice=Q2,w.sortBy=PS,w.sortedUniq=O2,w.sortedUniqBy=j2,w.split=gR,w.spread=NS,w.tail=D2,w.take=M2,w.takeRight=k2,w.takeRightWhile=F2,w.takeWhile=L2,w.tap=$2,w.throttle=VS,w.thru=ql,w.toArray=sm,w.toPairs=dm,w.toPairsIn=gm,w.toPath=KR,w.toPlainObject=lm,w.transform=YP,w.unary=HS,w.union=N2,w.unionBy=V2,w.unionWith=H2,w.uniq=z2,w.uniqBy=W2,w.uniqWith=U2,w.unset=GP,w.unzip=Ad,w.unzipWith=YC,w.update=KP,w.updateWith=qP,w.values=Wi,w.valuesIn=JP,w.without=Y2,w.words=hm,w.wrap=zS,w.xor=G2,w.xorBy=K2,w.xorWith=q2,w.zip=J2,w.zipObject=X2,w.zipObjectDeep=Z2,w.zipWith=_2,w.entries=dm,w.entriesIn=gm,w.extend=cm,w.extendWith=tc,Bd(w,w),w.add=JR,w.attempt=Cm,w.camelCase=$P,w.capitalize=fm,w.ceil=XR,w.clamp=XP,w.clone=US,w.cloneDeep=GS,w.cloneDeepWith=KS,w.cloneWith=YS,w.conformsTo=qS,w.deburr=pm,w.defaultTo=TR,w.divide=ZR,w.endsWith=eR,w.eq=dr,w.escape=tR,w.escapeRegExp=nR,w.every=cS,w.find=AS,w.findIndex=VC,w.findKey=yP,w.findLast=dS,w.findLastIndex=HC,w.findLastKey=QP,w.floor=_R,w.forEach=KC,w.forEachRight=qC,w.forIn=xP,w.forInRight=wP,w.forOwn=TP,w.forOwnRight=SP,w.get=hd,w.gt=JS,w.gte=XS,w.has=OP,w.hasIn=Cd,w.head=WC,w.identity=pn,w.includes=CS,w.indexOf=d2,w.inRange=ZP,w.invoke=MP,w.isArguments=_o,w.isArray=Le,w.isArrayBuffer=ZS,w.isArrayLike=gn,w.isArrayLikeObject=Ot,w.isBoolean=_S,w.isBuffer=fo,w.isDate=$S,w.isElement=eP,w.isEmpty=tP,w.isEqual=nP,w.isEqualWith=rP,w.isError=fd,w.isFinite=oP,w.isFunction=Vr,w.isInteger=nm,w.isLength=$l,w.isMap=rm,w.isMatch=iP,w.isMatchWith=sP,w.isNaN=aP,w.isNative=lP,w.isNil=uP,w.isNull=cP,w.isNumber=om,w.isObject=Qt,w.isObjectLike=wt,w.isPlainObject=ra,w.isRegExp=pd,w.isSafeInteger=AP,w.isSet=im,w.isString=ec,w.isSymbol=Sn,w.isTypedArray=zi,w.isUndefined=dP,w.isWeakMap=gP,w.isWeakSet=fP,w.join=C2,w.kebabCase=rR,w.last=Kn,w.lastIndexOf=m2,w.lowerCase=oR,w.lowerFirst=iR,w.lt=pP,w.lte=hP,w.max=$R,w.maxBy=eO,w.mean=tO,w.meanBy=nO,w.min=rO,w.minBy=oO,w.stubArray=bd,w.stubFalse=yd,w.stubObject=WR,w.stubString=UR,w.stubTrue=YR,w.multiply=iO,w.nth=E2,w.noConflict=MR,w.noop=vd,w.now=Xl,w.pad=sR,w.padEnd=aR,w.padStart=lR,w.parseInt=cR,w.random=_P,w.reduce=vS,w.reduceRight=bS,w.repeat=uR,w.replace=AR,w.result=zP,w.round=sO,w.runInContext=W,w.sample=QS,w.size=TS,w.snakeCase=dR,w.some=SS,w.sortedIndex=x2,w.sortedIndexBy=w2,w.sortedIndexOf=T2,w.sortedLastIndex=S2,w.sortedLastIndexBy=P2,w.sortedLastIndexOf=R2,w.startCase=fR,w.startsWith=pR,w.subtract=aO,w.sum=lO,w.sumBy=cO,w.template=hR,w.times=GR,w.toFinite=Hr,w.toInteger=He,w.toLength=am,w.toLower=CR,w.toNumber=qn,w.toSafeInteger=CP,w.toString=tt,w.toUpper=mR,w.trim=ER,w.trimEnd=IR,w.trimStart=BR,w.truncate=vR,w.unescape=bR,w.uniqueId=qR,w.upperCase=yR,w.upperFirst=md,w.each=KC,w.eachRight=qC,w.first=WC,Bd(w,function(){var i={};return vr(w,function(l,d){at.call(w.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),w.VERSION=r,zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){w[i].placeholder=w}),zn(["drop","take"],function(i,l){Xe.prototype[i]=function(d){d=d===n?1:Ut(He(d),0);var E=this.__filtered__&&!l?new Xe(this):this.clone();return E.__filtered__?E.__takeCount__=Zt(d,E.__takeCount__):E.__views__.push({size:Zt(d,q),type:i+(E.__dir__<0?"Right":"")}),E},Xe.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),zn(["filter","map","takeWhile"],function(i,l){var d=l+1,E=d==X||d==H;Xe.prototype[i]=function(b){var T=this.clone();return T.__iteratees__.push({iteratee:Re(b,3),type:d}),T.__filtered__=T.__filtered__||E,T}}),zn(["head","last"],function(i,l){var d="take"+(l?"Right":"");Xe.prototype[i]=function(){return this[d](1).value()[0]}}),zn(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");Xe.prototype[i]=function(){return this.__filtered__?new Xe(this):this[d](1)}}),Xe.prototype.compact=function(){return this.filter(pn)},Xe.prototype.find=function(i){return this.filter(i).head()},Xe.prototype.findLast=function(i){return this.reverse().find(i)},Xe.prototype.invokeMap=Ke(function(i,l){return typeof i=="function"?new Xe(this):this.map(function(d){return Zs(d,i,l)})}),Xe.prototype.reject=function(i){return this.filter(_l(Re(i)))},Xe.prototype.slice=function(i,l){i=He(i);var d=this;return d.__filtered__&&(i>0||l<0)?new Xe(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==n&&(l=He(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},Xe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Xe.prototype.toArray=function(){return this.take(q)},vr(Xe.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),E=/^(?:head|last)$/.test(l),b=w[E?"take"+(l=="last"?"Right":""):l],T=E||/^find/.test(l);b&&(w.prototype[l]=function(){var D=this.__wrapped__,N=E?[1]:arguments,U=D instanceof Xe,re=N[0],oe=U||Le(D),ae=function(Je){var _e=b.apply(w,so([Je],N));return E&&me?_e[0]:_e};oe&&d&&typeof re=="function"&&re.length!=1&&(U=oe=!1);var me=this.__chain__,ye=!!this.__actions__.length,Oe=T&&!me,Ye=U&&!ye;if(!T&&oe){D=Ye?D:new Xe(this);var je=i.apply(D,N);return je.__actions__.push({func:ql,args:[ae],thisArg:n}),new Un(je,me)}return Oe&&Ye?i.apply(this,N):(je=this.thru(ae),Oe?E?je.value()[0]:je.value():je)})}),zn(["pop","push","shift","sort","splice","unshift"],function(i){var l=Il[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",E=/^(?:pop|shift)$/.test(i);w.prototype[i]=function(){var b=arguments;if(E&&!this.__chain__){var T=this.value();return l.apply(Le(T)?T:[],b)}return this[d](function(D){return l.apply(Le(D)?D:[],b)})}}),vr(Xe.prototype,function(i,l){var d=w[l];if(d){var E=d.name+"";at.call(Fi,E)||(Fi[E]=[]),Fi[E].push({name:l,func:d})}}),Fi[Hl(n,S).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=bw,Xe.prototype.reverse=yw,Xe.prototype.value=Qw,w.prototype.at=eS,w.prototype.chain=tS,w.prototype.commit=nS,w.prototype.next=rS,w.prototype.plant=iS,w.prototype.reverse=sS,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=aS,w.prototype.first=w.prototype.head,Us&&(w.prototype[Us]=oS),w},Di=nw();Uo?((Uo.exports=Di)._=Di,IA._=Di):Jt._=Di}).call(In)})(zc,zc.exports);var lt=zc.exports;const te=ro(lt),Qr=()=>{throw new Error("Method must be implemented")},$0={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Qr,setMenuOrientation:Qr,setMiniDrawer:Qr,setContainer:Qr,setMode:Qr,setPresetColor:Qr,setThemeDirection:Qr,setAppDefaultPath:Qr,setDrawerWidth:Qr,setHorizontalMaxItems:Qr},bf=Q.createContext($0),vD=e=>e==="vertical",bD=e=>e==="horizontal",Wc=({initialConfig:e,children:t})=>{const[n,r]=Pu("theme-config",{...$0,...e}),o=I=>r(B=>({...B,fontFamily:I})),s=I=>r(B=>({...B,menuOrientation:I})),a=I=>r(B=>({...B,miniDrawer:I})),c=I=>r(B=>({...B,container:I})),u=I=>r(B=>({...B,mode:I})),A=I=>r(B=>({...B,presetColor:I})),p=I=>r(B=>({...B,themeDirection:I})),h=I=>r(B=>({...B,appDefaultPath:I})),C=I=>r(B=>({...B,drawerWidth:I})),m=I=>r(B=>({...B,horizontalMaxItems:I}));return g.jsx(bf.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:s,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:A,setThemeDirection:p,setAppDefaultPath:h,setDrawerWidth:C,setHorizontalMaxItems:m,isVerticalLayout:vD,isHorizontalLayout:bD},children:t})};Wc.propTypes={children:f.node};const aa=()=>{throw new Error("Not implemented")},eB={openItem:["dashboard"],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:aa,openDrawer:aa,activeID:aa,hasError:aa,setMenu:aa},yf=Q.createContext(eB),tB=({menu:e,children:t})=>{const[n,r]=Pu("menu-config",{...eB,menu:e}),o=A=>r(p=>({...p,menu:A})),s=A=>r(p=>({...p,openItem:A})),a=A=>r(p=>({...p,selectedID:A})),c=A=>r(p=>({...p,drawerOpen:A})),u=A=>r(p=>({...p,error:A}));return Q.useEffect(()=>{o(e)},[e]),g.jsx(yf.Provider,{value:{...n,setMenu:o,activeItem:s,openDrawer:c,activeID:a,hasError:u},children:t})},Qf=Q.createContext(void 0),xf=Q.createContext(void 0),mi=()=>Q.useContext(yf),yD=["e-","entities/"],QD=e=>{let t=e;return yD.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t},xD=(e,t)=>{var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"},wD=(e,t)=>{const n=QD(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))},vg=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=vg(o.children,t),n))return n}return n},nB=(e,t,n)=>{let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&xD(o,t));if(!r)for(let o=0;o<e.length;o++){const s=e[o];if(s.children&&(r=nB(s.children,t),r))return r}return r},rB=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=rB(o.children,t),n))return n}return n},oB=e=>e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(oB)),e.children&&e.children.length>0):!1,iB=e=>(e.children&&e.children.forEach(t=>{t.parent=e,iB(t)}),e),TD=({userMenu:e,resources:t,permissions:n,translate:r,roles:o})=>{const s=h=>(h.title=r(h.title,{_:h.title}),h.children&&h.children.forEach(C=>s(C)),h),a=Object.keys(t),c=(h,C)=>(h.children&&(h.children=h.children.filter(m=>{if(m.resource===!1){const I=m.roles||[];return!!(I.length===0||I.some(B=>o.includes(B)))}return m.type==="item"?C.includes(m.id):(c(m,C),m.children&&m.children.length>0)})),h),u=lt.cloneDeep(e).map(h=>({type:"group",icon:Ze.AntDesignOutlined,children:[],...h})).map(s).map(h=>c(h,a)),A=Object.values(t).map(h=>{var C;return((C=h.options)==null?void 0:C.group)||"admin"}).filter((h,C,m)=>m.indexOf(h)===C).filter(h=>h!==void 0&&rB(e,h)===null).map(h=>({id:h,title:r(`ra.menu.group.${h}`),type:"group",icon:Ze.AntDesignOutlined,children:[]})),p=[...u,...A];return Object.values(t).forEach(h=>{var O,x,R,P;const C=nB(p,h),m=(O=C==null?void 0:C.children)==null?void 0:O.find(k=>k.id===h.name),I=(x=C==null?void 0:C.children)==null?void 0:x.some(k=>k.id===h.name),B=(m==null?void 0:m.roles)||((R=h.options)==null?void 0:R.roles)||[],v=!B||B.length===0||B.some(k=>o.includes(k));if(!wD(h,n)||!h.hasList||!v){I&&((P=C==null?void 0:C.children)==null?void 0:P.length)>0&&(C.children=C.children.filter(k=>k.id!==h.name));return}C&&(C.children||(C.children=[]))}),p.filter(oB).map(iB)},wf=()=>{const e=j.useResourceDefinitions(),{isLoading:t,data:n}=j.useGetIdentity(),r=n&&n.id>0,{isLoading:o,permissions:s}=j.usePermissions(r),{menu:a}=mi(),c=j.useTranslate(),u=Q.useMemo(()=>{if(t||!n||n===null||(n==null?void 0:n.id)<=0)return null;const p=((n==null?void 0:n.roles)||[]).map(C=>C.id);return TD({resources:e,permissions:s,translate:c,userMenu:a,roles:p})},[t,o,n,e,s,c,a]),A=Q.useMemo(()=>t,[t]);return{menu:u,isLoading:A,getItem:p=>A?!1:vg(u,p),findInMenu:A?()=>{}:vg}},sB=()=>{const e=j.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=wf(),{pathname:o}=Ct.useLocation();return Q.useMemo(()=>{var h;const s=o.split("/").filter(C=>C);let a=lt.cloneDeep(n),c=o,u=r(a,o);if(u||(u=r(a,s[s.length-1]),c=u?u.id:c),!u)for(let C=s.length;C>=0;C--){let m=s.slice(0,C).join("/");if(u=r(a,m),u){c=u.id;break}}const A=(h=u==null?void 0:u.url)==null?void 0:h.split("/");if(s.length>=(A==null?void 0:A.length)){const C=s[s.length-1];if(u){const m=C==="create"||o===u.url?"create":"edit",I=`resources.${c}.breadcrumbs.${m}`,B={id:`${c}-${m}`,type:"item",title:e(I,{_:e(I,{_:I})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(B),u=B}}let p=[];if(u){let C={...u,last:!0};for(;C;)p.push(C),C=C.parent;p=p.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:p}},[t,o,n,r,e])};var aB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(In,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",a="second",c="minute",u="hour",A="day",p="week",h="month",C="quarter",m="year",I="date",B="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(X){var Z=["th","st","nd","rd"],H=X%100;return"["+X+(Z[(H-20)%10]||Z[H]||Z[0])+"]"}},x=function(X,Z,H){var J=String(X);return!J||J.length>=Z?X:""+Array(Z+1-J.length).join(H)+X},R={s:x,z:function(X){var Z=-X.utcOffset(),H=Math.abs(Z),J=Math.floor(H/60),L=H%60;return(Z<=0?"+":"-")+x(J,2,"0")+":"+x(L,2,"0")},m:function X(Z,H){if(Z.date()<H.date())return-X(H,Z);var J=12*(H.year()-Z.year())+(H.month()-Z.month()),L=Z.clone().add(J,h),_=H-L<0,V=Z.clone().add(J+(_?-1:1),h);return+(-(J+(H-L)/(_?L-V:V-L))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:h,y:m,w:p,d:A,D:I,h:u,m:c,s:a,ms:s,Q:C}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},P="en",k={};k[P]=O;var F="$isDayjsObject",G=function(X){return X instanceof ie||!(!X||!X[F])},K=function X(Z,H,J){var L;if(!Z)return P;if(typeof Z=="string"){var _=Z.toLowerCase();k[_]&&(L=_),H&&(k[_]=H,L=_);var V=Z.split("-");if(!L&&V.length>1)return X(V[0])}else{var q=Z.name;k[q]=Z,L=q}return!J&&L&&(P=L),L||!J&&P},$=function(X,Z){if(G(X))return X.clone();var H=typeof Z=="object"?Z:{};return H.date=X,H.args=arguments,new ie(H)},Y=R;Y.l=K,Y.i=G,Y.w=function(X,Z){return $(X,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var ie=function(){function X(H){this.$L=K(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[F]=!0}var Z=X.prototype;return Z.parse=function(H){this.$d=function(J){var L=J.date,_=J.utc;if(L===null)return new Date(NaN);if(Y.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var V=L.match(v);if(V){var q=V[2]-1||0,le=(V[7]||"0").substring(0,3);return _?new Date(Date.UTC(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,le)):new Date(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,le)}}return new Date(L)}(H),this.init()},Z.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},Z.$utils=function(){return Y},Z.isValid=function(){return this.$d.toString()!==B},Z.isSame=function(H,J){var L=$(H);return this.startOf(J)<=L&&L<=this.endOf(J)},Z.isAfter=function(H,J){return $(H)<this.startOf(J)},Z.isBefore=function(H,J){return this.endOf(J)<$(H)},Z.$g=function(H,J,L){return Y.u(H)?this[J]:this.set(L,H)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(H,J){var L=this,_=!!Y.u(J)||J,V=Y.p(H),q=function(Ce,Ie){var xe=Y.w(L.$u?Date.UTC(L.$y,Ie,Ce):new Date(L.$y,Ie,Ce),L);return _?xe:xe.endOf(A)},le=function(Ce,Ie){return Y.w(L.toDate()[Ce].apply(L.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Ie)),L)},pe=this.$W,de=this.$M,ge=this.$D,he="set"+(this.$u?"UTC":"");switch(V){case m:return _?q(1,0):q(31,11);case h:return _?q(1,de):q(0,de+1);case p:var Be=this.$locale().weekStart||0,Ee=(pe<Be?pe+7:pe)-Be;return q(_?ge-Ee:ge+(6-Ee),de);case A:case I:return le(he+"Hours",0);case u:return le(he+"Minutes",1);case c:return le(he+"Seconds",2);case a:return le(he+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(H){return this.startOf(H,!1)},Z.$set=function(H,J){var L,_=Y.p(H),V="set"+(this.$u?"UTC":""),q=(L={},L[A]=V+"Date",L[I]=V+"Date",L[h]=V+"Month",L[m]=V+"FullYear",L[u]=V+"Hours",L[c]=V+"Minutes",L[a]=V+"Seconds",L[s]=V+"Milliseconds",L)[_],le=_===A?this.$D+(J-this.$W):J;if(_===h||_===m){var pe=this.clone().set(I,1);pe.$d[q](le),pe.init(),this.$d=pe.set(I,Math.min(this.$D,pe.daysInMonth())).$d}else q&&this.$d[q](le);return this.init(),this},Z.set=function(H,J){return this.clone().$set(H,J)},Z.get=function(H){return this[Y.p(H)]()},Z.add=function(H,J){var L,_=this;H=Number(H);var V=Y.p(J),q=function(de){var ge=$(_);return Y.w(ge.date(ge.date()+Math.round(de*H)),_)};if(V===h)return this.set(h,this.$M+H);if(V===m)return this.set(m,this.$y+H);if(V===A)return q(1);if(V===p)return q(7);var le=(L={},L[c]=r,L[u]=o,L[a]=n,L)[V]||1,pe=this.$d.getTime()+H*le;return Y.w(pe,this)},Z.subtract=function(H,J){return this.add(-1*H,J)},Z.format=function(H){var J=this,L=this.$locale();if(!this.isValid())return L.invalidDate||B;var _=H||"YYYY-MM-DDTHH:mm:ssZ",V=Y.z(this),q=this.$H,le=this.$m,pe=this.$M,de=L.weekdays,ge=L.months,he=L.meridiem,Be=function(Ie,xe,ue,qe){return Ie&&(Ie[xe]||Ie(J,_))||ue[xe].slice(0,qe)},Ee=function(Ie){return Y.s(q%12||12,Ie,"0")},Ce=he||function(Ie,xe,ue){var qe=Ie<12?"AM":"PM";return ue?qe.toLowerCase():qe};return _.replace(S,function(Ie,xe){return xe||function(ue){switch(ue){case"YY":return String(J.$y).slice(-2);case"YYYY":return Y.s(J.$y,4,"0");case"M":return pe+1;case"MM":return Y.s(pe+1,2,"0");case"MMM":return Be(L.monthsShort,pe,ge,3);case"MMMM":return Be(ge,pe);case"D":return J.$D;case"DD":return Y.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return Be(L.weekdaysMin,J.$W,de,2);case"ddd":return Be(L.weekdaysShort,J.$W,de,3);case"dddd":return de[J.$W];case"H":return String(q);case"HH":return Y.s(q,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return Ce(q,le,!0);case"A":return Ce(q,le,!1);case"m":return String(le);case"mm":return Y.s(le,2,"0");case"s":return String(J.$s);case"ss":return Y.s(J.$s,2,"0");case"SSS":return Y.s(J.$ms,3,"0");case"Z":return V}return null}(Ie)||V.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(H,J,L){var _,V=this,q=Y.p(J),le=$(H),pe=(le.utcOffset()-this.utcOffset())*r,de=this-le,ge=function(){return Y.m(V,le)};switch(q){case m:_=ge()/12;break;case h:_=ge();break;case C:_=ge()/3;break;case p:_=(de-pe)/6048e5;break;case A:_=(de-pe)/864e5;break;case u:_=de/o;break;case c:_=de/r;break;case a:_=de/n;break;default:_=de}return L?_:Y.a(_)},Z.daysInMonth=function(){return this.endOf(h).$D},Z.$locale=function(){return k[this.$L]},Z.locale=function(H,J){if(!H)return this.$L;var L=this.clone(),_=K(H,J,!0);return _&&(L.$L=_),L},Z.clone=function(){return Y.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},X}(),se=ie.prototype;return $.prototype=se,[["$ms",s],["$s",a],["$m",c],["$H",u],["$W",A],["$M",h],["$y",m],["$D",I]].forEach(function(X){se[X[1]]=function(Z){return this.$g(Z,X[0],X[1])}}),$.extend=function(X,Z){return X.$i||(X(Z,ie,$),X.$i=!0),$},$.locale=K,$.isDayjs=G,$.unix=function(X){return $(1e3*X)},$.en=k[P],$.Ls=k,$.p={},$})})(aB);var lB=aB.exports;const Pr=ro(lB),cB=e=>{const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Pr().hour(n).minute(r)};function SD(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Tf(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return!te.some(t,o=>r((e??{})[o.locale]))}function Sf(e,t,n){if(!te.isPlainObject(e)||t===void 0)return;const r=te.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let s=e[String(t)];if(s===void 0&&o){const a=te.isArray(r.fallbackLocales)&&!te.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];s=te.chain(a).map(c=>e[String(c)]).reject(te.isUndefined).first().value(),s===void 0&&(s=te.chain(e).values().first().value())}return s}function bi(e){this._maxSize=e,this.clear()}bi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};bi.prototype.get=function(e){return this._values[e]};bi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var PD=/[^.^\]^[]+|(?=\[\]|\.\.)/g,uB=/^\d+$/,RD=/^\d/,OD=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,jD=/^\s*(['"]?)(.*?)(\1)\s*$/,Pf=512,qm=new bi(Pf),Jm=new bi(Pf),Xm=new bi(Pf),gi={Cache:bi,split:bg,normalizePath:Dd,setter:function(e){var t=Dd(e);return Jm.get(e)||Jm.set(e,function(r,o){for(var s=0,a=t.length,c=r;s<a-1;){var u=t[s];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[s++]]}c[t[s]]=o})},getter:function(e,t){var n=Dd(e);return Xm.get(e)||Xm.set(e,function(o){for(var s=0,a=n.length;s<a;)if(o!=null||!t)o=o[n[s++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Rf(n)||uB.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){DD(Array.isArray(e)?e:bg(e),t,n)}};function Dd(e){return qm.get(e)||qm.set(e,bg(e).map(function(t){return t.replace(jD,"$2")}))}function bg(e){return e.match(PD)||[""]}function DD(e,t,n){var r=e.length,o,s,a,c;for(s=0;s<r;s++)o=e[s],o&&(FD(o)&&(o='"'+o+'"'),c=Rf(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,s,e))}function Rf(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function MD(e){return e.match(RD)&&!e.match(uB)}function kD(e){return OD.test(e)}function FD(e){return!Rf(e)&&(MD(e)||kD(e))}const LD=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,wu=e=>e.match(LD)||[],Tu=e=>e[0].toUpperCase()+e.slice(1),Of=(e,t)=>wu(e).join(t).toLowerCase(),AB=e=>wu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),ND=e=>Tu(AB(e)),VD=e=>Of(e,"_"),HD=e=>Of(e,"-"),zD=e=>Tu(Of(e," ")),WD=e=>wu(e).map(Tu).join(" ");var Md={words:wu,upperFirst:Tu,camelCase:AB,pascalCase:ND,snakeCase:VD,kebabCase:HD,sentenceCase:zD,titleCase:WD},jf={exports:{}};jf.exports=function(e){return dB(UD(e),e)};jf.exports.array=dB;function dB(e,t){var n=e.length,r=new Array(n),o={},s=n,a=YD(t),c=GD(e);for(t.forEach(function(A){if(!c.has(A[0])||!c.has(A[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)o[s]||u(e[s],s,new Set);return r;function u(A,p,h){if(h.has(A)){var C;try{C=", node was:"+JSON.stringify(A)}catch{C=""}throw new Error("Cyclic dependency"+C)}if(!c.has(A))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(A));if(!o[p]){o[p]=!0;var m=a.get(A)||new Set;if(m=Array.from(m),p=m.length){h.add(A);do{var I=m[--p];u(I,c.get(I),h)}while(p);h.delete(A)}r[--n]=A}}}function UD(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function YD(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function GD(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var KD=jf.exports;const qD=ro(KD),JD=Object.prototype.toString,XD=Error.prototype.toString,ZD=RegExp.prototype.toString,_D=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$D=/^Symbol\((.*)\)(.*)$/;function eM(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Zm(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return eM(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return _D.call(e).replace($D,"Symbol($1)");const r=JD.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+XD.call(e)+"]":r==="RegExp"?ZD.call(e):null}function So(e,t){let n=Zm(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let s=Zm(this[r],t);return s!==null?s:o},2)}function gB(e){return e==null?[]:[].concat(e)}let fB,pB,hB,tM=/\$\{\s*(\w+)\s*\}/g;fB=Symbol.toStringTag;class _m{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[fB]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],gB(t).forEach(s=>{if(En.isError(s)){this.errors.push(...s.errors);const a=s.inner.length?s.inner:[s];this.inner.push(...a)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}pB=Symbol.hasInstance;hB=Symbol.toStringTag;class En extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(tM,(o,s)=>So(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,s){const a=new _m(t,n,r,o);if(s)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[hB]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,En)}static[pB](t){return _m[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let xr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${So(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${So(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${So(n,!0)}\``+o}},mn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Io={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},yg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nM={isValue:"${path} field must be ${value}"},Qg={noUnknown:"${path} field has unspecified keys: ${unknown}"},rM={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},oM={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${So(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${So(n,!0)}\``}return En.formatError(xr.notType,e)}};Object.assign(Object.create(null),{mixed:xr,string:mn,number:Io,date:yg,object:Qg,array:rM,boolean:nM,tuple:oM});const Df=e=>e&&e.__isYupSchema__;class Uc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:s}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new Uc(t,(c,u)=>{var A;let p=a(...c)?o:s;return(A=p==null?void 0:p(u))!=null?A:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Df(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ic={context:"$",value:"."};class yi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ic.context,this.isValue=this.key[0]===ic.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ic.context:this.isValue?ic.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&gi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}yi.prototype.__isYupRef=!0;const qr=e=>e==null;function Ji(e){function t({value:n,path:r="",options:o,originalValue:s,schema:a},c,u){const{name:A,test:p,params:h,message:C,skipAbsent:m}=e;let{parent:I,context:B,abortEarly:v=a.spec.abortEarly,disableStackTrace:S=a.spec.disableStackTrace}=o;function O(Y){return yi.isRef(Y)?Y.getValue(n,I,B):Y}function x(Y={}){const ie=Object.assign({value:n,originalValue:s,label:a.spec.label,path:Y.path||r,spec:a.spec,disableStackTrace:Y.disableStackTrace||S},h,Y.params);for(const X of Object.keys(ie))ie[X]=O(ie[X]);const se=new En(En.formatError(Y.message||C,ie),n,ie.path,Y.type||A,ie.disableStackTrace);return se.params=ie,se}const R=v?c:u;let P={path:r,parent:I,type:A,from:o.from,createError:x,resolve:O,options:o,originalValue:s,schema:a};const k=Y=>{En.isError(Y)?R(Y):Y?u(null):R(x())},F=Y=>{En.isError(Y)?R(Y):c(Y)};if(m&&qr(n))return k(!0);let K;try{var $;if(K=p.call(P,n,P),typeof(($=K)==null?void 0:$.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(K).then(k,F)}}catch(Y){F(Y);return}k(K)}return t.OPTIONS=e,t}function iM(e,t,n,r=n){let o,s,a;return t?(gi.forEach(t,(c,u,A)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let h=e.type==="tuple",C=A?parseInt(p,10):0;if(e.innerType||h){if(h&&!A)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&C>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[C],e=h?e.spec.types[C]:e.innerType}if(!A){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}s=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:s}):{parent:o,parentPath:t,schema:e}}class Yc extends Set{describe(){const t=[];for(const n of this.values())t.push(yi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Yc(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function is(e,t=new Map){if(Df(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=is(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,is(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(is(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=is(o,t)}else throw Error(`Unable to clone ${e}`);return n}class or{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Yc,this._blacklist=new Yc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(xr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=is(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(a=>{s.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,s)=>s.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(o&&qr(s))return s;let a=So(t),c=So(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
97
+ }`;var Ye=Cm(function(){return et(T,ye+"return "+ae).apply(n,D)});if(Ye.source=ae,fd(Ye))throw Ye;return Ye}function CR(i){return tt(i).toLowerCase()}function mR(i){return tt(i).toUpperCase()}function ER(i,l,d){if(i=tt(i),i&&(d||l===n))return xh(i);if(!i||!(l=Tn(l)))return i;var E=ur(i),b=ur(l),T=wh(E,b),D=Th(E,b)+1;return go(E,T,D).join("")}function IR(i,l,d){if(i=tt(i),i&&(d||l===n))return i.slice(0,Ph(i)+1);if(!i||!(l=Tn(l)))return i;var E=ur(i),b=Th(E,ur(l))+1;return go(E,0,b).join("")}function BR(i,l,d){if(i=tt(i),i&&(d||l===n))return i.replace(jr,"");if(!i||!(l=Tn(l)))return i;var E=ur(i),b=wh(E,ur(l));return go(E,b).join("")}function vR(i,l){var d=$,E=Y;if(Qt(l)){var b="separator"in l?l.separator:b;d="length"in l?He(l.length):d,E="omission"in l?Tn(l.omission):E}i=tt(i);var T=i.length;if(Oi(i)){var D=ur(i);T=D.length}if(d>=T)return i;var N=d-ji(E);if(N<1)return E;var U=D?go(D,0,N).join(""):i.slice(0,N);if(b===n)return U+E;if(D&&(N+=U.length-N),pd(b)){if(i.slice(N).search(b)){var re,oe=U;for(b.global||(b=RA(b.source,tt(zs.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var ae=re.index;U=U.slice(0,ae===n?N:ae)}}else if(i.indexOf(Tn(b),N)!=N){var me=U.lastIndexOf(b);me>-1&&(U=U.slice(0,me))}return U+E}function bR(i){return i=tt(i),i&&ll.test(i)?i.replace(al,_1):i}var yR=Vi(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),md=mC("toUpperCase");function hm(i,l,d){return i=tt(i),l=d?n:l,l===n?K1(i)?tw(i):L1(i):i.match(l)||[]}var Cm=Ke(function(i,l){try{return xn(i,n,l)}catch(d){return fd(d)?d:new Fe(d)}}),QR=Lr(function(i,l){return zn(l,function(d){d=yr(d),kr(i,d,dd(i[d],i))}),i});function xR(i){var l=i==null?0:i.length,d=Re();return i=l?It(i,function(E){if(typeof E[1]!="function")throw new Wn(a);return[d(E[0]),E[1]]}):[],Ke(function(E){for(var b=-1;++b<l;){var T=i[b];if(xn(T[0],this,E))return xn(T[1],this,E)}})}function wR(i){return _w(Yn(i,h))}function Ed(i){return function(){return i}}function TR(i,l){return i==null||i!==i?l:i}var SR=IC(),PR=IC(!0);function pn(i){return i}function Id(i){return Xh(typeof i=="function"?i:Yn(i,h))}function RR(i){return _h(Yn(i,h))}function OR(i,l){return $h(i,Yn(l,h))}var jR=Ke(function(i,l){return function(d){return Zs(d,i,l)}}),DR=Ke(function(i,l){return function(d){return Zs(i,d,l)}});function Bd(i,l,d){var E=Gt(l),b=kl(l,E);d==null&&!(Qt(l)&&(b.length||!E.length))&&(d=l,l=i,i=this,b=kl(l,Gt(l)));var T=!(Qt(d)&&"chain"in d)||!!d.chain,D=Vr(i);return zn(b,function(N){var U=l[N];i[N]=U,D&&(i.prototype[N]=function(){var re=this.__chain__;if(T||re){var oe=i(this.__wrapped__),ae=oe.__actions__=dn(this.__actions__);return ae.push({func:U,args:arguments,thisArg:i}),oe.__chain__=re,oe}return U.apply(i,so([this.value()],arguments))})}),i}function MR(){return Jt._===this&&(Jt._=aw),this}function vd(){}function kR(i){return i=He(i),Ke(function(l){return eC(l,i)})}var FR=$A(It),LR=$A(Bh),NR=$A(yA);function mm(i){return sd(i)?QA(yr(i)):p2(i)}function VR(i){return function(l){return i==null?n:Jo(i,l)}}var HR=vC(),zR=vC(!0);function bd(){return[]}function yd(){return!1}function WR(){return{}}function UR(){return""}function YR(){return!0}function GR(i,l){if(i=He(i),i<1||i>L)return[];var d=q,E=Zt(i,q);l=Re(l),i-=q;for(var b=TA(E,l);++d<i;)l(d);return b}function KR(i){return Le(i)?It(i,yr):Sn(i)?[i]:dn(LC(tt(i)))}function qR(i){var l=++iw;return tt(i)+l}var JR=zl(function(i,l){return i+l},0),XR=ed("ceil"),ZR=zl(function(i,l){return i/l},1),_R=ed("floor");function $R(i){return i&&i.length?Ml(i,pn,NA):n}function eO(i,l){return i&&i.length?Ml(i,Re(l,2),NA):n}function tO(i){return yh(i,pn)}function nO(i,l){return yh(i,Re(l,2))}function rO(i){return i&&i.length?Ml(i,pn,WA):n}function oO(i,l){return i&&i.length?Ml(i,Re(l,2),WA):n}var iO=zl(function(i,l){return i*l},1),sO=ed("round"),aO=zl(function(i,l){return i-l},0);function lO(i){return i&&i.length?wA(i,pn):0}function cO(i,l){return i&&i.length?wA(i,Re(l,2)):0}return w.after=RS,w.ary=JC,w.assign=mP,w.assignIn=cm,w.assignInWith=tc,w.assignWith=EP,w.at=IP,w.before=XC,w.bind=dd,w.bindAll=QR,w.bindKey=ZC,w.castArray=WS,w.chain=GC,w.chunk=_2,w.compact=$2,w.concat=eT,w.cond=xR,w.conforms=wR,w.constant=Ed,w.countBy=lS,w.create=BP,w.curry=_C,w.curryRight=$C,w.debounce=em,w.defaults=vP,w.defaultsDeep=bP,w.defer=OS,w.delay=jS,w.difference=tT,w.differenceBy=nT,w.differenceWith=rT,w.drop=oT,w.dropRight=iT,w.dropRightWhile=sT,w.dropWhile=aT,w.fill=lT,w.filter=uS,w.flatMap=gS,w.flatMapDeep=fS,w.flatMapDepth=pS,w.flatten=zC,w.flattenDeep=cT,w.flattenDepth=uT,w.flip=DS,w.flow=SR,w.flowRight=PR,w.fromPairs=AT,w.functions=PP,w.functionsIn=RP,w.groupBy=hS,w.initial=gT,w.intersection=fT,w.intersectionBy=pT,w.intersectionWith=hT,w.invert=jP,w.invertBy=DP,w.invokeMap=mS,w.iteratee=Id,w.keyBy=ES,w.keys=Gt,w.keysIn=fn,w.map=Jl,w.mapKeys=kP,w.mapValues=FP,w.matches=RR,w.matchesProperty=OR,w.memoize=Zl,w.merge=LP,w.mergeWith=um,w.method=jR,w.methodOf=DR,w.mixin=Bd,w.negate=_l,w.nthArg=kR,w.omit=NP,w.omitBy=VP,w.once=MS,w.orderBy=IS,w.over=FR,w.overArgs=kS,w.overEvery=LR,w.overSome=NR,w.partial=gd,w.partialRight=tm,w.partition=BS,w.pick=HP,w.pickBy=Am,w.property=mm,w.propertyOf=VR,w.pull=IT,w.pullAll=UC,w.pullAllBy=BT,w.pullAllWith=vT,w.pullAt=bT,w.range=HR,w.rangeRight=zR,w.rearg=FS,w.reject=yS,w.remove=yT,w.rest=LS,w.reverse=ud,w.sampleSize=xS,w.set=WP,w.setWith=UP,w.shuffle=wS,w.slice=QT,w.sortBy=PS,w.sortedUniq=OT,w.sortedUniqBy=jT,w.split=gR,w.spread=NS,w.tail=DT,w.take=MT,w.takeRight=kT,w.takeRightWhile=FT,w.takeWhile=LT,w.tap=$T,w.throttle=VS,w.thru=ql,w.toArray=sm,w.toPairs=dm,w.toPairsIn=gm,w.toPath=KR,w.toPlainObject=lm,w.transform=YP,w.unary=HS,w.union=NT,w.unionBy=VT,w.unionWith=HT,w.uniq=zT,w.uniqBy=WT,w.uniqWith=UT,w.unset=GP,w.unzip=Ad,w.unzipWith=YC,w.update=KP,w.updateWith=qP,w.values=Wi,w.valuesIn=JP,w.without=YT,w.words=hm,w.wrap=zS,w.xor=GT,w.xorBy=KT,w.xorWith=qT,w.zip=JT,w.zipObject=XT,w.zipObjectDeep=ZT,w.zipWith=_T,w.entries=dm,w.entriesIn=gm,w.extend=cm,w.extendWith=tc,Bd(w,w),w.add=JR,w.attempt=Cm,w.camelCase=$P,w.capitalize=fm,w.ceil=XR,w.clamp=XP,w.clone=US,w.cloneDeep=GS,w.cloneDeepWith=KS,w.cloneWith=YS,w.conformsTo=qS,w.deburr=pm,w.defaultTo=TR,w.divide=ZR,w.endsWith=eR,w.eq=dr,w.escape=tR,w.escapeRegExp=nR,w.every=cS,w.find=AS,w.findIndex=VC,w.findKey=yP,w.findLast=dS,w.findLastIndex=HC,w.findLastKey=QP,w.floor=_R,w.forEach=KC,w.forEachRight=qC,w.forIn=xP,w.forInRight=wP,w.forOwn=TP,w.forOwnRight=SP,w.get=hd,w.gt=JS,w.gte=XS,w.has=OP,w.hasIn=Cd,w.head=WC,w.identity=pn,w.includes=CS,w.indexOf=dT,w.inRange=ZP,w.invoke=MP,w.isArguments=_o,w.isArray=Le,w.isArrayBuffer=ZS,w.isArrayLike=gn,w.isArrayLikeObject=Ot,w.isBoolean=_S,w.isBuffer=fo,w.isDate=$S,w.isElement=eP,w.isEmpty=tP,w.isEqual=nP,w.isEqualWith=rP,w.isError=fd,w.isFinite=oP,w.isFunction=Vr,w.isInteger=nm,w.isLength=$l,w.isMap=rm,w.isMatch=iP,w.isMatchWith=sP,w.isNaN=aP,w.isNative=lP,w.isNil=uP,w.isNull=cP,w.isNumber=om,w.isObject=Qt,w.isObjectLike=wt,w.isPlainObject=ra,w.isRegExp=pd,w.isSafeInteger=AP,w.isSet=im,w.isString=ec,w.isSymbol=Sn,w.isTypedArray=zi,w.isUndefined=dP,w.isWeakMap=gP,w.isWeakSet=fP,w.join=CT,w.kebabCase=rR,w.last=Kn,w.lastIndexOf=mT,w.lowerCase=oR,w.lowerFirst=iR,w.lt=pP,w.lte=hP,w.max=$R,w.maxBy=eO,w.mean=tO,w.meanBy=nO,w.min=rO,w.minBy=oO,w.stubArray=bd,w.stubFalse=yd,w.stubObject=WR,w.stubString=UR,w.stubTrue=YR,w.multiply=iO,w.nth=ET,w.noConflict=MR,w.noop=vd,w.now=Xl,w.pad=sR,w.padEnd=aR,w.padStart=lR,w.parseInt=cR,w.random=_P,w.reduce=vS,w.reduceRight=bS,w.repeat=uR,w.replace=AR,w.result=zP,w.round=sO,w.runInContext=W,w.sample=QS,w.size=TS,w.snakeCase=dR,w.some=SS,w.sortedIndex=xT,w.sortedIndexBy=wT,w.sortedIndexOf=TT,w.sortedLastIndex=ST,w.sortedLastIndexBy=PT,w.sortedLastIndexOf=RT,w.startCase=fR,w.startsWith=pR,w.subtract=aO,w.sum=lO,w.sumBy=cO,w.template=hR,w.times=GR,w.toFinite=Hr,w.toInteger=He,w.toLength=am,w.toLower=CR,w.toNumber=qn,w.toSafeInteger=CP,w.toString=tt,w.toUpper=mR,w.trim=ER,w.trimEnd=IR,w.trimStart=BR,w.truncate=vR,w.unescape=bR,w.uniqueId=qR,w.upperCase=yR,w.upperFirst=md,w.each=KC,w.eachRight=qC,w.first=WC,Bd(w,function(){var i={};return vr(w,function(l,d){at.call(w.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),w.VERSION=r,zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){w[i].placeholder=w}),zn(["drop","take"],function(i,l){Xe.prototype[i]=function(d){d=d===n?1:Ut(He(d),0);var E=this.__filtered__&&!l?new Xe(this):this.clone();return E.__filtered__?E.__takeCount__=Zt(d,E.__takeCount__):E.__views__.push({size:Zt(d,q),type:i+(E.__dir__<0?"Right":"")}),E},Xe.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),zn(["filter","map","takeWhile"],function(i,l){var d=l+1,E=d==X||d==H;Xe.prototype[i]=function(b){var T=this.clone();return T.__iteratees__.push({iteratee:Re(b,3),type:d}),T.__filtered__=T.__filtered__||E,T}}),zn(["head","last"],function(i,l){var d="take"+(l?"Right":"");Xe.prototype[i]=function(){return this[d](1).value()[0]}}),zn(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");Xe.prototype[i]=function(){return this.__filtered__?new Xe(this):this[d](1)}}),Xe.prototype.compact=function(){return this.filter(pn)},Xe.prototype.find=function(i){return this.filter(i).head()},Xe.prototype.findLast=function(i){return this.reverse().find(i)},Xe.prototype.invokeMap=Ke(function(i,l){return typeof i=="function"?new Xe(this):this.map(function(d){return Zs(d,i,l)})}),Xe.prototype.reject=function(i){return this.filter(_l(Re(i)))},Xe.prototype.slice=function(i,l){i=He(i);var d=this;return d.__filtered__&&(i>0||l<0)?new Xe(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==n&&(l=He(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},Xe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Xe.prototype.toArray=function(){return this.take(q)},vr(Xe.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),E=/^(?:head|last)$/.test(l),b=w[E?"take"+(l=="last"?"Right":""):l],T=E||/^find/.test(l);b&&(w.prototype[l]=function(){var D=this.__wrapped__,N=E?[1]:arguments,U=D instanceof Xe,re=N[0],oe=U||Le(D),ae=function(Je){var _e=b.apply(w,so([Je],N));return E&&me?_e[0]:_e};oe&&d&&typeof re=="function"&&re.length!=1&&(U=oe=!1);var me=this.__chain__,ye=!!this.__actions__.length,Oe=T&&!me,Ye=U&&!ye;if(!T&&oe){D=Ye?D:new Xe(this);var je=i.apply(D,N);return je.__actions__.push({func:ql,args:[ae],thisArg:n}),new Un(je,me)}return Oe&&Ye?i.apply(this,N):(je=this.thru(ae),Oe?E?je.value()[0]:je.value():je)})}),zn(["pop","push","shift","sort","splice","unshift"],function(i){var l=Il[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",E=/^(?:pop|shift)$/.test(i);w.prototype[i]=function(){var b=arguments;if(E&&!this.__chain__){var T=this.value();return l.apply(Le(T)?T:[],b)}return this[d](function(D){return l.apply(Le(D)?D:[],b)})}}),vr(Xe.prototype,function(i,l){var d=w[l];if(d){var E=d.name+"";at.call(Fi,E)||(Fi[E]=[]),Fi[E].push({name:l,func:d})}}),Fi[Hl(n,S).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=bw,Xe.prototype.reverse=yw,Xe.prototype.value=Qw,w.prototype.at=eS,w.prototype.chain=tS,w.prototype.commit=nS,w.prototype.next=rS,w.prototype.plant=iS,w.prototype.reverse=sS,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=aS,w.prototype.first=w.prototype.head,Us&&(w.prototype[Us]=oS),w},Di=nw();Uo?((Uo.exports=Di)._=Di,IA._=Di):Jt._=Di}).call(In)})(zc,zc.exports);var lt=zc.exports;const te=ro(lt),Qr=()=>{throw new Error("Method must be implemented")},$0={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Qr,setMenuOrientation:Qr,setMiniDrawer:Qr,setContainer:Qr,setMode:Qr,setPresetColor:Qr,setThemeDirection:Qr,setAppDefaultPath:Qr,setDrawerWidth:Qr,setHorizontalMaxItems:Qr},bf=Q.createContext($0),vD=e=>e==="vertical",bD=e=>e==="horizontal",Wc=({initialConfig:e,children:t})=>{const[n,r]=Pu("theme-config",{...$0,...e}),o=I=>r(B=>({...B,fontFamily:I})),s=I=>r(B=>({...B,menuOrientation:I})),a=I=>r(B=>({...B,miniDrawer:I})),c=I=>r(B=>({...B,container:I})),u=I=>r(B=>({...B,mode:I})),A=I=>r(B=>({...B,presetColor:I})),p=I=>r(B=>({...B,themeDirection:I})),h=I=>r(B=>({...B,appDefaultPath:I})),C=I=>r(B=>({...B,drawerWidth:I})),m=I=>r(B=>({...B,horizontalMaxItems:I}));return g.jsx(bf.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:s,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:A,setThemeDirection:p,setAppDefaultPath:h,setDrawerWidth:C,setHorizontalMaxItems:m,isVerticalLayout:vD,isHorizontalLayout:bD},children:t})};Wc.propTypes={children:f.node};const aa=()=>{throw new Error("Not implemented")},eB={openItem:["dashboard"],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:aa,openDrawer:aa,activeID:aa,hasError:aa,setMenu:aa},yf=Q.createContext(eB),tB=({menu:e,children:t})=>{const[n,r]=Pu("menu-config",{...eB,menu:e}),o=A=>r(p=>({...p,menu:A})),s=A=>r(p=>({...p,openItem:A})),a=A=>r(p=>({...p,selectedID:A})),c=A=>r(p=>({...p,drawerOpen:A})),u=A=>r(p=>({...p,error:A}));return Q.useEffect(()=>{o(e)},[e]),g.jsx(yf.Provider,{value:{...n,setMenu:o,activeItem:s,openDrawer:c,activeID:a,hasError:u},children:t})},Qf=Q.createContext(void 0),xf=Q.createContext(void 0),mi=()=>Q.useContext(yf),yD=["e-","entities/"],QD=e=>{let t=e;return yD.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t},xD=(e,t)=>{var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"},wD=(e,t)=>{const n=QD(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))},vg=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=vg(o.children,t),n))return n}return n},nB=(e,t,n)=>{let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&xD(o,t));if(!r)for(let o=0;o<e.length;o++){const s=e[o];if(s.children&&(r=nB(s.children,t),r))return r}return r},rB=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=rB(o.children,t),n))return n}return n},oB=e=>e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(oB)),e.children&&e.children.length>0):!1,iB=e=>(e.children&&e.children.forEach(t=>{t.parent=e,iB(t)}),e),TD=({userMenu:e,resources:t,permissions:n,translate:r,roles:o})=>{const s=h=>(h.title=r(h.title,{_:h.title}),h.children&&h.children.forEach(C=>s(C)),h),a=Object.keys(t),c=(h,C)=>(h.children&&(h.children=h.children.filter(m=>{if(m.resource===!1){const I=m.roles||[];return!!(I.length===0||I.some(B=>o.includes(B)))}return m.type==="item"?C.includes(m.id):(c(m,C),m.children&&m.children.length>0)})),h),u=lt.cloneDeep(e).map(h=>({type:"group",icon:Ze.AntDesignOutlined,children:[],...h})).map(s).map(h=>c(h,a)),A=Object.values(t).map(h=>{var C;return((C=h.options)==null?void 0:C.group)||"admin"}).filter((h,C,m)=>m.indexOf(h)===C).filter(h=>h!==void 0&&rB(e,h)===null).map(h=>({id:h,title:r(`ra.menu.group.${h}`),type:"group",icon:Ze.AntDesignOutlined,children:[]})),p=[...u,...A];return Object.values(t).forEach(h=>{var O,x,R,P;const C=nB(p,h),m=(O=C==null?void 0:C.children)==null?void 0:O.find(k=>k.id===h.name),I=(x=C==null?void 0:C.children)==null?void 0:x.some(k=>k.id===h.name),B=(m==null?void 0:m.roles)||((R=h.options)==null?void 0:R.roles)||[],v=!B||B.length===0||B.some(k=>o.includes(k));if(!wD(h,n)||!h.hasList||!v){I&&((P=C==null?void 0:C.children)==null?void 0:P.length)>0&&(C.children=C.children.filter(k=>k.id!==h.name));return}C&&(C.children||(C.children=[]))}),p.filter(oB).map(iB)},wf=()=>{const e=j.useResourceDefinitions(),{isLoading:t,data:n}=j.useGetIdentity(),r=n&&n.id>0,{isLoading:o,permissions:s}=j.usePermissions(r),{menu:a}=mi(),c=j.useTranslate(),u=Q.useMemo(()=>{if(t||!n||n===null||(n==null?void 0:n.id)<=0)return null;const p=((n==null?void 0:n.roles)||[]).map(C=>C.id);return TD({resources:e,permissions:s,translate:c,userMenu:a,roles:p})},[t,o,n,e,s,c,a]),A=Q.useMemo(()=>t,[t]);return{menu:u,isLoading:A,getItem:p=>A?!1:vg(u,p),findInMenu:A?()=>{}:vg}},sB=()=>{const e=j.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=wf(),{pathname:o}=Ct.useLocation();return Q.useMemo(()=>{var h;const s=o.split("/").filter(C=>C);let a=lt.cloneDeep(n),c=o,u=r(a,o);if(u||(u=r(a,s[s.length-1]),c=u?u.id:c),!u)for(let C=s.length;C>=0;C--){let m=s.slice(0,C).join("/");if(u=r(a,m),u){c=u.id;break}}const A=(h=u==null?void 0:u.url)==null?void 0:h.split("/");if(s.length>=(A==null?void 0:A.length)){const C=s[s.length-1];if(u){const m=C==="create"||o===u.url?"create":"edit",I=`resources.${c}.breadcrumbs.${m}`,B={id:`${c}-${m}`,type:"item",title:e(I,{_:e(I,{_:I})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(B),u=B}}let p=[];if(u){let C={...u,last:!0};for(;C;)p.push(C),C=C.parent;p=p.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:p}},[t,o,n,r,e])};var aB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(In,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",a="second",c="minute",u="hour",A="day",p="week",h="month",C="quarter",m="year",I="date",B="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(X){var Z=["th","st","nd","rd"],H=X%100;return"["+X+(Z[(H-20)%10]||Z[H]||Z[0])+"]"}},x=function(X,Z,H){var J=String(X);return!J||J.length>=Z?X:""+Array(Z+1-J.length).join(H)+X},R={s:x,z:function(X){var Z=-X.utcOffset(),H=Math.abs(Z),J=Math.floor(H/60),L=H%60;return(Z<=0?"+":"-")+x(J,2,"0")+":"+x(L,2,"0")},m:function X(Z,H){if(Z.date()<H.date())return-X(H,Z);var J=12*(H.year()-Z.year())+(H.month()-Z.month()),L=Z.clone().add(J,h),_=H-L<0,V=Z.clone().add(J+(_?-1:1),h);return+(-(J+(H-L)/(_?L-V:V-L))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:h,y:m,w:p,d:A,D:I,h:u,m:c,s:a,ms:s,Q:C}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},P="en",k={};k[P]=O;var F="$isDayjsObject",G=function(X){return X instanceof ie||!(!X||!X[F])},K=function X(Z,H,J){var L;if(!Z)return P;if(typeof Z=="string"){var _=Z.toLowerCase();k[_]&&(L=_),H&&(k[_]=H,L=_);var V=Z.split("-");if(!L&&V.length>1)return X(V[0])}else{var q=Z.name;k[q]=Z,L=q}return!J&&L&&(P=L),L||!J&&P},$=function(X,Z){if(G(X))return X.clone();var H=typeof Z=="object"?Z:{};return H.date=X,H.args=arguments,new ie(H)},Y=R;Y.l=K,Y.i=G,Y.w=function(X,Z){return $(X,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var ie=function(){function X(H){this.$L=K(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[F]=!0}var Z=X.prototype;return Z.parse=function(H){this.$d=function(J){var L=J.date,_=J.utc;if(L===null)return new Date(NaN);if(Y.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var V=L.match(v);if(V){var q=V[2]-1||0,le=(V[7]||"0").substring(0,3);return _?new Date(Date.UTC(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,le)):new Date(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,le)}}return new Date(L)}(H),this.init()},Z.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},Z.$utils=function(){return Y},Z.isValid=function(){return this.$d.toString()!==B},Z.isSame=function(H,J){var L=$(H);return this.startOf(J)<=L&&L<=this.endOf(J)},Z.isAfter=function(H,J){return $(H)<this.startOf(J)},Z.isBefore=function(H,J){return this.endOf(J)<$(H)},Z.$g=function(H,J,L){return Y.u(H)?this[J]:this.set(L,H)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(H,J){var L=this,_=!!Y.u(J)||J,V=Y.p(H),q=function(Ce,Ie){var xe=Y.w(L.$u?Date.UTC(L.$y,Ie,Ce):new Date(L.$y,Ie,Ce),L);return _?xe:xe.endOf(A)},le=function(Ce,Ie){return Y.w(L.toDate()[Ce].apply(L.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Ie)),L)},pe=this.$W,de=this.$M,ge=this.$D,he="set"+(this.$u?"UTC":"");switch(V){case m:return _?q(1,0):q(31,11);case h:return _?q(1,de):q(0,de+1);case p:var Be=this.$locale().weekStart||0,Ee=(pe<Be?pe+7:pe)-Be;return q(_?ge-Ee:ge+(6-Ee),de);case A:case I:return le(he+"Hours",0);case u:return le(he+"Minutes",1);case c:return le(he+"Seconds",2);case a:return le(he+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(H){return this.startOf(H,!1)},Z.$set=function(H,J){var L,_=Y.p(H),V="set"+(this.$u?"UTC":""),q=(L={},L[A]=V+"Date",L[I]=V+"Date",L[h]=V+"Month",L[m]=V+"FullYear",L[u]=V+"Hours",L[c]=V+"Minutes",L[a]=V+"Seconds",L[s]=V+"Milliseconds",L)[_],le=_===A?this.$D+(J-this.$W):J;if(_===h||_===m){var pe=this.clone().set(I,1);pe.$d[q](le),pe.init(),this.$d=pe.set(I,Math.min(this.$D,pe.daysInMonth())).$d}else q&&this.$d[q](le);return this.init(),this},Z.set=function(H,J){return this.clone().$set(H,J)},Z.get=function(H){return this[Y.p(H)]()},Z.add=function(H,J){var L,_=this;H=Number(H);var V=Y.p(J),q=function(de){var ge=$(_);return Y.w(ge.date(ge.date()+Math.round(de*H)),_)};if(V===h)return this.set(h,this.$M+H);if(V===m)return this.set(m,this.$y+H);if(V===A)return q(1);if(V===p)return q(7);var le=(L={},L[c]=r,L[u]=o,L[a]=n,L)[V]||1,pe=this.$d.getTime()+H*le;return Y.w(pe,this)},Z.subtract=function(H,J){return this.add(-1*H,J)},Z.format=function(H){var J=this,L=this.$locale();if(!this.isValid())return L.invalidDate||B;var _=H||"YYYY-MM-DDTHH:mm:ssZ",V=Y.z(this),q=this.$H,le=this.$m,pe=this.$M,de=L.weekdays,ge=L.months,he=L.meridiem,Be=function(Ie,xe,ue,qe){return Ie&&(Ie[xe]||Ie(J,_))||ue[xe].slice(0,qe)},Ee=function(Ie){return Y.s(q%12||12,Ie,"0")},Ce=he||function(Ie,xe,ue){var qe=Ie<12?"AM":"PM";return ue?qe.toLowerCase():qe};return _.replace(S,function(Ie,xe){return xe||function(ue){switch(ue){case"YY":return String(J.$y).slice(-2);case"YYYY":return Y.s(J.$y,4,"0");case"M":return pe+1;case"MM":return Y.s(pe+1,2,"0");case"MMM":return Be(L.monthsShort,pe,ge,3);case"MMMM":return Be(ge,pe);case"D":return J.$D;case"DD":return Y.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return Be(L.weekdaysMin,J.$W,de,2);case"ddd":return Be(L.weekdaysShort,J.$W,de,3);case"dddd":return de[J.$W];case"H":return String(q);case"HH":return Y.s(q,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return Ce(q,le,!0);case"A":return Ce(q,le,!1);case"m":return String(le);case"mm":return Y.s(le,2,"0");case"s":return String(J.$s);case"ss":return Y.s(J.$s,2,"0");case"SSS":return Y.s(J.$ms,3,"0");case"Z":return V}return null}(Ie)||V.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(H,J,L){var _,V=this,q=Y.p(J),le=$(H),pe=(le.utcOffset()-this.utcOffset())*r,de=this-le,ge=function(){return Y.m(V,le)};switch(q){case m:_=ge()/12;break;case h:_=ge();break;case C:_=ge()/3;break;case p:_=(de-pe)/6048e5;break;case A:_=(de-pe)/864e5;break;case u:_=de/o;break;case c:_=de/r;break;case a:_=de/n;break;default:_=de}return L?_:Y.a(_)},Z.daysInMonth=function(){return this.endOf(h).$D},Z.$locale=function(){return k[this.$L]},Z.locale=function(H,J){if(!H)return this.$L;var L=this.clone(),_=K(H,J,!0);return _&&(L.$L=_),L},Z.clone=function(){return Y.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},X}(),se=ie.prototype;return $.prototype=se,[["$ms",s],["$s",a],["$m",c],["$H",u],["$W",A],["$M",h],["$y",m],["$D",I]].forEach(function(X){se[X[1]]=function(Z){return this.$g(Z,X[0],X[1])}}),$.extend=function(X,Z){return X.$i||(X(Z,ie,$),X.$i=!0),$},$.locale=K,$.isDayjs=G,$.unix=function(X){return $(1e3*X)},$.en=k[P],$.Ls=k,$.p={},$})})(aB);var lB=aB.exports;const Pr=ro(lB),cB=e=>{const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Pr().hour(n).minute(r)};function SD(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Tf(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return!te.some(t,o=>r((e??{})[o.locale]))}function Sf(e,t,n){if(!te.isPlainObject(e)||t===void 0)return;const r=te.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let s=e[String(t)];if(s===void 0&&o){const a=te.isArray(r.fallbackLocales)&&!te.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];s=te.chain(a).map(c=>e[String(c)]).reject(te.isUndefined).first().value(),s===void 0&&(s=te.chain(e).values().first().value())}return s}function bi(e){this._maxSize=e,this.clear()}bi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};bi.prototype.get=function(e){return this._values[e]};bi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var PD=/[^.^\]^[]+|(?=\[\]|\.\.)/g,uB=/^\d+$/,RD=/^\d/,OD=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,jD=/^\s*(['"]?)(.*?)(\1)\s*$/,Pf=512,qm=new bi(Pf),Jm=new bi(Pf),Xm=new bi(Pf),gi={Cache:bi,split:bg,normalizePath:Dd,setter:function(e){var t=Dd(e);return Jm.get(e)||Jm.set(e,function(r,o){for(var s=0,a=t.length,c=r;s<a-1;){var u=t[s];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[s++]]}c[t[s]]=o})},getter:function(e,t){var n=Dd(e);return Xm.get(e)||Xm.set(e,function(o){for(var s=0,a=n.length;s<a;)if(o!=null||!t)o=o[n[s++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Rf(n)||uB.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){DD(Array.isArray(e)?e:bg(e),t,n)}};function Dd(e){return qm.get(e)||qm.set(e,bg(e).map(function(t){return t.replace(jD,"$2")}))}function bg(e){return e.match(PD)||[""]}function DD(e,t,n){var r=e.length,o,s,a,c;for(s=0;s<r;s++)o=e[s],o&&(FD(o)&&(o='"'+o+'"'),c=Rf(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,s,e))}function Rf(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function MD(e){return e.match(RD)&&!e.match(uB)}function kD(e){return OD.test(e)}function FD(e){return!Rf(e)&&(MD(e)||kD(e))}const LD=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,wu=e=>e.match(LD)||[],Tu=e=>e[0].toUpperCase()+e.slice(1),Of=(e,t)=>wu(e).join(t).toLowerCase(),AB=e=>wu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),ND=e=>Tu(AB(e)),VD=e=>Of(e,"_"),HD=e=>Of(e,"-"),zD=e=>Tu(Of(e," ")),WD=e=>wu(e).map(Tu).join(" ");var Md={words:wu,upperFirst:Tu,camelCase:AB,pascalCase:ND,snakeCase:VD,kebabCase:HD,sentenceCase:zD,titleCase:WD},jf={exports:{}};jf.exports=function(e){return dB(UD(e),e)};jf.exports.array=dB;function dB(e,t){var n=e.length,r=new Array(n),o={},s=n,a=YD(t),c=GD(e);for(t.forEach(function(A){if(!c.has(A[0])||!c.has(A[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)o[s]||u(e[s],s,new Set);return r;function u(A,p,h){if(h.has(A)){var C;try{C=", node was:"+JSON.stringify(A)}catch{C=""}throw new Error("Cyclic dependency"+C)}if(!c.has(A))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(A));if(!o[p]){o[p]=!0;var m=a.get(A)||new Set;if(m=Array.from(m),p=m.length){h.add(A);do{var I=m[--p];u(I,c.get(I),h)}while(p);h.delete(A)}r[--n]=A}}}function UD(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function YD(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function GD(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var KD=jf.exports;const qD=ro(KD),JD=Object.prototype.toString,XD=Error.prototype.toString,ZD=RegExp.prototype.toString,_D=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$D=/^Symbol\((.*)\)(.*)$/;function eM(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Zm(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return eM(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return _D.call(e).replace($D,"Symbol($1)");const r=JD.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+XD.call(e)+"]":r==="RegExp"?ZD.call(e):null}function So(e,t){let n=Zm(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let s=Zm(this[r],t);return s!==null?s:o},2)}function gB(e){return e==null?[]:[].concat(e)}let fB,pB,hB,tM=/\$\{\s*(\w+)\s*\}/g;fB=Symbol.toStringTag;class _m{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[fB]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],gB(t).forEach(s=>{if(En.isError(s)){this.errors.push(...s.errors);const a=s.inner.length?s.inner:[s];this.inner.push(...a)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}pB=Symbol.hasInstance;hB=Symbol.toStringTag;class En extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(tM,(o,s)=>So(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,s){const a=new _m(t,n,r,o);if(s)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[hB]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,En)}static[pB](t){return _m[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let xr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${So(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${So(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${So(n,!0)}\``+o}},mn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Io={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},yg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nM={isValue:"${path} field must be ${value}"},Qg={noUnknown:"${path} field has unspecified keys: ${unknown}"},rM={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},oM={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${So(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${So(n,!0)}\``}return En.formatError(xr.notType,e)}};Object.assign(Object.create(null),{mixed:xr,string:mn,number:Io,date:yg,object:Qg,array:rM,boolean:nM,tuple:oM});const Df=e=>e&&e.__isYupSchema__;class Uc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:s}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new Uc(t,(c,u)=>{var A;let p=a(...c)?o:s;return(A=p==null?void 0:p(u))!=null?A:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Df(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ic={context:"$",value:"."};class yi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ic.context,this.isValue=this.key[0]===ic.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ic.context:this.isValue?ic.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&gi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}yi.prototype.__isYupRef=!0;const qr=e=>e==null;function Ji(e){function t({value:n,path:r="",options:o,originalValue:s,schema:a},c,u){const{name:A,test:p,params:h,message:C,skipAbsent:m}=e;let{parent:I,context:B,abortEarly:v=a.spec.abortEarly,disableStackTrace:S=a.spec.disableStackTrace}=o;function O(Y){return yi.isRef(Y)?Y.getValue(n,I,B):Y}function x(Y={}){const ie=Object.assign({value:n,originalValue:s,label:a.spec.label,path:Y.path||r,spec:a.spec,disableStackTrace:Y.disableStackTrace||S},h,Y.params);for(const X of Object.keys(ie))ie[X]=O(ie[X]);const se=new En(En.formatError(Y.message||C,ie),n,ie.path,Y.type||A,ie.disableStackTrace);return se.params=ie,se}const R=v?c:u;let P={path:r,parent:I,type:A,from:o.from,createError:x,resolve:O,options:o,originalValue:s,schema:a};const k=Y=>{En.isError(Y)?R(Y):Y?u(null):R(x())},F=Y=>{En.isError(Y)?R(Y):c(Y)};if(m&&qr(n))return k(!0);let K;try{var $;if(K=p.call(P,n,P),typeof(($=K)==null?void 0:$.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(K).then(k,F)}}catch(Y){F(Y);return}k(K)}return t.OPTIONS=e,t}function iM(e,t,n,r=n){let o,s,a;return t?(gi.forEach(t,(c,u,A)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let h=e.type==="tuple",C=A?parseInt(p,10):0;if(e.innerType||h){if(h&&!A)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&C>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[C],e=h?e.spec.types[C]:e.innerType}if(!A){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}s=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:s}):{parent:o,parentPath:t,schema:e}}class Yc extends Set{describe(){const t=[];for(const n of this.values())t.push(yi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Yc(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function is(e,t=new Map){if(Df(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=is(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,is(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(is(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=is(o,t)}else throw Error(`Unable to clone ${e}`);return n}class or{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Yc,this._blacklist=new Yc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(xr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=is(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(a=>{s.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,s)=>s.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(o&&qr(s))return s;let a=So(t),c=So(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
98
98
 
99
99
  attempted value: ${a}
100
100
  `+(c!==a?`result of cast: ${c}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,s)=>s.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:s,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let A=[];for(let p of Object.values(this.internalTests))p&&A.push(p);this.runTests({path:s,value:u,originalValue:a,options:n,tests:A},r,p=>{if(p.length)return o(p,u);this.runTests({path:s,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:s,value:a,originalValue:c,path:u,options:A}=t,p=B=>{o||(o=!0,n(B,a))},h=B=>{o||(o=!0,r(B,a))},C=s.length,m=[];if(!C)return h([]);let I={value:a,originalValue:c,path:u,options:A,schema:this};for(let B=0;B<s.length;B++){const v=s[B];v(I,p,function(O){O&&(Array.isArray(O)?m.push(...O):m.push(O)),--C<=0&&h(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:s,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let A=r[c];const p=Object.assign({},a,{strict:!0,parent:r,value:A,originalValue:s[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${o||""}[${u?c:`"${c}"`}]`:(o?`${o}.`:"")+t});return(h,C,m)=>this.resolve(p)._validate(A,p,C,m)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,c)=>o._validate(t,n,(u,A)=>{En.isError(u)&&(u.value=A),c(u)},(u,A)=>{u.length?c(new En(u,A,void 0,void 0,s)):a(A)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),s,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw En.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new En(c,t,void 0,void 0,a);s=u}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(En.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(En.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):is(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ji({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ji({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=xr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=xr.notNull){return this.nullability(!1,t)}required(t=xr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=xr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ji(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(s||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=gB(t).map(s=>new yi(s));return o.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new Uc(o,n):Uc.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ji({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=xr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ji({message:n,name:"oneOf",skipAbsent:!0,test(o){let s=this.schema._whitelist,a=s.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:a}})}}),r}notOneOf(t,n=xr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ji({message:n,name:"notOneOf",test(o){let s=this.schema._blacklist,a=s.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(s).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:s,nullable:a}=n.spec;return{meta:o,label:r,optional:s,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,A,p)=>p.findIndex(h=>h.name===u.name)===A)}}}or.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])or.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:s,schema:a}=iM(this,t,n,r.context);return a[e](o&&o[s],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])or.prototype[e]=or.prototype.oneOf;for(const e of["not","nope"])or.prototype[e]=or.prototype.notOneOf;const sM=()=>!0;function CB(e){return new mB(e)}class mB extends or{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:sM},t))}}CB.prototype=mB.prototype;const aM=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lM(e){const t=xg(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function xg(e){var t,n;const r=aM.exec(e);return r?{year:Ur(r[1]),month:Ur(r[2],1)-1,day:Ur(r[3],1),hour:Ur(r[4]),minute:Ur(r[5]),second:Ur(r[6]),millisecond:r[7]?Ur(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Ur(r[10]),minuteOffset:Ur(r[11])}:null}function Ur(e,t=0){return Number(e)||t}let cM=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uM=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,AM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dM="^\\d{4}-\\d{2}-\\d{2}",gM="\\d{2}:\\d{2}:\\d{2}",fM="(([+-]\\d{2}(:?\\d{2})?)|Z)",pM=new RegExp(`${dM}T${gM}(\\.\\d+)?${fM}$`),hM=e=>qr(e)||e===e.trim(),CM={}.toString();function Jr(){return new EB}class EB extends or{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===CM?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||xr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=mn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=mn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=mn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:s}=n:o=n),this.test({name:s||"matches",message:o||mn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=mn.email){return this.matches(cM,{name:"email",message:t,excludeEmptyString:!0})}url(t=mn.url){return this.matches(uM,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=mn.uuid){return this.matches(AM,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(pM,{name:"datetime",message:n||mn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||mn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const a=xg(s);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||mn.datetime_precision,params:{precision:o},skipAbsent:!0,test:s=>{if(!s||o==null)return!0;const a=xg(s);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=mn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:hM})}lowercase(t=mn.lowercase){return this.transform(n=>qr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>qr(n)||n===n.toLowerCase()})}uppercase(t=mn.uppercase){return this.transform(n=>qr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>qr(n)||n===n.toUpperCase()})}}Jr.prototype=EB.prototype;let mM=e=>e!=+e;function IB(){return new BB}class BB extends or{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!mM(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Io.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Io.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Io.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Io.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Io.positive){return this.moreThan(0,t)}negative(t=Io.negative){return this.lessThan(0,t)}integer(t=Io.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>qr(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>qr(o)?o:Math[t](o))}}IB.prototype=BB.prototype;let EM=new Date(""),IM=e=>Object.prototype.toString.call(e)==="[object Date]";class Su extends or{constructor(){super({type:"date",check(t){return IM(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=lM(t),isNaN(t)?Su.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(yi.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=yg.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=yg.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Su.INVALID_DATE=EM;Su.prototype;function BM(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,c])=>`${a}-${c}`));function s(a,c){let u=gi.split(a)[0];r.add(u),o.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),yi.isRef(c)&&c.isSibling?s(c.path,a):Df(c)&&"deps"in c&&c.deps.forEach(u=>s(u,a))}return qD.array(Array.from(r),n).reverse()}function $m(e,t){let n=1/0;return e.some((r,o)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=o,!0}),n}function vB(e){return(t,n)=>$m(e,t)-$m(e,n)}const vM=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Qc(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Qc(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Qc(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Qc)}):"optional"in e?e.optional():e}const bM=(e,t)=>{const n=[...gi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=gi.getter(gi.join(n),!0)(e);return!!(o&&r in o)};let eE=e=>Object.prototype.toString.call(e)==="[object Object]";function yM(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const QM=vB([]);function Mf(e){return new bB(e)}class bB extends or{constructor(t){super({type:"object",check(n){return eE(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=QM,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let s=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(o).filter(h=>!this._nodes.includes(h))),u={},A=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),p=!1;for(const h of c){let C=s[h],m=h in o;if(C){let I,B=o[h];A.path=(n.path?`${n.path}.`:"")+h,C=C.resolve({value:B,context:n.context,parent:u});let v=C instanceof or?C.spec:void 0,S=v==null?void 0:v.strict;if(v!=null&&v.strip){p=p||h in o;continue}I=!n.__validating||!S?C.cast(o[h],A):o[h],I!==void 0&&(u[h]=I)}else m&&!a&&(u[h]=o[h]);(m!==h in u||u[h]!==o[h])&&(p=!0)}return p?u:o}_validate(t,n={},r,o){let{from:s=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...s],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,A)=>{if(!c||!eE(A)){o(u,A);return}a=a||A;let p=[];for(let h of this._nodes){let C=this.fields[h];!C||yi.isRef(C)||p.push(C.asNestedTest({options:n,key:h,parent:A,parentPath:n.path,originalParent:a}))}this.runTests({tests:p,value:A,originalValue:a,options:n},r,h=>{o(h.sort(this._sortErrors).concat(u),A)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,s]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?s:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const s=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=BM(t,n),r._sortErrors=vB(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Qc(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=gi.getter(t,!0);return this.transform(s=>{if(!s)return s;let a=s;return bM(s,t)&&(a=Object.assign({},s),r||delete a[t],a[n]=o(s)),a})}json(){return this.transform(vM)}noUnknown(t=!0,n=Qg.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const s=yM(this.schema,o);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Qg.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Md.camelCase)}snakeCase(){return this.transformKeys(Md.snakeCase)}constantCase(){return this.transformKeys(t=>Md.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,a]of Object.entries(n.fields)){var o;let c=t;(o=c)!=null&&o.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[s]})),r.fields[s]=a.describe(c)}return r}}Mf.prototype=bB.prototype;const tE=CB().test("function","Invalid function",e=>te.isFunction(e));var yo,Ai,pa;class yB{constructor(){Wr(this,Ai);Wr(this,yo,[])}get(t){if(Jr().required().validateSync(t),ia(this,Ai,pa).call(this)){const n=localStorage.getItem(t);return te.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return Jr().required().validateSync(t),ia(this,Ai,pa).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){Jr().required().validateSync(t),tE.validateSync(n),ia(this,Ai,pa).call(this)&&(hn(this,yo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){Jr().required().validateSync(t),tE.optional().default(te.identity).validateSync(n),ia(this,Ai,pa).call(this)&&(n!==void 0?po(this,yo,te.reject(hn(this,yo),r=>r.key===t&&r.callback===n)):po(this,yo,te.reject(hn(this,yo),r=>r.key===t)))}}yo=new WeakMap,Ai=new WeakSet,pa=function(){return typeof window<"u"};function QB(e){const[t]=ce.useLocaleState();return e!==void 0?String(e):t}function xM(e,t){const n=QB(t==null?void 0:t.locale);return Sf(e,n,t)}function wM(e){const t=QB(e==null?void 0:e.locale);return Q.useCallback(r=>Sf(r,t,e),[t,e])}const ha=new yB;function TM(e,t,n){return function(r){const o=te.isFunction(r)?r(t):r;return ha.set(e,o),n(o),o}}function Pu(e,t){var u;Jr().required().validateSync(e);const[n,r]=Q.useState(ha.get(e)??t),o=Q.useRef(t),s=te.isEqual(o.current,t)?o.current:t,a=Q.useRef(),c=a.current;return Q.useEffect(()=>{r(ha.get(e)??s)},[e,s,r]),Q.useEffect(()=>{function A(p){r(p)}return ha.watch(e,A),()=>{ha.unwatch(e,A)}},[e,r]),(e!==(c==null?void 0:c.key)||!te.isEqual(n,c==null?void 0:c.value))&&(a.current={key:e,value:n,setter:TM(e,n,r)}),[n,((u=a.current)==null?void 0:u.setter)??te.noop]}function xB(e){if(!te.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=Q.useState(e);return Q.useEffect(()=>{te.isEqual(e,t)||n(e)},[e,t]),t}function Ru(){const[e,t]=Q.useState(null),n=!!e,r=Q.useCallback(a=>t((a==null?void 0:a.currentTarget)??null),[t]),o=Q.useCallback(()=>t(null),[t]),s=Q.useCallback(a=>{n?o():r(a)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:s}}function SM(e,t){const[n,r]=Q.useState({width:1,height:1}),o=e.current;return Q.useEffect(()=>{function s(){var A;let c=0,u=0;switch(t){case"client":c=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":c=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":c=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((A=e.current)==null?void 0:A.getBoundingClientRect())??{width:0,height:0};c=p.width,u=p.height;break}}r({width:c,height:u})}const a=new ResizeObserver(s);return te.isEmpty(e==null?void 0:e.current)||(a.observe(e==null?void 0:e.current),s()),()=>{a.disconnect()}},[o,t]),n}function kf(e){const t=j.useRecordContext(),n=j.useTranslate(),r=j.useResourceContext(),o=t!=null&&t.id?"edit":"create";return Q.useMemo(()=>{if(e===!1)return;const a=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(a,{_:a}),...t})},[o,t,r,n,e])}function Er(e,t,n){const r=te.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(a=>te.isFunction(a)?a:void 0).value();n!=null&&n.defaults?te.defaultsDeep(r,t):te.merge(r,t);const[o,s]=Q.useState(r);return Q.useEffect(()=>{te.isEqual(o,r)||s(r)},[o,r]),o}const wB=()=>Q.useContext(Qf),PM=()=>Q.useContext(xf),Qn=()=>Q.useContext(bf),TB=Ae(BD,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Qn();return{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...!t&&{width:`calc(100% - ${e.spacing(7.5)})`},...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}}}),RM=Q.forwardRef(function(t,n){const r=Er(t,{color:"text.primary"},{defaults:!0});return g.jsx(y.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),SB=Q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ou=Q.createContext({}),Ff=Q.createContext(null),ju=typeof document<"u",OM=ju?Q.useLayoutEffect:Q.useEffect,PB=Q.createContext({strict:!1}),Lf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),jM="framerAppearId",RB="data-"+Lf(jM);function DM(e,t,n,r){const{visualElement:o}=Q.useContext(Ou),s=Q.useContext(PB),a=Q.useContext(Ff),c=Q.useContext(SB).reducedMotion,u=Q.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const A=u.current;Q.useInsertionEffect(()=>{A&&A.update(n,a)});const p=Q.useRef(!!(n[RB]&&!window.HandoffComplete));return OM(()=>{A&&(A.render(),p.current&&A.animationState&&A.animationState.animateChanges())}),Q.useEffect(()=>{A&&(A.updateFeatures(),!p.current&&A.animationState&&A.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),A}function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MM(e,t,n){return Q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ss(n)&&(n.current=r))},[t])}function ja(e){return typeof e=="string"||Array.isArray(e)}function Du(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Nf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vf=["initial",...Nf];function Mu(e){return Du(e.animate)||Vf.some(t=>ja(e[t]))}function OB(e){return!!(Mu(e)||e.variants)}function kM(e,t){if(Mu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ja(n)?n:void 0,animate:ja(r)?r:void 0}}return e.inherit!==!1?t:{}}function FM(e){const{initial:t,animate:n}=kM(e,Q.useContext(Ou));return Q.useMemo(()=>({initial:t,animate:n}),[nE(t),nE(n)])}function nE(e){return Array.isArray(e)?e.join(" "):e}const rE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Da={};for(const e in rE)Da[e]={isEnabled:t=>rE[e].some(n=>!!t[n])};function LM(e){for(const t in e)Da[t]={...Da[t],...e[t]}}const jB=Q.createContext({}),DB=Q.createContext({}),NM=Symbol.for("motionComponentSymbol");function VM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&LM(e);function s(c,u){let A;const p={...Q.useContext(SB),...c,layoutId:HM(c)},{isStatic:h}=p,C=FM(c),m=r(c,h);if(!h&&ju){C.visualElement=DM(o,m,p,t);const I=Q.useContext(DB),B=Q.useContext(PB).strict;C.visualElement&&(A=C.visualElement.loadFeatures(p,B,e,I))}return M.createElement(Ou.Provider,{value:C},A&&C.visualElement?M.createElement(A,{visualElement:C.visualElement,...p}):null,n(o,c,MM(m,C.visualElement,u),m,h,C.visualElement))}const a=Q.forwardRef(s);return a[NM]=o,a}function HM({layoutId:e}){const t=Q.useContext(jB).id;return t&&e!==void 0?t+"-"+e:e}function zM(e){function t(r,o={}){return VM(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const WM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hf(e){return typeof e!="string"||e.includes("-")?!1:!!(WM.indexOf(e)>-1||/[A-Z]/.test(e))}const Gc={};function UM(e){Object.assign(Gc,e)}const Ja=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(Ja);function MB(e,{layout:t,layoutId:n}){return Qi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gc[e]||e==="opacity")}const bn=e=>!!(e&&e.getVelocity),YM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GM=Ja.length;function KM(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let s="";for(let a=0;a<GM;a++){const c=Ja[a];if(e[c]!==void 0){const u=YM[c]||c;s+=`${u}(${e[c]}) `}}return t&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,r?"":s):n&&r&&(s="none"),s}const kB=e=>t=>typeof t=="string"&&t.startsWith(e),FB=kB("--"),wg=kB("var(--"),qM=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,JM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Oo=(e,t,n)=>Math.min(Math.max(n,e),t),xi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},va={...xi,transform:e=>Oo(0,1,e)},sc={...xi,default:1},ba=e=>Math.round(e*1e5)/1e5,ku=/(-)?([\d]*\.?[\d])+/g,LB=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,XM=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xa(e){return typeof e=="string"}const Za=e=>({test:t=>Xa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bo=Za("deg"),Tr=Za("%"),De=Za("px"),ZM=Za("vh"),_M=Za("vw"),oE={...Tr,parse:e=>Tr.parse(e)/100,transform:e=>Tr.transform(e*100)},iE={...xi,transform:Math.round},NB={borderWidth:De,borderTopWidth:De,borderRightWidth:De,borderBottomWidth:De,borderLeftWidth:De,borderRadius:De,radius:De,borderTopLeftRadius:De,borderTopRightRadius:De,borderBottomRightRadius:De,borderBottomLeftRadius:De,width:De,maxWidth:De,height:De,maxHeight:De,size:De,top:De,right:De,bottom:De,left:De,padding:De,paddingTop:De,paddingRight:De,paddingBottom:De,paddingLeft:De,margin:De,marginTop:De,marginRight:De,marginBottom:De,marginLeft:De,rotate:Bo,rotateX:Bo,rotateY:Bo,rotateZ:Bo,scale:sc,scaleX:sc,scaleY:sc,scaleZ:sc,skew:Bo,skewX:Bo,skewY:Bo,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:va,originX:oE,originY:oE,originZ:De,zIndex:iE,fillOpacity:va,strokeOpacity:va,numOctaves:iE};function zf(e,t,n,r){const{style:o,vars:s,transform:a,transformOrigin:c}=e;let u=!1,A=!1,p=!0;for(const h in t){const C=t[h];if(FB(h)){s[h]=C;continue}const m=NB[h],I=JM(C,m);if(Qi.has(h)){if(u=!0,a[h]=I,!p)continue;C!==(m.default||0)&&(p=!1)}else h.startsWith("origin")?(A=!0,c[h]=I):o[h]=I}if(t.transform||(u||r?o.transform=KM(e.transform,n,p,r):o.transform&&(o.transform="none")),A){const{originX:h="50%",originY:C="50%",originZ:m=0}=c;o.transformOrigin=`${h} ${C} ${m}`}}const Wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function VB(e,t,n){for(const r in t)!bn(t[r])&&!MB(r,n)&&(e[r]=t[r])}function $M({transformTemplate:e},t,n){return Q.useMemo(()=>{const r=Wf();return zf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function e3(e,t,n){const r=e.style||{},o={};return VB(o,r,e),Object.assign(o,$M(e,t,n)),e.transformValues?e.transformValues(o):o}function t3(e,t,n){const r={},o=e3(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const n3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Kc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n3.has(e)}let HB=e=>!Kc(e);function r3(e){e&&(HB=t=>t.startsWith("on")?!Kc(t):e(t))}try{r3(require("@emotion/is-prop-valid").default)}catch{}function o3(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(HB(o)||n===!0&&Kc(o)||!t&&!Kc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function sE(e,t,n){return typeof e=="string"?e:De.transform(t+n*e)}function i3(e,t,n){const r=sE(t,e.x,e.width),o=sE(n,e.y,e.height);return`${r} ${o}`}const s3={offset:"stroke-dashoffset",array:"stroke-dasharray"},a3={offset:"strokeDashoffset",array:"strokeDasharray"};function l3(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?s3:a3;e[s.offset]=De.transform(-r);const a=De.transform(t),c=De.transform(n);e[s.array]=`${a} ${c}`}function Uf(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:s,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...A},p,h,C){if(zf(e,A,p,C),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:I,dimensions:B}=e;m.transform&&(B&&(I.transform=m.transform),delete m.transform),B&&(o!==void 0||s!==void 0||I.transform)&&(I.transformOrigin=i3(B,o!==void 0?o:.5,s!==void 0?s:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&l3(m,a,c,u,!1)}const zB=()=>({...Wf(),attrs:{}}),Yf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function c3(e,t,n,r){const o=Q.useMemo(()=>{const s=zB();return Uf(s,t,{enableHardwareAcceleration:!1},Yf(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};VB(s,e.style,e),o.style={...s,...o.style}}return o}function u3(e=!1){return(n,r,o,{latestValues:s},a)=>{const u=(Hf(n)?c3:t3)(r,s,a,n),p={...o3(r,typeof n=="string",e),...u,ref:o},{children:h}=r,C=Q.useMemo(()=>bn(h)?h.get():h,[h]);return Q.createElement(n,{...p,children:C})}}function WB(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const UB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function YB(e,t,n,r){WB(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(UB.has(o)?o:Lf(o),t.attrs[o])}function Gf(e,t){const{style:n}=e,r={};for(const o in n)(bn(n[o])||t.style&&bn(t.style[o])||MB(o,e))&&(r[o]=n[o]);return r}function GB(e,t){const n=Gf(e,t);for(const r in e)if(bn(e[r])||bn(t[r])){const o=Ja.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Kf(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function A3(e){const t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}const qc=e=>Array.isArray(e),d3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),g3=e=>qc(e)?e[e.length-1]||0:e;function xc(e){const t=bn(e)?e.get():e;return d3(t)?t.toValue():t}function f3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,s){const a={latestValues:p3(r,o,s,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const KB=e=>(t,n)=>{const r=Q.useContext(Ou),o=Q.useContext(Ff),s=()=>f3(e,t,r,o);return n?s():A3(s)};function p3(e,t,n,r){const o={},s=r(e,{});for(const C in s)o[C]=xc(s[C]);let{initial:a,animate:c}=e;const u=Mu(e),A=OB(e);t&&A&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const h=p?c:a;return h&&typeof h!="boolean"&&!Du(h)&&(Array.isArray(h)?h:[h]).forEach(m=>{const I=Kf(e,m);if(!I)return;const{transitionEnd:B,transition:v,...S}=I;for(const O in S){let x=S[O];if(Array.isArray(x)){const R=p?x.length-1:0;x=x[R]}x!==null&&(o[O]=x)}for(const O in B)o[O]=B[O]}),o}const Pt=e=>e;class aE{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function h3(e){let t=new aE,n=new aE,r=0,o=!1,s=!1;const a=new WeakSet,c={schedule:(u,A=!1,p=!1)=>{const h=p&&o,C=h?t:n;return A&&a.add(u),C.add(u)&&h&&o&&(r=t.order.length),u},cancel:u=>{n.remove(u),a.delete(u)},process:u=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let A=0;A<r;A++){const p=t.order[A];p(u),a.has(p)&&(c.schedule(p),e())}o=!1,s&&(s=!1,c.process(u))}};return c}const ac=["prepare","read","update","preRender","render","postRender"],C3=40;function m3(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=ac.reduce((h,C)=>(h[C]=h3(()=>n=!0),h),{}),a=h=>s[h].process(o),c=()=>{const h=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,C3),1),o.timestamp=h,o.isProcessing=!0,ac.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(c))},u=()=>{n=!0,r=!0,o.isProcessing||e(c)};return{schedule:ac.reduce((h,C)=>{const m=s[C];return h[C]=(I,B=!1,v=!1)=>(n||u(),m.schedule(I,B,v)),h},{}),cancel:h=>ac.forEach(C=>s[C].cancel(h)),state:o,steps:s}}const{schedule:mt,cancel:to,state:$t,steps:kd}=m3(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pt,!0),E3={useVisualState:KB({scrapeMotionValuesFromProps:GB,createRenderState:zB,onMount:(e,t,{renderState:n,latestValues:r})=>{mt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),mt.render(()=>{Uf(n,r,{enableHardwareAcceleration:!1},Yf(t.tagName),e.transformTemplate),YB(t,n)})}})},I3={useVisualState:KB({scrapeMotionValuesFromProps:Gf,createRenderState:Wf})};function B3(e,{forwardMotionProps:t=!1},n,r){return{...Hf(e)?E3:I3,preloadedFeatures:n,useRender:u3(t),createVisualElement:r,Component:e}}function Xr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qB=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const v3=e=>t=>qB(t)&&e(t,Fu(t));function _r(e,t,n,r){return Xr(e,t,v3(n),r)}const b3=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(b3);function JB(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const lE=JB("dragHorizontal"),cE=JB("dragVertical");function XB(e){let t=!1;if(e==="y")t=cE();else if(e==="x")t=lE();else{const n=lE(),r=cE();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ZB(){const e=XB(!0);return e?(e(),!1):!0}class ko{constructor(t){this.isMounted=!1,this.node=t}update(){}}function uE(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(s,a)=>{if(s.pointerType==="touch"||ZB())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&mt.update(()=>c[r](s,a))};return _r(e.current,n,o,{passive:!e.getProps()[r]})}class y3 extends ko{mount(){this.unmount=Po(uE(this.node,!0),uE(this.node,!1))}unmount(){}}class Q3 extends ko{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Po(Xr(this.node.current,"focus",()=>this.onFocus()),Xr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _B=(e,t)=>t?e===t?!0:_B(e,t.parentElement):!1;function Fd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fu(n))}class x3 extends ko{constructor(){super(...arguments),this.removeStartListeners=Pt,this.removeEndListeners=Pt,this.removeAccessibleListeners=Pt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=_r(window,"pointerup",(c,u)=>{if(!this.checkPressEnd())return;const{onTap:A,onTapCancel:p,globalTapTarget:h}=this.node.getProps();mt.update(()=>{!h&&!_B(this.node.current,c.target)?p&&p(c,u):A&&A(c,u)})},{passive:!(r.onTap||r.onPointerUp)}),a=_r(window,"pointercancel",(c,u)=>this.cancelPress(c,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Po(s,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Fd("up",(u,A)=>{const{onTap:p}=this.node.getProps();p&&mt.update(()=>p(u,A))})};this.removeEndListeners(),this.removeEndListeners=Xr(this.node.current,"keyup",a),Fd("down",(c,u)=>{this.startPress(c,u)})},n=Xr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Fd("cancel",(s,a)=>this.cancelPress(s,a))},o=Xr(this.node.current,"blur",r);this.removeAccessibleListeners=Po(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&mt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ZB()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&mt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_r(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Xr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Po(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tg=new WeakMap,Ld=new WeakMap,w3=e=>{const t=Tg.get(e.target);t&&t(e)},T3=e=>{e.forEach(w3)};function S3({root:e,...t}){const n=e||document;Ld.has(n)||Ld.set(n,{});const r=Ld.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(T3,{root:e,...t})),r[o]}function P3(e,t,n){const r=S3(t);return Tg.set(e,n),r.observe(e),()=>{Tg.delete(e),r.unobserve(e)}}const R3={some:0,all:1};class O3 extends ko{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R3[o]},c=u=>{const{isIntersecting:A}=u;if(this.isInView===A||(this.isInView=A,s&&!A&&this.hasEnteredView))return;A&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",A);const{onViewportEnter:p,onViewportLeave:h}=this.node.getProps(),C=A?p:h;C&&C(u)};return P3(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(j3(t,n))&&this.startObserver()}unmount(){}}function j3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const D3={inView:{Feature:O3},tap:{Feature:x3},focus:{Feature:Q3},hover:{Feature:y3}};function $B(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function M3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function k3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Lu(e,t,n){const r=e.getProps();return Kf(r,t,n!==void 0?n:r.custom,M3(e),k3(e))}let _a=Pt,mr=Pt;process.env.NODE_ENV!=="production"&&(_a=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},mr=(e,t)=>{if(!e)throw new Error(t)});const Ro=e=>e*1e3,$r=e=>e/1e3,F3={current:!1},ev=e=>Array.isArray(e)&&typeof e[0]=="number";function tv(e){return!!(!e||typeof e=="string"&&nv[e]||ev(e)||Array.isArray(e)&&e.every(tv))}const Ca=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function rv(e){if(e)return ev(e)?Ca(e):Array.isArray(e)?e.map(rv):nv[e]}function L3(e,t,n,{delay:r=0,duration:o,repeat:s=0,repeatType:a="loop",ease:c,times:u}={}){const A={[t]:n};u&&(A.offset=u);const p=rv(c);return Array.isArray(p)&&(A.easing=p),e.animate(A,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}function N3(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ov=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V3=1e-7,H3=12;function z3(e,t,n,r,o){let s,a,c=0;do a=t+(n-t)/2,s=ov(a,r,o)-e,s>0?n=a:t=a;while(Math.abs(s)>V3&&++c<H3);return a}function $a(e,t,n,r){if(e===t&&n===r)return Pt;const o=s=>z3(s,0,1,e,n);return s=>s===0||s===1?s:ov(o(s),t,r)}const W3=$a(.42,0,1,1),U3=$a(0,0,.58,1),iv=$a(.42,0,.58,1),Y3=e=>Array.isArray(e)&&typeof e[0]!="number",sv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,av=e=>t=>1-e(1-t),qf=e=>1-Math.sin(Math.acos(e)),lv=av(qf),G3=sv(qf),cv=$a(.33,1.53,.69,.99),Jf=av(cv),K3=sv(Jf),q3=e=>(e*=2)<1?.5*Jf(e):.5*(2-Math.pow(2,-10*(e-1))),AE={linear:Pt,easeIn:W3,easeInOut:iv,easeOut:U3,circIn:qf,circInOut:G3,circOut:lv,backIn:Jf,backInOut:K3,backOut:cv,anticipate:q3},dE=e=>{if(Array.isArray(e)){mr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return $a(t,n,r,o)}else if(typeof e=="string")return mr(AE[e]!==void 0,`Invalid easing type '${e}'`),AE[e];return e},Xf=(e,t)=>n=>!!(Xa(n)&&XM.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),uv=(e,t,n)=>r=>{if(!Xa(r))return r;const[o,s,a,c]=r.match(ku);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},J3=e=>Oo(0,255,e),Nd={...xi,transform:e=>Math.round(J3(e))},ci={test:Xf("rgb","red"),parse:uv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nd.transform(e)+", "+Nd.transform(t)+", "+Nd.transform(n)+", "+ba(va.transform(r))+")"};function X3(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Sg={test:Xf("#"),parse:X3,transform:ci.transform},as={test:Xf("hsl","hue"),parse:uv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tr.transform(ba(t))+", "+Tr.transform(ba(n))+", "+ba(va.transform(r))+")"},cn={test:e=>ci.test(e)||Sg.test(e)||as.test(e),parse:e=>ci.test(e)?ci.parse(e):as.test(e)?as.parse(e):Sg.parse(e),transform:e=>Xa(e)?e:e.hasOwnProperty("red")?ci.transform(e):as.transform(e)},xt=(e,t,n)=>-n*e+n*t+e;function Vd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Z3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,a=0;if(!t)o=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=Vd(u,c,e+1/3),s=Vd(u,c,e),a=Vd(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}const Hd=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},_3=[Sg,ci,as],$3=e=>_3.find(t=>t.test(e));function gE(e){const t=$3(e);mr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===as&&(n=Z3(n)),n}const Av=(e,t)=>{const n=gE(e),r=gE(t),o={...n};return s=>(o.red=Hd(n.red,r.red,s),o.green=Hd(n.green,r.green,s),o.blue=Hd(n.blue,r.blue,s),o.alpha=xt(n.alpha,r.alpha,s),ci.transform(o))};function ek(e){var t,n;return isNaN(e)&&Xa(e)&&(((t=e.match(ku))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LB))===null||n===void 0?void 0:n.length)||0)>0}const dv={regex:qM,countKey:"Vars",token:"${v}",parse:Pt},gv={regex:LB,countKey:"Colors",token:"${c}",parse:cn.parse},fv={regex:ku,countKey:"Numbers",token:"${n}",parse:xi.parse};function zd(e,{regex:t,countKey:n,token:r,parse:o}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(o)))}function Jc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zd(n,dv),zd(n,gv),zd(n,fv),n}function pv(e){return Jc(e).values}function hv(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Jc(e),s=t.length;return a=>{let c=o;for(let u=0;u<s;u++)u<r?c=c.replace(dv.token,a[u]):u<r+n?c=c.replace(gv.token,cn.transform(a[u])):c=c.replace(fv.token,ba(a[u]));return c}}const tk=e=>typeof e=="number"?0:e;function nk(e){const t=pv(e);return hv(e)(t.map(tk))}const jo={test:ek,parse:pv,createTransformer:hv,getAnimatableNone:nk},Cv=(e,t)=>n=>`${n>0?t:e}`;function mv(e,t){return typeof e=="number"?n=>xt(e,t,n):cn.test(e)?Av(e,t):e.startsWith("var(")?Cv(e,t):Iv(e,t)}const Ev=(e,t)=>{const n=[...e],r=n.length,o=e.map((s,a)=>mv(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=o[a](s);return n}},rk=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=mv(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}},Iv=(e,t)=>{const n=jo.createTransformer(t),r=Jc(e),o=Jc(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Po(Ev(r.values,o.values),n):(_a(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Cv(e,t))},Ma=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},fE=(e,t)=>n=>xt(e,t,n);function ok(e){return typeof e=="number"?fE:typeof e=="string"?cn.test(e)?Av:Iv:Array.isArray(e)?Ev:typeof e=="object"?rk:fE}function ik(e,t,n){const r=[],o=n||ok(e[0]),s=e.length-1;for(let a=0;a<s;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Pt:t;c=Po(u,c)}r.push(c)}return r}function Bv(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(mr(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ik(t,r,o),c=a.length,u=A=>{let p=0;if(c>1)for(;p<e.length-2&&!(A<e[p+1]);p++);const h=Ma(e[p],e[p+1],A);return a[p](h)};return n?A=>u(Oo(e[0],e[s-1],A)):u}function sk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ma(0,t,r);e.push(xt(n,1,o))}}function ak(e){const t=[0];return sk(t,e.length-1),t}function lk(e,t){return e.map(n=>n*t)}function ck(e,t){return e.map(()=>t||iv).splice(0,e.length-1)}function Xc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Y3(r)?r.map(dE):dE(r),s={done:!1,value:t[0]},a=lk(n&&n.length===t.length?n:ak(t),e),c=Bv(a,t,{ease:Array.isArray(o)?o:ck(t,o)});return{calculatedDuration:e,next:u=>(s.value=c(u),s.done=u>=e,s)}}function vv(e,t){return t?e*(1e3/t):0}const uk=5;function bv(e,t,n){const r=Math.max(t-uk,0);return vv(n-e(r),t-r)}const Wd=.001,Ak=.01,pE=10,dk=.05,gk=1;function fk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,s;_a(e<=Ro(pE),"Spring duration must be 10 seconds or less");let a=1-t;a=Oo(dk,gk,a),e=Oo(Ak,pE,$r(e)),a<1?(o=A=>{const p=A*a,h=p*e,C=p-n,m=Pg(A,a),I=Math.exp(-h);return Wd-C/m*I},s=A=>{const h=A*a*e,C=h*n+n,m=Math.pow(a,2)*Math.pow(A,2)*e,I=Math.exp(-h),B=Pg(Math.pow(A,2),a);return(-o(A)+Wd>0?-1:1)*((C-m)*I)/B}):(o=A=>{const p=Math.exp(-A*e),h=(A-n)*e+1;return-Wd+p*h},s=A=>{const p=Math.exp(-A*e),h=(n-A)*(e*e);return p*h});const c=5/e,u=hk(o,s,c);if(e=Ro(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const A=Math.pow(u,2)*r;return{stiffness:A,damping:a*2*Math.sqrt(r*A),duration:e}}}const pk=12;function hk(e,t,n){let r=n;for(let o=1;o<pk;o++)r=r-e(r)/t(r);return r}function Pg(e,t){return e*Math.sqrt(1-t*t)}const Ck=["duration","bounce"],mk=["stiffness","damping","mass"];function hE(e,t){return t.some(n=>e[n]!==void 0)}function Ek(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!hE(e,mk)&&hE(e,Ck)){const n=fk(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function yv({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:A,duration:p,velocity:h,isResolvedFromDuration:C}=Ek({...r,velocity:-$r(r.velocity||0)}),m=h||0,I=u/(2*Math.sqrt(c*A)),B=s-o,v=$r(Math.sqrt(c/A)),S=Math.abs(B)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let O;if(I<1){const x=Pg(v,I);O=R=>{const P=Math.exp(-I*v*R);return s-P*((m+I*v*B)/x*Math.sin(x*R)+B*Math.cos(x*R))}}else if(I===1)O=x=>s-Math.exp(-v*x)*(B+(m+v*B)*x);else{const x=v*Math.sqrt(I*I-1);O=R=>{const P=Math.exp(-I*v*R),k=Math.min(x*R,300);return s-P*((m+I*v*B)*Math.sinh(k)+x*B*Math.cosh(k))/x}}return{calculatedDuration:C&&p||null,next:x=>{const R=O(x);if(C)a.done=x>=p;else{let P=m;x!==0&&(I<1?P=bv(O,x,R):P=0);const k=Math.abs(P)<=n,F=Math.abs(s-R)<=t;a.done=k&&F}return a.value=a.done?s:R,a}}}function CE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:u,restDelta:A=.5,restSpeed:p}){const h=e[0],C={done:!1,value:h},m=G=>c!==void 0&&G<c||u!==void 0&&G>u,I=G=>c===void 0?u:u===void 0||Math.abs(c-G)<Math.abs(u-G)?c:u;let B=n*t;const v=h+B,S=a===void 0?v:a(v);S!==v&&(B=S-h);const O=G=>-B*Math.exp(-G/r),x=G=>S+O(G),R=G=>{const K=O(G),$=x(G);C.done=Math.abs(K)<=A,C.value=C.done?S:$};let P,k;const F=G=>{m(C.value)&&(P=G,k=yv({keyframes:[C.value,I(C.value)],velocity:bv(x,G,C.value),damping:o,stiffness:s,restDelta:A,restSpeed:p}))};return F(0),{calculatedDuration:null,next:G=>{let K=!1;return!k&&P===void 0&&(K=!0,R(G),F(G)),P!==void 0&&G>P?k.next(G-P):(!K&&R(G),C)}}}const Ik=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mt.update(t,!0),stop:()=>to(t),now:()=>$t.isProcessing?$t.timestamp:performance.now()}},mE=2e4;function EE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mE;)t+=n,r=e.next(t);return t>=mE?1/0:t}const Bk={decay:CE,inertia:CE,tween:Xc,keyframes:Xc,spring:yv};function Zc({autoplay:e=!0,delay:t=0,driver:n=Ik,keyframes:r,type:o="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:c="loop",onPlay:u,onStop:A,onComplete:p,onUpdate:h,...C}){let m=1,I=!1,B,v;const S=()=>{v=new Promise(q=>{B=q})};S();let O;const x=Bk[o]||Xc;let R;x!==Xc&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&mr(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),R=Bv([0,100],r,{clamp:!1}),r=[0,100]);const P=x({...C,keyframes:r});let k;c==="mirror"&&(k=x({...C,keyframes:[...r].reverse(),velocity:-(C.velocity||0)}));let F="idle",G=null,K=null,$=null;P.calculatedDuration===null&&s&&(P.calculatedDuration=EE(P));const{calculatedDuration:Y}=P;let ie=1/0,se=1/0;Y!==null&&(ie=Y+a,se=ie*(s+1)-a);let X=0;const Z=q=>{if(K===null)return;m>0&&(K=Math.min(K,q)),m<0&&(K=Math.min(q-se/m,K)),G!==null?X=G:X=Math.round(q-K)*m;const le=X-t*(m>=0?1:-1),pe=m>=0?le<0:le>se;X=Math.max(le,0),F==="finished"&&G===null&&(X=se);let de=X,ge=P;if(s){const Ce=Math.min(X,se)/ie;let Ie=Math.floor(Ce),xe=Ce%1;!xe&&Ce>=1&&(xe=1),xe===1&&Ie--,Ie=Math.min(Ie,s+1),!!(Ie%2)&&(c==="reverse"?(xe=1-xe,a&&(xe-=a/ie)):c==="mirror"&&(ge=k)),de=Oo(0,1,xe)*ie}const he=pe?{done:!1,value:r[0]}:ge.next(de);R&&(he.value=R(he.value));let{done:Be}=he;!pe&&Y!==null&&(Be=m>=0?X>=se:X<=0);const Ee=G===null&&(F==="finished"||F==="running"&&Be);return h&&h(he.value),Ee&&L(),he},H=()=>{O&&O.stop(),O=void 0},J=()=>{F="idle",H(),B(),S(),K=$=null},L=()=>{F="finished",p&&p(),H(),B()},_=()=>{if(I)return;O||(O=n(Z));const q=O.now();u&&u(),G!==null?K=q-G:(!K||F==="finished")&&(K=q),F==="finished"&&S(),$=K,G=null,F="running",O.start()};e&&_();const V={then(q,le){return v.then(q,le)},get time(){return $r(X)},set time(q){q=Ro(q),X=q,G!==null||!O||m===0?G=q:K=O.now()-q/m},get duration(){const q=P.calculatedDuration===null?EE(P):P.calculatedDuration;return $r(q)},get speed(){return m},set speed(q){q===m||!O||(m=q,V.time=$r(X))},get state(){return F},play:_,pause:()=>{F="paused",G=X},stop:()=>{I=!0,F!=="idle"&&(F="idle",A&&A(),J())},cancel:()=>{$!==null&&Z($),J()},complete:()=>{F="finished"},sample:q=>(K=0,Z(q))};return V}function vk(e){let t;return()=>(t===void 0&&(t=e()),t)}const bk=vk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),lc=10,Qk=2e4,xk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!tv(t.ease);function wk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(bk()&&yk.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,c,u,A=!1;const p=()=>{u=new Promise(x=>{c=x})};p();let{keyframes:h,duration:C=300,ease:m,times:I}=o;if(xk(t,o)){const x=Zc({...o,repeat:0,delay:0});let R={done:!1,value:h[0]};const P=[];let k=0;for(;!R.done&&k<Qk;)R=x.sample(k),P.push(R.value),k+=lc;I=void 0,h=P,C=k-lc,m="linear"}const B=L3(e.owner.current,t,h,{...o,duration:C,ease:m,times:I}),v=()=>{A=!1,B.cancel()},S=()=>{A=!0,mt.update(v),c(),p()};return B.onfinish=()=>{A||(e.set(N3(h,o)),r&&r(),S())},{then(x,R){return u.then(x,R)},attachTimeline(x){return B.timeline=x,B.onfinish=null,Pt},get time(){return $r(B.currentTime||0)},set time(x){B.currentTime=Ro(x)},get speed(){return B.playbackRate},set speed(x){B.playbackRate=x},get duration(){return $r(C)},play:()=>{a||(B.play(),to(v))},pause:()=>B.pause(),stop:()=>{if(a=!0,B.playState==="idle")return;const{currentTime:x}=B;if(x){const R=Zc({...o,autoplay:!1});e.setWithVelocity(R.sample(x-lc).value,R.sample(x).value,lc)}S()},complete:()=>{A||B.finish()},cancel:S}}function Tk({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Pt,pause:Pt,stop:Pt,then:s=>(s(),Promise.resolve()),cancel:Pt,complete:Pt});return t?Zc({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Sk={type:"spring",stiffness:500,damping:25,restSpeed:10},Pk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Rk={type:"keyframes",duration:.8},Ok={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jk=(e,{keyframes:t})=>t.length>2?Rk:Qi.has(e)?e.startsWith("scale")?Pk(t[1]):Sk:Ok,Rg=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jo.test(t)||t==="0")&&!t.startsWith("url(")),Dk=new Set(["brightness","contrast","saturate","opacity"]);function Mk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ku)||[];if(!r)return e;const o=n.replace(r,"");let s=Dk.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const kk=/([a-z-]*)\(.*?\)/g,Og={...jo,getAnimatableNone:e=>{const t=e.match(kk);return t?t.map(Mk).join(" "):e}},Fk={...NB,color:cn,backgroundColor:cn,outlineColor:cn,fill:cn,stroke:cn,borderColor:cn,borderTopColor:cn,borderRightColor:cn,borderBottomColor:cn,borderLeftColor:cn,filter:Og,WebkitFilter:Og},Zf=e=>Fk[e];function Qv(e,t){let n=Zf(e);return n!==Og&&(n=jo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xv=e=>/^0[^.\s]+$/.test(e);function Lk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||xv(e)}function Nk(e,t,n,r){const o=Rg(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const a=r.from!==void 0?r.from:e.get();let c;const u=[];for(let A=0;A<s.length;A++)s[A]===null&&(s[A]=A===0?a:s[A-1]),Lk(s[A])&&u.push(A),typeof s[A]=="string"&&s[A]!=="none"&&s[A]!=="0"&&(c=s[A]);if(o&&u.length&&c)for(let A=0;A<u.length;A++){const p=u[A];s[p]=Qv(t,c)}return s}function Vk({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:c,from:u,elapsed:A,...p}){return!!Object.keys(p).length}function _f(e,t){return e[t]||e.default||e}const Hk={skipAnimations:!1},$f=(e,t,n,r={})=>o=>{const s=_f(r,e)||{},a=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ro(a);const u=Nk(t,e,n,s),A=u[0],p=u[u.length-1],h=Rg(e,A),C=Rg(e,p);_a(h===C,`You are trying to animate ${e} from "${A}" to "${p}". ${A} is not an animatable value - to enable this animation set ${A} to a value animatable to ${p} via the \`style\` property.`);let m={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-c,onUpdate:I=>{t.set(I),s.onUpdate&&s.onUpdate(I)},onComplete:()=>{o(),s.onComplete&&s.onComplete()}};if(Vk(s)||(m={...m,...jk(e,m)}),m.duration&&(m.duration=Ro(m.duration)),m.repeatDelay&&(m.repeatDelay=Ro(m.repeatDelay)),!h||!C||F3.current||s.type===!1||Hk.skipAnimations)return Tk(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const I=wk(t,e,m);if(I)return I}return Zc(m)};function _c(e){return!!(bn(e)&&e.add)}const wv=e=>/^\-?\d*\.?\d+$/.test(e);function ep(e,t){e.indexOf(t)===-1&&e.push(t)}function tp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class np{constructor(){this.subscriptions=[]}add(t){return ep(this.subscriptions,t),()=>tp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const IE=new Set;function rp(e,t,n){e||IE.has(t)||(console.warn(t),n&&console.warn(n),IE.add(t))}const zk=e=>!isNaN(parseFloat(e));class Wk{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:a}=$t;this.lastUpdated!==a&&(this.timeDelta=s,this.lastUpdated=a,mt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>mt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=zk(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&rp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new np);const r=this.events[t].add(n);return t==="change"?()=>{r(),mt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?vv(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Is(e,t){return new Wk(e,t)}const Tv=e=>t=>t.test(e),Uk={test:e=>e==="auto",parse:e=>e},Sv=[xi,De,Tr,Bo,_M,ZM,Uk],la=e=>Sv.find(Tv(e)),Yk=[...Sv,cn,jo],Gk=e=>Yk.find(Tv(e));function Kk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Is(n))}function qk(e,t){const n=Lu(e,t);let{transitionEnd:r={},transition:o={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const a in s){const c=g3(s[a]);Kk(e,a,c)}}function Jk(e,t,n){var r,o;const s=Object.keys(t).filter(c=>!e.hasValue(c)),a=s.length;if(a)for(let c=0;c<a;c++){const u=s[c],A=t[u];let p=null;Array.isArray(A)&&(p=A[0]),p===null&&(p=(o=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(wv(p)||xv(p))?p=parseFloat(p):!Gk(p)&&jo.test(A)&&(p=Qv(u,A)),e.addValue(u,Is(p,{owner:e})),n[u]===void 0&&(n[u]=p),p!==null&&e.setBaseTarget(u,p))}}function Xk(e,t){return t?(t[e]||t.default||t).from:void 0}function Zk(e,t,n){const r={};for(const o in e){const s=Xk(o,t);if(s!==void 0)r[o]=s;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function _k({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $k(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Pv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(s=r);const A=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const h in c){const C=e.getValue(h),m=c[h];if(!C||m===void 0||p&&_k(p,h))continue;const I={delay:n,elapsed:0,..._f(s||{},h)};if(window.HandoffAppearAnimations){const S=e.getProps()[RB];if(S){const O=window.HandoffAppearAnimations(S,h,C,mt);O!==null&&(I.elapsed=O,I.isHandoff=!0)}}let B=!I.isHandoff&&!$k(C,m);if(I.type==="spring"&&(C.getVelocity()||I.velocity)&&(B=!1),C.animation&&(B=!1),B)continue;C.start($f(h,C,m,e.shouldReduceMotion&&Qi.has(h)?{type:!1}:I));const v=C.animation;_c(u)&&(u.add(h),v.then(()=>u.remove(h))),A.push(v)}return a&&Promise.all(A).then(()=>{a&&qk(e,a)}),A}function jg(e,t,n={}){const r=Lu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Pv(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:A=0,staggerChildren:p,staggerDirection:h}=o;return eF(e,t,A+u,p,h,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,A]=c==="beforeChildren"?[s,a]:[a,s];return u().then(()=>A())}else return Promise.all([s(),a(n.delay)])}function eF(e,t,n=0,r=0,o=1,s){const a=[],c=(e.variantChildren.size-1)*r,u=o===1?(A=0)=>A*r:(A=0)=>c-A*r;return Array.from(e.variantChildren).sort(tF).forEach((A,p)=>{A.notify("AnimationStart",t),a.push(jg(A,t,{...s,delay:n+u(p)}).then(()=>A.notify("AnimationComplete",t)))}),Promise.all(a)}function tF(e,t){return e.sortNodePosition(t)}function nF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>jg(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=jg(e,t,n);else{const o=typeof t=="function"?Lu(e,t,n.custom):t;r=Promise.all(Pv(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const rF=[...Nf].reverse(),oF=Nf.length;function iF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nF(e,n,r)))}function sF(e){let t=iF(e);const n=lF();let r=!0;const o=(u,A)=>{const p=Lu(e,A);if(p){const{transition:h,transitionEnd:C,...m}=p;u={...u,...m,...C}}return u};function s(u){t=u(e)}function a(u,A){const p=e.getProps(),h=e.getVariantContext(!0)||{},C=[],m=new Set;let I={},B=1/0;for(let S=0;S<oF;S++){const O=rF[S],x=n[O],R=p[O]!==void 0?p[O]:h[O],P=ja(R),k=O===A?x.isActive:null;k===!1&&(B=S);let F=R===h[O]&&R!==p[O]&&P;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),x.protectedKeys={...I},!x.isActive&&k===null||!R&&!x.prevProp||Du(R)||typeof R=="boolean")continue;let K=aF(x.prevProp,R)||O===A&&x.isActive&&!F&&P||S>B&&P,$=!1;const Y=Array.isArray(R)?R:[R];let ie=Y.reduce(o,{});k===!1&&(ie={});const{prevResolvedValues:se={}}=x,X={...se,...ie},Z=H=>{K=!0,m.has(H)&&($=!0,m.delete(H)),x.needsAnimating[H]=!0};for(const H in X){const J=ie[H],L=se[H];if(I.hasOwnProperty(H))continue;let _=!1;qc(J)&&qc(L)?_=!$B(J,L):_=J!==L,_?J!==void 0?Z(H):m.add(H):J!==void 0&&m.has(H)?Z(H):x.protectedKeys[H]=!0}x.prevProp=R,x.prevResolvedValues=ie,x.isActive&&(I={...I,...ie}),r&&e.blockInitialAnimation&&(K=!1),K&&(!F||$)&&C.push(...Y.map(H=>({animation:H,options:{type:O,...u}})))}if(m.size){const S={};m.forEach(O=>{const x=e.getBaseTarget(O);x!==void 0&&(S[O]=x)}),C.push({animation:S})}let v=!!C.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(C):Promise.resolve()}function c(u,A,p){var h;if(n[u].isActive===A)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var I;return(I=m.animationState)===null||I===void 0?void 0:I.setActive(u,A)}),n[u].isActive=A;const C=a(p,u);for(const m in n)n[m].protectedKeys={};return C}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n}}function aF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$B(t,e):!1}function $o(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lF(){return{animate:$o(!0),whileInView:$o(),whileHover:$o(),whileTap:$o(),whileDrag:$o(),whileFocus:$o(),exit:$o()}}class cF extends ko{constructor(t){super(t),t.animationState||(t.animationState=sF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Du(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let uF=0;class AF extends ko{constructor(){super(...arguments),this.id=uF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const s=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const dF={animation:{Feature:cF},exit:{Feature:AF}},BE=(e,t)=>Math.abs(e-t);function gF(e,t){const n=BE(e.x,t.x),r=BE(e.y,t.y);return Math.sqrt(n**2+r**2)}class Rv{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Yd(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,m=gF(h.offset,{x:0,y:0})>=3;if(!C&&!m)return;const{point:I}=h,{timestamp:B}=$t;this.history.push({...I,timestamp:B});const{onStart:v,onMove:S}=this.handlers;C||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,C)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ud(C,this.transformPagePoint),mt.update(this.updatePoint,!0)},this.handlePointerUp=(h,C)=>{this.end();const{onEnd:m,onSessionEnd:I,resumeAnimation:B}=this.handlers;if(this.dragSnapToOrigin&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Yd(h.type==="pointercancel"?this.lastMoveEventInfo:Ud(C,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,v),I&&I(h,v)},!qB(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Fu(t),c=Ud(a,this.transformPagePoint),{point:u}=c,{timestamp:A}=$t;this.history=[{...u,timestamp:A}];const{onSessionStart:p}=n;p&&p(t,Yd(c,this.history)),this.removeListeners=Po(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),to(this.updatePoint)}}function Ud(e,t){return t?{point:t(e.point)}:e}function vE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yd({point:e},t){return{point:e,delta:vE(e,Ov(t)),offset:vE(e,fF(t)),velocity:pF(t,.1)}}function fF(e){return e[0]}function Ov(e){return e[e.length-1]}function pF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ov(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ro(t)));)n--;if(!r)return{x:0,y:0};const s=$r(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Fn(e){return e.max-e.min}function Dg(e,t=0,n=.01){return Math.abs(e-t)<=n}function bE(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=Fn(n)/Fn(t),(Dg(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(Dg(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ya(e,t,n,r){bE(e.x,t.x,n.x,r?r.originX:void 0),bE(e.y,t.y,n.y,r?r.originY:void 0)}function yE(e,t,n){e.min=n.min+t.min,e.max=e.min+Fn(t)}function hF(e,t,n){yE(e.x,t.x,n.x),yE(e.y,t.y,n.y)}function QE(e,t,n){e.min=t.min-n.min,e.max=e.min+Fn(t)}function Qa(e,t,n){QE(e.x,t.x,n.x),QE(e.y,t.y,n.y)}function CF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function xE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mF(e,{top:t,left:n,bottom:r,right:o}){return{x:xE(e.x,n,o),y:xE(e.y,t,r)}}function wE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function EF(e,t){return{x:wE(e.x,t.x),y:wE(e.y,t.y)}}function IF(e,t){let n=.5;const r=Fn(e),o=Fn(t);return o>r?n=Ma(t.min,t.max-r,e.min):r>o&&(n=Ma(e.min,e.max-o,t.min)),Oo(0,1,n)}function BF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mg=.35;function vF(e=Mg){return e===!1?e=0:e===!0&&(e=Mg),{x:TE(e,"left","right"),y:TE(e,"top","bottom")}}function TE(e,t,n){return{min:SE(e,t),max:SE(e,n)}}function SE(e,t){return typeof e=="number"?e:e[t]||0}const PE=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:PE(),y:PE()}),RE=()=>({min:0,max:0}),Nt=()=>({x:RE(),y:RE()});function Xn(e){return[e("x"),e("y")]}function jv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gd(e){return e===void 0||e===1}function kg({scale:e,scaleX:t,scaleY:n}){return!Gd(e)||!Gd(t)||!Gd(n)}function ri(e){return kg(e)||Dv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Dv(e){return OE(e.x)||OE(e.y)}function OE(e){return e&&e!=="0%"}function $c(e,t,n){const r=e-n,o=t*r;return n+o}function jE(e,t,n,r,o){return o!==void 0&&(e=$c(e,o,r)),$c(e,n,r)+t}function Fg(e,t=0,n=1,r,o){e.min=jE(e.min,t,n,r,o),e.max=jE(e.max,t,n,r,o)}function Mv(e,{x:t,y:n}){Fg(e.x,t.translate,t.scale,t.originPoint),Fg(e.y,n.translate,n.scale,n.originPoint)}function QF(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,a;for(let c=0;c<o;c++){s=n[c],a=s.projectionDelta;const u=s.instance;u&&u.style&&u.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&cs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Mv(e,a)),r&&ri(s.latestValues)&&cs(e,s.latestValues))}t.x=DE(t.x),t.y=DE(t.y)}function DE(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function ME(e,t,[n,r,o]){const s=t[o]!==void 0?t[o]:.5,a=xt(e.min,e.max,s);Fg(e,t[n],t[r],a,t.scale)}const xF=["x","scaleX","originX"],wF=["y","scaleY","originY"];function cs(e,t){ME(e.x,t,xF),ME(e.y,t,wF)}function kv(e,t){return jv(yF(e.getBoundingClientRect(),t))}function TF(e,t,n){const r=kv(e,n),{scroll:o}=t;return o&&(vo(r.x,o.offset.x),vo(r.y,o.offset.y)),r}const Fv=({current:e})=>e?e.ownerDocument.defaultView:null,SF=new WeakMap;class PF{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fu(p,"page").point)},s=(p,h)=>{const{drag:C,dragPropagation:m,onDragStart:I}=this.getProps();if(C&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=XB(C),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xn(v=>{let S=this.getAxisMotionValue(v).get()||0;if(Tr.test(S)){const{projection:O}=this.visualElement;if(O&&O.layout){const x=O.layout.layoutBox[v];x&&(S=Fn(x)*(parseFloat(S)/100))}}this.originPoint[v]=S}),I&&mt.update(()=>I(p,h),!1,!0);const{animationState:B}=this.visualElement;B&&B.setActive("whileDrag",!0)},a=(p,h)=>{const{dragPropagation:C,dragDirectionLock:m,onDirectionLock:I,onDrag:B}=this.getProps();if(!C&&!this.openGlobalLock)return;const{offset:v}=h;if(m&&this.currentDirection===null){this.currentDirection=RF(v),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),B&&B(p,h)},c=(p,h)=>this.stop(p,h),u=()=>Xn(p=>{var h;return this.getAnimationState(p)==="paused"&&((h=this.getAxisMotionValue(p).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:A}=this.getProps();this.panSession=new Rv(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,contextWindow:Fv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&mt.update(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!cc(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=CF(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=mF(o.layoutBox,n):this.constraints=!1,this.elastic=vF(r),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=BF(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(t))return!1;const r=t.current;mr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=TF(r,o.root,this.visualElement.getTransformPagePoint());let a=EF(o.layout.layoutBox,s);if(n){const c=n(bF(a));this.hasMutatedConstraints=!!c,c&&(a=jv(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},A=Xn(p=>{if(!cc(p,n,this.currentDirection))return;let h=u&&u[p]||{};a&&(h={min:0,max:0});const C=o?200:1e6,m=o?40:1e7,I={type:"inertia",velocity:r?t[p]:0,bounceStiffness:C,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(p,I)});return Promise.all(A).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start($f(t,r,0,n))}stopAnimation(){Xn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xn(n=>{const{drag:r}=this.getProps();if(!cc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n];s.set(t[n]-xt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ss(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Xn(a=>{const c=this.getAxisMotionValue(a);if(c){const u=c.get();o[a]=IF({min:u,max:u},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xn(a=>{if(!cc(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:A}=this.constraints[a];c.set(xt(u,A,o[a]))})}addListeners(){if(!this.visualElement.current)return;SF.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",u=>{const{drag:A,dragListener:p=!0}=this.getProps();A&&p&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Xr(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:A})=>{this.isDragging&&A&&(Xn(p=>{const h=this.getAxisMotionValue(p);h&&(this.originPoint[p]+=u[p].translate,h.set(h.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=Mg,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function cc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OF extends ko{constructor(t){super(t),this.removeGroupControls=Pt,this.removeListeners=Pt,this.controls=new PF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kE=e=>(t,n)=>{e&&mt.update(()=>e(t,n))};class jF extends ko{constructor(){super(...arguments),this.removePointerDownListener=Pt}onPointerDown(t){this.session=new Rv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:kE(t),onStart:kE(n),onMove:r,onEnd:(s,a)=>{delete this.session,o&&mt.update(()=>o(s,a))}}}mount(){this.removePointerDownListener=_r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function DF(){const e=Q.useContext(Ff);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=Q.useId();return Q.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const wc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function FE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ca={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(De.test(e))e=parseFloat(e);else return e;const n=FE(e,t.target.x),r=FE(e,t.target.y);return`${n}% ${r}%`}},MF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=jo.parse(e);if(o.length>5)return r;const s=jo.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const A=xt(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=A),typeof o[3+a]=="number"&&(o[3+a]/=A),s(o)}};class kF extends Q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;UM(FF),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),wc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,a=r.projection;return a&&(a.isPresent=s,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||mt.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Lv(e){const[t,n]=DF(),r=Q.useContext(jB);return Q.createElement(kF,{...e,layoutGroup:r,switchLayoutGroup:Q.useContext(DB),isPresent:t,safeToRemove:n})}const FF={borderRadius:{...ca,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ca,borderTopRightRadius:ca,borderBottomLeftRadius:ca,borderBottomRightRadius:ca,boxShadow:MF},Nv=["TopLeft","TopRight","BottomLeft","BottomRight"],LF=Nv.length,LE=e=>typeof e=="string"?parseFloat(e):e,NE=e=>typeof e=="number"||De.test(e);function NF(e,t,n,r,o,s){o?(e.opacity=xt(0,n.opacity!==void 0?n.opacity:1,VF(r)),e.opacityExit=xt(t.opacity!==void 0?t.opacity:1,0,HF(r))):s&&(e.opacity=xt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<LF;a++){const c=`border${Nv[a]}Radius`;let u=VE(t,c),A=VE(n,c);if(u===void 0&&A===void 0)continue;u||(u=0),A||(A=0),u===0||A===0||NE(u)===NE(A)?(e[c]=Math.max(xt(LE(u),LE(A),r),0),(Tr.test(A)||Tr.test(u))&&(e[c]+="%")):e[c]=A}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function VE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VF=Vv(0,.5,lv),HF=Vv(.5,.95,Pt);function Vv(e,t,n){return r=>r<e?0:r>t?1:n(Ma(e,t,r))}function HE(e,t){e.min=t.min,e.max=t.max}function Jn(e,t){HE(e.x,t.x),HE(e.y,t.y)}function zE(e,t,n,r,o){return e-=t,e=$c(e,1/n,r),o!==void 0&&(e=$c(e,1/o,r)),e}function zF(e,t=0,n=1,r=.5,o,s=e,a=e){if(Tr.test(t)&&(t=parseFloat(t),t=xt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=xt(s.min,s.max,r);e===s&&(c-=t),e.min=zE(e.min,t,n,c,o),e.max=zE(e.max,t,n,c,o)}function WE(e,t,[n,r,o],s,a){zF(e,t[n],t[r],t[o],t.scale,s,a)}const WF=["x","scaleX","originX"],UF=["y","scaleY","originY"];function UE(e,t,n,r){WE(e.x,t,WF,n?n.x:void 0,r?r.x:void 0),WE(e.y,t,UF,n?n.y:void 0,r?r.y:void 0)}function YE(e){return e.translate===0&&e.scale===1}function Hv(e){return YE(e.x)&&YE(e.y)}function YF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function zv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function GE(e){return Fn(e.x)/Fn(e.y)}class GF{constructor(){this.members=[]}add(t){ep(this.members,t),t.scheduleRender()}remove(t){if(tp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function KE(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y;if((o||s)&&(r=`translate3d(${o}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:A,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),A&&(r+=`rotateX(${A}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const KF=(e,t)=>e.depth-t.depth;class qF{constructor(){this.children=[],this.isDirty=!1}add(t){ep(this.children,t),this.isDirty=!0}remove(t){tp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KF),this.isDirty=!1,this.children.forEach(t)}}function JF(e,t){const n=performance.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(to(r),e(s-t))};return mt.read(r,!0),()=>to(r)}function XF(e){window.MotionDebug&&window.MotionDebug.record(e)}function ZF(e){return e instanceof SVGElement&&e.tagName!=="svg"}function _F(e,t,n){const r=bn(e)?e:Is(e);return r.start($f("",r,t,n)),r.animation}const qE=["","X","Y","Z"],$F={visibility:"hidden"},JE=1e3;let e5=0;const oi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Wv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t==null?void 0:t()){this.id=e5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,oi.totalNodes=oi.resolvedTargetDeltas=oi.recalculatedProjection=0,this.nodes.forEach(r5),this.nodes.forEach(l5),this.nodes.forEach(c5),this.nodes.forEach(o5),XF(oi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new qF)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new np),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ZF(a),this.instance=a;const{layoutId:u,layout:A,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(A||u)&&(this.isLayoutDirty=!0),e){let h;const C=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=JF(C,250),wc.hasAnimatedSinceResize&&(wc.hasAnimatedSinceResize=!1,this.nodes.forEach(ZE))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||A)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:C,hasRelativeTargetChanged:m,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const B=this.options.transition||p.getDefaultTransition()||f5,{onLayoutAnimationStart:v,onLayoutAnimationComplete:S}=p.getProps(),O=!this.targetLayout||!zv(this.targetLayout,I)||m,x=!C&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||C&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,x);const R={..._f(B,"layout"),onPlay:v,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else C||ZE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,to(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(u5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const h=this.path[p];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(XE);return}this.isUpdating||this.nodes.forEach(s5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(t5),this.nodes.forEach(n5),this.clearAllSnapshots();const c=performance.now();$t.delta=Oo(0,1e3/60,c-$t.timestamp),$t.timestamp=c,$t.isProcessing=!0,kd.update.process($t),kd.preRender.process($t),kd.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(A5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!Hv(this.projectionDelta),u=this.getTransformTemplate(),A=u?u(this.latestValues,""):void 0,p=A!==this.prevTransformTemplateValue;a&&(c||ri(this.latestValues)||p)&&(o(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),p5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Nt();const c=a.measureViewportBox(),{scroll:u}=this.root;return u&&(vo(c.x,u.offset.x),vo(c.y,u.offset.y)),c}removeElementScroll(a){const c=Nt();Jn(c,a);for(let u=0;u<this.path.length;u++){const A=this.path[u],{scroll:p,options:h}=A;if(A!==this.root&&p&&h.layoutScroll){if(p.isRoot){Jn(c,a);const{scroll:C}=this.root;C&&(vo(c.x,-C.offset.x),vo(c.y,-C.offset.y))}vo(c.x,p.offset.x),vo(c.y,p.offset.y)}}return c}applyTransform(a,c=!1){const u=Nt();Jn(u,a);for(let A=0;A<this.path.length;A++){const p=this.path[A];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&cs(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ri(p.latestValues)&&cs(u,p.latestValues)}return ri(this.latestValues)&&cs(u,this.latestValues),u}removeTransform(a){const c=Nt();Jn(c,a);for(let u=0;u<this.path.length;u++){const A=this.path[u];if(!A.instance||!ri(A.latestValues))continue;kg(A.latestValues)&&A.updateSnapshot();const p=Nt(),h=A.measurePageBox();Jn(p,h),UE(c,A.latestValues,A.snapshot?A.snapshot.layoutBox:void 0,p)}return ri(this.latestValues)&&UE(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const A=!!this.resumingFrom||this!==u;if(!(a||A&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:C}=this.options;if(!(!this.layout||!(h||C))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Qa(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Nt(),this.targetWithTransforms=Nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jn(this.target,this.layout.layoutBox),Mv(this.target,this.targetDelta)):Jn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Qa(this.relativeTargetOrigin,this.target,m.target),Jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}oi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||kg(this.parent.latestValues)||Dv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let A=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(A=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(A=!1),this.resolvedRelativeTargetAt===$t.timestamp&&(A=!1),A)return;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;Jn(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,m=this.treeScale.y;QF(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:I}=c;if(!I){this.projectionTransform&&(this.projectionDelta=ls(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ls(),this.projectionDeltaWithTransform=ls());const B=this.projectionTransform;ya(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=KE(this.projectionDelta,this.treeScale),(this.projectionTransform!==B||this.treeScale.x!==C||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),oi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const u=this.snapshot,A=u?u.latestValues:{},p={...this.latestValues},h=ls();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const C=Nt(),m=u?u.source:void 0,I=this.layout?this.layout.source:void 0,B=m!==I,v=this.getStack(),S=!v||v.members.length<=1,O=!!(B&&!S&&this.options.crossfade===!0&&!this.path.some(g5));this.animationProgress=0;let x;this.mixTargetDelta=R=>{const P=R/1e3;_E(h.x,a.x,P),_E(h.y,a.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qa(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d5(this.relativeTarget,this.relativeTargetOrigin,C,P),x&&YF(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Nt()),Jn(x,this.relativeTarget)),B&&(this.animationValues=p,NF(p,A,this.latestValues,P,O,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(to(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mt.update(()=>{wc.hasAnimatedSinceResize=!0,this.currentAnimation=_F(0,JE,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(JE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:A,latestValues:p}=a;if(!(!c||!u||!A)){if(this!==a&&this.layout&&A&&Uv(this.options.animationType,this.layout.layoutBox,A.layoutBox)){u=this.target||Nt();const h=Fn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+h;const C=Fn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+C}Jn(c,u),cs(c,p),ya(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new GF),this.sharedNodes.get(a).add(c);const A=c.options.initialPromotionConfig;c.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const A=this.getStack();A&&A.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const A={};for(let p=0;p<qE.length;p++){const h="rotate"+qE[p];u[h]&&(A[h]=u[h],a.setStaticValue(h,0))}a.render();for(const p in A)a.setStaticValue(p,A[p]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $F;const A={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=xc(a==null?void 0:a.pointerEvents)||"",A.transform=p?p(this.latestValues,""):"none",A;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const B={};return this.options.layoutId&&(B.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,B.pointerEvents=xc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ri(this.latestValues)&&(B.transform=p?p({},""):"none",this.hasProjected=!1),B}const C=h.animationValues||h.latestValues;this.applyTransformsToTarget(),A.transform=KE(this.projectionDeltaWithTransform,this.treeScale,C),p&&(A.transform=p(C,A.transform));const{x:m,y:I}=this.projectionDelta;A.transformOrigin=`${m.origin*100}% ${I.origin*100}% 0`,h.animationValues?A.opacity=h===this?(u=(c=C.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:A.opacity=h===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const B in Gc){if(C[B]===void 0)continue;const{correct:v,applyTo:S}=Gc[B],O=A.transform==="none"?C[B]:v(C[B],h);if(S){const x=S.length;for(let R=0;R<x;R++)A[S[R]]=O}else A[B]=O}return this.options.layoutId&&(A.pointerEvents=h===this?xc(a==null?void 0:a.pointerEvents)||"":"none"),A}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(XE),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?Xn(h=>{const C=a?n.measuredBox[h]:n.layoutBox[h],m=Fn(C);C.min=r[h].min,C.max=C.min+m}):Uv(s,n.layoutBox,r)&&Xn(h=>{const C=a?n.measuredBox[h]:n.layoutBox[h],m=Fn(r[h]);C.max=C.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const c=ls();ya(c,r,n.layoutBox);const u=ls();a?ya(u,e.applyTransform(o,!0),n.measuredBox):ya(u,r,n.layoutBox);const A=!Hv(c);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:C,layout:m}=h;if(C&&m){const I=Nt();Qa(I,n.layoutBox,C.layoutBox);const B=Nt();Qa(B,r,m.layoutBox),zv(I,B)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=B,e.relativeTargetOrigin=I,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:A,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function r5(e){oi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function o5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function XE(e){e.clearMeasurements()}function s5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l5(e){e.resolveTargetDelta()}function c5(e){e.calcProjection()}function u5(e){e.resetRotation()}function A5(e){e.removeLeadSnapshot()}function _E(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $E(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function d5(e,t,n,r){$E(e.x,t.x,n.x,r),$E(e.y,t.y,n.y,r)}function g5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const f5={duration:.45,ease:[.4,0,.1,1]},eI=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),tI=eI("applewebkit/")&&!eI("chrome/")?Math.round:Pt;function nI(e){e.min=tI(e.min),e.max=tI(e.max)}function p5(e){nI(e.x),nI(e.y)}function Uv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dg(GE(t),GE(n),.2)}const h5=Wv({attachResizeListener:(e,t)=>Xr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kd={current:void 0},Yv=Wv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kd.current){const e=new h5({});e.mount(window),e.setOptions({layoutScroll:!0}),Kd.current=e}return Kd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),C5={pan:{Feature:jF},drag:{Feature:OF,ProjectionNode:Yv,MeasureLayout:Lv}},m5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function E5(e){const t=m5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const I5=4;function Lg(e,t,n=1){mr(n<=I5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=E5(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return wv(a)?parseFloat(a):a}else return wg(o)?Lg(o,t,n+1):o}function B5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const s=o.get();if(!wg(s))return;const a=Lg(s,r);a&&o.set(a)});for(const o in t){const s=t[o];if(!wg(s))continue;const a=Lg(s,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=s))}return{target:t,transitionEnd:n}}const v5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gv=e=>v5.has(e),b5=e=>Object.keys(e).some(Gv),uc=e=>e===xi||e===De,rI=(e,t)=>parseFloat(e.split(", ")[t]),oI=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return rI(o[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?rI(s[1],e):0}},y5=new Set(["x","y","z"]),Q5=Ja.filter(e=>!y5.has(e));function x5(e){const t=[];return Q5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Bs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:oI(4,13),y:oI(5,14)};Bs.translateX=Bs.x;Bs.translateY=Bs.y;const w5=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,s=getComputedStyle(o),{display:a}=s,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(A=>{c[A]=Bs[A](r,s)}),t.render();const u=t.measureViewportBox();return n.forEach(A=>{const p=t.getValue(A);p&&p.jump(c[A]),e[A]=Bs[A](u,s)}),e},T5=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Gv);let s=[],a=!1;const c=[];if(o.forEach(u=>{const A=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],h=la(p);const C=t[u];let m;if(qc(C)){const I=C.length,B=C[0]===null?1:0;p=C[B],h=la(p);for(let v=B;v<I&&C[v]!==null;v++)m?mr(la(C[v])===m,"All keyframes must be of the same type"):(m=la(C[v]),mr(m===h||uc(h)&&uc(m),"Keyframes must be of the same dimension as the current value"))}else m=la(C);if(h!==m)if(uc(h)&&uc(m)){const I=A.get();typeof I=="string"&&A.set(parseFloat(I)),typeof C=="string"?t[u]=parseFloat(C):Array.isArray(C)&&m===De&&(t[u]=C.map(parseFloat))}else h!=null&&h.transform&&(m!=null&&m.transform)&&(p===0||C===0)?p===0?A.set(m.transform(p)):t[u]=h.transform(C):(a||(s=x5(e),a=!0),c.push(u),r[u]=r[u]!==void 0?r[u]:t[u],A.jump(C))}),c.length){const u=c.indexOf("height")>=0?window.pageYOffset:null,A=w5(t,e,c);return s.length&&s.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),ju&&u!==null&&window.scrollTo({top:u}),{target:A,transitionEnd:r}}else return{target:t,transitionEnd:r}};function S5(e,t,n,r){return b5(t)?T5(e,t,n,r):{target:t,transitionEnd:r}}const P5=(e,t,n,r)=>{const o=B5(e,t,r);return t=o.target,r=o.transitionEnd,S5(e,t,n,r)},Ng={current:null},Kv={current:!1};function R5(){if(Kv.current=!0,!!ju)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ng.current=e.matches;e.addListener(t),t()}else Ng.current=!1}function O5(e,t,n){const{willChange:r}=t;for(const o in t){const s=t[o],a=n[o];if(bn(s))e.addValue(o,s),_c(r)&&r.add(o),process.env.NODE_ENV==="development"&&rp(s.version==="10.18.0",`Attempting to mix Framer Motion versions ${s.version} with 10.18.0 may not work as expected.`);else if(bn(a))e.addValue(o,Is(s,{owner:e})),_c(r)&&r.remove(o);else if(a!==s)if(e.hasValue(o)){const c=e.getValue(o);!c.hasAnimated&&c.set(s)}else{const c=e.getStaticValue(o);e.addValue(o,Is(c!==void 0?c:s,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const iI=new WeakMap,qv=Object.keys(Da),j5=qv.length,sI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],D5=Vf.length;class M5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>mt.render(this.render,!1,!0);const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Mu(n),this.isVariantNode=OB(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:A,...p}=this.scrapeMotionValuesFromProps(n,{});for(const h in p){const C=p[h];c[h]!==void 0&&bn(C)&&(C.set(c[h],!1),_c(A)&&A.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,iI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Kv.current||R5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ng.current,process.env.NODE_ENV!=="production"&&rp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){iI.delete(this.current),this.projection&&this.projection.unmount(),to(this.notifyUpdate),to(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Qi.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&mt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,s){let a,c;if(process.env.NODE_ENV!=="production"&&o&&r){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?_a(!1,u):mr(!1,u)}for(let u=0;u<j5;u++){const A=qv[u],{isEnabled:p,Feature:h,ProjectionNode:C,MeasureLayout:m}=Da[A];C&&(a=C),p(n)&&(!this.features[A]&&h&&(this.features[A]=new h(this)),m&&(c=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:A,drag:p,dragConstraints:h,layoutScroll:C,layoutRoot:m}=n;this.projection.setOptions({layoutId:u,layout:A,alwaysMeasureLayout:!!p||h&&ss(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof A=="string"?A:"both",initialPromotionConfig:s,layoutScroll:C,layoutRoot:m})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<sI.length;r++){const o=sI[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s=t["on"+o];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=O5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<D5;r++){const o=Vf[r],s=this.props[o];(ja(s)||s===!1)&&(n[o]=s)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Is(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Kf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!bn(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new np),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Jv extends M5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},s){let a=Zk(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),s){Jk(this,r,a);const c=P5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function k5(e){return window.getComputedStyle(e)}class F5 extends Jv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Qi.has(n)){const r=Zf(n);return r&&r.default||0}else{const r=k5(t),o=(FB(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return kv(t,n)}build(t,n,r,o){zf(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Gf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){WB(t,n,r,o)}}class L5 extends Jv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qi.has(n)){const r=Zf(n);return r&&r.default||0}return n=UB.has(n)?n:Lf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Nt()}scrapeMotionValuesFromProps(t,n){return GB(t,n)}build(t,n,r,o){Uf(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){YB(t,n,r,o)}mount(t){this.isSVGTag=Yf(t.tagName),super.mount(t)}}const N5=(e,t)=>Hf(e)?new L5(t,{enableHardwareAcceleration:!1}):new F5(t,{enableHardwareAcceleration:!0}),V5={layout:{ProjectionNode:Yv,MeasureLayout:Lv}},H5={...dF,...D3,...C5,...V5},Ac=zM((e,t)=>B3(e,t,H5,N5)),z5=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function aI(...e){const t=Q.useRef(0),[n,r]=Q.useState(e[t.current]),o=Q.useCallback(s=>{t.current=typeof s!="number"?z5(0,e.length,t.current+1):s,r(e[t.current])},[e.length,...e]);return[n,o]}function Xv({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let s,a;switch(n){case"up":case"left":s=r,a=0;break;case"right":case"down":default:s=0,a=r;break}const[c,u]=aI(s,a),[A,p]=aI(s,a);switch(t){case"rotate":return g.jsx(Ac.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:e});case"slide":return n==="up"||n==="down"?g.jsx(Ac.div,{animate:{y:A!==void 0?A:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):g.jsx(Ac.div,{animate:{x:c!==void 0?c:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:e});case"scale":default:return typeof o=="number"&&(o={hover:o,tap:o}),g.jsx(Ac.div,{whileHover:{scale:o==null?void 0:o.hover},whileTap:{scale:o==null?void 0:o.tap},children:e})}}Xv.propTypes={children:f.node,offset:f.number,type:f.oneOf(["slide","scale","rotate"]),direction:f.oneOf(["up","down","left","right"]),scale:f.oneOfType([f.number,f.object])};function W5(e){return Dt("MuiSvgIcon",e)}Vt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const U5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return nn(o,W5,r)},G5=Ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,a,c,u,A,p,h,C,m,I;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((A=e.typography)==null||(p=A.pxToRem)==null?void 0:p.call(A,35))||"2.1875rem"}[t.fontSize],color:(h=(C=(e.vars||e).palette)==null||(C=C[t.color])==null?void 0:C.main)!=null?h:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(I=(e.vars||e).palette)==null||(I=I.action)==null?void 0:I.disabled,inherit:void 0}[t.color]}}),op=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:A,inheritViewBox:p=!1,titleAccess:h,viewBox:C="0 0 24 24"}=r,m=Ne(r,U5),I=M.isValidElement(o)&&o.type==="svg",B=z({},r,{color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:C,hasSvgAsChild:I}),v={};p||(v.viewBox=C);const S=Y5(B);return g.jsxs(G5,z({as:c,className:Ge(S.root,s),focusable:"false",color:A,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,m,I&&o.props,{ownerState:B,children:[I?o.props.children:o,h?g.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(op.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string});op.muiName="SvgIcon";const lI=op;function ip(e,t){function n(r,o){return g.jsx(lI,z({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=lI.muiName,M.memo(M.forwardRef(n))}const K5=ip(g.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 q5(e){return Dt("MuiAvatar",e)}Vt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const J5=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],X5=e=>{const{classes:t,variant:n,colorDefault:r}=e;return nn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},q5,t)},Z5=Ae("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})=>z({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),_5=Ae("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),$5=Ae(K5,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function e8({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&s("loaded")},c.onerror=()=>{a&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Zv=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:a,component:c="div",imgProps:u,sizes:A,src:p,srcSet:h,variant:C="circular"}=r,m=Ne(r,J5);let I=null;const B=e8(z({},u,{src:p,srcSet:h})),v=p||h,S=v&&B!=="error",O=z({},r,{colorDefault:!S,component:c,variant:C}),x=X5(O);return S?I=g.jsx(_5,z({alt:o,srcSet:h,src:p,sizes:A,ownerState:O,className:x.img},u)):s!=null?I=s:v&&o?I=o[0]:I=g.jsx($5,{ownerState:O,className:x.fallback}),g.jsx(Z5,z({as:c,ownerState:O,className:Ge(x.root,a),ref:n},m,{children:I}))});process.env.NODE_ENV!=="production"&&(Zv.propTypes={alt:f.string,children:f.node,classes:f.object,className:f.string,component:f.elementType,imgProps:f.object,sizes:f.string,src:f.string,srcSet:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["circular","rounded","square"]),f.string])});const t8=Zv,rn=(e,t)=>{switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}};function n8({theme:e,color:t,type:n}){const r=rn(e,t),{lighter:o,light:s,main:a,contrastText:c}=r;switch(n){case"filled":return{color:c,backgroundColor:a};case"outlined":return{color:a,border:"1px solid",borderColor:a,backgroundColor:"transparent"};case"combined":return{color:a,border:"1px solid",borderColor:s,backgroundColor:o};default:return{color:a,backgroundColor:o}}}function r8(e){switch(e){case"badge":return{border:"2px solid",fontSize:"0.675rem",width:20,height:20};case"xs":return{fontSize:"0.75rem",width:24,height:24};case"sm":return{fontSize:"0.875rem",width:32,height:32};case"lg":return{fontSize:"1.2rem",width:52,height:52};case"xl":return{fontSize:"1.5rem",width:64,height:64};case"md":default:return{fontSize:"1rem",width:40,height:40}}}const o8=Ae(t8,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,variant:t,color:n,type:r,size:o})=>({...r8(o),...n8({variant:t,theme:e,color:n,type:r}),...o==="badge"&&{borderColor:e.palette.background.default}}));function ka({variant:e="circular",children:t,color:n="primary",type:r,size:o="md",...s}){const a=bt();return g.jsx(o8,{variant:e,theme:a,color:n,type:r,size:o,...s,children:t})}ka.propTypes={children:f.node,color:f.string,type:f.string,size:f.string,variant:f.string};const cI={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},er=Q.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:o=!0,contentSX:s={},darkTitle:a,divider:c=!0,elevation:u,secondary:A,shadow:p,sx:h={},title:C,modal:m=!1,color:I="default",...B},v)=>{const S=bt();return t=S.palette.mode==="dark"?t||!0:t,g.jsxs(y.Card,{elevation:u||0,ref:v,...B,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:S.palette.mode==="dark"?S.palette.divider:S.palette.grey.A800,boxShadow:t&&(!e||S.palette.mode==="dark")?p||S.customShadows.z1:"inherit",":hover":{boxShadow:t?p||S.customShadows.z1:"inherit"},backgroundColor:I==="default"?S.palette.background.paper:Es(I==="primary"?S.palette.primary[100]:S.palette.secondary[100],.5),...m&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"calc( 100% - 50px)",sm:"auto"},"& .MuiCardContent-root":{overflowY:"auto",minHeight:"auto",maxHeight:"calc(100vh - 200px)"}},...h},children:[!a&&C&&g.jsx(y.CardHeader,{sx:cI,title:C,action:A,subheader:r}),a&&C&&g.jsx(y.CardHeader,{sx:cI,title:g.jsx(y.Typography,{variant:"h4",children:C}),action:A}),C&&c&&g.jsx(y.Divider,{}),o&&g.jsx(y.CardContent,{sx:s,children:n}),!o&&n]})});er.propTypes={border:f.bool,boxShadow:f.bool,children:f.oneOfType([f.node,f.arrayOf(f.node)]),subheader:f.oneOfType([f.node,f.string]),content:f.bool,contentClass:f.string,contentSX:f.object,darkTitle:f.bool,divider:f.bool,elevation:f.number,secondary:f.oneOfType([f.node,f.string,f.object]),shadow:f.string,sx:f.object,title:f.oneOfType([f.node,f.string,f.object]),modal:f.bool,color:f.oneOf(["default","primary","secondary"])};function i8(e){return Dt("MuiTypography",e)}Vt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const s8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],a8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${Pe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return nn(c,i8,a)},l8=Ae("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),uI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},c8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},u8=e=>c8[e]||e,_v=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiTypography"}),o=u8(r.color),s=aj(z({},r,{color:o})),{align:a="inherit",className:c,component:u,gutterBottom:A=!1,noWrap:p=!1,paragraph:h=!1,variant:C="body1",variantMapping:m=uI}=s,I=Ne(s,s8),B=z({},s,{align:a,color:o,className:c,component:u,gutterBottom:A,noWrap:p,paragraph:h,variant:C,variantMapping:m}),v=u||(h?"p":m[C]||uI[C])||"span",S=a8(B);return g.jsx(l8,z({as:v,ref:n,ownerState:B,className:Ge(S.root,c)},I))});process.env.NODE_ENV!=="production"&&(_v.propTypes={align:f.oneOf(["center","inherit","justify","left","right"]),children:f.node,classes:f.object,className:f.string,component:f.elementType,gutterBottom:f.bool,noWrap:f.bool,paragraph:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),f.string]),variantMapping:f.object});const $v=_v,A8=ip(g.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vg(e,t)}function sp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vg(e,t)}const AI={disabled:!1};var d8=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.shape({enter:f.number,exit:f.number,appear:f.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&f.oneOfType([f.string,f.shape({enter:f.string,exit:f.string,active:f.string}),f.shape({enter:f.string,enterDone:f.string,enterActive:f.string,exit:f.string,exitDone:f.string,exitActive:f.string})]);const eu=Q.createContext(null);var g8=function(t){return t.scrollTop},ma="unmounted",ii="exited",si="entering",ns="entered",Hg="exiting",oo=function(e){sp(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,u;return s.appearStatus=null,r.in?c?(u=ii,s.appearStatus=si):u=ns:r.unmountOnExit||r.mountOnEnter?u=ma:u=ii,s.state={status:u},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===ma?{status:ii}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==si&&a!==ns&&(s=si):(a===si||a===ns)&&(s=Hg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,c;return s=a=c=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:c}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===si){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:os.findDOMNode(this);a&&g8(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ii&&this.setState({status:ma})},n.performEnter=function(o){var s=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[os.findDOMNode(this),c],A=u[0],p=u[1],h=this.getTimeouts(),C=c?h.appear:h.enter;if(!o&&!a||AI.disabled){this.safeSetState({status:ns},function(){s.props.onEntered(A)});return}this.props.onEnter(A,p),this.safeSetState({status:si},function(){s.props.onEntering(A,p),s.onTransitionEnd(C,function(){s.safeSetState({status:ns},function(){s.props.onEntered(A,p)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:os.findDOMNode(this);if(!s||AI.disabled){this.safeSetState({status:ii},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Hg},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ii},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,s.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:os.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],A=u[0],p=u[1];this.props.addEndListener(A,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ma)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=Ne(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(eu.Provider,{value:null},typeof a=="function"?a(o,c):Q.cloneElement(Q.Children.only(a),c))},t}(Q.Component);oo.contextType=eu;oo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:f.shape({current:typeof Element>"u"?f.any:function(e,t,n,r,o,s){var a=e[t];return f.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:f.oneOfType([f.func.isRequired,f.element.isRequired]).isRequired,in:f.bool,mountOnEnter:f.bool,unmountOnExit:f.bool,appear:f.bool,enter:f.bool,exit:f.bool,timeout:function(t){var n=d8;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:f.func,onEnter:f.func,onEntering:f.func,onEntered:f.func,onExit:f.func,onExiting:f.func,onExited:f.func}:{};function Xi(){}oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xi,onEntering:Xi,onEntered:Xi,onExit:Xi,onExiting:Xi,onExited:Xi};oo.UNMOUNTED=ma;oo.EXITED=ii;oo.ENTERING=si;oo.ENTERED=ns;oo.EXITING=Hg;const ap=oo;function f8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lp(e,t){var n=function(s){return t&&Q.isValidElement(s)?t(s):s},r=Object.create(null);return e&&Q.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function p8(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,c={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var A=r[u][a];c[r[u][a]]=n(A)}c[u]=n(u)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function ui(e,t,n){return n[t]!=null?n[t]:e.props[t]}function h8(e,t){return lp(e.children,function(n){return Q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ui(n,"appear",e),enter:ui(n,"enter",e),exit:ui(n,"exit",e)})})}function C8(e,t,n){var r=lp(e.children),o=p8(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(Q.isValidElement(a)){var c=s in t,u=s in r,A=t[s],p=Q.isValidElement(A)&&!A.props.in;u&&(!c||p)?o[s]=Q.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ui(a,"exit",e),enter:ui(a,"enter",e)}):!u&&c&&!p?o[s]=Q.cloneElement(a,{in:!1}):u&&c&&Q.isValidElement(A)&&(o[s]=Q.cloneElement(a,{onExited:n.bind(null,a),in:A.props.in,exit:ui(a,"exit",e),enter:ui(a,"enter",e)}))}}),o}var m8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},E8={component:"div",childFactory:function(t){return t}},cp=function(e){sp(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(f8(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var a=s.children,c=s.handleExited,u=s.firstRender;return{children:u?h8(o,c):C8(o,a,c),firstRender:!1}},n.handleExited=function(o,s){var a=lp(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var u=z({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,c=Ne(o,["component","childFactory"]),u=this.state.contextValue,A=m8(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?Q.createElement(eu.Provider,{value:u},A):Q.createElement(eu.Provider,{value:u},Q.createElement(s,c,A))},t}(Q.Component);cp.propTypes=process.env.NODE_ENV!=="production"?{component:f.any,children:f.node,appear:f.bool,enter:f.bool,exit:f.bool,childFactory:f.func}:{};cp.defaultProps=E8;const I8=cp;function eb(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:c,onExited:u,timeout:A}=e,[p,h]=M.useState(!1),C=Ge(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},I=Ge(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),M.useEffect(()=>{if(!c&&u!=null){const B=setTimeout(u,A);return()=>{clearTimeout(B)}}},[u,c,A]),g.jsx("span",{className:C,style:m,children:g.jsx("span",{className:I})})}process.env.NODE_ENV!=="production"&&(eb.propTypes={classes:f.object.isRequired,className:f.string,in:f.bool,onExited:f.func,pulsate:f.bool,rippleSize:f.number,rippleX:f.number,rippleY:f.number,timeout:f.number.isRequired});const B8=Vt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zn=B8,v8=["center","classes","className"];let Nu=e=>e,dI,gI,fI,pI;const zg=550,b8=80,y8=qt.keyframes(dI||(dI=Nu`
@@ -265,5 +265,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
265
265
  `),Gq)),$q=Ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>z({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Up(t,e.color),transition:`transform .${tf}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&qt.css(p0||(p0=Fs`
266
266
  width: auto;
267
267
  animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
268
- `),Kq)),jx=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ne(r,Yq),p=z({},r,{color:s,variant:u}),h=Jq(p),C=bt(),m={},I={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let B=a-100;C.direction==="rtl"&&(B=-B),I.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;C.direction==="rtl"&&(B=-B),I.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return g.jsxs(Xq,z({className:Ge(h.root,o),ownerState:p,role:"progressbar"},m,{ref:n},A,{children:[u==="buffer"?g.jsx(Zq,{className:h.dashed,ownerState:p}):null,g.jsx(_q,{className:h.bar1,ownerState:p,style:I.bar1}),u==="determinate"?null:g.jsx($q,{className:h.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(jx.propTypes={classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.number,valueBuffer:f.number,variant:f.oneOf(["buffer","determinate","indeterminate","query"])});const eJ=jx,tJ=Ae("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),Dx=()=>g.jsx(tJ,{children:g.jsx(eJ,{color:"primary"})}),nJ=e=>t=>g.jsx(Q.Suspense,{fallback:g.jsx(Dx,{}),children:g.jsx(e,{...t})}),Yp=({title:e})=>g.jsxs(y.Stack,{direction:"row",children:[g.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),rJ=Ae(j.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function Mx(e){return g.jsx(rJ,{...e})}const Gp=({children:e})=>{const t=Ct.useLocation(),{pathname:n}=t;return Q.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};Gp.propTypes={children:f.node};const oJ=Ae("div")({width:"100%",overflowX:"auto",display:"block"}),Kp=({title:e})=>g.jsx(y.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});Kp.propTypes={title:f.string.isRequired};var Ha=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Ha||{});const iJ=Jr().required(),sJ=Jr().oneOf(Object.values(Ha));function aJ(e){var S;const t=As.useQueryClient(),[n,r]=Q.useState(!1),[o,s]=Q.useState(()=>()=>Promise.resolve()),a=ce.useGetIdentity(),c=(S=a==null?void 0:a.data)==null?void 0:S.email,u=ce.useDataProvider(),A=Q.useCallback(()=>c?u.get("onboarding").then(O=>{var x;return(x=O==null?void 0:O.data)==null?void 0:x.value}):Promise.reject(),[u,c]),{data:p,isLoading:h,isError:C}=As.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[m,I]=Q.useState(()=>()=>Promise.resolve()),B=As.useMutation({mutationFn:m}),v=B.mutateAsync;return Q.useEffect(()=>{function O(){const x=te.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",x).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}I(()=>O)},[u,p,e,t,c]),Q.useEffect(()=>{r(te.isNil((p??{})[e]))},[p,e,r]),Q.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function lJ(e){const[t,n]=Pu("onboarding",{}),[r,o]=Q.useState(!1),[s,a]=Q.useState(()=>()=>Promise.resolve());return Q.useEffect(()=>{o(te.isNil((t??{})[e]))},[t,e,o]),Q.useEffect(()=>{a(()=>()=>(n(c=>te.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function cJ(){return{onboardingRequired:!1,acknowledgeOnboarding:Q.useRef(()=>Promise.resolve()).current}}function uJ(e,t){Mf({mode:sJ,topic:iJ}).validateSync({mode:e,topic:t});const n=aJ(t),r=lJ(t),o=cJ();switch(e){case Ha.USER:return n.loading?o:n.error?r:te.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Ha.BROWSER:return r;default:return o}}var Pa=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Pa||{});function AJ(e,t){var o;const n=te.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return te.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=te.chain(n.tips).clone().reject(p=>p.id===a).value(),u=te.find(n.tips,{id:a}),A=te.chain(u??{}).clone().extend(s).value();return c.push(A),te.extend(n,{tips:te.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=te.isString(s)?s:s.id,c=te.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return te.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=te.isString(s)?s:s.id,c=te.chain(n.tips).reject(C=>C.id===a).value(),u=te.find(n.tips,{id:a});if(te.isNil(u))return n;const A=te.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=te.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&te.chain(c).reject(C=>C.step<p).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),te.extend(n,{tips:te.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return te.extend(n,{onComplete:s})}case"RESTART":{const s=te.chain(n.tips).clone().map(a=>te.omit(a,"dismissed")).value();return te.extend(n,{tips:s,currentStep:0})}default:return n}}const kx=Q.createContext(void 0);function dJ(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=uJ(t,n),[s,a]=Q.useReducer(AJ,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=Q.useMemo(()=>({state:s,dispatch:a}),[s,a]);return Q.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),Q.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),g.jsx(kx.Provider,{value:c,children:e.children})}function Fx(){const e=Q.useContext(kx);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function gJ(){return Fx().state}function Lx(){return Fx().dispatch}function fJ(e){Mf({id:Jr().required(),step:IB().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=gJ(),c=te.find(s,{id:t}),{dismissed:u}=c??{},A=Lx(),p=Q.useCallback(()=>{A({type:Pa.DISMISS_TIP,payload:t})},[A,t]);return Q.useEffect(()=>{(te.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Pa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),Q.useEffect(()=>()=>{A({type:Pa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:te.chain(c??e).clone().extend({open:o&&!te.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function pJ(){const e=Lx();return Q.useCallback(()=>{e({type:Pa.RESTART})},[e])}function hJ(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=fJ({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=te.omit(e,["id","step","title","completeOnboarding"]);return g.jsx(zu,{...u,arrow:!0,open:c,title:g.jsxs(y.Stack,{gap:1,children:[g.jsx(y.Typography,{children:r}),g.jsx(y.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const CJ=y.styled(hJ)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${y.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${y.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${y.tooltipClasses.arrow}`]:{color:r.main}}});function mJ({label:e="ra.auth.sign_in",...t}){const n=j.useRecordContext(),[r,o]=Q.useState(!1),s=j.useAuthProvider(),a=Q.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return g.jsx(j.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:g.jsx(rr.VpnKey,{})})}const qp=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},EJ=(e,t)=>e&&e.data?{data:qp(e.data,t),total:e.total+1}:e,IJ=(e,t)=>e&&e.length>0?qp(e,t):e,BJ=(e,t)=>e&&e.data?{...e,data:qp(e.data,t),total:e.total+1}:e,vJ=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=As.useQueryClient(),u=j.useResourceContext(),A=j.useRedirect(),p=j.useNotify(),h=Q.useCallback(B=>{const S=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],O=>BJ(O,B),{updatedAt:S}),c.setQueriesData([u,"getMany"],O=>IJ(O,B),{updatedAt:S}),c.setQueriesData([u,"getManyReference"],O=>EJ(O,B),{updatedAt:S}),e(),p("ra.notification.created"),r!==void 0&&A(r,u,B.id,B),s&&s(B)},[e,s,c,u,p,A,r]),{save:C,...m}=j.useCreateController({mutationOptions:{onSuccess:h,onError:a}}),I=Q.useCallback(B=>{o?o(B,e):C&&C(B)},[o,C,e]);return g.jsx(j.CreateContextProvider,{value:{record:t,save:I,saving:m==null?void 0:m.saving,redirect:r},children:Q.cloneElement(n,{...n.props,toolbar:g.jsxs(wi,{children:[g.jsx(j.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:m==null?void 0:m.saving}),g.jsx(j.SaveButton,{type:"button",disabled:m==null?void 0:m.saving})]})})})},bJ={true:{_scrollToTop:!0},false:{}},yJ=Ae(y.Fab,{overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${j.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function QJ({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,onSubmit:u,onSuccess:A,onError:p,...h}){const[C,m]=Q.useState(!1),I=j.useTranslate(),B=j.useResourceContext(),{openDialog:v,closeDialog:S}=vi(),O=Q.useCallback(()=>v(B,()=>m(!0)),[v,B]),x=Q.useCallback(()=>S(B,()=>m(!1)),[S,B]),R=y.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[R?g.jsx(yJ,{...h,state:bJ[String(s)],color:"primary",className:Ge(j.CreateButtonClasses.floating,a),"aria-label":n&&I(n),onClick:O,children:g.jsx(Ze.PlusCircleOutlined,{})}):g.jsx(j.Button,{...h,sx:c,label:n,onClick:O,children:g.jsx(Ze.PlusCircleOutlined,{})}),g.jsx(y.Dialog,{open:C,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(vJ,{...h,redirect:o,record:r,onClose:x,onSubmit:u,onSuccess:A,onError:p})})]})}const xJ=({onClose:e,children:t})=>{const n=j.useNotify(),r=j.useRecordContext(),o=j.useResourceContext(),{id:s}=r,{isLoading:a,data:c}=j.useGetOne(o,{id:s}),u=Q.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:A,saving:p}=j.useEditController({resource:o,id:s,mutationMode:"pessimistic",mutationOptions:{onSuccess:u}});return g.jsx(j.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:Q.cloneElement(t,{toolbar:g.jsxs(wi,{children:[g.jsx(j.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(j.SaveButton,{type:"button"})]})})})};function wJ({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",...r}){const[o,s]=Q.useState(!1),{openDialog:a,closeDialog:c}=vi(),u=j.useResourceContext(),A=Q.useCallback(()=>a(u,()=>s(!0)),[a,u]),p=Q.useCallback(()=>c(u,()=>s(!1)),[c,u]);return g.jsxs(g.Fragment,{children:[g.jsx(j.Button,{label:n,onClick:A,children:g.jsx(rr.Edit,{})}),g.jsx(y.Dialog,{open:o,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(xJ,{onClose:p,children:r==null?void 0:r.children})})]})}function Nx(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ce.useListContext(e),A=ce.useTranslate(),p=Q.useCallback(()=>{u()},[u]);return g.jsx(TJ,{className:r,children:g.jsxs(OW,{"data-test":"bulk-actions-toolbar",className:Ge($n.toolbar,{[$n.collapsed]:c.length===0}),...ce.sanitizeListRestProps(o),children:[g.jsxs("div",{className:$n.title,children:[g.jsx(Ap,{className:$n.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:g.jsx(cu,{fontSize:"small"})}),g.jsx($v,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),g.jsx(j.TopToolbar,{className:$n.topToolbar,children:Q.Children.map(n,h=>Q.isValidElement(h)?Q.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ai="RaBulkActionsToolbar",$n={toolbar:`${ai}-toolbar`,topToolbar:`${ai}-topToolbar`,buttons:`${ai}-buttons`,collapsed:`${ai}-collapsed`,title:`${ai}-title`,icon:`${ai}-icon`},TJ=Ae("div",{name:ai,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${$n.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Es(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${$n.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${$n.buttons}`]:{},[`& .${$n.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${$n.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${$n.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),sg={p:0,m:0},h0={p:2,m:0,borderRadius:0,width:"100%"};function SJ(e){const{children:t}=e,[n,r]=M.useState(null),o=I=>{r(I.currentTarget)},s=()=>{r(null)},a=y.useMediaQuery(I=>I.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=j.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,m=M.useCallback(()=>{p(),r(null)},[p,r]);return g.jsx(y.Fade,{in:A!==void 0&&A.length>0,children:g.jsxs(y.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[g.jsx(y.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),g.jsx(y.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:g.jsxs(y.List,{sx:sg,children:[g.jsx(y.ListItem,{sx:sg,children:g.jsx(j.Button,{onClick:m,sx:h0,label:"ra.action.unselect",startIcon:g.jsx(cu,{}),children:g.jsx(cu,{})})}),M.Children.map(t,I=>{var B;return g.jsx(y.ListItem,{sx:sg,children:M.isValidElement(I)?M.cloneElement(I,{filterValues:c,resource:u,selectedIds:A,sx:h0,...(B=I.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const Vx=Q.createContext({});Vx.displayName="DatagridContext";const PJ=({children:e,value:t})=>g.jsx(Vx.Provider,{value:t,children:e}),C0=g.jsx(j.BulkDeleteButton,{}),Hx=M.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?j.PureDatagridBody:j.DatagridBody,header:o=j.DatagridHeader,children:s,className:a,empty:c=jJ,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=C0,hover:h,isRowSelectable:C,isRowExpandable:m,resource:I,rowClick:B,rowSx:v,rowStyle:S,size:O="small",sx:x,expandSingle:R=!1,...P}=e,{sort:k,data:F,isLoading:G,onSelect:K,onToggleItem:$,selectedIds:Y,setSort:ie,total:se}=ce.useListContext(e),X=!!p,Z=Q.useMemo(()=>({isRowExpandable:m,expandSingle:R}),[m,R]),H=Q.useRef(null);Q.useEffect(()=>{(!Y||Y.length===0)&&(H.current=null)},[JSON.stringify(Y)]);const J=Q.useCallback((L,_)=>{const V=F.map(le=>le.id),q=V.indexOf(H.current);if(H.current=_.target.checked?L:null,_.shiftKey&&q!==-1){const le=V.indexOf(L),pe=V.slice(Math.min(q,le),Math.max(q,le)+1),de=_.target.checked?$Y(Y,pe):fG(Y,pe);K(C?de.filter(ge=>C(F.find(he=>he.id===ge))):de)}else $(L)},[F,C,K,$,Y]);return G===!0?g.jsx(j.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:M.Children.count(s),size:O}):F==null||F.length===0||se===0?c||null:g.jsx(PJ,{value:Z,children:g.jsxs(j.DatagridRoot,{sx:x,className:Ge(j.DatagridClasses.root,a),children:[A!=null&&Q.isValidElement(A)?Q.cloneElement(A,{selectedIds:Y,total:se}):p!==!1?g.jsx(Nx,{children:Q.isValidElement(p)?p:C0}):null,g.jsx("div",{className:j.DatagridClasses.tableWrapper,children:g.jsxs(y.Table,{ref:t,className:j.DatagridClasses.table,size:O,...OJ(P),children:[m0(o,{children:s,sort:k,data:F,hasExpand:!!u,hasBulkActions:X,isRowSelectable:C,onSelect:K,resource:I,selectedIds:Y,setSort:ie},s),m0(r,{expand:u,rowClick:B,data:F,hasBulkActions:X,hover:h,onToggleItem:J,resource:I,rowSx:v,rowStyle:S,selectedIds:Y,isRowSelectable:C},s)]})})]})})}),m0=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,t,n):Q.createElement(e,t,n),RJ=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],OJ=e=>Object.keys(ce.sanitizeListRestProps(e)).filter(t=>!RJ.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});Hx.displayName="Datagrid";const jJ=g.jsx(j.ListNoResults,{}),DJ=Ae(Hx,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function MJ(e){return g.jsx(DJ,{...e})}const kJ=Ae("div")(({theme:e})=>({padding:e.spacing(2)}));function FJ({actions:e,className:t,...n}){const{hasCreate:r}=ce.useResourceDefinition(n),o=ce.useResourceContext(n),s=ce.useTranslate(),a=ce.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return g.jsxs(LJ,{className:t,children:[g.jsxs("div",{className:pi.message,children:[g.jsx(rr.Inbox,{className:pi.icon}),g.jsx(y.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&g.jsx(y.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),g.jsx(kJ,{className:pi.toolbar,children:e})]})}const kc="ApplicaEmpty",pi={message:`${kc}-message`,icon:`${kc}-icon`,toolbar:`${kc}-toolbar`},LJ=Ae("span",{name:kc,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${pi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${pi.icon}`]:{width:"9em",height:"9em"},[`& .${pi.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),NJ=g.jsx(j.ListActions,{}),VJ=g.jsx(j.Pagination,{}),HJ=g.jsx(j.Empty,{}),zJ=vG,WJ=e=>{const{actions:t=NJ,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=VJ,children:u,className:A,component:p=zJ,title:h,empty:C=HJ,...m}=e,{defaultTitle:I,data:B,error:v,isLoading:S,filterValues:O,resource:x}=ce.useListContext(e);if(!u||!B&&S&&s)return null;const R=()=>g.jsxs("div",{className:wo.main,children:[(r||t)&&g.jsx(j.ListToolbar,{className:wo.actions,filters:r,actions:t,hasCreate:a}),!v&&g.jsx(p,{className:wo.content,children:o&&u&&M.isValidElement(u)?Q.cloneElement(u,{bulkActionButtons:o}):u}),v?g.jsx(Fp,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),P=()=>C!==!1&&Q.cloneElement(C,{className:wo.noResults,hasCreate:a}),k=!S&&(B==null?void 0:B.length)===0&&!Object.keys(O).length&&C!==!1;return g.jsxs(UJ,{className:Ge("list-page",A),...m,children:[g.jsx(j.Title,{title:h,defaultTitle:I,preferenceKey:`${x}.list.title`}),k?P():R(),n]})},Ea="RaList",wo={main:`${Ea}-main`,content:`${Ea}-content`,actions:`${Ea}-actions`,noResults:`${Ea}-noResults`},UJ=Ae("div",{name:Ea,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${wo.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${wo.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${wo.actions}`]:{},[`& .${wo.noResults}`]:{}})),YJ=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=GJ,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...h})=>g.jsx(ce.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:g.jsx(WJ,{...h})}),GJ={},KJ=qa(YJ,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function qJ(e){return g.jsx(er,{content:!1,children:g.jsx(KJ,{...e})})}function JJ(){const e=j.useRefresh(),t=j.useNotify(),n=j.useResourceContext(),r=j.useUnselectAll(n),{selectedIds:o,data:s}=j.useListContext(),a=j.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=j.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Pr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=Q.useCallback(()=>{u()},[u]);return g.jsx(j.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:g.jsx(rr.Email,{})})}function XJ(){const e=j.useRefresh(),t=j.useNotify(),n=j.useResourceContext(),r=j.useUnselectAll(n),{selectedIds:o,data:s}=j.useListContext(),a=j.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)).concat([a]),[u,{isLoading:A}]=j.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=Q.useCallback(()=>{u()},[u]);return g.jsx(j.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(rr.Drafts,{})})}function ZJ(e){const t=j.useRecordContext(e),n=j.useResourceContext(e),r=j.useRedirect(),o=j.useNotify(),s=j.useTranslate(),[a]=j.useLocaleState(),c=Q.useMemo(()=>t!=null&&t.readed?Pr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=j.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Pr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=Q.useCallback(()=>u(),[u]);return g.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(y.Typography,{variant:"subtitle1",children:g.jsxs(y.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(y.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&g.jsx(y.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function _J({...e}){const t=y.useTheme(),{mode:n,colorize:r,density:o}=Q.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?y.darken:y.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return g.jsxs(j.Datagrid,{...e,rowSx:s,children:[g.jsx(ZJ,{source:"notification",sortable:!1}),g.jsx(yb,{source:"created"}),g.jsxs(Bi,{children:[g.jsx(JJ,{}),g.jsx(XJ,{})]})]})}const $J=Ae(j.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),Ec={width:"1.5rem",alignSelf:"center"};function eX({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...h}){const{getCurrentDialog:C}=vi(),m=ce.useResourceContext(h),I=C(),B=ce.useRecordContext(),v=r||B,S=lt.get(v,e||"");return g.jsxs(y.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:O=>({pt:1,pb:1,borderBottom:`1px solid ${O.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[g.jsxs(y.Stack,{direction:"row",alignItems:"start",children:[c&&(Q.isValidElement(c)?Q.cloneElement(c,{style:Ec}):Q.createElement(c,{style:Ec})),g.jsx(ce.FieldTitle,{label:t,source:e,resource:I||m})]}),g.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[a?Q.isValidElement(a)?Q.cloneElement(a,{record:v,resource:m,value:S}):Q.createElement(a,{source:e,record:v,resource:m,value:S}):g.jsx(y.Typography,{variant:n,children:S}),u&&(Q.isValidElement(u)?Q.cloneElement(u,{style:Ec}):Q.createElement(u,{style:Ec})),A&&g.jsx(y.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const zx=({children:e,...t})=>{const n=bt();return g.jsx(er,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:g.jsx(y.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};zx.propTypes={children:f.node};const il=({version:e,name:t,copy:n,children:r,logo:o,background:s=fu})=>g.jsxs(y.Box,{sx:{minHeight:"100vh"},children:[Q.isValidElement(s)?s:Q.createElement(s),g.jsxs(y.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{ml:3},children:o||g.jsx(Yp,{title:t})}),g.jsxs(y.Grid,{item:!0,xs:12,children:[g.jsx(y.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:g.jsx(y.Grid,{item:!0,children:g.jsx(zx,{children:r})})}),g.jsx(y.Grid,{item:!0,sx:{pb:1},children:g.jsx(bp,{name:t,copy:n,version:e})})]})]})]});il.propTypes={children:f.node,version:f.string,name:f.string,copy:f.string,background:f.oneOfType([f.node,f.func,f.object])};const Wx=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ce.useTranslate(),a=ce.useAuthProvider(),c=ce.useNotify(),u=Ct.useNavigate(),{token:A}=Ct.useParams();return Q.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),te.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),te.delay(()=>u("/login"),1e3)})},[A]),g.jsx(il,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:s("ra.auth.activate")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};Wx.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};function Ux({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=g.jsx(fu,{})}){const[u,A]=ce.useSafeSetState(!1),p=ce.useLogin(),h=ce.useTranslate(),C=ce.useNotify(),m=ce.useCheckAuth(),I=Ct.useNavigate();Q.useEffect(()=>{m({},!1).then(()=>{I("/")}).catch(()=>{})},[m,I]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(S=>{A(!1),C(typeof S=="string"?S:typeof S>"u"||!S.message?"ra.auth.sign_in_error":S.message,{type:"error",messageArgs:{_:typeof S=="string"?S:S&&S.message?S.message:void 0}})})};return g.jsx(il,{name:t,version:e,copy:n,logo:r,background:c,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:"Login"}),s&&g.jsx(y.Typography,{component:Ct.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(ce.Form,{onSubmit:B,children:[g.jsxs(y.Grid,{container:!0,children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Cr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ce.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Cr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ce.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(y.Link,{variant:"h6",component:Ct.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(y.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const Yx=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=Q.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),p=ce.useAuthProvider(),h=({email:C})=>{a(!0),p.recover(C).then(m=>{const I=`ra.auth.recover_${m.responseCode}`,B=m.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(m=>{A(m,{type:"error"})}).finally(()=>a(!1))};return g.jsx(il,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(j.Form,{onSubmit:h,children:[g.jsx(y.Grid,{container:!0,children:g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"email",validate:[ce.required(),ce.email()]})})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(y.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};Yx.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};const Gx=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=Q.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),p=ce.useAuthProvider(),h=C=>{a(!0),p.register(C).then(m=>{const I=`ra.auth.register_${m.responseCode}`,B=m.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(m=>{A(m,{type:"error"})}).finally(()=>a(!1))};return g.jsx(il,{name:e,copy:t,logo:r,background:o,version:n,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:c("ra.auth.register.title")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(j.Form,{onSubmit:h,children:[g.jsxs(y.Grid,{container:!0,children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"name",label:c("ra.register.name"),validate:ce.required()})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"email",type:"email",validate:[ce.required(),ce.email()]})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"password",type:"password",validate:ce.required()})})]}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};Gx.propTypes={name:f.string.isRequired,version:f.string.isRequired};function Kx(){const e=Q.useCallback(()=>location.reload(),[]);return g.jsx(y.Container,{children:g.jsxs(y.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[g.jsx("img",{src:AQ,style:{width:"100%",maxWidth:450}}),g.jsx(y.Typography,{variant:"h2",children:"Ops! An error occurred..."}),g.jsx(y.Typography,{children:"We're fixing the problem. Please try again later."}),g.jsx(y.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const tX=e=>({button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${ze(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${ze(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${ze(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${ze(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${ze(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${ze(e.palette.info.main,.2)}`,success:`0 0 0 2px ${ze(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${ze(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${ze(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${ze(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${ze(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${ze(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${ze(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${ze(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${ze(e.palette.grey[500],.2)}`});function nr(e,t){nX(e)&&(e="100%");var n=rX(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function nX(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rX(e){return typeof e=="string"&&e.indexOf("%")!==-1}function oX(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ic(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ag(e){return e.length===1?"0"+e:String(e)}function iX(e,t,n){return{r:nr(e,255)*255,g:nr(t,255)*255,b:nr(n,255)*255}}function lg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sX(e,t,n){var r,o,s;if(e=nr(e,360),t=nr(t,100),n=nr(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=lg(c,a,e+1/3),o=lg(c,a,e),s=lg(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function aX(e,t,n){e=nr(e,255),t=nr(t,255),n=nr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function lX(e,t,n){e=nr(e,360)*6,t=nr(t,100),n=nr(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],p=[c,n,n,a,s,s][u],h=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:h*255}}function cX(e,t,n,r){var o=[ag(Math.round(e).toString(16)),ag(Math.round(t).toString(16)),ag(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function E0(e){return jn(e)/255}function jn(e){return parseInt(e,16)}var I0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function fa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=dX(e)),typeof e=="object"&&(Gr(e.r)&&Gr(e.g)&&Gr(e.b)?(t=iX(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gr(e.h)&&Gr(e.s)&&Gr(e.v)?(r=Ic(e.s),o=Ic(e.v),t=lX(e.h,r,o),a=!0,c="hsv"):Gr(e.h)&&Gr(e.s)&&Gr(e.l)&&(r=Ic(e.s),s=Ic(e.l),t=sX(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=oX(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var uX="[-\\+]?\\d+%?",AX="[-\\+]?\\d*\\.\\d+%?",To="(?:".concat(AX,")|(?:").concat(uX,")"),cg="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),ug="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),fr={CSS_UNIT:new RegExp(To),rgb:new RegExp("rgb"+cg),rgba:new RegExp("rgba"+ug),hsl:new RegExp("hsl"+cg),hsla:new RegExp("hsla"+ug),hsv:new RegExp("hsv"+cg),hsva:new RegExp("hsva"+ug),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function dX(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(I0[e])e=I0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fr.hex8.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),a:E0(n[4]),format:t?"name":"hex8"}:(n=fr.hex6.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),format:t?"name":"hex"}:(n=fr.hex4.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),a:E0(n[4]+n[4]),format:t?"name":"hex8"}:(n=fr.hex3.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Gr(e){return!!fr.CSS_UNIT.exec(String(e))}var Bc=2,B0=.16,gX=.05,fX=.05,pX=.15,qx=5,Jx=4,hX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function v0(e){var t=e.r,n=e.g,r=e.b,o=aX(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function vc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(cX(t,n,r,!1))}function CX(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function b0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bc*t:Math.round(e.h)+Bc*t:r=n?Math.round(e.h)+Bc*t:Math.round(e.h)-Bc*t,r<0?r+=360:r>=360&&(r-=360),r}function y0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-B0*t:t===Jx?r=e.s+B0:r=e.s+gX*t,r>1&&(r=1),n&&t===qx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Q0(e,t,n){var r;return n?r=e.v+fX*t:r=e.v-pX*t,r>1&&(r=1),Number(r.toFixed(2))}function x0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=fa(e),o=qx;o>0;o-=1){var s=v0(r),a=vc(fa({h:b0(s,o,!0),s:y0(s,o,!0),v:Q0(s,o,!0)}));n.push(a)}n.push(vc(r));for(var c=1;c<=Jx;c+=1){var u=v0(r),A=vc(fa({h:b0(u,c),s:y0(u,c),v:Q0(u,c)}));n.push(A)}return t.theme==="dark"?hX.map(function(p){var h=p.index,C=p.opacity,m=vc(CX(fa(t.backgroundColor||"#141414"),fa(n[h]),C*100));return m}):n}var Ag={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Kt={},Fc={};Object.keys(Ag).forEach(function(e){Kt[e]=x0(Ag[e]),Kt[e].primary=Kt[e][5],Fc[e]=x0(Ag[e],{theme:"dark",backgroundColor:"#141414"}),Fc[e].primary=Fc[e][5]});Kt.red;Kt.volcano;Kt.gold;Kt.orange;Kt.yellow;Kt.lime;Kt.green;Kt.cyan;Kt.blue;Kt.geekblue;Kt.purple;Kt.magenta;Kt.grey;Kt.grey;const Xx=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};Xx.propTypes={colors:f.object};const mX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},EX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},IX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},BX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},vX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},bX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},yX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},QX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Zx=(e,t,n)=>{switch(t){case"theme1":return mX(e,n);case"theme2":return EX(e,n);case"theme3":return IX(e,n);case"theme4":return BX(e,n);case"theme5":return vX(e,n);case"theme6":return bX(e,n);case"theme7":return yX(e,n);case"theme8":return QX(e,n);default:return Xx(e)}};Zx.propTypes={colors:f.object,presetColor:f.any};const xX=(e,t)=>{const n=e==="dark"?Fc:Kt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Zx(n,t,e);return hf({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?ze(a.grey[900],.87):a.grey[700],secondary:e==="dark"?ze(a.grey[900],.45):a.grey[500],disabled:e==="dark"?ze(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?ze(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},wX=e=>({htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}});function TX(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function SX(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function PX(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(Ze.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function ei({color:e,theme:t}){const n=rn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:ze(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function RX(e){const t=ei({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":ei({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":ei({color:"secondary",theme:e}),"&.MuiAlert-borderError":ei({color:"error",theme:e}),"&.MuiAlert-borderSuccess":ei({color:"success",theme:e}),"&.MuiAlert-borderInfo":ei({color:"info",theme:e}),"&.MuiAlert-borderWarning":ei({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function OX(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function jX(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function ti({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function DX(e){const t=ti({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":ti({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":ti({color:"secondary",theme:e}),"&.MuiBadge-colorError":ti({color:"error",theme:e}),"&.MuiBadge-colorInfo":ti({color:"info",theme:e}),"&.MuiBadge-colorSuccess":ti({color:"success",theme:e}),"&.MuiBadge-colorWarning":ti({color:"warning",theme:e})}}}}}function $e({variant:e,color:t,theme:n}){const r=rn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=Ss(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${ze(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${ze(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function MX(e){const t=$e({variant:"dashed",color:"primary",theme:e}),n=$e({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":$e({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":$e({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":$e({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":$e({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":$e({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":$e({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":$e({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":$e({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":$e({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":$e({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":$e({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":$e({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:$e({variant:"contained",color:"primary",theme:e}),containedSecondary:$e({variant:"contained",color:"secondary",theme:e}),containedError:$e({variant:"contained",color:"error",theme:e}),containedSuccess:$e({variant:"contained",color:"success",theme:e}),containedInfo:$e({variant:"contained",color:"info",theme:e}),containedWarning:$e({variant:"contained",color:"warning",theme:e}),outlinedPrimary:$e({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:$e({variant:"outlined",color:"secondary",theme:e}),outlinedError:$e({variant:"outlined",color:"error",theme:e}),outlinedSuccess:$e({variant:"outlined",color:"success",theme:e}),outlinedInfo:$e({variant:"outlined",color:"info",theme:e}),outlinedWarning:$e({variant:"outlined",color:"warning",theme:e}),textPrimary:$e({variant:"text",color:"primary",theme:e}),textSecondary:$e({variant:"text",color:"secondary",theme:e}),textError:$e({variant:"text",color:"error",theme:e}),textSuccess:$e({variant:"text",color:"success",theme:e}),textInfo:$e({variant:"text",color:"info",theme:e}),textWarning:$e({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function kX(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function FX(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function LX(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Zi({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function NX(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function dg(e){const t=NX(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function VX(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(Ze.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(Ze.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...dg("small")},"&.size-medium":{...dg("medium")},"&.size-large":{...dg("large")}},colorPrimary:Zi({color:"primary",theme:e}),colorSecondary:Zi({color:"secondary",theme:e}),colorSuccess:Zi({color:"success",theme:e}),colorWarning:Zi({color:"warning",theme:e}),colorInfo:Zi({color:"info",theme:e}),colorError:Zi({color:"error",theme:e})}}}}function _i({color:e,theme:t}){const n=rn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function On({color:e,theme:t}){const n=rn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function HX(e){const t=On({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":_i({color:"primary",theme:e}),"&.MuiChip-colorSecondary":_i({color:"secondary",theme:e}),"&.MuiChip-colorError":_i({color:"error",theme:e}),"&.MuiChip-colorInfo":_i({color:"info",theme:e}),"&.MuiChip-colorSuccess":_i({color:"success",theme:e}),"&.MuiChip-colorWarning":_i({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":On({color:"primary",theme:e}),"&.MuiChip-lightSecondary":On({color:"secondary",theme:e}),"&.MuiChip-lightError":On({color:"error",theme:e}),"&.MuiChip-lightInfo":On({color:"info",theme:e}),"&.MuiChip-lightSuccess":On({color:"success",theme:e}),"&.MuiChip-lightWarning":On({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":On({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":On({color:"secondary",theme:e}),"&.MuiChip-combinedError":On({color:"error",theme:e}),"&.MuiChip-combinedInfo":On({color:"info",theme:e}),"&.MuiChip-combinedSuccess":On({color:"success",theme:e}),"&.MuiChip-combinedWarning":On({color:"warning",theme:e})}}}}}function zX(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:ze("#000",.7)}}}}}}function WX(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function UX(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function $i({color:e,theme:t}){const n=rn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=Ss(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${ze(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${ze(r,.9)}`}}}function YX(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":$i({color:"primary",theme:e}),"&.MuiFab-secondary":$i({color:"secondary",theme:e}),"&.Mui-error":$i({color:"error",theme:e}),"&.MuiFab-success":$i({color:"success",theme:e}),"&.MuiFab-info":$i({color:"info",theme:e}),"&.MuiFab-warning":$i({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function GX(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function KX(){return{MuiInputBase:{styleOverrides:{}}}}function qX(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function JX(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function XX(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function ZX(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function _X(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function $X(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function eZ(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function ni({variant:e,theme:t}){const n=rn(t,e),{light:r}=n,o=Ss(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function tZ(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...ni({variant:"primary",theme:e}),"&.Mui-error":{...ni({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:ni({variant:"secondary",theme:e}),colorError:ni({variant:"error",theme:e}),colorWarning:ni({variant:"warning",theme:e}),colorInfo:ni({variant:"info",theme:e}),colorSuccess:ni({variant:"success",theme:e})}}}}function nZ(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=rn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function rZ(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function oZ(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function es({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function iZ(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function gg(e){const t=iZ(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function sZ(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(y.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...gg("small")},"&.size-medium":{...gg("medium")},"&.size-large":{...gg("large")}},colorPrimary:es({color:"primary",theme:e}),colorSecondary:es({color:"secondary",theme:e}),colorSuccess:es({color:"success",theme:e}),colorWarning:es({color:"warning",theme:e}),colorInfo:es({color:"info",theme:e}),colorError:es({color:"error",theme:e})}}}}function ts({color:e,theme:t}){const n=rn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function aZ(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":ts({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":ts({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":ts({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":ts({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":ts({color:"info",theme:e}),"&.MuiSlider-thumbColorError":ts({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function lZ(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function fg(e,t){const n=lZ(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function cZ(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...fg(e,"medium")},sizeLarge:{...fg(e,"large")},sizeSmall:{...fg(e,"small")}}}}}function uZ(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function AZ(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function dZ(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function gZ(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function fZ(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function pZ(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function hZ(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function CZ(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function mZ(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function EZ(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function IZ(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function BZ(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function vZ(e){return lt.merge(TX(e),SX(e),PX(e),RX(e),OX(),jX(e),DX(e),MX(e),kX(),FX(),LX(),VX(e),HX(e),zX(),WX(e),UX(),YX(e),GX(e),KX(),qX(e),JX(),XX(),ZX(e),_X(e),$X(),eZ(),tZ(e),nZ(),rZ(e),oZ(e),sZ(e),aZ(e),cZ(e),uZ(e),AZ(e),dZ(e),gZ(e),fZ(e),pZ(),hZ(),CZ(),mZ(e),EZ(e),IZ(),BZ())}const rA=({themeOverrides:e,children:t})=>{const n=Qn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=Q.useMemo(()=>xX(o,s),[o,s]),u=Q.useMemo(()=>wX(a),[a]),A=Q.useMemo(()=>tX(c),[c]),p=Q.useMemo(()=>te.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=hf(p),C=te.cloneDeep(h.components??{});return h.components=te.merge(vZ(h),C),g.jsx(y.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(J0,{theme:h,children:[g.jsx(y.CssBaseline,{}),t]})})};rA.propTypes={children:f.node,themeOverrides:f.oneOfType([f.object,f.func])};function bZ({children:e,theme:t,...n}){return g.jsx(j.CoreAdminContext,{...n,children:g.jsx(rA,{themeOverrides:t,children:g.jsx(Gp,{children:e})})})}function _x(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:h,authCallbackPage:C,menu:m,notification:I,queryClient:B,requireAuth:v,store:S=j.localStorageStore(),ready:O,theme:x,title:R="React Admin"}=e;return g.jsx(bZ,{authProvider:t,dataProvider:s,i18nProvider:u,store:S,history:c,queryClient:B,theme:x,children:g.jsx(j.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:m,catchAll:n,title:R,loading:p,loginPage:h,authCallbackPage:C,notification:I,requireAuth:v,ready:O,children:r})})}var za,Wa,ps;class yZ{constructor(t){Wr(this,za,void 0);Wr(this,Wa,void 0);Wr(this,ps,new Set);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");po(this,Wa,n),po(this,za,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;hn(this,ps).has(a)||(hn(this,ps).add(a),fetch(`${hn(this,Wa)}/ui/error-log`,{method:"PUT",headers:hn(this,za),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(()=>{console.log("Unable to send error to server"),hn(this,ps).delete(a)}))}}za=new WeakMap,Wa=new WeakMap,ps=new WeakMap;class $x{constructor({catch:t,display:n,log:r,error:o}){oa(this,"catch");oa(this,"display");oa(this,"log");oa(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const QZ=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new $x({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=M.useMemo(()=>o.errorHandler?o.errorHandler:new yZ({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=M.useCallback(function(u,...A){var h;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.replace(/%s/g,()=>A.shift()));if(p.isCatched())return!1;p.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return M.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};var Ua,Ya,di;class xZ{constructor(t){Wr(this,Ua,void 0);Wr(this,Ya,void 0);Wr(this,di,[]);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");po(this,Ya,n),po(this,Ua,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!te.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!te.isString(r)||te.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!te.some(hn(this,di),o=>te.isEqual(o,{code:n,lang:r}))){hn(this,di).push({code:n,lang:r}),fetch(`${hn(this,Ya)}/i18n/message`,{method:"put",headers:hn(this,Ua),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),po(this,di,te.reject(hn(this,di),s=>te.isEqual(s,{code:n,lang:r})))});return}}}Ua=new WeakMap,Ya=new WeakMap,di=new WeakMap;function e1(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new xZ({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,m)=>({...C,[m.lang]:{...C[m.lang]||{},[m.code]:m.text}}),{})),p=(h,C,m)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(te.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:m}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,m]=h;function I(B){return te.get(m,B,{})}return gO(I,n,C,{allowMissing:r||o,onMissingKey:p})})}window.React=Q;const wZ=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=Q.useState({loading:!0,languages:null});return Q.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function t1(e){const[t,n]=Q.useState(),r=xB(e);return Q.useEffect(()=>{e1(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const TZ=new As.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function SZ({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=g.jsx(Ux,{version:"0.0.0",name:"Applica",redirectTo:"/",background:g.jsx(fu,{})}),menu:u,name:A,copy:p,version:h="0.0.0",dataProvider:C,authProvider:m,errorHandler:I,error:B,enableNotification:v=!1,enableRegistration:S=!1,enablePasswordRecover:O=!1,enableThemeToggler:x=!1,queryClient:R=TZ,background:P,notificationAPI:k="entities/notification",...F}){QZ({apiUrl:n,errorHandler:I,catcherFn:Y=>{const ie=Y==null?void 0:Y.toString(),X=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(H=>ie==null?void 0:ie.includes(H));return new $x({catch:X,display:!X,log:!X,error:ie})}});const G=Q.useMemo(()=>Q.isValidElement(c)?Q.cloneElement(c,{name:A,copy:p,logo:s,version:h,background:P,enableRegistration:S,enablePasswordRecover:O}):c,[c,A,h,p,P,s,S,O]),K=Q.useMemo(()=>Y=>{const ie=A?g.jsx(Yp,{title:A}):s,se=A?g.jsx(Kp,{title:A}):a;return g.jsx(Ox,{...Y,name:A,copy:p,enableThemeToggler:x,version:h,logoMain:ie,logoIcon:se,notification:k,enableNotification:v,error:B})},[s,a,A,h,B,k,v]),$=t1({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return $===void 0?g.jsx(g.Fragment,{}):$.error?g.jsx(Wc,{initialConfig:t,children:g.jsx(rA,{themeOverrides:e,children:g.jsx(Kx,{})})}):g.jsx(vf,{children:g.jsx(tB,{menu:u,children:g.jsx(Wc,{initialConfig:t,children:g.jsx(_x,{theme:e,layout:K,notification:Mx,queryClient:R,dataProvider:C,authProvider:m,i18nProvider:$,loginPage:G,...F})})})})}Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>j.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>j.BooleanField});Object.defineProperty(exports,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>j.BulkDeleteWithConfirmButton});Object.defineProperty(exports,"Button",{enumerable:!0,get:()=>j.Button});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>j.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>j.Confirm});Object.defineProperty(exports,"CreateButton",{enumerable:!0,get:()=>j.CreateButton});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>j.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>j.CustomRoutes});Object.defineProperty(exports,"DeleteWithConfirmButton",{enumerable:!0,get:()=>j.DeleteWithConfirmButton});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>j.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>j.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>j.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>j.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>j.FilterButton});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>j.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>j.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>j.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>j.I18nContextProvider});Object.defineProperty(exports,"ListToolbar",{enumerable:!0,get:()=>j.ListToolbar});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>j.LoadingIndicator});Object.defineProperty(exports,"Pagination",{enumerable:!0,get:()=>j.Pagination});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>j.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>j.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>j.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>j.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>j.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>j.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>j.SaveButton});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>j.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>j.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>j.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>j.TabbedFormTabs});Object.defineProperty(exports,"TopToolbar",{enumerable:!0,get:()=>j.TopToolbar});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>j.UrlField});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>j.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>j.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>j.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>j.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>j.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>j.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>j.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>j.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>j.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>j.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>j.useAuthProvider});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>j.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>j.useChoicesContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>j.useCreateController});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>j.useDataProvider});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>j.useEditContext});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>j.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>j.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>j.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>j.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>j.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>j.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>j.useListContext});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>j.useLocaleState});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>j.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>j.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>j.useRecordContext});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>j.useRefresh});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>j.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>j.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>j.useResourceDefinitions});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>j.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>j.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>j.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>j.useSimpleFormIteratorItem});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>j.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>j.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>j.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>j.useUnselectAll});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>j.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>j.withLifecycleCallbacks});exports.ActionsField=H6;exports.ActionsMenu=Bi;exports.ActivatePage=Wx;exports.Admin=_x;exports.AnimateButton=Xv;exports.AppBarStyled=TB;exports.AppConfigContext=Bf;exports.AppConfigProvider=vf;exports.ApplicaAdmin=SZ;exports.ArrayInput=V6;exports.AttachmentField=Ib;exports.AttachmentInput=dL;exports.AuthBackground=fu;exports.AutocompleteArrayInput=fL;exports.AutocompleteInput=hL;exports.Avatar=ka;exports.BooleanInput=mL;exports.Breadcrumbs=ib;exports.BulkActionsToolbar=Nx;exports.BulkActionsToolbarClasses=$n;exports.BulkFloatingActionsToolbar=SJ;exports.CardForm=Cb;exports.ChangePasswordForm=fp;exports.CircularWithLabel=gb;exports.CircularWithPath=fb;exports.CoverField=vb;exports.Create=qL;exports.CreateInDialogButton=QJ;exports.Datagrid=MJ;exports.DateAgoField=yb;exports.DateField=X6;exports.DateInput=IL;exports.DateTimeInput=vL;exports.Dot=Vu;exports.Drawer=wx;exports.DrawerHeader=mQ;exports.DrawerHeaderStyled=CQ;exports.DrawerToggle=hy;exports.Edit=XL;exports.EditInDialogButton=wJ;exports.EmailField=_6;exports.Empty=FJ;exports.EmptyClasses=pi;exports.FileField=Qb;exports.FileInput=yL;exports.Footer=bp;exports.FormHeader=$L;exports.FunctionField=eL;exports.GenericErrorPage=Kx;exports.Header=Cy;exports.HeaderButton=RM;exports.HeaderIconButton=D6;exports.HeaderNotification=my;exports.HeaderProfile=Ey;exports.HeaderSpacer=By;exports.HeaderToggleButton=Rs;exports.HorizontalBar=Tx;exports.IconButton=Ps;exports.ImageField=Bb;exports.ImageInput=QL;exports.ImpersonateUserButton=mJ;exports.LabeledArrayInput=Eb;exports.LabeledInput=un;exports.Layout=Ox;exports.LayoutContent=dQ;exports.LayoutProvider=gy;exports.LayoutWrapper=gQ;exports.LinearWithIcon=pb;exports.LinearWithLabel=hb;exports.List=qJ;exports.ListItem=eX;exports.Loadable=nJ;exports.Loader=Dx;exports.LoadingButton=gp;exports.LocalStorage=yB;exports.LocalizedTextField=nL;exports.LocalizedTextInput=TL;exports.LoginPage=Ux;exports.Logo=Lp;exports.LongForm=Rt;exports.MainCard=er;exports.MainIcon=Yp;exports.MenuConfigContext=yf;exports.MenuConfigProvider=tB;exports.MenuPopover=Ef;exports.NavGroup=Wp;exports.NavMenu=Sx;exports.Navigation=Px;exports.Notification=Mx;exports.NotificationList=_J;exports.NumberInput=PL;exports.OnboardingModes=Ha;exports.OnboardingProvider=dJ;exports.OnboardingTip=CJ;exports.RawTableFormIterator=Ay;exports.ReadonlyField=sL;exports.RecordInput=RL;exports.RecoverPage=Yx;exports.ReferenceArrayInput=OL;exports.ReferenceInput=jL;exports.ReferenceManyField=wb;exports.ReferenceManyInput=DL;exports.RegisterPage=Gx;exports.ResponsiveSection=Iy;exports.ScrollTop=Gp;exports.ScrollX=oJ;exports.SearchInput=kL;exports.SelectArrayInput=LL;exports.SelectInput=VL;exports.Show=p9;exports.SimpleBar=zp;exports.SimpleForm=mb;exports.SimpleFormIterator=C9;exports.SimpleList=$J;exports.SizeField=cL;exports.SmallIcon=Kp;exports.SmartTextInput=HL;exports.TabbedForm=mp;exports.TableFormIterator=KV;exports.TableFormIteratorContext=Qf;exports.TableFormIteratorItem=ry;exports.TableFormIteratorItemContext=xf;exports.TextField=xb;exports.TextInput=Cr;exports.ThemeConfigContext=bf;exports.ThemeConfigProvider=Wc;exports.ThemeProvider=rA;exports.ThemeToggler=Rx;exports.TimeInput=YL;exports.Toolbar=wi;exports.Tooltip=zu;exports.Transitions=Do;exports.createI18nProvider=e1;exports.getLocalizedValue=Sf;exports.localizedValueHasAllLocales=Tf;exports.parseTime=cB;exports.useAppConfig=vi;exports.useBreadcrumbs=sB;exports.useGetLocalizedValue=wM;exports.useI18nLanguages=wZ;exports.useI18nProvider=t1;exports.useLayoutContext=vp;exports.useLayoutDispatch=XV;exports.useLayoutDrawerState=Ti;exports.useLayoutLogoState=py;exports.useLayoutMediaState=Nn;exports.useLayoutNotificationsState=Zu;exports.useLayoutState=Ms;exports.useLayoutThemeState=ZV;exports.useLocalStorage=Pu;exports.useLocalizedValue=xM;exports.useMemoizedObject=xB;exports.useMenu=wf;exports.useMenuConfig=mi;exports.usePopoverState=Ru;exports.useRefDimensions=SM;exports.useResourceDefaultValues=KL;exports.useResourceTitle=kf;exports.useRestartOnboarding=pJ;exports.useSx=Er;exports.useTableFormIterator=wB;exports.useTableFormIteratorItem=PM;exports.useThemeConfig=Qn;exports.uuid=SD;exports.withLayoutProvider=fy;
268
+ `),Kq)),jx=M.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ne(r,Yq),p=z({},r,{color:s,variant:u}),h=Jq(p),C=bt(),m={},I={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let B=a-100;C.direction==="rtl"&&(B=-B),I.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;C.direction==="rtl"&&(B=-B),I.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return g.jsxs(Xq,z({className:Ge(h.root,o),ownerState:p,role:"progressbar"},m,{ref:n},A,{children:[u==="buffer"?g.jsx(Zq,{className:h.dashed,ownerState:p}):null,g.jsx(_q,{className:h.bar1,ownerState:p,style:I.bar1}),u==="determinate"?null:g.jsx($q,{className:h.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(jx.propTypes={classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.number,valueBuffer:f.number,variant:f.oneOf(["buffer","determinate","indeterminate","query"])});const eJ=jx,tJ=Ae("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),Dx=()=>g.jsx(tJ,{children:g.jsx(eJ,{color:"primary"})}),nJ=e=>t=>g.jsx(Q.Suspense,{fallback:g.jsx(Dx,{}),children:g.jsx(e,{...t})}),Yp=({title:e})=>g.jsxs(y.Stack,{direction:"row",children:[g.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),rJ=Ae(j.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function Mx(e){return g.jsx(rJ,{...e})}const Gp=({children:e})=>{const t=Ct.useLocation(),{pathname:n}=t;return Q.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};Gp.propTypes={children:f.node};const oJ=Ae("div")({width:"100%",overflowX:"auto",display:"block"}),Kp=({title:e})=>g.jsx(y.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});Kp.propTypes={title:f.string.isRequired};var Ha=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Ha||{});const iJ=Jr().required(),sJ=Jr().oneOf(Object.values(Ha));function aJ(e){var S;const t=As.useQueryClient(),[n,r]=Q.useState(!1),[o,s]=Q.useState(()=>()=>Promise.resolve()),a=ce.useGetIdentity(),c=(S=a==null?void 0:a.data)==null?void 0:S.email,u=ce.useDataProvider(),A=Q.useCallback(()=>c?u.get("onboarding").then(O=>{var x;return(x=O==null?void 0:O.data)==null?void 0:x.value}):Promise.reject(),[u,c]),{data:p,isLoading:h,isError:C}=As.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[m,I]=Q.useState(()=>()=>Promise.resolve()),B=As.useMutation({mutationFn:m}),v=B.mutateAsync;return Q.useEffect(()=>{function O(){const x=te.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",x).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}I(()=>O)},[u,p,e,t,c]),Q.useEffect(()=>{r(te.isNil((p??{})[e]))},[p,e,r]),Q.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function lJ(e){const[t,n]=Pu("onboarding",{}),[r,o]=Q.useState(!1),[s,a]=Q.useState(()=>()=>Promise.resolve());return Q.useEffect(()=>{o(te.isNil((t??{})[e]))},[t,e,o]),Q.useEffect(()=>{a(()=>()=>(n(c=>te.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function cJ(){return{onboardingRequired:!1,acknowledgeOnboarding:Q.useRef(()=>Promise.resolve()).current}}function uJ(e,t){Mf({mode:sJ,topic:iJ}).validateSync({mode:e,topic:t});const n=aJ(t),r=lJ(t),o=cJ();switch(e){case Ha.USER:return n.loading?o:n.error?r:te.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Ha.BROWSER:return r;default:return o}}var Pa=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Pa||{});function AJ(e,t){var o;const n=te.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return te.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=te.chain(n.tips).clone().reject(p=>p.id===a).value(),u=te.find(n.tips,{id:a}),A=te.chain(u??{}).clone().extend(s).value();return c.push(A),te.extend(n,{tips:te.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=te.isString(s)?s:s.id,c=te.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return te.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=te.isString(s)?s:s.id,c=te.chain(n.tips).reject(C=>C.id===a).value(),u=te.find(n.tips,{id:a});if(te.isNil(u))return n;const A=te.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=te.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&te.chain(c).reject(C=>C.step<p).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),te.extend(n,{tips:te.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return te.extend(n,{onComplete:s})}case"RESTART":{const s=te.chain(n.tips).clone().map(a=>te.omit(a,"dismissed")).value();return te.extend(n,{tips:s,currentStep:0})}default:return n}}const kx=Q.createContext(void 0);function dJ(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=uJ(t,n),[s,a]=Q.useReducer(AJ,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=Q.useMemo(()=>({state:s,dispatch:a}),[s,a]);return Q.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),Q.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),g.jsx(kx.Provider,{value:c,children:e.children})}function Fx(){const e=Q.useContext(kx);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function gJ(){return Fx().state}function Lx(){return Fx().dispatch}function fJ(e){Mf({id:Jr().required(),step:IB().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=gJ(),c=te.find(s,{id:t}),{dismissed:u}=c??{},A=Lx(),p=Q.useCallback(()=>{A({type:Pa.DISMISS_TIP,payload:t})},[A,t]);return Q.useEffect(()=>{(te.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Pa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),Q.useEffect(()=>()=>{A({type:Pa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:te.chain(c??e).clone().extend({open:o&&!te.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function pJ(){const e=Lx();return Q.useCallback(()=>{e({type:Pa.RESTART})},[e])}function hJ(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=fJ({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=te.omit(e,["id","step","title","completeOnboarding"]);return g.jsx(zu,{...u,arrow:!0,open:c,title:g.jsxs(y.Stack,{gap:1,children:[g.jsx(y.Typography,{children:r}),g.jsx(y.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const CJ=y.styled(hJ)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${y.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${y.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${y.tooltipClasses.arrow}`]:{color:r.main}}});function mJ({label:e="ra.auth.sign_in",...t}){const n=j.useRecordContext(),[r,o]=Q.useState(!1),s=j.useAuthProvider(),a=Q.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return g.jsx(j.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:g.jsx(rr.VpnKey,{})})}const qp=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},EJ=(e,t)=>e&&e.data?{data:qp(e.data,t),total:e.total+1}:e,IJ=(e,t)=>e&&e.length>0?qp(e,t):e,BJ=(e,t)=>e&&e.data?{...e,data:qp(e.data,t),total:e.total+1}:e,vJ=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=As.useQueryClient(),u=j.useResourceContext(),A=j.useRedirect(),p=j.useNotify(),h=Q.useCallback(B=>{const S=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],O=>BJ(O,B),{updatedAt:S}),c.setQueriesData([u,"getMany"],O=>IJ(O,B),{updatedAt:S}),c.setQueriesData([u,"getManyReference"],O=>EJ(O,B),{updatedAt:S}),e(),p("ra.notification.created"),r!==void 0&&A(r,u,B.id,B),s&&s(B)},[e,s,c,u,p,A,r]),{save:C,...m}=j.useCreateController({mutationOptions:{onSuccess:h,onError:a}}),I=Q.useCallback(B=>{o?o(B,e):C&&C(B)},[o,C,e]);return g.jsx(j.CreateContextProvider,{value:{record:t,save:I,saving:m==null?void 0:m.saving,redirect:r},children:Q.cloneElement(n,{...n.props,toolbar:g.jsxs(wi,{children:[g.jsx(j.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:m==null?void 0:m.saving}),g.jsx(j.SaveButton,{type:"button",disabled:m==null?void 0:m.saving})]})})})},bJ={true:{_scrollToTop:!0},false:{}},yJ=Ae(y.Fab,{overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${j.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function QJ({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,style:u,fab:A=!0,onSubmit:p,onSuccess:h,onError:C,...m}){const[I,B]=Q.useState(!1),v=j.useTranslate(),S=j.useResourceContext(),{openDialog:O,closeDialog:x}=vi(),R=Q.useCallback(()=>O(S,()=>B(!0)),[O,S]),P=Q.useCallback(()=>x(S,()=>B(!1)),[x,S]),k=A&&y.useMediaQuery(F=>F.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[k?g.jsx(yJ,{...m,state:bJ[String(s)],color:"primary",className:Ge(j.CreateButtonClasses.floating,a),"aria-label":n&&v(n),onClick:R,children:g.jsx(Ze.PlusCircleOutlined,{})}):g.jsx(j.Button,{...m,sx:c,label:n,onClick:R,style:u,children:g.jsx(Ze.PlusCircleOutlined,{})}),g.jsx(y.Dialog,{open:I,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial",paddingLeft:2.5,paddingRight:2.5,paddingBottom:2.5}},onClose:P,fullWidth:e,maxWidth:t,children:g.jsx(vJ,{...m,redirect:o,record:r,onClose:P,onSubmit:p,onSuccess:h,onError:C})})]})}const xJ=({onClose:e,children:t})=>{const n=j.useNotify(),r=j.useRecordContext(),o=j.useResourceContext(),{id:s}=r,{isLoading:a,data:c}=j.useGetOne(o,{id:s}),u=Q.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:A,saving:p}=j.useEditController({resource:o,id:s,mutationMode:"pessimistic",mutationOptions:{onSuccess:u}});return g.jsx(j.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:Q.cloneElement(t,{toolbar:g.jsxs(wi,{children:[g.jsx(j.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(j.SaveButton,{type:"button"})]})})})};function wJ({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",style:r,...o}){const[s,a]=Q.useState(!1),{openDialog:c,closeDialog:u}=vi(),A=j.useResourceContext(),p=Q.useCallback(()=>c(A,()=>a(!0)),[c,A]),h=Q.useCallback(()=>u(A,()=>a(!1)),[u,A]);return g.jsxs(g.Fragment,{children:[g.jsx(j.Button,{label:n,onClick:p,style:r,children:g.jsx(rr.Edit,{})}),g.jsx(y.Dialog,{open:s,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial",paddingLeft:2.5,paddingRight:2.5,paddingBottom:2.5}},onClose:h,fullWidth:e,maxWidth:t,children:g.jsx(xJ,{onClose:h,children:o==null?void 0:o.children})})]})}function Nx(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ce.useListContext(e),A=ce.useTranslate(),p=Q.useCallback(()=>{u()},[u]);return g.jsx(TJ,{className:r,children:g.jsxs(OW,{"data-test":"bulk-actions-toolbar",className:Ge($n.toolbar,{[$n.collapsed]:c.length===0}),...ce.sanitizeListRestProps(o),children:[g.jsxs("div",{className:$n.title,children:[g.jsx(Ap,{className:$n.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:g.jsx(cu,{fontSize:"small"})}),g.jsx($v,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),g.jsx(j.TopToolbar,{className:$n.topToolbar,children:Q.Children.map(n,h=>Q.isValidElement(h)?Q.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ai="RaBulkActionsToolbar",$n={toolbar:`${ai}-toolbar`,topToolbar:`${ai}-topToolbar`,buttons:`${ai}-buttons`,collapsed:`${ai}-collapsed`,title:`${ai}-title`,icon:`${ai}-icon`},TJ=Ae("div",{name:ai,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${$n.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Es(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${$n.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${$n.buttons}`]:{},[`& .${$n.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${$n.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${$n.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),sg={p:0,m:0},h0={p:2,m:0,borderRadius:0,width:"100%"};function SJ(e){const{children:t}=e,[n,r]=M.useState(null),o=I=>{r(I.currentTarget)},s=()=>{r(null)},a=y.useMediaQuery(I=>I.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=j.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,m=M.useCallback(()=>{p(),r(null)},[p,r]);return g.jsx(y.Fade,{in:A!==void 0&&A.length>0,children:g.jsxs(y.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[g.jsx(y.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),g.jsx(y.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:g.jsxs(y.List,{sx:sg,children:[g.jsx(y.ListItem,{sx:sg,children:g.jsx(j.Button,{onClick:m,sx:h0,label:"ra.action.unselect",startIcon:g.jsx(cu,{}),children:g.jsx(cu,{})})}),M.Children.map(t,I=>{var B;return g.jsx(y.ListItem,{sx:sg,children:M.isValidElement(I)?M.cloneElement(I,{filterValues:c,resource:u,selectedIds:A,sx:h0,...(B=I.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const Vx=Q.createContext({});Vx.displayName="DatagridContext";const PJ=({children:e,value:t})=>g.jsx(Vx.Provider,{value:t,children:e}),C0=g.jsx(j.BulkDeleteButton,{}),Hx=M.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?j.PureDatagridBody:j.DatagridBody,header:o=j.DatagridHeader,children:s,className:a,empty:c=jJ,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=C0,hover:h,isRowSelectable:C,isRowExpandable:m,resource:I,rowClick:B,rowSx:v,rowStyle:S,size:O="small",sx:x,expandSingle:R=!1,...P}=e,{sort:k,data:F,isLoading:G,onSelect:K,onToggleItem:$,selectedIds:Y,setSort:ie,total:se}=ce.useListContext(e),X=!!p,Z=Q.useMemo(()=>({isRowExpandable:m,expandSingle:R}),[m,R]),H=Q.useRef(null);Q.useEffect(()=>{(!Y||Y.length===0)&&(H.current=null)},[JSON.stringify(Y)]);const J=Q.useCallback((L,_)=>{const V=F.map(le=>le.id),q=V.indexOf(H.current);if(H.current=_.target.checked?L:null,_.shiftKey&&q!==-1){const le=V.indexOf(L),pe=V.slice(Math.min(q,le),Math.max(q,le)+1),de=_.target.checked?$Y(Y,pe):fG(Y,pe);K(C?de.filter(ge=>C(F.find(he=>he.id===ge))):de)}else $(L)},[F,C,K,$,Y]);return G===!0?g.jsx(j.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:M.Children.count(s),size:O}):F==null||F.length===0||se===0?c||null:g.jsx(PJ,{value:Z,children:g.jsxs(j.DatagridRoot,{sx:x,className:Ge(j.DatagridClasses.root,a),children:[A!=null&&Q.isValidElement(A)?Q.cloneElement(A,{selectedIds:Y,total:se}):p!==!1?g.jsx(Nx,{children:Q.isValidElement(p)?p:C0}):null,g.jsx("div",{className:j.DatagridClasses.tableWrapper,children:g.jsxs(y.Table,{ref:t,className:j.DatagridClasses.table,size:O,...OJ(P),children:[m0(o,{children:s,sort:k,data:F,hasExpand:!!u,hasBulkActions:X,isRowSelectable:C,onSelect:K,resource:I,selectedIds:Y,setSort:ie},s),m0(r,{expand:u,rowClick:B,data:F,hasBulkActions:X,hover:h,onToggleItem:J,resource:I,rowSx:v,rowStyle:S,selectedIds:Y,isRowSelectable:C},s)]})})]})})}),m0=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,t,n):Q.createElement(e,t,n),RJ=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],OJ=e=>Object.keys(ce.sanitizeListRestProps(e)).filter(t=>!RJ.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});Hx.displayName="Datagrid";const jJ=g.jsx(j.ListNoResults,{}),DJ=Ae(Hx,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function MJ(e){return g.jsx(DJ,{...e})}const kJ=Ae("div")(({theme:e})=>({padding:e.spacing(2)}));function FJ({actions:e,className:t,...n}){const{hasCreate:r}=ce.useResourceDefinition(n),o=ce.useResourceContext(n),s=ce.useTranslate(),a=ce.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return g.jsxs(LJ,{className:t,children:[g.jsxs("div",{className:pi.message,children:[g.jsx(rr.Inbox,{className:pi.icon}),g.jsx(y.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&g.jsx(y.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),g.jsx(kJ,{className:pi.toolbar,children:e})]})}const kc="ApplicaEmpty",pi={message:`${kc}-message`,icon:`${kc}-icon`,toolbar:`${kc}-toolbar`},LJ=Ae("span",{name:kc,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${pi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${pi.icon}`]:{width:"9em",height:"9em"},[`& .${pi.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),NJ=g.jsx(j.ListActions,{}),VJ=g.jsx(j.Pagination,{}),HJ=g.jsx(j.Empty,{}),zJ=vG,WJ=e=>{const{actions:t=NJ,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=VJ,children:u,className:A,component:p=zJ,title:h,empty:C=HJ,...m}=e,{defaultTitle:I,data:B,error:v,isLoading:S,filterValues:O,resource:x}=ce.useListContext(e);if(!u||!B&&S&&s)return null;const R=()=>g.jsxs("div",{className:wo.main,children:[(r||t)&&g.jsx(j.ListToolbar,{className:wo.actions,filters:r,actions:t,hasCreate:a}),!v&&g.jsx(p,{className:wo.content,children:o&&u&&M.isValidElement(u)?Q.cloneElement(u,{bulkActionButtons:o}):u}),v?g.jsx(Fp,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),P=()=>C!==!1&&Q.cloneElement(C,{className:wo.noResults,hasCreate:a}),k=!S&&(B==null?void 0:B.length)===0&&!Object.keys(O).length&&C!==!1;return g.jsxs(UJ,{className:Ge("list-page",A),...m,children:[g.jsx(j.Title,{title:h,defaultTitle:I,preferenceKey:`${x}.list.title`}),k?P():R(),n]})},Ea="RaList",wo={main:`${Ea}-main`,content:`${Ea}-content`,actions:`${Ea}-actions`,noResults:`${Ea}-noResults`},UJ=Ae("div",{name:Ea,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${wo.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${wo.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${wo.actions}`]:{},[`& .${wo.noResults}`]:{}})),YJ=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=GJ,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...h})=>g.jsx(ce.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:g.jsx(WJ,{...h})}),GJ={},KJ=qa(YJ,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function qJ(e){return g.jsx(er,{content:!1,children:g.jsx(KJ,{...e})})}function JJ(){const e=j.useRefresh(),t=j.useNotify(),n=j.useResourceContext(),r=j.useUnselectAll(n),{selectedIds:o,data:s}=j.useListContext(),a=j.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=j.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Pr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=Q.useCallback(()=>{u()},[u]);return g.jsx(j.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:g.jsx(rr.Email,{})})}function XJ(){const e=j.useRefresh(),t=j.useNotify(),n=j.useResourceContext(),r=j.useUnselectAll(n),{selectedIds:o,data:s}=j.useListContext(),a=j.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)).concat([a]),[u,{isLoading:A}]=j.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=Q.useCallback(()=>{u()},[u]);return g.jsx(j.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(rr.Drafts,{})})}function ZJ(e){const t=j.useRecordContext(e),n=j.useResourceContext(e),r=j.useRedirect(),o=j.useNotify(),s=j.useTranslate(),[a]=j.useLocaleState(),c=Q.useMemo(()=>t!=null&&t.readed?Pr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=j.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Pr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=Q.useCallback(()=>u(),[u]);return g.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(y.Typography,{variant:"subtitle1",children:g.jsxs(y.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(y.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&g.jsx(y.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function _J({...e}){const t=y.useTheme(),{mode:n,colorize:r,density:o}=Q.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?y.darken:y.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return g.jsxs(j.Datagrid,{...e,rowSx:s,children:[g.jsx(ZJ,{source:"notification",sortable:!1}),g.jsx(yb,{source:"created"}),g.jsxs(Bi,{children:[g.jsx(JJ,{}),g.jsx(XJ,{})]})]})}const $J=Ae(j.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),Ec={width:"1.5rem",alignSelf:"center"};function eX({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...h}){const{getCurrentDialog:C}=vi(),m=ce.useResourceContext(h),I=C(),B=ce.useRecordContext(),v=r||B,S=lt.get(v,e||"");return g.jsxs(y.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:O=>({pt:1,pb:1,borderBottom:`1px solid ${O.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[g.jsxs(y.Stack,{direction:"row",alignItems:"start",children:[c&&(Q.isValidElement(c)?Q.cloneElement(c,{style:Ec}):Q.createElement(c,{style:Ec})),g.jsx(ce.FieldTitle,{label:t,source:e,resource:I||m})]}),g.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[a?Q.isValidElement(a)?Q.cloneElement(a,{record:v,resource:m,value:S}):Q.createElement(a,{source:e,record:v,resource:m,value:S}):g.jsx(y.Typography,{variant:n,children:S}),u&&(Q.isValidElement(u)?Q.cloneElement(u,{style:Ec}):Q.createElement(u,{style:Ec})),A&&g.jsx(y.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const zx=({children:e,...t})=>{const n=bt();return g.jsx(er,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:g.jsx(y.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};zx.propTypes={children:f.node};const il=({version:e,name:t,copy:n,children:r,logo:o,background:s=fu})=>g.jsxs(y.Box,{sx:{minHeight:"100vh"},children:[Q.isValidElement(s)?s:Q.createElement(s),g.jsxs(y.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{ml:3},children:o||g.jsx(Yp,{title:t})}),g.jsxs(y.Grid,{item:!0,xs:12,children:[g.jsx(y.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:g.jsx(y.Grid,{item:!0,children:g.jsx(zx,{children:r})})}),g.jsx(y.Grid,{item:!0,sx:{pb:1},children:g.jsx(bp,{name:t,copy:n,version:e})})]})]})]});il.propTypes={children:f.node,version:f.string,name:f.string,copy:f.string,background:f.oneOfType([f.node,f.func,f.object])};const Wx=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ce.useTranslate(),a=ce.useAuthProvider(),c=ce.useNotify(),u=Ct.useNavigate(),{token:A}=Ct.useParams();return Q.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),te.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),te.delay(()=>u("/login"),1e3)})},[A]),g.jsx(il,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:s("ra.auth.activate")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};Wx.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};function Ux({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=g.jsx(fu,{})}){const[u,A]=ce.useSafeSetState(!1),p=ce.useLogin(),h=ce.useTranslate(),C=ce.useNotify(),m=ce.useCheckAuth(),I=Ct.useNavigate();Q.useEffect(()=>{m({},!1).then(()=>{I("/")}).catch(()=>{})},[m,I]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(S=>{A(!1),C(typeof S=="string"?S:typeof S>"u"||!S.message?"ra.auth.sign_in_error":S.message,{type:"error",messageArgs:{_:typeof S=="string"?S:S&&S.message?S.message:void 0}})})};return g.jsx(il,{name:t,version:e,copy:n,logo:r,background:c,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:"Login"}),s&&g.jsx(y.Typography,{component:Ct.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(ce.Form,{onSubmit:B,children:[g.jsxs(y.Grid,{container:!0,children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Cr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ce.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Cr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ce.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(y.Link,{variant:"h6",component:Ct.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(y.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const Yx=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=Q.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),p=ce.useAuthProvider(),h=({email:C})=>{a(!0),p.recover(C).then(m=>{const I=`ra.auth.recover_${m.responseCode}`,B=m.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(m=>{A(m,{type:"error"})}).finally(()=>a(!1))};return g.jsx(il,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(j.Form,{onSubmit:h,children:[g.jsx(y.Grid,{container:!0,children:g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"email",validate:[ce.required(),ce.email()]})})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(y.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};Yx.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};const Gx=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=Q.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),p=ce.useAuthProvider(),h=C=>{a(!0),p.register(C).then(m=>{const I=`ra.auth.register_${m.responseCode}`,B=m.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(m=>{A(m,{type:"error"})}).finally(()=>a(!1))};return g.jsx(il,{name:e,copy:t,logo:r,background:o,version:n,children:g.jsxs(y.Grid,{container:!0,spacing:3,children:[g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(y.Typography,{variant:"h3",children:c("ra.auth.register.title")}),g.jsx(y.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),g.jsx(y.Grid,{item:!0,xs:12,children:g.jsxs(j.Form,{onSubmit:h,children:[g.jsxs(y.Grid,{container:!0,children:[g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"name",label:c("ra.register.name"),validate:ce.required()})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"email",type:"email",validate:[ce.required(),ce.email()]})}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Cr,{source:"password",type:"password",validate:ce.required()})})]}),g.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};Gx.propTypes={name:f.string.isRequired,version:f.string.isRequired};function Kx(){const e=Q.useCallback(()=>location.reload(),[]);return g.jsx(y.Container,{children:g.jsxs(y.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[g.jsx("img",{src:AQ,style:{width:"100%",maxWidth:450}}),g.jsx(y.Typography,{variant:"h2",children:"Ops! An error occurred..."}),g.jsx(y.Typography,{children:"We're fixing the problem. Please try again later."}),g.jsx(y.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const tX=e=>({button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${ze(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${ze(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${ze(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${ze(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${ze(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${ze(e.palette.info.main,.2)}`,success:`0 0 0 2px ${ze(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${ze(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${ze(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${ze(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${ze(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${ze(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${ze(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${ze(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${ze(e.palette.grey[500],.2)}`});function nr(e,t){nX(e)&&(e="100%");var n=rX(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function nX(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rX(e){return typeof e=="string"&&e.indexOf("%")!==-1}function oX(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ic(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ag(e){return e.length===1?"0"+e:String(e)}function iX(e,t,n){return{r:nr(e,255)*255,g:nr(t,255)*255,b:nr(n,255)*255}}function lg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sX(e,t,n){var r,o,s;if(e=nr(e,360),t=nr(t,100),n=nr(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=lg(c,a,e+1/3),o=lg(c,a,e),s=lg(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function aX(e,t,n){e=nr(e,255),t=nr(t,255),n=nr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function lX(e,t,n){e=nr(e,360)*6,t=nr(t,100),n=nr(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],p=[c,n,n,a,s,s][u],h=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:h*255}}function cX(e,t,n,r){var o=[ag(Math.round(e).toString(16)),ag(Math.round(t).toString(16)),ag(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function E0(e){return jn(e)/255}function jn(e){return parseInt(e,16)}var I0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function fa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=dX(e)),typeof e=="object"&&(Gr(e.r)&&Gr(e.g)&&Gr(e.b)?(t=iX(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gr(e.h)&&Gr(e.s)&&Gr(e.v)?(r=Ic(e.s),o=Ic(e.v),t=lX(e.h,r,o),a=!0,c="hsv"):Gr(e.h)&&Gr(e.s)&&Gr(e.l)&&(r=Ic(e.s),s=Ic(e.l),t=sX(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=oX(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var uX="[-\\+]?\\d+%?",AX="[-\\+]?\\d*\\.\\d+%?",To="(?:".concat(AX,")|(?:").concat(uX,")"),cg="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),ug="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),fr={CSS_UNIT:new RegExp(To),rgb:new RegExp("rgb"+cg),rgba:new RegExp("rgba"+ug),hsl:new RegExp("hsl"+cg),hsla:new RegExp("hsla"+ug),hsv:new RegExp("hsv"+cg),hsva:new RegExp("hsva"+ug),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function dX(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(I0[e])e=I0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fr.hex8.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),a:E0(n[4]),format:t?"name":"hex8"}:(n=fr.hex6.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),format:t?"name":"hex"}:(n=fr.hex4.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),a:E0(n[4]+n[4]),format:t?"name":"hex8"}:(n=fr.hex3.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Gr(e){return!!fr.CSS_UNIT.exec(String(e))}var Bc=2,B0=.16,gX=.05,fX=.05,pX=.15,qx=5,Jx=4,hX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function v0(e){var t=e.r,n=e.g,r=e.b,o=aX(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function vc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(cX(t,n,r,!1))}function CX(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function b0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bc*t:Math.round(e.h)+Bc*t:r=n?Math.round(e.h)+Bc*t:Math.round(e.h)-Bc*t,r<0?r+=360:r>=360&&(r-=360),r}function y0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-B0*t:t===Jx?r=e.s+B0:r=e.s+gX*t,r>1&&(r=1),n&&t===qx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Q0(e,t,n){var r;return n?r=e.v+fX*t:r=e.v-pX*t,r>1&&(r=1),Number(r.toFixed(2))}function x0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=fa(e),o=qx;o>0;o-=1){var s=v0(r),a=vc(fa({h:b0(s,o,!0),s:y0(s,o,!0),v:Q0(s,o,!0)}));n.push(a)}n.push(vc(r));for(var c=1;c<=Jx;c+=1){var u=v0(r),A=vc(fa({h:b0(u,c),s:y0(u,c),v:Q0(u,c)}));n.push(A)}return t.theme==="dark"?hX.map(function(p){var h=p.index,C=p.opacity,m=vc(CX(fa(t.backgroundColor||"#141414"),fa(n[h]),C*100));return m}):n}var Ag={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Kt={},Fc={};Object.keys(Ag).forEach(function(e){Kt[e]=x0(Ag[e]),Kt[e].primary=Kt[e][5],Fc[e]=x0(Ag[e],{theme:"dark",backgroundColor:"#141414"}),Fc[e].primary=Fc[e][5]});Kt.red;Kt.volcano;Kt.gold;Kt.orange;Kt.yellow;Kt.lime;Kt.green;Kt.cyan;Kt.blue;Kt.geekblue;Kt.purple;Kt.magenta;Kt.grey;Kt.grey;const Xx=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};Xx.propTypes={colors:f.object};const mX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},EX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},IX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},BX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},vX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},bX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},yX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},QX=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Zx=(e,t,n)=>{switch(t){case"theme1":return mX(e,n);case"theme2":return EX(e,n);case"theme3":return IX(e,n);case"theme4":return BX(e,n);case"theme5":return vX(e,n);case"theme6":return bX(e,n);case"theme7":return yX(e,n);case"theme8":return QX(e,n);default:return Xx(e)}};Zx.propTypes={colors:f.object,presetColor:f.any};const xX=(e,t)=>{const n=e==="dark"?Fc:Kt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Zx(n,t,e);return hf({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?ze(a.grey[900],.87):a.grey[700],secondary:e==="dark"?ze(a.grey[900],.45):a.grey[500],disabled:e==="dark"?ze(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?ze(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},wX=e=>({htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}});function TX(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function SX(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function PX(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(Ze.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function ei({color:e,theme:t}){const n=rn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:ze(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function RX(e){const t=ei({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":ei({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":ei({color:"secondary",theme:e}),"&.MuiAlert-borderError":ei({color:"error",theme:e}),"&.MuiAlert-borderSuccess":ei({color:"success",theme:e}),"&.MuiAlert-borderInfo":ei({color:"info",theme:e}),"&.MuiAlert-borderWarning":ei({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function OX(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function jX(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function ti({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function DX(e){const t=ti({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":ti({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":ti({color:"secondary",theme:e}),"&.MuiBadge-colorError":ti({color:"error",theme:e}),"&.MuiBadge-colorInfo":ti({color:"info",theme:e}),"&.MuiBadge-colorSuccess":ti({color:"success",theme:e}),"&.MuiBadge-colorWarning":ti({color:"warning",theme:e})}}}}}function $e({variant:e,color:t,theme:n}){const r=rn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=Ss(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${ze(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${ze(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function MX(e){const t=$e({variant:"dashed",color:"primary",theme:e}),n=$e({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":$e({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":$e({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":$e({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":$e({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":$e({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":$e({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":$e({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":$e({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":$e({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":$e({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":$e({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":$e({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:$e({variant:"contained",color:"primary",theme:e}),containedSecondary:$e({variant:"contained",color:"secondary",theme:e}),containedError:$e({variant:"contained",color:"error",theme:e}),containedSuccess:$e({variant:"contained",color:"success",theme:e}),containedInfo:$e({variant:"contained",color:"info",theme:e}),containedWarning:$e({variant:"contained",color:"warning",theme:e}),outlinedPrimary:$e({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:$e({variant:"outlined",color:"secondary",theme:e}),outlinedError:$e({variant:"outlined",color:"error",theme:e}),outlinedSuccess:$e({variant:"outlined",color:"success",theme:e}),outlinedInfo:$e({variant:"outlined",color:"info",theme:e}),outlinedWarning:$e({variant:"outlined",color:"warning",theme:e}),textPrimary:$e({variant:"text",color:"primary",theme:e}),textSecondary:$e({variant:"text",color:"secondary",theme:e}),textError:$e({variant:"text",color:"error",theme:e}),textSuccess:$e({variant:"text",color:"success",theme:e}),textInfo:$e({variant:"text",color:"info",theme:e}),textWarning:$e({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function kX(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function FX(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function LX(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Zi({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function NX(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function dg(e){const t=NX(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function VX(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(Ze.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(Ze.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...dg("small")},"&.size-medium":{...dg("medium")},"&.size-large":{...dg("large")}},colorPrimary:Zi({color:"primary",theme:e}),colorSecondary:Zi({color:"secondary",theme:e}),colorSuccess:Zi({color:"success",theme:e}),colorWarning:Zi({color:"warning",theme:e}),colorInfo:Zi({color:"info",theme:e}),colorError:Zi({color:"error",theme:e})}}}}function _i({color:e,theme:t}){const n=rn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function On({color:e,theme:t}){const n=rn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function HX(e){const t=On({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":_i({color:"primary",theme:e}),"&.MuiChip-colorSecondary":_i({color:"secondary",theme:e}),"&.MuiChip-colorError":_i({color:"error",theme:e}),"&.MuiChip-colorInfo":_i({color:"info",theme:e}),"&.MuiChip-colorSuccess":_i({color:"success",theme:e}),"&.MuiChip-colorWarning":_i({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":On({color:"primary",theme:e}),"&.MuiChip-lightSecondary":On({color:"secondary",theme:e}),"&.MuiChip-lightError":On({color:"error",theme:e}),"&.MuiChip-lightInfo":On({color:"info",theme:e}),"&.MuiChip-lightSuccess":On({color:"success",theme:e}),"&.MuiChip-lightWarning":On({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":On({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":On({color:"secondary",theme:e}),"&.MuiChip-combinedError":On({color:"error",theme:e}),"&.MuiChip-combinedInfo":On({color:"info",theme:e}),"&.MuiChip-combinedSuccess":On({color:"success",theme:e}),"&.MuiChip-combinedWarning":On({color:"warning",theme:e})}}}}}function zX(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:ze("#000",.7)}}}}}}function WX(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function UX(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function $i({color:e,theme:t}){const n=rn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=Ss(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${ze(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${ze(r,.9)}`}}}function YX(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":$i({color:"primary",theme:e}),"&.MuiFab-secondary":$i({color:"secondary",theme:e}),"&.Mui-error":$i({color:"error",theme:e}),"&.MuiFab-success":$i({color:"success",theme:e}),"&.MuiFab-info":$i({color:"info",theme:e}),"&.MuiFab-warning":$i({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function GX(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function KX(){return{MuiInputBase:{styleOverrides:{}}}}function qX(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function JX(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function XX(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function ZX(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function _X(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function $X(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function eZ(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function ni({variant:e,theme:t}){const n=rn(t,e),{light:r}=n,o=Ss(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function tZ(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...ni({variant:"primary",theme:e}),"&.Mui-error":{...ni({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:ni({variant:"secondary",theme:e}),colorError:ni({variant:"error",theme:e}),colorWarning:ni({variant:"warning",theme:e}),colorInfo:ni({variant:"info",theme:e}),colorSuccess:ni({variant:"success",theme:e})}}}}function nZ(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=rn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function rZ(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function oZ(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function es({color:e,theme:t}){const n=rn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function iZ(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function gg(e){const t=iZ(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function sZ(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(y.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...gg("small")},"&.size-medium":{...gg("medium")},"&.size-large":{...gg("large")}},colorPrimary:es({color:"primary",theme:e}),colorSecondary:es({color:"secondary",theme:e}),colorSuccess:es({color:"success",theme:e}),colorWarning:es({color:"warning",theme:e}),colorInfo:es({color:"info",theme:e}),colorError:es({color:"error",theme:e})}}}}function ts({color:e,theme:t}){const n=rn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function aZ(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":ts({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":ts({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":ts({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":ts({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":ts({color:"info",theme:e}),"&.MuiSlider-thumbColorError":ts({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function lZ(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function fg(e,t){const n=lZ(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function cZ(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...fg(e,"medium")},sizeLarge:{...fg(e,"large")},sizeSmall:{...fg(e,"small")}}}}}function uZ(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function AZ(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function dZ(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function gZ(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function fZ(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function pZ(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function hZ(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function CZ(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function mZ(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function EZ(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function IZ(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function BZ(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function vZ(e){return lt.merge(TX(e),SX(e),PX(e),RX(e),OX(),jX(e),DX(e),MX(e),kX(),FX(),LX(),VX(e),HX(e),zX(),WX(e),UX(),YX(e),GX(e),KX(),qX(e),JX(),XX(),ZX(e),_X(e),$X(),eZ(),tZ(e),nZ(),rZ(e),oZ(e),sZ(e),aZ(e),cZ(e),uZ(e),AZ(e),dZ(e),gZ(e),fZ(e),pZ(),hZ(),CZ(),mZ(e),EZ(e),IZ(),BZ())}const rA=({themeOverrides:e,children:t})=>{const n=Qn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=Q.useMemo(()=>xX(o,s),[o,s]),u=Q.useMemo(()=>wX(a),[a]),A=Q.useMemo(()=>tX(c),[c]),p=Q.useMemo(()=>te.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=hf(p),C=te.cloneDeep(h.components??{});return h.components=te.merge(vZ(h),C),g.jsx(y.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(J0,{theme:h,children:[g.jsx(y.CssBaseline,{}),t]})})};rA.propTypes={children:f.node,themeOverrides:f.oneOfType([f.object,f.func])};function bZ({children:e,theme:t,...n}){return g.jsx(j.CoreAdminContext,{...n,children:g.jsx(rA,{themeOverrides:t,children:g.jsx(Gp,{children:e})})})}function _x(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:h,authCallbackPage:C,menu:m,notification:I,queryClient:B,requireAuth:v,store:S=j.localStorageStore(),ready:O,theme:x,title:R="React Admin"}=e;return g.jsx(bZ,{authProvider:t,dataProvider:s,i18nProvider:u,store:S,history:c,queryClient:B,theme:x,children:g.jsx(j.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:m,catchAll:n,title:R,loading:p,loginPage:h,authCallbackPage:C,notification:I,requireAuth:v,ready:O,children:r})})}var za,Wa,ps;class yZ{constructor(t){Wr(this,za,void 0);Wr(this,Wa,void 0);Wr(this,ps,new Set);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");po(this,Wa,n),po(this,za,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;hn(this,ps).has(a)||(hn(this,ps).add(a),fetch(`${hn(this,Wa)}/ui/error-log`,{method:"PUT",headers:hn(this,za),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(()=>{console.log("Unable to send error to server"),hn(this,ps).delete(a)}))}}za=new WeakMap,Wa=new WeakMap,ps=new WeakMap;class $x{constructor({catch:t,display:n,log:r,error:o}){oa(this,"catch");oa(this,"display");oa(this,"log");oa(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const QZ=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new $x({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=M.useMemo(()=>o.errorHandler?o.errorHandler:new yZ({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=M.useCallback(function(u,...A){var h;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.replace(/%s/g,()=>A.shift()));if(p.isCatched())return!1;p.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return M.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};var Ua,Ya,di;class xZ{constructor(t){Wr(this,Ua,void 0);Wr(this,Ya,void 0);Wr(this,di,[]);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");po(this,Ya,n),po(this,Ua,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!te.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!te.isString(r)||te.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!te.some(hn(this,di),o=>te.isEqual(o,{code:n,lang:r}))){hn(this,di).push({code:n,lang:r}),fetch(`${hn(this,Ya)}/i18n/message`,{method:"put",headers:hn(this,Ua),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),po(this,di,te.reject(hn(this,di),s=>te.isEqual(s,{code:n,lang:r})))});return}}}Ua=new WeakMap,Ya=new WeakMap,di=new WeakMap;function e1(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new xZ({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,m)=>({...C,[m.lang]:{...C[m.lang]||{},[m.code]:m.text}}),{})),p=(h,C,m)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(te.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:m}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,m]=h;function I(B){return te.get(m,B,{})}return gO(I,n,C,{allowMissing:r||o,onMissingKey:p})})}window.React=Q;const wZ=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=Q.useState({loading:!0,languages:null});return Q.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function t1(e){const[t,n]=Q.useState(),r=xB(e);return Q.useEffect(()=>{e1(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const TZ=new As.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function SZ({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=g.jsx(Ux,{version:"0.0.0",name:"Applica",redirectTo:"/",background:g.jsx(fu,{})}),menu:u,name:A,copy:p,version:h="0.0.0",dataProvider:C,authProvider:m,errorHandler:I,error:B,enableNotification:v=!1,enableRegistration:S=!1,enablePasswordRecover:O=!1,enableThemeToggler:x=!1,queryClient:R=TZ,background:P,notificationAPI:k="entities/notification",...F}){QZ({apiUrl:n,errorHandler:I,catcherFn:Y=>{const ie=Y==null?void 0:Y.toString(),X=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(H=>ie==null?void 0:ie.includes(H));return new $x({catch:X,display:!X,log:!X,error:ie})}});const G=Q.useMemo(()=>Q.isValidElement(c)?Q.cloneElement(c,{name:A,copy:p,logo:s,version:h,background:P,enableRegistration:S,enablePasswordRecover:O}):c,[c,A,h,p,P,s,S,O]),K=Q.useMemo(()=>Y=>{const ie=A?g.jsx(Yp,{title:A}):s,se=A?g.jsx(Kp,{title:A}):a;return g.jsx(Ox,{...Y,name:A,copy:p,enableThemeToggler:x,version:h,logoMain:ie,logoIcon:se,notification:k,enableNotification:v,error:B})},[s,a,A,h,B,k,v]),$=t1({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return $===void 0?g.jsx(g.Fragment,{}):$.error?g.jsx(Wc,{initialConfig:t,children:g.jsx(rA,{themeOverrides:e,children:g.jsx(Kx,{})})}):g.jsx(vf,{children:g.jsx(tB,{menu:u,children:g.jsx(Wc,{initialConfig:t,children:g.jsx(_x,{theme:e,layout:K,notification:Mx,queryClient:R,dataProvider:C,authProvider:m,i18nProvider:$,loginPage:G,...F})})})})}Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>j.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>j.BooleanField});Object.defineProperty(exports,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>j.BulkDeleteWithConfirmButton});Object.defineProperty(exports,"Button",{enumerable:!0,get:()=>j.Button});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>j.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>j.Confirm});Object.defineProperty(exports,"CreateButton",{enumerable:!0,get:()=>j.CreateButton});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>j.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>j.CustomRoutes});Object.defineProperty(exports,"DeleteWithConfirmButton",{enumerable:!0,get:()=>j.DeleteWithConfirmButton});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>j.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>j.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>j.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>j.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>j.FilterButton});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>j.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>j.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>j.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>j.I18nContextProvider});Object.defineProperty(exports,"ListToolbar",{enumerable:!0,get:()=>j.ListToolbar});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>j.LoadingIndicator});Object.defineProperty(exports,"Pagination",{enumerable:!0,get:()=>j.Pagination});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>j.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>j.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>j.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>j.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>j.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>j.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>j.SaveButton});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>j.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>j.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>j.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>j.TabbedFormTabs});Object.defineProperty(exports,"TopToolbar",{enumerable:!0,get:()=>j.TopToolbar});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>j.UrlField});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>j.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>j.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>j.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>j.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>j.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>j.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>j.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>j.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>j.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>j.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>j.useAuthProvider});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>j.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>j.useChoicesContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>j.useCreateController});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>j.useDataProvider});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>j.useEditContext});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>j.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>j.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>j.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>j.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>j.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>j.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>j.useListContext});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>j.useLocaleState});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>j.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>j.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>j.useRecordContext});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>j.useRefresh});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>j.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>j.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>j.useResourceDefinitions});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>j.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>j.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>j.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>j.useSimpleFormIteratorItem});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>j.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>j.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>j.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>j.useUnselectAll});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>j.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>j.withLifecycleCallbacks});exports.ActionsField=H6;exports.ActionsMenu=Bi;exports.ActivatePage=Wx;exports.Admin=_x;exports.AnimateButton=Xv;exports.AppBarStyled=TB;exports.AppConfigContext=Bf;exports.AppConfigProvider=vf;exports.ApplicaAdmin=SZ;exports.ArrayInput=V6;exports.AttachmentField=Ib;exports.AttachmentInput=dL;exports.AuthBackground=fu;exports.AutocompleteArrayInput=fL;exports.AutocompleteInput=hL;exports.Avatar=ka;exports.BooleanInput=mL;exports.Breadcrumbs=ib;exports.BulkActionsToolbar=Nx;exports.BulkActionsToolbarClasses=$n;exports.BulkFloatingActionsToolbar=SJ;exports.CardForm=Cb;exports.ChangePasswordForm=fp;exports.CircularWithLabel=gb;exports.CircularWithPath=fb;exports.CoverField=vb;exports.Create=qL;exports.CreateInDialogButton=QJ;exports.Datagrid=MJ;exports.DateAgoField=yb;exports.DateField=X6;exports.DateInput=IL;exports.DateTimeInput=vL;exports.Dot=Vu;exports.Drawer=wx;exports.DrawerHeader=mQ;exports.DrawerHeaderStyled=CQ;exports.DrawerToggle=hy;exports.Edit=XL;exports.EditInDialogButton=wJ;exports.EmailField=_6;exports.Empty=FJ;exports.EmptyClasses=pi;exports.FileField=Qb;exports.FileInput=yL;exports.Footer=bp;exports.FormHeader=$L;exports.FunctionField=eL;exports.GenericErrorPage=Kx;exports.Header=Cy;exports.HeaderButton=RM;exports.HeaderIconButton=D6;exports.HeaderNotification=my;exports.HeaderProfile=Ey;exports.HeaderSpacer=By;exports.HeaderToggleButton=Rs;exports.HorizontalBar=Tx;exports.IconButton=Ps;exports.ImageField=Bb;exports.ImageInput=QL;exports.ImpersonateUserButton=mJ;exports.LabeledArrayInput=Eb;exports.LabeledInput=un;exports.Layout=Ox;exports.LayoutContent=dQ;exports.LayoutProvider=gy;exports.LayoutWrapper=gQ;exports.LinearWithIcon=pb;exports.LinearWithLabel=hb;exports.List=qJ;exports.ListItem=eX;exports.Loadable=nJ;exports.Loader=Dx;exports.LoadingButton=gp;exports.LocalStorage=yB;exports.LocalizedTextField=nL;exports.LocalizedTextInput=TL;exports.LoginPage=Ux;exports.Logo=Lp;exports.LongForm=Rt;exports.MainCard=er;exports.MainIcon=Yp;exports.MenuConfigContext=yf;exports.MenuConfigProvider=tB;exports.MenuPopover=Ef;exports.NavGroup=Wp;exports.NavMenu=Sx;exports.Navigation=Px;exports.Notification=Mx;exports.NotificationList=_J;exports.NumberInput=PL;exports.OnboardingModes=Ha;exports.OnboardingProvider=dJ;exports.OnboardingTip=CJ;exports.RawTableFormIterator=Ay;exports.ReadonlyField=sL;exports.RecordInput=RL;exports.RecoverPage=Yx;exports.ReferenceArrayInput=OL;exports.ReferenceInput=jL;exports.ReferenceManyField=wb;exports.ReferenceManyInput=DL;exports.RegisterPage=Gx;exports.ResponsiveSection=Iy;exports.ScrollTop=Gp;exports.ScrollX=oJ;exports.SearchInput=kL;exports.SelectArrayInput=LL;exports.SelectInput=VL;exports.Show=p9;exports.SimpleBar=zp;exports.SimpleForm=mb;exports.SimpleFormIterator=C9;exports.SimpleList=$J;exports.SizeField=cL;exports.SmallIcon=Kp;exports.SmartTextInput=HL;exports.TabbedForm=mp;exports.TableFormIterator=KV;exports.TableFormIteratorContext=Qf;exports.TableFormIteratorItem=ry;exports.TableFormIteratorItemContext=xf;exports.TextField=xb;exports.TextInput=Cr;exports.ThemeConfigContext=bf;exports.ThemeConfigProvider=Wc;exports.ThemeProvider=rA;exports.ThemeToggler=Rx;exports.TimeInput=YL;exports.Toolbar=wi;exports.Tooltip=zu;exports.Transitions=Do;exports.createI18nProvider=e1;exports.getLocalizedValue=Sf;exports.localizedValueHasAllLocales=Tf;exports.parseTime=cB;exports.useAppConfig=vi;exports.useBreadcrumbs=sB;exports.useGetLocalizedValue=wM;exports.useI18nLanguages=wZ;exports.useI18nProvider=t1;exports.useLayoutContext=vp;exports.useLayoutDispatch=XV;exports.useLayoutDrawerState=Ti;exports.useLayoutLogoState=py;exports.useLayoutMediaState=Nn;exports.useLayoutNotificationsState=Zu;exports.useLayoutState=Ms;exports.useLayoutThemeState=ZV;exports.useLocalStorage=Pu;exports.useLocalizedValue=xM;exports.useMemoizedObject=xB;exports.useMenu=wf;exports.useMenuConfig=mi;exports.usePopoverState=Ru;exports.useRefDimensions=SM;exports.useResourceDefaultValues=KL;exports.useResourceTitle=kf;exports.useRestartOnboarding=pJ;exports.useSx=Er;exports.useTableFormIterator=wB;exports.useTableFormIteratorItem=PM;exports.useThemeConfig=Qn;exports.uuid=SD;exports.withLayoutProvider=fy;
269
269
  //# sourceMappingURL=react-admin.cjs.js.map