@applica-software-guru/react-admin 1.1.107 → 1.1.108

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.
@@ -50,7 +50,7 @@ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
50
50
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ki(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function Rc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qS(e){e=qo(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(f,p=(f+n/30)%12)=>i-a*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const A=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",A.push(t[3])),Rc({type:u,values:A})}function Ed(e){e=qo(e);let t=e.type==="hsl"||e.type==="hsla"?qo(qS(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UC(e,t){const n=Ed(e),r=Ed(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ve(e,t){return e=qo(e),t=sf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rc(e)}function af(e,t){if(e=qo(e),t=sf(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Rc(e)}function Zs(e,t){if(e=qo(e),t=sf(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Rc(e)}function YC(e,t=.15){return Ed(e)>.5?af(e,t):Zs(e,t)}const F0=N.createContext(null);process.env.NODE_ENV!=="production"&&(F0.displayName="ThemeContext");const L0=F0;function N0(){const e=N.useContext(L0);return process.env.NODE_ENV!=="production"&&N.useDebugValue(e),e}const _S=typeof Symbol=="function"&&Symbol.for,JS=_S?Symbol.for("mui.nested"):"__THEME_NESTED__";function XS(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
51
51
  `))),n}return W({},e,t)}function _l(e){const{children:t,theme:n}=e,r=N0();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
52
52
  `));const i=N.useMemo(()=>{const a=r===null?n:XS(r,n);return a!=null&&(a[JS]=r!==null),a},[n,r]);return g.jsx(L0.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(_l.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(_l.propTypes=Ec(_l.propTypes));const GC={};function KC(e,t,n,r=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),l=e?W({},t,{[e]:a}):a;return r?()=>l:l}return e?W({},t,{[e]:n}):W({},t,n)},[e,t,n,r])}function Jl(e){const{children:t,theme:n,themeId:r}=e,i=of(GC),a=N0()||GC;process.env.NODE_ENV!=="production"&&(i===null&&typeof n=="function"||r&&i&&!i[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
53
- `));const l=KC(r,i,n),u=KC(r,a,n,!0);return g.jsx(_l,{theme:u,children:g.jsx(Kt.ThemeContext.Provider,{value:l,children:t})})}process.env.NODE_ENV!=="production"&&(Jl.propTypes={children:c.node,theme:c.oneOfType([c.func,c.object]).isRequired,themeId:c.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Jl.propTypes=Ec(Jl.propTypes));function ZS(e,t){return W({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const $S={black:"#000",white:"#fff"},$s=$S,e4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},t4=e4,n4={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},pi=n4,r4={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},hi=r4,o4={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ts=o4,i4={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ci=i4,s4={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},mi=s4,a4={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ei=a4,l4=["mode","contrastThreshold","tonalOffset"],qC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$s.white,default:$s.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kA={text:{primary:$s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _C(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Zs(e.main,i):t==="dark"&&(e.dark=af(e.main,a)))}function c4(e="light"){return e==="dark"?{main:Ci[200],light:Ci[50],dark:Ci[400]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}function u4(e="light"){return e==="dark"?{main:pi[200],light:pi[50],dark:pi[400]}:{main:pi[500],light:pi[300],dark:pi[700]}}function A4(e="light"){return e==="dark"?{main:hi[500],light:hi[300],dark:hi[700]}:{main:hi[700],light:hi[400],dark:hi[800]}}function d4(e="light"){return e==="dark"?{main:mi[400],light:mi[300],dark:mi[700]}:{main:mi[700],light:mi[500],dark:mi[900]}}function f4(e="light"){return e==="dark"?{main:Ei[400],light:Ei[300],dark:Ei[700]}:{main:Ei[800],light:Ei[500],dark:Ei[900]}}function g4(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:"#ed6c02",light:Ts[500],dark:Ts[900]}}function p4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,l4),a=e.primary||c4(t),l=e.secondary||u4(t),u=e.error||A4(t),A=e.info||d4(t),f=e.success||f4(t),p=e.warning||g4(t);function C(B){const v=UC(B,kA.text.primary)>=n?kA.text.primary:qC.text.primary;if(process.env.NODE_ENV!=="production"){const R=UC(B,v);R<3&&console.error([`MUI: The contrast ratio of ${R}:1 for ${v} on ${B}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
53
+ `));const l=KC(r,i,n),u=KC(r,a,n,!0);return g.jsx(_l,{theme:u,children:g.jsx(Kt.ThemeContext.Provider,{value:l,children:t})})}process.env.NODE_ENV!=="production"&&(Jl.propTypes={children:c.node,theme:c.oneOfType([c.func,c.object]).isRequired,themeId:c.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Jl.propTypes=Ec(Jl.propTypes));function ZS(e,t){return W({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const $S={black:"#000",white:"#fff"},$s=$S,eO={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},tO=eO,nO={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},pi=nO,rO={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},hi=rO,oO={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ts=oO,iO={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ci=iO,sO={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},mi=sO,aO={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ei=aO,lO=["mode","contrastThreshold","tonalOffset"],qC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$s.white,default:$s.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kA={text:{primary:$s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _C(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Zs(e.main,i):t==="dark"&&(e.dark=af(e.main,a)))}function cO(e="light"){return e==="dark"?{main:Ci[200],light:Ci[50],dark:Ci[400]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}function uO(e="light"){return e==="dark"?{main:pi[200],light:pi[50],dark:pi[400]}:{main:pi[500],light:pi[300],dark:pi[700]}}function AO(e="light"){return e==="dark"?{main:hi[500],light:hi[300],dark:hi[700]}:{main:hi[700],light:hi[400],dark:hi[800]}}function dO(e="light"){return e==="dark"?{main:mi[400],light:mi[300],dark:mi[700]}:{main:mi[700],light:mi[500],dark:mi[900]}}function fO(e="light"){return e==="dark"?{main:Ei[400],light:Ei[300],dark:Ei[700]}:{main:Ei[800],light:Ei[500],dark:Ei[900]}}function gO(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:"#ed6c02",light:Ts[500],dark:Ts[900]}}function pO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,lO),a=e.primary||cO(t),l=e.secondary||uO(t),u=e.error||AO(t),A=e.info||dO(t),f=e.success||fO(t),p=e.warning||gO(t);function C(B){const v=UC(B,kA.text.primary)>=n?kA.text.primary:qC.text.primary;if(process.env.NODE_ENV!=="production"){const R=UC(B,v);R<3&&console.error([`MUI: The contrast ratio of ${R}:1 for ${v} on ${B}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
54
54
  `))}return v}const h=({color:B,name:v,mainShade:R=500,lightShade:M=300,darkShade:x=700})=>{if(B=W({},B),!B.main&&B[R]&&(B.main=B[R]),!B.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
55
55
  The color object needs to have a \`main\` property or a \`${R}\` property.`:ki(11,v?` (${v})`:"",R));if(typeof B.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
56
56
  \`color.main\` should be a string, but \`${JSON.stringify(B.main)}\` was provided instead.
@@ -65,10 +65,10 @@ const theme1 = createTheme({ palette: {
65
65
 
66
66
  const theme2 = createTheme({ palette: {
67
67
  primary: { main: green[500] },
68
- } });`:ki(12,v?` (${v})`:"",JSON.stringify(B.main)));return _C(B,"light",M,r),_C(B,"dark",x,r),B.contrastText||(B.contrastText=C(B.main)),B},E={dark:kA,light:qC};return process.env.NODE_ENV!=="production"&&(E[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ar(W({common:W({},$s),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:A,name:"info"}),success:h({color:f,name:"success"}),grey:t4,contrastThreshold:n,getContrastText:C,augmentColor:h,tonalOffset:r},E[t]),i)}const h4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C4(e){return Math.round(e*1e5)/1e5}const JC={textTransform:"uppercase"},XC='"Roboto", "Helvetica", "Arial", sans-serif';function m4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=XC,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:A=700,htmlFontSize:f=16,allVariants:p,pxToRem:C}=n,h=Ge(n,h4);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const E=i/14,I=C||(R=>`${R/f*E}rem`),B=(R,M,x,T,P)=>W({fontFamily:r,fontWeight:R,fontSize:I(M),lineHeight:x},r===XC?{letterSpacing:`${C4(T/M)}em`}:{},P,p),v={h1:B(a,96,1.167,-1.5),h2:B(a,60,1.2,-.5),h3:B(l,48,1.167,0),h4:B(l,34,1.235,.25),h5:B(l,24,1.334,0),h6:B(u,20,1.6,.15),subtitle1:B(l,16,1.75,.15),subtitle2:B(u,14,1.57,.1),body1:B(l,16,1.5,.15),body2:B(l,14,1.43,.15),button:B(u,14,1.75,.4,JC),caption:B(l,12,1.66,.4),overline:B(l,12,2.66,1,JC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ar(W({htmlFontSize:f,pxToRem:I,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:A},v),h,{clone:!1})}const E4=.2,I4=.14,B4=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${E4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${I4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B4})`].join(",")}const y4=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],v4=y4,b4=["duration","easing","delay"],Q4={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)"},x4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ZC(e){return`${Math.round(e)}ms`}function w4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function T4(e){const t=W({},Q4,e.easing),n=W({},x4,e.duration);return W({getAutoHeightDuration:w4,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:A=0}=a,f=Ge(a,b4);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",C=h=>!isNaN(parseFloat(h));!p(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!C(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!C(A)&&!p(A)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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
- `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof l=="string"?l:ZC(l)} ${u} ${typeof A=="string"?A:ZC(A)}`).join(",")}},e,{easing:t,duration:n})}const P4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R4=P4,S4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function lf(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,l=Ge(e,S4);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.":ki(18));const u=p4(r),A=rf(e);let f=ar(A,{mixins:ZS(A.breakpoints,n),palette:u,shadows:v4.slice(),typography:m4(u,a),transitions:T4(i),zIndex:W({},R4)});if(f=ar(f,l),f=t.reduce((p,C)=>ar(p,C),f),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],C=(h,E)=>{let I;for(I in h){const B=h[I];if(p.indexOf(I)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=zt("",I);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,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
- `))}h[I]={}}}};Object.keys(f.components).forEach(h=>{const E=f.components[h].styleOverrides;E&&h.indexOf("Mui")===0&&C(E,h)})}return f.unstable_sxConfig=W({},Pc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(C){return nf({sx:C,theme:this})},f}const O4=lf(),cf=O4;function Tt(){const e=D0(cf);return process.env.NODE_ENV!=="production"&&N.useDebugValue(e),e[Xs]||e}function _t({props:e,name:t}){return GS({props:e,name:t,defaultTheme:cf,themeId:Xs})}const uf=e=>kl(e)&&e!=="classes",D4=k0({themeId:Xs,defaultTheme:cf,rootShouldForwardProp:uf}),ce=D4,M4=["theme"];function V0(e){let{theme:t}=e,n=Ge(e,M4);const r=t[Xs];return g.jsx(Jl,W({},n,{themeId:r?Xs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(V0.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const j4=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},$C=j4,k4=ce("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Ve(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},u={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},A={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};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"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...u,top:20},...e==="left-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...u,bottom:20},...e==="right-top"&&{...A,top:20},...e==="right-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...A,bottom:20}}});function F4(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 Sc=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:u,transformOrigin:A}=F4(n);return g.jsxs(b.Popover,{open:!!e,anchorEl:e,anchorOrigin:u,transformOrigin:A,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&g.jsx(k4,{arrow:n}),t]})};Sc.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.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 L4=b.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),N4=b.styled(Sc,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Ji=({horizontal:e=!1,children:t})=>{const[n,r]=O.useState(null),i=l=>{l.stopPropagation(),l.preventDefault(),r(l.currentTarget)},a=O.useCallback(()=>{r(null)},[]);return!t||O.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(l=>O.isValidElement(l)).length)===0?null:g.jsxs(L4,{children:[g.jsx(b.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?g.jsx(_n.MoreHoriz,{}):g.jsx(_n.MoreVert,{})}),g.jsx(N4,{open:n,onClose:a,arrow:"right-top",children:O.Children.map(t,(l,u)=>O.isValidElement(l)&&g.jsx(b.MenuItem,{children:O.cloneElement(l)},u))})]})};Ji.propTypes={...Sc.propTypes,children:c.node.isRequired};function V4(e){return zt("MuiPaper",e)}qt("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 H4=["className","component","elevation","square","variant"],z4=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return En(a,V4,i)},W4=ce("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 W({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"&&W({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ve("#fff",$C(t.elevation))}, ${Ve("#fff",$C(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),H0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:A="elevation"}=r,f=Ge(r,H4),p=W({},r,{component:a,elevation:l,square:u,variant:A}),C=z4(p);return process.env.NODE_ENV!=="production"&&Tt().shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
71
- `)),g.jsx(W4,W({as:a,ownerState:p,className:Je(C.root,i),ref:n},f))});process.env.NODE_ENV!=="production"&&(H0.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:Wr(Ns,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:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});const z0=H0;function U4(e){return zt("MuiAppBar",e)}qt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Y4=["className","color","enableColorOnDark","position"],G4=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Te(t)}`,`position${Te(n)}`]};return En(i,U4,r)},El=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,K4=ce(z0,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`],t[`color${Te(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return W({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&&W({},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"&&W({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&W({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:El(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:El(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:El(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:El(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"}))}),W0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,A=Ge(r,Y4),f=W({},r,{color:a,position:u,enableColorOnDark:l}),p=G4(f);return g.jsx(K4,W({square:!0,component:"header",ownerState:f,elevation:4,className:Je(p.root,i,u==="fixed"&&"mui-fixed"),ref:n},A))});process.env.NODE_ENV!=="production"&&(W0.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["default","inherit","primary","secondary","transparent"]),c.string]),enableColorOnDark:c.bool,position:c.oneOf(["absolute","fixed","relative","static","sticky"]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const q4=W0,U0={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}`)}},Af=O.createContext(U0),df=({children:e})=>{const[t,n]=O.useState(U0),r=(l,u)=>{n(A=>({...A,openDialogs:[...A.openDialogs,l]})),u&&u()},i=(l,u)=>{n(A=>({...A,openDialogs:A.openDialogs.filter(f=>f!==l)})),u&&u()},a=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return g.jsx(Af.Provider,{value:{...t,openDialog:r,closeDialog:i,getCurrentDialog:a},children:e})};df.propTypes={children:c.node};const Jo=()=>O.useContext(Af);var Xl={exports:{}};/**
68
+ } });`:ki(12,v?` (${v})`:"",JSON.stringify(B.main)));return _C(B,"light",M,r),_C(B,"dark",x,r),B.contrastText||(B.contrastText=C(B.main)),B},E={dark:kA,light:qC};return process.env.NODE_ENV!=="production"&&(E[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ar(W({common:W({},$s),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:A,name:"info"}),success:h({color:f,name:"success"}),grey:tO,contrastThreshold:n,getContrastText:C,augmentColor:h,tonalOffset:r},E[t]),i)}const hO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function CO(e){return Math.round(e*1e5)/1e5}const JC={textTransform:"uppercase"},XC='"Roboto", "Helvetica", "Arial", sans-serif';function mO(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=XC,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:A=700,htmlFontSize:f=16,allVariants:p,pxToRem:C}=n,h=Ge(n,hO);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const E=i/14,I=C||(R=>`${R/f*E}rem`),B=(R,M,x,T,P)=>W({fontFamily:r,fontWeight:R,fontSize:I(M),lineHeight:x},r===XC?{letterSpacing:`${CO(T/M)}em`}:{},P,p),v={h1:B(a,96,1.167,-1.5),h2:B(a,60,1.2,-.5),h3:B(l,48,1.167,0),h4:B(l,34,1.235,.25),h5:B(l,24,1.334,0),h6:B(u,20,1.6,.15),subtitle1:B(l,16,1.75,.15),subtitle2:B(u,14,1.57,.1),body1:B(l,16,1.5,.15),body2:B(l,14,1.43,.15),button:B(u,14,1.75,.4,JC),caption:B(l,12,1.66,.4),overline:B(l,12,2.66,1,JC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ar(W({htmlFontSize:f,pxToRem:I,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:A},v),h,{clone:!1})}const EO=.2,IO=.14,BO=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${EO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${IO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BO})`].join(",")}const yO=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],vO=yO,bO=["duration","easing","delay"],QO={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)"},xO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ZC(e){return`${Math.round(e)}ms`}function wO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function TO(e){const t=W({},QO,e.easing),n=W({},xO,e.duration);return W({getAutoHeightDuration:wO,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:A=0}=a,f=Ge(a,bO);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",C=h=>!isNaN(parseFloat(h));!p(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!C(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!C(A)&&!p(A)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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
+ `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof l=="string"?l:ZC(l)} ${u} ${typeof A=="string"?A:ZC(A)}`).join(",")}},e,{easing:t,duration:n})}const PO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},RO=PO,SO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function lf(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,l=Ge(e,SO);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.":ki(18));const u=pO(r),A=rf(e);let f=ar(A,{mixins:ZS(A.breakpoints,n),palette:u,shadows:vO.slice(),typography:mO(u,a),transitions:TO(i),zIndex:W({},RO)});if(f=ar(f,l),f=t.reduce((p,C)=>ar(p,C),f),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],C=(h,E)=>{let I;for(I in h){const B=h[I];if(p.indexOf(I)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=zt("",I);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,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
+ `))}h[I]={}}}};Object.keys(f.components).forEach(h=>{const E=f.components[h].styleOverrides;E&&h.indexOf("Mui")===0&&C(E,h)})}return f.unstable_sxConfig=W({},Pc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(C){return nf({sx:C,theme:this})},f}const OO=lf(),cf=OO;function Tt(){const e=D0(cf);return process.env.NODE_ENV!=="production"&&N.useDebugValue(e),e[Xs]||e}function _t({props:e,name:t}){return GS({props:e,name:t,defaultTheme:cf,themeId:Xs})}const uf=e=>kl(e)&&e!=="classes",DO=k0({themeId:Xs,defaultTheme:cf,rootShouldForwardProp:uf}),ce=DO,MO=["theme"];function V0(e){let{theme:t}=e,n=Ge(e,MO);const r=t[Xs];return g.jsx(Jl,W({},n,{themeId:r?Xs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(V0.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const jO=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},$C=jO,kO=ce("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Ve(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},u={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},A={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};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"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...u,top:20},...e==="left-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...u,bottom:20},...e==="right-top"&&{...A,top:20},...e==="right-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...A,bottom:20}}});function FO(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 Sc=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:u,transformOrigin:A}=FO(n);return g.jsxs(b.Popover,{open:!!e,anchorEl:e,anchorOrigin:u,transformOrigin:A,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&g.jsx(kO,{arrow:n}),t]})};Sc.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.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 LO=b.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),NO=b.styled(Sc,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Ji=({horizontal:e=!1,children:t})=>{const[n,r]=O.useState(null),i=l=>{l.stopPropagation(),l.preventDefault(),r(l.currentTarget)},a=O.useCallback(()=>{r(null)},[]);return!t||O.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(l=>O.isValidElement(l)).length)===0?null:g.jsxs(LO,{children:[g.jsx(b.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?g.jsx(_n.MoreHoriz,{}):g.jsx(_n.MoreVert,{})}),g.jsx(NO,{open:n,onClose:a,arrow:"right-top",children:O.Children.map(t,(l,u)=>O.isValidElement(l)&&g.jsx(b.MenuItem,{children:O.cloneElement(l)},u))})]})};Ji.propTypes={...Sc.propTypes,children:c.node.isRequired};function VO(e){return zt("MuiPaper",e)}qt("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 HO=["className","component","elevation","square","variant"],zO=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return En(a,VO,i)},WO=ce("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 W({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"&&W({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ve("#fff",$C(t.elevation))}, ${Ve("#fff",$C(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),H0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:A="elevation"}=r,f=Ge(r,HO),p=W({},r,{component:a,elevation:l,square:u,variant:A}),C=zO(p);return process.env.NODE_ENV!=="production"&&Tt().shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
71
+ `)),g.jsx(WO,W({as:a,ownerState:p,className:Je(C.root,i),ref:n},f))});process.env.NODE_ENV!=="production"&&(H0.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:Wr(Ns,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:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});const z0=H0;function UO(e){return zt("MuiAppBar",e)}qt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const YO=["className","color","enableColorOnDark","position"],GO=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Te(t)}`,`position${Te(n)}`]};return En(i,UO,r)},El=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,KO=ce(z0,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`],t[`color${Te(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return W({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&&W({},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"&&W({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&W({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:El(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:El(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:El(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:El(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"}))}),W0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,A=Ge(r,YO),f=W({},r,{color:a,position:u,enableColorOnDark:l}),p=GO(f);return g.jsx(KO,W({square:!0,component:"header",ownerState:f,elevation:4,className:Je(p.root,i,u==="fixed"&&"mui-fixed"),ref:n},A))});process.env.NODE_ENV!=="production"&&(W0.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["default","inherit","primary","secondary","transparent"]),c.string]),enableColorOnDark:c.bool,position:c.oneOf(["absolute","fixed","relative","static","sticky"]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const qO=W0,U0={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}`)}},Af=O.createContext(U0),df=({children:e})=>{const[t,n]=O.useState(U0),r=(l,u)=>{n(A=>({...A,openDialogs:[...A.openDialogs,l]})),u&&u()},i=(l,u)=>{n(A=>({...A,openDialogs:A.openDialogs.filter(f=>f!==l)})),u&&u()},a=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return g.jsx(Af.Provider,{value:{...t,openDialog:r,closeDialog:i,getCurrentDialog:a},children:e})};df.propTypes={children:c.node};const Jo=()=>O.useContext(Af);var Xl={exports:{}};/**
72
72
  * @license
73
73
  * Lodash <https://lodash.com/>
74
74
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -94,7 +94,7 @@ __p += '`),_e&&(oe+=`' +
94
94
  function print() { __p += __j.call(arguments, '') }
95
95
  `:`;
96
96
  `)+oe+`return __p
97
- }`;var Ue=IC(function(){return Ze(w,ye+"return "+oe).apply(n,D)});if(Ue.source=oe,mA(Ue))throw Ue;return Ue}function _2(o){return $e(o).toLowerCase()}function J2(o){return $e(o).toUpperCase()}function X2(o,s,d){if(o=$e(o),o&&(d||s===n))return Pp(o);if(!o||!(s=yn(s)))return o;var m=nr(o),y=nr(s),w=Rp(m,y),D=Sp(m,y)+1;return $r(m,w,D).join("")}function Z2(o,s,d){if(o=$e(o),o&&(d||s===n))return o.slice(0,Dp(o)+1);if(!o||!(s=yn(s)))return o;var m=nr(o),y=Sp(m,nr(s))+1;return $r(m,0,y).join("")}function $2(o,s,d){if(o=$e(o),o&&(d||s===n))return o.replace(yr,"");if(!o||!(s=yn(s)))return o;var m=nr(o),y=Rp(m,nr(s));return $r(m,y).join("")}function eP(o,s){var d=U,m=$;if(xt(s)){var y="separator"in s?s.separator:y;d="length"in s?Ne(s.length):d,m="omission"in s?yn(s.omission):m}o=$e(o);var w=o.length;if(ri(o)){var D=nr(o);w=D.length}if(d>=w)return o;var L=d-oi(m);if(L<1)return m;var Y=D?$r(D,0,L).join(""):o.slice(0,L);if(y===n)return Y+m;if(D&&(L+=Y.length-L),EA(y)){if(o.slice(L).search(y)){var ne,re=Y;for(y.global||(y=ju(y.source,$e(As.exec(y))+"g")),y.lastIndex=0;ne=y.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?L:oe)}}else if(o.indexOf(yn(y),L)!=L){var he=Y.lastIndexOf(y);he>-1&&(Y=Y.slice(0,he))}return Y+m}function tP(o){return o=$e(o),o&&ba.test(o)?o.replace(va,RQ):o}var nP=Ai(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),yA=Bh("toUpperCase");function EC(o,s,d){return o=$e(o),s=d?n:s,s===n?QQ(o)?DQ(o):hQ(o):o.match(s)||[]}var IC=Ye(function(o,s){try{return In(o,n,s)}catch(d){return mA(d)?d:new ke(d)}}),rP=wr(function(o,s){return jn(s,function(d){d=fr(d),Qr(o,d,hA(o[d],o))}),o});function oP(o){var s=o==null?0:o.length,d=Re();return o=s?yt(o,function(m){if(typeof m[1]!="function")throw new kn(l);return[d(m[0]),m[1]]}):[],Ye(function(m){for(var y=-1;++y<s;){var w=o[y];if(In(w[0],this,m))return In(w[1],this,m)}})}function iP(o){return Rx(Ln(o,C))}function vA(o){return function(){return o}}function sP(o,s){return o==null||o!==o?s:o}var aP=vh(),lP=vh(!0);function fn(o){return o}function bA(o){return $p(typeof o=="function"?o:Ln(o,C))}function cP(o){return th(Ln(o,C))}function uP(o,s){return nh(o,Ln(s,C))}var AP=Ye(function(o,s){return function(d){return Is(d,o,s)}}),dP=Ye(function(o,s){return function(d){return Is(o,d,s)}});function QA(o,s,d){var m=Ut(s),y=Za(s,m);d==null&&!(xt(s)&&(y.length||!m.length))&&(d=s,s=o,o=this,y=Za(s,Ut(s)));var w=!(xt(d)&&"chain"in d)||!!d.chain,D=Pr(o);return jn(y,function(L){var Y=s[L];o[L]=Y,D&&(o.prototype[L]=function(){var ne=this.__chain__;if(w||ne){var re=o(this.__wrapped__),oe=re.__actions__=un(this.__actions__);return oe.push({func:Y,args:arguments,thisArg:o}),re.__chain__=ne,re}return Y.apply(o,Kr([this.value()],arguments))})}),o}function fP(){return Jt._===this&&(Jt._=NQ),this}function xA(){}function gP(o){return o=Ne(o),Ye(function(s){return rh(s,o)})}var pP=rA(yt),hP=rA(bp),CP=rA(Tu);function BC(o){return uA(o)?Pu(fr(o)):Kx(o)}function mP(o){return function(s){return o==null?n:Oo(o,s)}}var EP=Qh(),IP=Qh(!0);function wA(){return[]}function TA(){return!1}function BP(){return{}}function yP(){return""}function vP(){return!0}function bP(o,s){if(o=Ne(o),o<1||o>k)return[];var d=_,m=Zt(o,_);s=Re(s),o-=_;for(var y=Ou(m,s);++d<o;)s(d);return y}function QP(o){return Fe(o)?yt(o,fr):vn(o)?[o]:un(Hh($e(o)))}function xP(o){var s=++FQ;return $e(o)+s}var wP=ol(function(o,s){return o+s},0),TP=oA("ceil"),PP=ol(function(o,s){return o/s},1),RP=oA("floor");function SP(o){return o&&o.length?Xa(o,fn,Wu):n}function OP(o,s){return o&&o.length?Xa(o,Re(s,2),Wu):n}function DP(o){return wp(o,fn)}function MP(o,s){return wp(o,Re(s,2))}function jP(o){return o&&o.length?Xa(o,fn,Ku):n}function kP(o,s){return o&&o.length?Xa(o,Re(s,2),Ku):n}var FP=ol(function(o,s){return o*s},1),LP=oA("round"),NP=ol(function(o,s){return o-s},0);function VP(o){return o&&o.length?Su(o,fn):0}function HP(o,s){return o&&o.length?Su(o,Re(s,2)):0}return Q.after=cT,Q.ary=Zh,Q.assign=JT,Q.assignIn=dC,Q.assignInWith=Cl,Q.assignWith=XT,Q.at=ZT,Q.before=$h,Q.bind=hA,Q.bindAll=rP,Q.bindKey=eC,Q.castArray=BT,Q.chain=_h,Q.chunk=R1,Q.compact=S1,Q.concat=O1,Q.cond=oP,Q.conforms=iP,Q.constant=vA,Q.countBy=Vw,Q.create=$T,Q.curry=tC,Q.curryRight=nC,Q.debounce=rC,Q.defaults=e2,Q.defaultsDeep=t2,Q.defer=uT,Q.delay=AT,Q.difference=D1,Q.differenceBy=M1,Q.differenceWith=j1,Q.drop=k1,Q.dropRight=F1,Q.dropRightWhile=L1,Q.dropWhile=N1,Q.fill=V1,Q.filter=zw,Q.flatMap=Yw,Q.flatMapDeep=Gw,Q.flatMapDepth=Kw,Q.flatten=Yh,Q.flattenDeep=H1,Q.flattenDepth=z1,Q.flip=dT,Q.flow=aP,Q.flowRight=lP,Q.fromPairs=W1,Q.functions=l2,Q.functionsIn=c2,Q.groupBy=qw,Q.initial=Y1,Q.intersection=G1,Q.intersectionBy=K1,Q.intersectionWith=q1,Q.invert=A2,Q.invertBy=d2,Q.invokeMap=Jw,Q.iteratee=bA,Q.keyBy=Xw,Q.keys=Ut,Q.keysIn=dn,Q.map=Al,Q.mapKeys=g2,Q.mapValues=p2,Q.matches=cP,Q.matchesProperty=uP,Q.memoize=fl,Q.merge=h2,Q.mergeWith=fC,Q.method=AP,Q.methodOf=dP,Q.mixin=QA,Q.negate=gl,Q.nthArg=gP,Q.omit=C2,Q.omitBy=m2,Q.once=fT,Q.orderBy=Zw,Q.over=pP,Q.overArgs=gT,Q.overEvery=hP,Q.overSome=CP,Q.partial=CA,Q.partialRight=oC,Q.partition=$w,Q.pick=E2,Q.pickBy=gC,Q.property=BC,Q.propertyOf=mP,Q.pull=Z1,Q.pullAll=Kh,Q.pullAllBy=$1,Q.pullAllWith=ew,Q.pullAt=tw,Q.range=EP,Q.rangeRight=IP,Q.rearg=pT,Q.reject=nT,Q.remove=nw,Q.rest=hT,Q.reverse=gA,Q.sampleSize=oT,Q.set=B2,Q.setWith=y2,Q.shuffle=iT,Q.slice=rw,Q.sortBy=lT,Q.sortedUniq=uw,Q.sortedUniqBy=Aw,Q.split=Y2,Q.spread=CT,Q.tail=dw,Q.take=fw,Q.takeRight=gw,Q.takeRightWhile=pw,Q.takeWhile=hw,Q.tap=Sw,Q.throttle=mT,Q.thru=ul,Q.toArray=cC,Q.toPairs=pC,Q.toPairsIn=hC,Q.toPath=QP,Q.toPlainObject=AC,Q.transform=v2,Q.unary=ET,Q.union=Cw,Q.unionBy=mw,Q.unionWith=Ew,Q.uniq=Iw,Q.uniqBy=Bw,Q.uniqWith=yw,Q.unset=b2,Q.unzip=pA,Q.unzipWith=qh,Q.update=Q2,Q.updateWith=x2,Q.values=gi,Q.valuesIn=w2,Q.without=vw,Q.words=EC,Q.wrap=IT,Q.xor=bw,Q.xorBy=Qw,Q.xorWith=xw,Q.zip=ww,Q.zipObject=Tw,Q.zipObjectDeep=Pw,Q.zipWith=Rw,Q.entries=pC,Q.entriesIn=hC,Q.extend=dC,Q.extendWith=Cl,QA(Q,Q),Q.add=wP,Q.attempt=IC,Q.camelCase=S2,Q.capitalize=CC,Q.ceil=TP,Q.clamp=T2,Q.clone=yT,Q.cloneDeep=bT,Q.cloneDeepWith=QT,Q.cloneWith=vT,Q.conformsTo=xT,Q.deburr=mC,Q.defaultTo=sP,Q.divide=PP,Q.endsWith=O2,Q.eq=or,Q.escape=D2,Q.escapeRegExp=M2,Q.every=Hw,Q.find=Ww,Q.findIndex=Wh,Q.findKey=n2,Q.findLast=Uw,Q.findLastIndex=Uh,Q.findLastKey=r2,Q.floor=RP,Q.forEach=Jh,Q.forEachRight=Xh,Q.forIn=o2,Q.forInRight=i2,Q.forOwn=s2,Q.forOwnRight=a2,Q.get=IA,Q.gt=wT,Q.gte=TT,Q.has=u2,Q.hasIn=BA,Q.head=Gh,Q.identity=fn,Q.includes=_w,Q.indexOf=U1,Q.inRange=P2,Q.invoke=f2,Q.isArguments=jo,Q.isArray=Fe,Q.isArrayBuffer=PT,Q.isArrayLike=An,Q.isArrayLikeObject=Dt,Q.isBoolean=RT,Q.isBuffer=eo,Q.isDate=ST,Q.isElement=OT,Q.isEmpty=DT,Q.isEqual=MT,Q.isEqualWith=jT,Q.isError=mA,Q.isFinite=kT,Q.isFunction=Pr,Q.isInteger=iC,Q.isLength=pl,Q.isMap=sC,Q.isMatch=FT,Q.isMatchWith=LT,Q.isNaN=NT,Q.isNative=VT,Q.isNil=zT,Q.isNull=HT,Q.isNumber=aC,Q.isObject=xt,Q.isObjectLike=Pt,Q.isPlainObject=xs,Q.isRegExp=EA,Q.isSafeInteger=WT,Q.isSet=lC,Q.isString=hl,Q.isSymbol=vn,Q.isTypedArray=fi,Q.isUndefined=UT,Q.isWeakMap=YT,Q.isWeakSet=GT,Q.join=_1,Q.kebabCase=j2,Q.last=Vn,Q.lastIndexOf=J1,Q.lowerCase=k2,Q.lowerFirst=F2,Q.lt=KT,Q.lte=qT,Q.max=SP,Q.maxBy=OP,Q.mean=DP,Q.meanBy=MP,Q.min=jP,Q.minBy=kP,Q.stubArray=wA,Q.stubFalse=TA,Q.stubObject=BP,Q.stubString=yP,Q.stubTrue=vP,Q.multiply=FP,Q.nth=X1,Q.noConflict=fP,Q.noop=xA,Q.now=dl,Q.pad=L2,Q.padEnd=N2,Q.padStart=V2,Q.parseInt=H2,Q.random=R2,Q.reduce=eT,Q.reduceRight=tT,Q.repeat=z2,Q.replace=W2,Q.result=I2,Q.round=LP,Q.runInContext=V,Q.sample=rT,Q.size=sT,Q.snakeCase=U2,Q.some=aT,Q.sortedIndex=ow,Q.sortedIndexBy=iw,Q.sortedIndexOf=sw,Q.sortedLastIndex=aw,Q.sortedLastIndexBy=lw,Q.sortedLastIndexOf=cw,Q.startCase=G2,Q.startsWith=K2,Q.subtract=NP,Q.sum=VP,Q.sumBy=HP,Q.template=q2,Q.times=bP,Q.toFinite=Rr,Q.toInteger=Ne,Q.toLength=uC,Q.toLower=_2,Q.toNumber=Hn,Q.toSafeInteger=_T,Q.toString=$e,Q.toUpper=J2,Q.trim=X2,Q.trimEnd=Z2,Q.trimStart=$2,Q.truncate=eP,Q.unescape=tP,Q.uniqueId=xP,Q.upperCase=nP,Q.upperFirst=yA,Q.each=Jh,Q.eachRight=Xh,Q.first=Gh,QA(Q,function(){var o={};return Ar(Q,function(s,d){ct.call(Q.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),Q.VERSION=r,jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){Q[o].placeholder=Q}),jn(["drop","take"],function(o,s){qe.prototype[o]=function(d){d=d===n?1:Ht(Ne(d),0);var m=this.__filtered__&&!s?new qe(this):this.clone();return m.__filtered__?m.__takeCount__=Zt(d,m.__takeCount__):m.__views__.push({size:Zt(d,_),type:o+(m.__dir__<0?"Right":"")}),m},qe.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),jn(["filter","map","takeWhile"],function(o,s){var d=s+1,m=d==X||d==H;qe.prototype[o]=function(y){var w=this.clone();return w.__iteratees__.push({iteratee:Re(y,3),type:d}),w.__filtered__=w.__filtered__||m,w}}),jn(["head","last"],function(o,s){var d="take"+(s?"Right":"");qe.prototype[o]=function(){return this[d](1).value()[0]}}),jn(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");qe.prototype[o]=function(){return this.__filtered__?new qe(this):this[d](1)}}),qe.prototype.compact=function(){return this.filter(fn)},qe.prototype.find=function(o){return this.filter(o).head()},qe.prototype.findLast=function(o){return this.reverse().find(o)},qe.prototype.invokeMap=Ye(function(o,s){return typeof o=="function"?new qe(this):this.map(function(d){return Is(d,o,s)})}),qe.prototype.reject=function(o){return this.filter(gl(Re(o)))},qe.prototype.slice=function(o,s){o=Ne(o);var d=this;return d.__filtered__&&(o>0||s<0)?new qe(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ne(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},qe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},qe.prototype.toArray=function(){return this.take(_)},Ar(qe.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),y=Q[m?"take"+(s=="last"?"Right":""):s],w=m||/^find/.test(s);y&&(Q.prototype[s]=function(){var D=this.__wrapped__,L=m?[1]:arguments,Y=D instanceof qe,ne=L[0],re=Y||Fe(D),oe=function(Ke){var _e=y.apply(Q,Kr([Ke],L));return m&&he?_e[0]:_e};re&&d&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var he=this.__chain__,ye=!!this.__actions__.length,Se=w&&!he,Ue=Y&&!ye;if(!w&&re){D=Ue?D:new qe(this);var Oe=o.apply(D,L);return Oe.__actions__.push({func:ul,args:[oe],thisArg:n}),new Fn(Oe,he)}return Se&&Ue?o.apply(this,L):(Oe=this.thru(oe),Se?m?Oe.value()[0]:Oe.value():Oe)})}),jn(["pop","push","shift","sort","splice","unshift"],function(o){var s=ka[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);Q.prototype[o]=function(){var y=arguments;if(m&&!this.__chain__){var w=this.value();return s.apply(Fe(w)?w:[],y)}return this[d](function(D){return s.apply(Fe(D)?D:[],y)})}}),Ar(qe.prototype,function(o,s){var d=Q[s];if(d){var m=d.name+"";ct.call(li,m)||(li[m]=[]),li[m].push({name:s,func:d})}}),li[rl(n,R).name]=[{name:"wrapper",func:n}],qe.prototype.clone=tx,qe.prototype.reverse=nx,qe.prototype.value=rx,Q.prototype.at=Ow,Q.prototype.chain=Dw,Q.prototype.commit=Mw,Q.prototype.next=jw,Q.prototype.plant=Fw,Q.prototype.reverse=Lw,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=Nw,Q.prototype.first=Q.prototype.head,fs&&(Q.prototype[fs]=kw),Q},ii=MQ();wo?((wo.exports=ii)._=ii,bu._=ii):Jt._=ii}).call(Un)})(Xl,Xl.exports);var it=Xl.exports;const gt=Gi(it),em=e=>function(){return e.apply(this,arguments)},Li=c.shape({id:c.string,title:c.string,type:c.oneOf(["group","item","collapse"]),icon:c.elementType,url:c.string,parent:c.shape(em(()=>Li)),children:c.arrayOf(em(()=>Li)),resource:c.bool}),Y0={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2},ff=O.createContext(Y0),_4=e=>e==="vertical",J4=e=>e==="horizontal",gf=({initialConfig:e,children:t})=>{const[n,r]=mf("theme-config",{...Y0,...e}),i=I=>r(B=>({...B,fontFamily:I})),a=I=>r(B=>({...B,menuOrientation:I})),l=I=>r(B=>({...B,miniDrawer:I})),u=I=>r(B=>({...B,container:I})),A=I=>r(B=>({...B,mode:I})),f=I=>r(B=>({...B,presetColor:I})),p=I=>r(B=>({...B,themeDirection:I})),C=I=>r(B=>({...B,appDefaultPath:I})),h=I=>r(B=>({...B,drawerWidth:I})),E=I=>r(B=>({...B,horizontalMaxItems:I}));return g.jsx(ff.Provider,{value:{...n,setFontFamily:i,setMenuOrientation:a,setMiniDrawer:l,setContainer:u,setMode:A,setPresetColor:f,setThemeDirection:p,setAppDefaultPath:C,setDrawerWidth:h,setHorizontalMaxItems:E,isVerticalLayout:_4,isHorizontalLayout:J4},children:t})};gf.propTypes={children:c.node};const G0={openItem:["dashboard"],openComponent:"buttons",selectedID:null,drawerOpen:!1,componentDrawerOpen:!0,menuDashboard:{},error:null},pf=O.createContext(G0),hf=({menu:e,children:t})=>{const[n,r]=mf("menu-config",{...G0}),i=C=>{r(h=>({...h,openItem:C}))},a=C=>{r(h=>({...h,selectedID:C}))},l=C=>{r(h=>({...h,openComponent:C}))},u=C=>{r(h=>({...h,drawerOpen:C}))},A=C=>{r(h=>({...h,componentDrawerOpen:C}))},f=C=>{r(h=>({...h,menuDashboard:C}))},p=C=>{r(h=>({...h,error:C}))};return g.jsx(pf.Provider,{value:{...n,groups:e,activeItem:i,activeComponent:l,openDrawer:u,openComponentDrawer:A,activeID:a,getMenuSuccess:f,hasError:p},children:t})};hf.propTypes={children:c.node,menu:c.arrayOf(Li)};const fo=()=>O.useContext(pf),X4=["e-","entities/"],Z4=e=>{let t=e;return X4.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t},$4=(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"},eO=(e,t)=>{const n=Z4(e.name);return t==null?void 0:t.includes(`${n}:list`)},Id=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const i=e[r];if(i.children&&(n=Id(i.children,t),n))return n}return n},K0=(e,t,n)=>{let r=e.find(i=>["group","collapse"].indexOf(i.type)!==-1&&$4(i,t));if(!r)for(let i=0;i<e.length;i++){const a=e[i];if(a.children&&(r=K0(a.children,t),r))return r}return r},q0=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const i=e[r];if(i.children&&(n=q0(i.children,t),n))return n}return n},_0=e=>e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(_0)),e.children&&e.children.length>0):!1,J0=e=>(e.children&&e.children.forEach(t=>{t.parent=e,J0(t)}),e),tO=({userGroups:e,resources:t,permissions:n,translate:r,roles:i})=>{const a=C=>(C.title=r(C.title,{_:C.title}),C.children&&C.children.forEach(h=>a(h)),C),l=Object.keys(t),u=(C,h)=>(C.children&&(C.children=C.children.filter(E=>E.resource===!1?!0:E.type==="item"?h.includes(E.id):(u(E,h),E.children&&E.children.length>0))),C),A=it.cloneDeep(e).map(C=>({type:"group",icon:ot.AntDesignOutlined,children:[],...C})).map(a).map(C=>u(C,l)),f=Object.values(t).map(C=>{var h;return((h=C.options)==null?void 0:h.group)||"admin"}).filter((C,h,E)=>E.indexOf(C)===h).filter(C=>C!==void 0&&q0(e,C)===null).map(C=>({id:C,title:r(`ra.menu.group.${C}`),type:"group",icon:ot.AntDesignOutlined,children:[]})),p=[...A,...f];return Object.values(t).forEach(C=>{var M,x,T,P;const h=K0(p,C),E=(M=h==null?void 0:h.children)==null?void 0:M.find(F=>F.id===C.name),I=(x=h==null?void 0:h.children)==null?void 0:x.some(F=>F.id===C.name),B=(E==null?void 0:E.roles)||((T=C.options)==null?void 0:T.roles)||[],v=!B||B.length===0||B.some(F=>i.includes(F));if(!eO(C,n)||!C.hasList||!v){I&&((P=h==null?void 0:h.children)==null?void 0:P.length)>0&&(h.children=h.children.filter(F=>F.id!==C.name));return}h&&(h.children||(h.children=[]))}),p.filter(_0).map(J0)},Cf=()=>{const e=S.useResourceDefinitions(),{isLoading:t,data:n}=S.useGetIdentity(),r=n&&n.id>0,{isLoading:i,permissions:a}=S.usePermissions(r),{groups:l}=fo(),u=S.useTranslate(),A=O.useMemo(()=>{if(t||!n||n===null||(n==null?void 0:n.id)<=0)return null;const p=((n==null?void 0:n.roles)||[]).map(h=>h.id);return tO({resources:e,permissions:a,translate:u,userGroups:l,roles:p})},[t,i,n,e,a,u,l]),f=O.useMemo(()=>t,[t]);return{menu:A,isLoading:f,getItem:p=>f?!1:Id(A,p),findInMenu:f?()=>{}:Id}},X0=()=>{const e=S.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=Cf(),{pathname:i}=pt.useLocation();return O.useMemo(()=>{var C;const a=i.split("/").filter(h=>h);let l=it.cloneDeep(n),u=i,A=r(l,i);if(A||(A=r(l,a[a.length-1]),u=A?A.id:u),!A)for(let h=a.length;h>=0;h--){let E=a.slice(0,h).join("/");if(A=r(l,E),A){u=A.id;break}}const f=(C=A==null?void 0:A.url)==null?void 0:C.split("/");if(a.length>=(f==null?void 0:f.length)){const h=a[a.length-1];if(A){const E=h==="create"||i===A.url?"create":"edit",I=`resources.${u}.breadcrumbs.${E}`,B={id:`${u}-${E}`,type:"item",title:e(I,{_:e(I,{_:I})}),url:i,breadcrumbs:!0,parent:A};A.type="collapse",A.breadcrumbs=!0,A.children=A.children||[],A.children.push(B),A=B}}let p=[];if(A){let h={...A,last:!0};for(;h;)p.push(h),h=h.parent;p=p.reverse()}return{isLoading:t,navigation:{items:l},breadcrumbs:p}},[t,i,n,r,e])};function mf(e,t){const[n,r]=O.useState(()=>{const a=typeof window<"u"?localStorage.getItem(e):null;return a===null?t:JSON.parse(a)});return O.useEffect(()=>{const a=l=>{typeof window<"u"&&l.storageArea===localStorage&&l.key===e&&r(l.newValue?JSON.parse(l.newValue):l.newValue)};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}},[e,t]),[n,a=>{r(l=>{const u=typeof a=="function"?a(l):a;return typeof window<"u"&&localStorage.setItem(e,JSON.stringify(u)),u})}]}const Z0=e=>{const t=S.useRecordContext(),n=S.useTranslate(),r=S.useResourceContext(),i=t!=null&&t.id?"edit":"create";return O.useMemo(()=>{const l=`resources.${r}.title`;return e||n(`resources.${r}.title.${i}`,{_:n(l,{_:l}),...t})},[i,t,r,n,e])},Zn=()=>O.useContext(ff);function Xi(e,t){const n=gt.merge(gt.cloneDeepWith((e==null?void 0:e.sx)??{},a=>gt.isFunction(a)?a:void 0),t),[r,i]=O.useState(n);return O.useEffect(()=>{gt.isEqual(r,n)||i(n)},[r,n]),r}function nO(e,t){const[n,r]=O.useState({width:1,height:1}),i=e.current;return O.useEffect(()=>{function a(){var f;let u=0,A=0;switch(t){case"client":u=(i==null?void 0:i.clientWidth)??0,A=(i==null?void 0:i.clientHeight)??0;break;case"offset":u=(i==null?void 0:i.offsetWidth)??0,A=(i==null?void 0:i.offsetHeight)??0;break;case"scroll":u=(i==null?void 0:i.scrollWidth)??0,A=(i==null?void 0:i.scrollHeight)??0;break;case"bounding":default:{const p=((f=e.current)==null?void 0:f.getBoundingClientRect())??{width:0,height:0};u=p.width,A=p.height;break}}r({width:u,height:A})}const l=new ResizeObserver(a);return gt.isEmpty(e==null?void 0:e.current)||(l.observe(e==null?void 0:e.current),a()),()=>{l.disconnect()}},[i,t]),n}const $0=ce(q4,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Zn();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})}}});$0.propTypes={open:c.bool};const eI=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Oc=O.createContext({}),Ef=O.createContext(null),Dc=typeof document<"u",rO=Dc?O.useLayoutEffect:O.useEffect,tI=O.createContext({strict:!1});function oO(e,t,n,r){const{visualElement:i}=O.useContext(Oc),a=O.useContext(tI),l=O.useContext(Ef),u=O.useContext(eI).reducedMotion,A=O.useRef();r=r||a.renderer,!A.current&&r&&(A.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=A.current;O.useInsertionEffect(()=>{f&&f.update(n,l)});const p=O.useRef(!!window.HandoffAppearAnimations);return rO(()=>{f&&(f.render(),p.current&&f.animationState&&f.animationState.animateChanges())}),O.useEffect(()=>{f&&(f.updateFeatures(),!p.current&&f.animationState&&f.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,p.current=!1)}),f}function Ti(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iO(e,t,n){return O.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ti(n)&&(n.current=r))},[t])}function ea(e){return typeof e=="string"||Array.isArray(e)}function Mc(e){return typeof e=="object"&&typeof e.start=="function"}const If=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bf=["initial",...If];function jc(e){return Mc(e.animate)||Bf.some(t=>ea(e[t]))}function nI(e){return!!(jc(e)||e.variants)}function sO(e,t){if(jc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ea(n)?n:void 0,animate:ea(r)?r:void 0}}return e.inherit!==!1?t:{}}function aO(e){const{initial:t,animate:n}=sO(e,O.useContext(Oc));return O.useMemo(()=>({initial:t,animate:n}),[tm(t),tm(n)])}function tm(e){return Array.isArray(e)?e.join(" "):e}const nm={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"]},ta={};for(const e in nm)ta[e]={isEnabled:t=>nm[e].some(n=>!!t[n])};function lO(e){for(const t in e)ta[t]={...ta[t],...e[t]}}const rI=O.createContext({}),oI=O.createContext({}),cO=Symbol.for("motionComponentSymbol");function uO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&lO(e);function a(u,A){let f;const p={...O.useContext(eI),...u,layoutId:AO(u)},{isStatic:C}=p,h=aO(u),E=r(u,C);if(!C&&Dc){h.visualElement=oO(i,E,p,t);const I=O.useContext(oI),B=O.useContext(tI).strict;h.visualElement&&(f=h.visualElement.loadFeatures(p,B,e,I))}return N.createElement(Oc.Provider,{value:h},f&&h.visualElement?N.createElement(f,{visualElement:h.visualElement,...p}):null,n(i,u,iO(E,h.visualElement,A),E,C,h.visualElement))}const l=O.forwardRef(a);return l[cO]=i,l}function AO({layoutId:e}){const t=O.useContext(rI).id;return t&&e!==void 0?t+"-"+e:e}function dO(e){function t(r,i={}){return uO(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const fO=["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 yf(e){return typeof e!="string"||e.includes("-")?!1:!!(fO.indexOf(e)>-1||/[A-Z]/.test(e))}const Zl={};function gO(e){Object.assign(Zl,e)}const ca=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xo=new Set(ca);function iI(e,{layout:t,layoutId:n}){return Xo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zl[e]||e==="opacity")}const Cn=e=>!!(e&&e.getVelocity),pO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hO=ca.length;function CO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let l=0;l<hO;l++){const u=ca[l];if(e[u]!==void 0){const A=pO[u]||u;a+=`${A}(${e[u]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const sI=e=>t=>typeof t=="string"&&t.startsWith(e),aI=sI("--"),Bd=sI("var(--"),mO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,EO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,go=(e,t,n)=>Math.min(Math.max(n,e),t),Zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hs={...Zo,transform:e=>go(0,1,e)},Il={...Zo,default:1},zs=e=>Math.round(e*1e5)/1e5,kc=/(-)?([\d]*\.?[\d])+/g,lI=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,IO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ua(e){return typeof e=="string"}const Aa=e=>({test:t=>ua(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),io=Aa("deg"),mr=Aa("%"),De=Aa("px"),BO=Aa("vh"),yO=Aa("vw"),rm={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},om={...Zo,transform:Math.round},cI={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:io,rotateX:io,rotateY:io,rotateZ:io,scale:Il,scaleX:Il,scaleY:Il,scaleZ:Il,skew:io,skewX:io,skewY:io,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:Hs,originX:rm,originY:rm,originZ:De,zIndex:om,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:om};function vf(e,t,n,r){const{style:i,vars:a,transform:l,transformOrigin:u}=e;let A=!1,f=!1,p=!0;for(const C in t){const h=t[C];if(aI(C)){a[C]=h;continue}const E=cI[C],I=EO(h,E);if(Xo.has(C)){if(A=!0,l[C]=I,!p)continue;h!==(E.default||0)&&(p=!1)}else C.startsWith("origin")?(f=!0,u[C]=I):i[C]=I}if(t.transform||(A||r?i.transform=CO(e.transform,n,p,r):i.transform&&(i.transform="none")),f){const{originX:C="50%",originY:h="50%",originZ:E=0}=u;i.transformOrigin=`${C} ${h} ${E}`}}const bf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uI(e,t,n){for(const r in t)!Cn(t[r])&&!iI(r,n)&&(e[r]=t[r])}function vO({transformTemplate:e},t,n){return O.useMemo(()=>{const r=bf();return vf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function bO(e,t,n){const r=e.style||{},i={};return uI(i,r,e),Object.assign(i,vO(e,t,n)),e.transformValues?e.transformValues(i):i}function QO(e,t,n){const r={},i=bO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const xO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $l(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||xO.has(e)}let AI=e=>!$l(e);function wO(e){e&&(AI=t=>t.startsWith("on")?!$l(t):e(t))}try{wO(require("@emotion/is-prop-valid").default)}catch{}function TO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(AI(i)||n===!0&&$l(i)||!t&&!$l(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function im(e,t,n){return typeof e=="string"?e:De.transform(t+n*e)}function PO(e,t,n){const r=im(t,e.x,e.width),i=im(n,e.y,e.height);return`${r} ${i}`}const RO={offset:"stroke-dashoffset",array:"stroke-dasharray"},SO={offset:"strokeDashoffset",array:"strokeDasharray"};function OO(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?RO:SO;e[a.offset]=De.transform(-r);const l=De.transform(t),u=De.transform(n);e[a.array]=`${l} ${u}`}function Qf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:A=0,...f},p,C,h){if(vf(e,f,p,h),C){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:E,style:I,dimensions:B}=e;E.transform&&(B&&(I.transform=E.transform),delete E.transform),B&&(i!==void 0||a!==void 0||I.transform)&&(I.transformOrigin=PO(B,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(E.x=t),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),l!==void 0&&OO(E,l,u,A,!1)}const dI=()=>({...bf(),attrs:{}}),xf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DO(e,t,n,r){const i=O.useMemo(()=>{const a=dI();return Qf(a,t,{enableHardwareAcceleration:!1},xf(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};uI(a,e.style,e),i.style={...a,...i.style}}return i}function MO(e=!1){return(n,r,i,{latestValues:a},l)=>{const A=(yf(n)?DO:QO)(r,a,l,n),p={...TO(r,typeof n=="string",e),...A,ref:i},{children:C}=r,h=O.useMemo(()=>Cn(C)?C.get():C,[C]);return O.createElement(n,{...p,children:h})}}const wf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function fI(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const gI=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 pI(e,t,n,r){fI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gI.has(i)?i:wf(i),t.attrs[i])}function Tf(e,t){const{style:n}=e,r={};for(const i in n)(Cn(n[i])||t.style&&Cn(t.style[i])||iI(i,e))&&(r[i]=n[i]);return r}function hI(e,t){const n=Tf(e,t);for(const r in e)if(Cn(e[r])||Cn(t[r])){const i=ca.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Pf(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function jO(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const ec=e=>Array.isArray(e),kO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FO=e=>ec(e)?e[e.length-1]||0:e;function Ll(e){const t=Cn(e)?e.get():e;return kO(t)?t.toValue():t}function LO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const l={latestValues:NO(r,i,a,e),renderState:t()};return n&&(l.mount=u=>n(r,u,l)),l}const CI=e=>(t,n)=>{const r=O.useContext(Oc),i=O.useContext(Ef),a=()=>LO(e,t,r,i);return n?a():jO(a)};function NO(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Ll(a[h]);let{initial:l,animate:u}=e;const A=jc(e),f=nI(e);t&&f&&!A&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const C=p?u:l;return C&&typeof C!="boolean"&&!Mc(C)&&(Array.isArray(C)?C:[C]).forEach(E=>{const I=Pf(e,E);if(!I)return;const{transitionEnd:B,transition:v,...R}=I;for(const M in R){let x=R[M];if(Array.isArray(x)){const T=p?x.length-1:0;x=x[T]}x!==null&&(i[M]=x)}for(const M in B)i[M]=B[M]}),i}const Ot=e=>e;class sm{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 VO(e){let t=new sm,n=new sm,r=0,i=!1,a=!1;const l=new WeakSet,u={schedule:(A,f=!1,p=!1)=>{const C=p&&i,h=C?t:n;return f&&l.add(A),h.add(A)&&C&&i&&(r=t.order.length),A},cancel:A=>{n.remove(A),l.delete(A)},process:A=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f<r;f++){const p=t.order[f];p(A),l.has(p)&&(u.schedule(p),e())}i=!1,a&&(a=!1,u.process(A))}};return u}const Bl=["prepare","read","update","preRender","render","postRender"],HO=40;function zO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Bl.reduce((C,h)=>(C[h]=VO(()=>n=!0),C),{}),l=C=>a[C].process(i),u=()=>{const C=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,HO),1),i.timestamp=C,i.isProcessing=!0,Bl.forEach(l),i.isProcessing=!1,n&&t&&(r=!1,e(u))},A=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Bl.reduce((C,h)=>{const E=a[h];return C[h]=(I,B=!1,v=!1)=>(n||A(),E.schedule(I,B,v)),C},{}),cancel:C=>Bl.forEach(h=>a[h].cancel(C)),state:i,steps:a}}const{schedule:It,cancel:Vr,state:Yt,steps:FA}=zO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0),WO={useVisualState:CI({scrapeMotionValuesFromProps:hI,createRenderState:dI,onMount:(e,t,{renderState:n,latestValues:r})=>{It.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),It.render(()=>{Qf(n,r,{enableHardwareAcceleration:!1},xf(t.tagName),e.transformTemplate),pI(t,n)})}})},UO={useVisualState:CI({scrapeMotionValuesFromProps:Tf,createRenderState:bf})};function YO(e,{forwardMotionProps:t=!1},n,r){return{...yf(e)?WO:UO,preloadedFeatures:n,useRender:MO(t),createVisualElement:r,Component:e}}function kr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mI=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GO=e=>t=>mI(t)&&e(t,Fc(t));function Fr(e,t,n,r){return kr(e,t,GO(n),r)}const KO=(e,t)=>n=>t(e(n)),uo=(...e)=>e.reduce(KO);function EI(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const am=EI("dragHorizontal"),lm=EI("dragVertical");function II(e){let t=!1;if(e==="y")t=lm();else if(e==="x")t=am();else{const n=am(),r=lm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function BI(){const e=II(!0);return e?(e(),!1):!0}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,l)=>{if(a.type==="touch"||BI())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&It.update(()=>u[r](a,l))};return Fr(e.current,n,i,{passive:!e.getProps()[r]})}class qO extends Eo{mount(){this.unmount=uo(cm(this.node,!0),cm(this.node,!1))}unmount(){}}class _O extends Eo{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=uo(kr(this.node.current,"focus",()=>this.onFocus()),kr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yI=(e,t)=>t?e===t?!0:yI(e,t.parentElement):!1;function LA(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fc(n))}class JO extends Eo{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Fr(window,"pointerup",(u,A)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:p}=this.node.getProps();It.update(()=>{yI(this.node.current,u.target)?f&&f(u,A):p&&p(u,A)})},{passive:!(r.onTap||r.onPointerUp)}),l=Fr(window,"pointercancel",(u,A)=>this.cancelPress(u,A),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=uo(a,l),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const l=u=>{u.key!=="Enter"||!this.checkPressEnd()||LA("up",(A,f)=>{const{onTap:p}=this.node.getProps();p&&It.update(()=>p(A,f))})};this.removeEndListeners(),this.removeEndListeners=kr(this.node.current,"keyup",l),LA("down",(u,A)=>{this.startPress(u,A)})},n=kr(this.node.current,"keydown",t),r=()=>{this.isPressing&&LA("cancel",(a,l)=>this.cancelPress(a,l))},i=kr(this.node.current,"blur",r);this.removeAccessibleListeners=uo(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&It.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!BI()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&It.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Fr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=uo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const yd=new WeakMap,NA=new WeakMap,XO=e=>{const t=yd.get(e.target);t&&t(e)},ZO=e=>{e.forEach(XO)};function $O({root:e,...t}){const n=e||document;NA.has(n)||NA.set(n,{});const r=NA.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZO,{root:e,...t})),r[i]}function e3(e,t,n){const r=$O(t);return yd.set(e,n),r.observe(e),()=>{yd.delete(e),r.unobserve(e)}}const t3={some:0,all:1};class n3 extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:t3[i]},u=A=>{const{isIntersecting:f}=A;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:C}=this.node.getProps(),h=f?p:C;h&&h(A)};return e3(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(r3(t,n))&&this.startObserver()}unmount(){}}function r3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o3={inView:{Feature:n3},tap:{Feature:JO},focus:{Feature:_O},hover:{Feature:qO}};function vI(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 i3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function s3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Lc(e,t,n){const r=e.getProps();return Pf(r,t,n!==void 0?n:r.custom,i3(e),s3(e))}const a3="framerAppearId",l3="data-"+wf(a3);let da=Ot,Ir=Ot;process.env.NODE_ENV!=="production"&&(da=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ir=(e,t)=>{if(!e)throw new Error(t)});const Ao=e=>e*1e3,Lr=e=>e/1e3,c3={current:!1},bI=e=>Array.isArray(e)&&typeof e[0]=="number";function QI(e){return!!(!e||typeof e=="string"&&xI[e]||bI(e)||Array.isArray(e)&&e.every(QI))}const Fs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,xI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fs([0,.65,.55,1]),circOut:Fs([.55,0,1,.45]),backIn:Fs([.31,.01,.66,-.59]),backOut:Fs([.33,1.53,.69,.99])};function wI(e){if(e)return bI(e)?Fs(e):Array.isArray(e)?e.map(wI):xI[e]}function u3(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:l="loop",ease:u,times:A}={}){const f={[t]:n};A&&(f.offset=A);const p=wI(u);return Array.isArray(p)&&(f.easing=p),e.animate(f,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}function A3(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const TI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d3=1e-7,f3=12;function g3(e,t,n,r,i){let a,l,u=0;do l=t+(n-t)/2,a=TI(l,r,i)-e,a>0?n=l:t=l;while(Math.abs(a)>d3&&++u<f3);return l}function fa(e,t,n,r){if(e===t&&n===r)return Ot;const i=a=>g3(a,0,1,e,n);return a=>a===0||a===1?a:TI(i(a),t,r)}const p3=fa(.42,0,1,1),h3=fa(0,0,.58,1),PI=fa(.42,0,.58,1),C3=e=>Array.isArray(e)&&typeof e[0]!="number",RI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,SI=e=>t=>1-e(1-t),OI=e=>1-Math.sin(Math.acos(e)),Rf=SI(OI),m3=RI(Rf),DI=fa(.33,1.53,.69,.99),Sf=SI(DI),E3=RI(Sf),I3=e=>(e*=2)<1?.5*Sf(e):.5*(2-Math.pow(2,-10*(e-1))),um={linear:Ot,easeIn:p3,easeInOut:PI,easeOut:h3,circIn:OI,circInOut:m3,circOut:Rf,backIn:Sf,backInOut:E3,backOut:DI,anticipate:I3},Am=e=>{if(Array.isArray(e)){Ir(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return fa(t,n,r,i)}else if(typeof e=="string")return Ir(um[e]!==void 0,`Invalid easing type '${e}'`),um[e];return e},Of=(e,t)=>n=>!!(ua(n)&&IO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),MI=(e,t,n)=>r=>{if(!ua(r))return r;const[i,a,l,u]=r.match(kc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},B3=e=>go(0,255,e),VA={...Zo,transform:e=>Math.round(B3(e))},Uo={test:Of("rgb","red"),parse:MI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+VA.transform(e)+", "+VA.transform(t)+", "+VA.transform(n)+", "+zs(Hs.transform(r))+")"};function y3(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const vd={test:Of("#"),parse:y3,transform:Uo.transform},Pi={test:Of("hsl","hue"),parse:MI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(zs(t))+", "+mr.transform(zs(n))+", "+zs(Hs.transform(r))+")"},ln={test:e=>Uo.test(e)||vd.test(e)||Pi.test(e),parse:e=>Uo.test(e)?Uo.parse(e):Pi.test(e)?Pi.parse(e):vd.parse(e),transform:e=>ua(e)?e:e.hasOwnProperty("red")?Uo.transform(e):Pi.transform(e)},wt=(e,t,n)=>-n*e+n*t+e;function HA(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 v3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,l=0;if(!t)i=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,A=2*n-u;i=HA(A,u,e+1/3),a=HA(A,u,e),l=HA(A,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}const zA=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},b3=[vd,Uo,Pi],Q3=e=>b3.find(t=>t.test(e));function dm(e){const t=Q3(e);Ir(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Pi&&(n=v3(n)),n}const jI=(e,t)=>{const n=dm(e),r=dm(t),i={...n};return a=>(i.red=zA(n.red,r.red,a),i.green=zA(n.green,r.green,a),i.blue=zA(n.blue,r.blue,a),i.alpha=wt(n.alpha,r.alpha,a),Uo.transform(i))};function x3(e){var t,n;return isNaN(e)&&ua(e)&&(((t=e.match(kc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(lI))===null||n===void 0?void 0:n.length)||0)>0}const kI={regex:mO,countKey:"Vars",token:"${v}",parse:Ot},FI={regex:lI,countKey:"Colors",token:"${c}",parse:ln.parse},LI={regex:kc,countKey:"Numbers",token:"${n}",parse:Zo.parse};function WA(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function tc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&WA(n,kI),WA(n,FI),WA(n,LI),n}function NI(e){return tc(e).values}function VI(e){const{values:t,numColors:n,numVars:r,tokenised:i}=tc(e),a=t.length;return l=>{let u=i;for(let A=0;A<a;A++)A<r?u=u.replace(kI.token,l[A]):A<r+n?u=u.replace(FI.token,ln.transform(l[A])):u=u.replace(LI.token,zs(l[A]));return u}}const w3=e=>typeof e=="number"?0:e;function T3(e){const t=NI(e);return VI(e)(t.map(w3))}const po={test:x3,parse:NI,createTransformer:VI,getAnimatableNone:T3},HI=(e,t)=>n=>`${n>0?t:e}`;function zI(e,t){return typeof e=="number"?n=>wt(e,t,n):ln.test(e)?jI(e,t):e.startsWith("var(")?HI(e,t):UI(e,t)}const WI=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,l)=>zI(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=i[l](a);return n}},P3=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zI(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},UI=(e,t)=>{const n=po.createTransformer(t),r=tc(e),i=tc(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?uo(WI(r.values,i.values),n):(da(!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.`),HI(e,t))},na=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},fm=(e,t)=>n=>wt(e,t,n);function R3(e){return typeof e=="number"?fm:typeof e=="string"?ln.test(e)?jI:UI:Array.isArray(e)?WI:typeof e=="object"?P3:fm}function S3(e,t,n){const r=[],i=n||R3(e[0]),a=e.length-1;for(let l=0;l<a;l++){let u=i(e[l],e[l+1]);if(t){const A=Array.isArray(t)?t[l]||Ot:t;u=uo(A,u)}r.push(u)}return r}function YI(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ir(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=S3(t,r,i),u=l.length,A=f=>{let p=0;if(u>1)for(;p<e.length-2&&!(f<e[p+1]);p++);const C=na(e[p],e[p+1],f);return l[p](C)};return n?f=>A(go(e[0],e[a-1],f)):A}function O3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=na(0,t,r);e.push(wt(n,1,i))}}function D3(e){const t=[0];return O3(t,e.length-1),t}function M3(e,t){return e.map(n=>n*t)}function j3(e,t){return e.map(()=>t||PI).splice(0,e.length-1)}function nc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=C3(r)?r.map(Am):Am(r),a={done:!1,value:t[0]},l=M3(n&&n.length===t.length?n:D3(t),e),u=YI(l,t,{ease:Array.isArray(i)?i:j3(t,i)});return{calculatedDuration:e,next:A=>(a.value=u(A),a.done=A>=e,a)}}function GI(e,t){return t?e*(1e3/t):0}const k3=5;function KI(e,t,n){const r=Math.max(t-k3,0);return GI(n-e(r),t-r)}const UA=.001,F3=.01,gm=10,L3=.05,N3=1;function V3({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;da(e<=Ao(gm),"Spring duration must be 10 seconds or less");let l=1-t;l=go(L3,N3,l),e=go(F3,gm,Lr(e)),l<1?(i=f=>{const p=f*l,C=p*e,h=p-n,E=bd(f,l),I=Math.exp(-C);return UA-h/E*I},a=f=>{const C=f*l*e,h=C*n+n,E=Math.pow(l,2)*Math.pow(f,2)*e,I=Math.exp(-C),B=bd(Math.pow(f,2),l);return(-i(f)+UA>0?-1:1)*((h-E)*I)/B}):(i=f=>{const p=Math.exp(-f*e),C=(f-n)*e+1;return-UA+p*C},a=f=>{const p=Math.exp(-f*e),C=(n-f)*(e*e);return p*C});const u=5/e,A=z3(i,a,u);if(e=Ao(e),isNaN(A))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(A,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const H3=12;function z3(e,t,n){let r=n;for(let i=1;i<H3;i++)r=r-e(r)/t(r);return r}function bd(e,t){return e*Math.sqrt(1-t*t)}const W3=["duration","bounce"],U3=["stiffness","damping","mass"];function pm(e,t){return t.some(n=>e[n]!==void 0)}function Y3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pm(e,U3)&&pm(e,W3)){const n=V3(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function qI({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],l={done:!1,value:i},{stiffness:u,damping:A,mass:f,velocity:p,duration:C,isResolvedFromDuration:h}=Y3(r),E=p?-Lr(p):0,I=A/(2*Math.sqrt(u*f)),B=a-i,v=Lr(Math.sqrt(u/f)),R=Math.abs(B)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let M;if(I<1){const x=bd(v,I);M=T=>{const P=Math.exp(-I*v*T);return a-P*((E+I*v*B)/x*Math.sin(x*T)+B*Math.cos(x*T))}}else if(I===1)M=x=>a-Math.exp(-v*x)*(B+(E+v*B)*x);else{const x=v*Math.sqrt(I*I-1);M=T=>{const P=Math.exp(-I*v*T),F=Math.min(x*T,300);return a-P*((E+I*v*B)*Math.sinh(F)+x*B*Math.cosh(F))/x}}return{calculatedDuration:h&&C||null,next:x=>{const T=M(x);if(h)l.done=x>=C;else{let P=E;x!==0&&(I<1?P=KI(M,x,T):P=0);const F=Math.abs(P)<=n,j=Math.abs(a-T)<=t;l.done=F&&j}return l.value=l.done?a:T,l}}}function hm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:A,restDelta:f=.5,restSpeed:p}){const C=e[0],h={done:!1,value:C},E=K=>u!==void 0&&K<u||A!==void 0&&K>A,I=K=>u===void 0?A:A===void 0||Math.abs(u-K)<Math.abs(A-K)?u:A;let B=n*t;const v=C+B,R=l===void 0?v:l(v);R!==v&&(B=R-C);const M=K=>-B*Math.exp(-K/r),x=K=>R+M(K),T=K=>{const q=M(K),U=x(K);h.done=Math.abs(q)<=f,h.value=h.done?R:U};let P,F;const j=K=>{E(h.value)&&(P=K,F=qI({keyframes:[h.value,I(h.value)],velocity:KI(x,K,h.value),damping:i,stiffness:a,restDelta:f,restSpeed:p}))};return j(0),{calculatedDuration:null,next:K=>{let q=!1;return!F&&P===void 0&&(q=!0,T(K),j(K)),P!==void 0&&K>P?F.next(K-P):(!q&&T(K),h)}}}const G3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>It.update(t,!0),stop:()=>Vr(t),now:()=>Yt.isProcessing?Yt.timestamp:performance.now()}},Cm=2e4;function mm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Cm;)t+=n,r=e.next(t);return t>=Cm?1/0:t}const K3={decay:hm,inertia:hm,tween:nc,keyframes:nc,spring:qI};function rc({autoplay:e=!0,delay:t=0,driver:n=G3,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",onPlay:A,onStop:f,onComplete:p,onUpdate:C,...h}){let E=1,I=!1,B,v;const R=()=>{v=new Promise(_=>{B=_})};R();let M;const x=K3[i]||nc;let T;x!==nc&&typeof r[0]!="number"&&(T=YI([0,100],r,{clamp:!1}),r=[0,100]);const P=x({...h,keyframes:r});let F;u==="mirror"&&(F=x({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let j="idle",K=null,q=null,U=null;P.calculatedDuration===null&&a&&(P.calculatedDuration=mm(P));const{calculatedDuration:$}=P;let ae=1/0,ie=1/0;$!==null&&(ae=$+l,ie=ae*(a+1)-l);let X=0;const G=_=>{if(q===null)return;E>0&&(q=Math.min(q,_)),E<0&&(q=Math.min(_-ie/E,q)),K!==null?X=K:X=Math.round(_-q)*E;const Ae=X-t*(E>=0?1:-1),fe=E>=0?Ae<0:Ae>ie;X=Math.max(Ae,0),j==="finished"&&K===null&&(X=ie);let le=X,ue=P;if(a){const pe=X/ae;let me=Math.floor(pe),Qe=pe%1;!Qe&&pe>=1&&(Qe=1),Qe===1&&me--,me=Math.min(me,a+1);const se=!!(me%2);se&&(u==="reverse"?(Qe=1-Qe,l&&(Qe-=l/ae)):u==="mirror"&&(ue=F));let He=go(0,1,Qe);X>ie&&(He=u==="reverse"&&se?1:0),le=He*ae}const ge=fe?{done:!1,value:r[0]}:ue.next(le);T&&(ge.value=T(ge.value));let{done:Ee}=ge;!fe&&$!==null&&(Ee=E>=0?X>=ie:X<=0);const Ce=K===null&&(j==="finished"||j==="running"&&Ee);return C&&C(ge.value),Ce&&k(),ge},H=()=>{M&&M.stop(),M=void 0},J=()=>{j="idle",H(),B(),R(),q=U=null},k=()=>{j="finished",p&&p(),H(),B()},ee=()=>{if(I)return;M||(M=n(G));const _=M.now();A&&A(),K!==null?q=_-K:(!q||j==="finished")&&(q=_),j==="finished"&&R(),U=q,K=null,j="running",M.start()};e&&ee();const z={then(_,Ae){return v.then(_,Ae)},get time(){return Lr(X)},set time(_){_=Ao(_),X=_,K!==null||!M||E===0?K=_:q=M.now()-_/E},get duration(){const _=P.calculatedDuration===null?mm(P):P.calculatedDuration;return Lr(_)},get speed(){return E},set speed(_){_===E||!M||(E=_,z.time=Lr(X))},get state(){return j},play:ee,pause:()=>{j="paused",K=X},stop:()=>{I=!0,j!=="idle"&&(j="idle",f&&f(),J())},cancel:()=>{U!==null&&G(U),J()},complete:()=>{j="finished"},sample:_=>(q=0,G(_))};return z}function q3(e){let t;return()=>(t===void 0&&(t=e()),t)}const _3=q3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),J3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),yl=10,X3=2e4,Z3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!QI(t.ease);function $3(e,t,{onUpdate:n,onComplete:r,...i}){if(!(_3()&&J3.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let l=!1,u,A;const f=()=>{A=new Promise(M=>{u=M})};f();let{keyframes:p,duration:C=300,ease:h,times:E}=i;if(Z3(t,i)){const M=rc({...i,repeat:0,delay:0});let x={done:!1,value:p[0]};const T=[];let P=0;for(;!x.done&&P<X3;)x=M.sample(P),T.push(x.value),P+=yl;E=void 0,p=T,C=P-yl,h="linear"}const I=u3(e.owner.current,t,p,{...i,duration:C,ease:h,times:E});i.syncStart&&(I.startTime=Yt.isProcessing?Yt.timestamp:document.timeline?document.timeline.currentTime:performance.now());const B=()=>I.cancel(),v=()=>{It.update(B),u(),f()};return I.onfinish=()=>{e.set(A3(p,i)),r&&r(),v()},{then(M,x){return A.then(M,x)},attachTimeline(M){return I.timeline=M,I.onfinish=null,Ot},get time(){return Lr(I.currentTime||0)},set time(M){I.currentTime=Ao(M)},get speed(){return I.playbackRate},set speed(M){I.playbackRate=M},get duration(){return Lr(C)},play:()=>{l||(I.play(),Vr(B))},pause:()=>I.pause(),stop:()=>{if(l=!0,I.playState==="idle")return;const{currentTime:M}=I;if(M){const x=rc({...i,autoplay:!1});e.setWithVelocity(x.sample(M-yl).value,x.sample(M).value,yl)}v()},complete:()=>I.finish(),cancel:v}}function eD({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ot,pause:Ot,stop:Ot,then:a=>(a(),Promise.resolve()),cancel:Ot,complete:Ot});return t?rc({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const tD={type:"spring",stiffness:500,damping:25,restSpeed:10},nD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rD={type:"keyframes",duration:.8},oD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iD=(e,{keyframes:t})=>t.length>2?rD:Xo.has(e)?e.startsWith("scale")?nD(t[1]):tD:oD,Qd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(po.test(t)||t==="0")&&!t.startsWith("url(")),sD=new Set(["brightness","contrast","saturate","opacity"]);function aD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(kc)||[];if(!r)return e;const i=n.replace(r,"");let a=sD.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const lD=/([a-z-]*)\(.*?\)/g,xd={...po,getAnimatableNone:e=>{const t=e.match(lD);return t?t.map(aD).join(" "):e}},cD={...cI,color:ln,backgroundColor:ln,outlineColor:ln,fill:ln,stroke:ln,borderColor:ln,borderTopColor:ln,borderRightColor:ln,borderBottomColor:ln,borderLeftColor:ln,filter:xd,WebkitFilter:xd},Df=e=>cD[e];function _I(e,t){let n=Df(e);return n!==xd&&(n=po),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const JI=e=>/^0[^.\s]+$/.test(e);function uD(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||JI(e)}function AD(e,t,n,r){const i=Qd(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const l=r.from!==void 0?r.from:e.get();let u;const A=[];for(let f=0;f<a.length;f++)a[f]===null&&(a[f]=f===0?l:a[f-1]),uD(a[f])&&A.push(f),typeof a[f]=="string"&&a[f]!=="none"&&a[f]!=="0"&&(u=a[f]);if(i&&A.length&&u)for(let f=0;f<A.length;f++){const p=A[f];a[p]=_I(t,u)}return a}function dD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:l,repeatDelay:u,from:A,elapsed:f,...p}){return!!Object.keys(p).length}function XI(e,t){return e[t]||e.default||e}const Mf=(e,t,n,r={})=>i=>{const a=XI(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ao(l);const A=AD(t,e,n,a),f=A[0],p=A[A.length-1],C=Qd(e,f),h=Qd(e,p);da(C===h,`You are trying to animate ${e} from "${f}" to "${p}". ${f} is not an animatable value - to enable this animation set ${f} to a value animatable to ${p} via the \`style\` property.`);let E={keyframes:A,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-u,onUpdate:I=>{t.set(I),a.onUpdate&&a.onUpdate(I)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(dD(a)||(E={...E,...iD(e,E)}),E.duration&&(E.duration=Ao(E.duration)),E.repeatDelay&&(E.repeatDelay=Ao(E.repeatDelay)),!C||!h||c3.current||a.type===!1)return eD(E);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const I=$3(t,e,E);if(I)return I}return rc(E)};function oc(e){return!!(Cn(e)&&e.add)}const ZI=e=>/^\-?\d*\.?\d+$/.test(e);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ff{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>kf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Em=new Set;function Lf(e,t,n){e||Em.has(t)||(console.warn(t),n&&console.warn(n),Em.add(t))}const fD=e=>!isNaN(parseFloat(e));class gD{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:l}=Yt;this.lastUpdated!==l&&(this.timeDelta=a,this.lastUpdated=l,It.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>It.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=fD(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Lf(!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 Ff);const r=this.events[t].add(n);return t==="change"?()=>{r(),It.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?GI(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 Ni(e,t){return new gD(e,t)}const $I=e=>t=>t.test(e),pD={test:e=>e==="auto",parse:e=>e},eB=[Zo,De,mr,io,yO,BO,pD],Ps=e=>eB.find($I(e)),hD=[...eB,ln,po],CD=e=>hD.find($I(e));function mD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ni(n))}function ED(e,t){const n=Lc(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const l in a){const u=FO(a[l]);mD(e,l,u)}}function ID(e,t,n){var r,i;const a=Object.keys(t).filter(u=>!e.hasValue(u)),l=a.length;if(l)for(let u=0;u<l;u++){const A=a[u],f=t[A];let p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(i=(r=n[A])!==null&&r!==void 0?r:e.readValue(A))!==null&&i!==void 0?i:t[A]),p!=null&&(typeof p=="string"&&(ZI(p)||JI(p))?p=parseFloat(p):!CD(p)&&po.test(f)&&(p=_I(A,f)),e.addValue(A,Ni(p,{owner:e})),n[A]===void 0&&(n[A]=p),p!==null&&e.setBaseTarget(A,p))}}function BD(e,t){return t?(t[e]||t.default||t).from:void 0}function yD(e,t,n){const r={};for(const i in e){const a=BD(i,t);if(a!==void 0)r[i]=a;else{const l=n.getValue(i);l&&(r[i]=l.get())}}return r}function vD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tB(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=e.makeTargetAnimatable(t);const A=e.getValue("willChange");r&&(a=r);const f=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const C in u){const h=e.getValue(C),E=u[C];if(!h||E===void 0||p&&vD(p,C))continue;const I={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!h.hasAnimated){const v=e.getProps()[l3];v&&(I.elapsed=window.HandoffAppearAnimations(v,C,h,It),I.syncStart=!0)}h.start(Mf(C,h,E,e.shouldReduceMotion&&Xo.has(C)?{type:!1}:I));const B=h.animation;oc(A)&&(A.add(C),B.then(()=>A.remove(C))),f.push(B)}return l&&Promise.all(f).then(()=>{l&&ED(e,l)}),f}function wd(e,t,n={}){const r=Lc(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(tB(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:C}=i;return bD(e,t,f+A,p,C,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[A,f]=u==="beforeChildren"?[a,l]:[l,a];return A().then(()=>f())}else return Promise.all([a(),l(n.delay)])}function bD(e,t,n=0,r=0,i=1,a){const l=[],u=(e.variantChildren.size-1)*r,A=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(QD).forEach((f,p)=>{f.notify("AnimationStart",t),l.push(wd(f,t,{...a,delay:n+A(p)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(l)}function QD(e,t){return e.sortNodePosition(t)}function xD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>wd(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=wd(e,t,n);else{const i=typeof t=="function"?Lc(e,t,n.custom):t;r=Promise.all(tB(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const wD=[...If].reverse(),TD=If.length;function PD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xD(e,n,r)))}function RD(e){let t=PD(e);const n=OD();let r=!0;const i=(A,f)=>{const p=Lc(e,f);if(p){const{transition:C,transitionEnd:h,...E}=p;A={...A,...E,...h}}return A};function a(A){t=A(e)}function l(A,f){const p=e.getProps(),C=e.getVariantContext(!0)||{},h=[],E=new Set;let I={},B=1/0;for(let R=0;R<TD;R++){const M=wD[R],x=n[M],T=p[M]!==void 0?p[M]:C[M],P=ea(T),F=M===f?x.isActive:null;F===!1&&(B=R);let j=T===C[M]&&T!==p[M]&&P;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),x.protectedKeys={...I},!x.isActive&&F===null||!T&&!x.prevProp||Mc(T)||typeof T=="boolean")continue;const K=SD(x.prevProp,T);let q=K||M===f&&x.isActive&&!j&&P||R>B&&P;const U=Array.isArray(T)?T:[T];let $=U.reduce(i,{});F===!1&&($={});const{prevResolvedValues:ae={}}=x,ie={...ae,...$},X=G=>{q=!0,E.delete(G),x.needsAnimating[G]=!0};for(const G in ie){const H=$[G],J=ae[G];I.hasOwnProperty(G)||(H!==J?ec(H)&&ec(J)?!vI(H,J)||K?X(G):x.protectedKeys[G]=!0:H!==void 0?X(G):E.add(G):H!==void 0&&E.has(G)?X(G):x.protectedKeys[G]=!0)}x.prevProp=T,x.prevResolvedValues=$,x.isActive&&(I={...I,...$}),r&&e.blockInitialAnimation&&(q=!1),q&&!j&&h.push(...U.map(G=>({animation:G,options:{type:M,...A}})))}if(E.size){const R={};E.forEach(M=>{const x=e.getBaseTarget(M);x!==void 0&&(R[M]=x)}),h.push({animation:R})}let v=!!h.length;return r&&p.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function u(A,f,p){var C;if(n[A].isActive===f)return Promise.resolve();(C=e.variantChildren)===null||C===void 0||C.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(A,f)}),n[A].isActive=f;const h=l(p,A);for(const E in n)n[E].protectedKeys={};return h}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n}}function SD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vI(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OD(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}class DD extends Eo{constructor(t){super(t),t.animationState||(t.animationState=RD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Mc(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 MD=0;class jD extends Eo{constructor(){super(...arguments),this.id=MD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const kD={animation:{Feature:DD},exit:{Feature:jD}},Im=(e,t)=>Math.abs(e-t);function FD(e,t){const n=Im(e.x,t.x),r=Im(e.y,t.y);return Math.sqrt(n**2+r**2)}class nB{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=GA(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,C=FD(f.offset,{x:0,y:0})>=3;if(!p&&!C)return;const{point:h}=f,{timestamp:E}=Yt;this.history.push({...h,timestamp:E});const{onStart:I,onMove:B}=this.handlers;p||(I&&I(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=YA(p,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:C,onSessionEnd:h}=this.handlers,E=GA(f.type==="pointercancel"?this.lastMoveEventInfo:YA(p,this.transformPagePoint),this.history);this.startEvent&&C&&C(f,E),h&&h(f,E)},!mI(t))return;this.handlers=n,this.transformPagePoint=r;const i=Fc(t),a=YA(i,this.transformPagePoint),{point:l}=a,{timestamp:u}=Yt;this.history=[{...l,timestamp:u}];const{onSessionStart:A}=n;A&&A(t,GA(a,this.history)),this.removeListeners=uo(Fr(window,"pointermove",this.handlePointerMove),Fr(window,"pointerup",this.handlePointerUp),Fr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}}function YA(e,t){return t?{point:t(e.point)}:e}function Bm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function GA({point:e},t){return{point:e,delta:Bm(e,rB(t)),offset:Bm(e,LD(t)),velocity:ND(t,.1)}}function LD(e){return e[0]}function rB(e){return e[e.length-1]}function ND(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rB(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ao(t)));)n--;if(!r)return{x:0,y:0};const a=Lr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Sn(e){return e.max-e.min}function Td(e,t=0,n=.01){return Math.abs(e-t)<=n}function ym(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),(Td(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(Td(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ws(e,t,n,r){ym(e.x,t.x,n.x,r?r.originX:void 0),ym(e.y,t.y,n.y,r?r.originY:void 0)}function vm(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function VD(e,t,n){vm(e.x,t.x,n.x),vm(e.y,t.y,n.y)}function bm(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function Us(e,t,n){bm(e.x,t.x,n.x),bm(e.y,t.y,n.y)}function HD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Qm(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 zD(e,{top:t,left:n,bottom:r,right:i}){return{x:Qm(e.x,n,i),y:Qm(e.y,t,r)}}function xm(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 WD(e,t){return{x:xm(e.x,t.x),y:xm(e.y,t.y)}}function UD(e,t){let n=.5;const r=Sn(e),i=Sn(t);return i>r?n=na(t.min,t.max-r,e.min):r>i&&(n=na(e.min,e.max-i,t.min)),go(0,1,n)}function YD(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 Pd=.35;function GD(e=Pd){return e===!1?e=0:e===!0&&(e=Pd),{x:wm(e,"left","right"),y:wm(e,"top","bottom")}}function wm(e,t,n){return{min:Tm(e,t),max:Tm(e,n)}}function Tm(e,t){return typeof e=="number"?e:e[t]||0}const Pm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ri=()=>({x:Pm(),y:Pm()}),Rm=()=>({min:0,max:0}),Lt=()=>({x:Rm(),y:Rm()});function gr(e){return[e("x"),e("y")]}function oB({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function KD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qD(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 KA(e){return e===void 0||e===1}function Rd({scale:e,scaleX:t,scaleY:n}){return!KA(e)||!KA(t)||!KA(n)}function Vo(e){return Rd(e)||iB(e)||e.z||e.rotate||e.rotateX||e.rotateY}function iB(e){return Sm(e.x)||Sm(e.y)}function Sm(e){return e&&e!=="0%"}function ic(e,t,n){const r=e-n,i=t*r;return n+i}function Om(e,t,n,r,i){return i!==void 0&&(e=ic(e,i,r)),ic(e,n,r)+t}function Sd(e,t=0,n=1,r,i){e.min=Om(e.min,t,n,r,i),e.max=Om(e.max,t,n,r,i)}function sB(e,{x:t,y:n}){Sd(e.x,t.translate,t.scale,t.originPoint),Sd(e.y,n.translate,n.scale,n.originPoint)}function _D(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,l;for(let u=0;u<i;u++){a=n[u],l=a.projectionDelta;const A=a.instance;A&&A.style&&A.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Si(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,sB(e,l)),r&&Vo(a.latestValues)&&Si(e,a.latestValues))}t.x=Dm(t.x),t.y=Dm(t.y)}function Dm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function so(e,t){e.min=e.min+t,e.max=e.max+t}function Mm(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,l=wt(e.min,e.max,a);Sd(e,t[n],t[r],l,t.scale)}const JD=["x","scaleX","originX"],XD=["y","scaleY","originY"];function Si(e,t){Mm(e.x,t,JD),Mm(e.y,t,XD)}function aB(e,t){return oB(qD(e.getBoundingClientRect(),t))}function ZD(e,t,n){const r=aB(e,n),{scroll:i}=t;return i&&(so(r.x,i.offset.x),so(r.y,i.offset.y)),r}const $D=new WeakMap;class eM{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=Lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=A=>{this.stopAnimation(),n&&this.snapToCursor(Fc(A,"page").point)},a=(A,f)=>{const{drag:p,dragPropagation:C,onDragStart:h}=this.getProps();if(p&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=II(p),!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),gr(I=>{let B=this.getAxisMotionValue(I).get()||0;if(mr.test(B)){const{projection:v}=this.visualElement;if(v&&v.layout){const R=v.layout.layoutBox[I];R&&(B=Sn(R)*(parseFloat(B)/100))}}this.originPoint[I]=B}),h&&It.update(()=>h(A,f),!1,!0);const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},l=(A,f)=>{const{dragPropagation:p,dragDirectionLock:C,onDirectionLock:h,onDrag:E}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:I}=f;if(C&&this.currentDirection===null){this.currentDirection=tM(I),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,I),this.updateAxis("y",f.point,I),this.visualElement.render(),E&&E(A,f)},u=(A,f)=>this.stop(A,f);this.panSession=new nB(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&It.update(()=>a(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:i}=this.getProps();if(!r||!vl(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=HD(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Ti(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=zD(r.layoutBox,t):this.constraints=!1,this.elastic=GD(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&gr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=YD(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ti(t))return!1;const r=t.current;Ir(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=ZD(r,i.root,this.visualElement.getTransformPagePoint());let l=WD(i.layout.layoutBox,a);if(n){const u=n(KD(l));this.hasMutatedConstraints=!!u,u&&(l=oB(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),A=this.constraints||{},f=gr(p=>{if(!vl(p,n,this.currentDirection))return;let C=A&&A[p]||{};l&&(C={min:0,max:0});const h=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?t[p]:0,bounceStiffness:h,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...a,...C};return this.startAxisValueAnimation(p,I)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Mf(t,r,0,n))}stopAnimation(){gr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){gr(n=>{const{drag:r}=this.getProps();if(!vl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];a.set(t[n]-wt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ti(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gr(l=>{const u=this.getAxisMotionValue(l);if(u){const A=u.get();i[l]=UD({min:A,max:A},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gr(l=>{if(!vl(l,t,null))return;const u=this.getAxisMotionValue(l),{min:A,max:f}=this.constraints[l];u.set(wt(A,f,i[l]))})}addListeners(){if(!this.visualElement.current)return;$D.set(this.visualElement,this);const t=this.visualElement.current,n=Fr(t,"pointerdown",A=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(A)}),r=()=>{const{dragConstraints:A}=this.getProps();Ti(A)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const l=kr(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:A,hasLayoutChanged:f})=>{this.isDragging&&f&&(gr(p=>{const C=this.getAxisMotionValue(p);C&&(this.originPoint[p]+=A[p].translate,C.set(C.get()+A[p].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:l=Pd,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function vl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nM extends Eo{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new eM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const jm=e=>(t,n)=>{e&&It.update(()=>e(t,n))};class rM extends Eo{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new nB(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:jm(t),onStart:jm(n),onMove:r,onEnd:(a,l)=>{delete this.session,i&&It.update(()=>i(a,l))}}}mount(){this.removePointerDownListener=Fr(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 oM(){const e=O.useContext(Ef);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=O.useId();return O.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function km(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(De.test(e))e=parseFloat(e);else return e;const n=km(e,t.target.x),r=km(e,t.target.y);return`${n}% ${r}%`}},iM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=po.parse(e);if(i.length>5)return r;const a=po.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,A=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=A;const f=wt(u,A,.5);return typeof i[2+l]=="number"&&(i[2+l]/=f),typeof i[3+l]=="number"&&(i[3+l]/=f),a(i)}};class sM extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;gO(aM),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||It.postRender(()=>{const u=l.getStack();(!u||!u.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lB(e){const[t,n]=oM(),r=O.useContext(rI);return O.createElement(sM,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(oI),isPresent:t,safeToRemove:n})}const aM={borderRadius:{...Rs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rs,borderTopRightRadius:Rs,borderBottomLeftRadius:Rs,borderBottomRightRadius:Rs,boxShadow:iM},cB=["TopLeft","TopRight","BottomLeft","BottomRight"],lM=cB.length,Fm=e=>typeof e=="string"?parseFloat(e):e,Lm=e=>typeof e=="number"||De.test(e);function cM(e,t,n,r,i,a){i?(e.opacity=wt(0,n.opacity!==void 0?n.opacity:1,uM(r)),e.opacityExit=wt(t.opacity!==void 0?t.opacity:1,0,AM(r))):a&&(e.opacity=wt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<lM;l++){const u=`border${cB[l]}Radius`;let A=Nm(t,u),f=Nm(n,u);if(A===void 0&&f===void 0)continue;A||(A=0),f||(f=0),A===0||f===0||Lm(A)===Lm(f)?(e[u]=Math.max(wt(Fm(A),Fm(f),r),0),(mr.test(f)||mr.test(A))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function Nm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const uM=uB(0,.5,Rf),AM=uB(.5,.95,Ot);function uB(e,t,n){return r=>r<e?0:r>t?1:n(na(e,t,r))}function Vm(e,t){e.min=t.min,e.max=t.max}function zn(e,t){Vm(e.x,t.x),Vm(e.y,t.y)}function Hm(e,t,n,r,i){return e-=t,e=ic(e,1/n,r),i!==void 0&&(e=ic(e,1/i,r)),e}function dM(e,t=0,n=1,r=.5,i,a=e,l=e){if(mr.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(a.min,a.max,r);e===a&&(u-=t),e.min=Hm(e.min,t,n,u,i),e.max=Hm(e.max,t,n,u,i)}function zm(e,t,[n,r,i],a,l){dM(e,t[n],t[r],t[i],t.scale,a,l)}const fM=["x","scaleX","originX"],gM=["y","scaleY","originY"];function Wm(e,t,n,r){zm(e.x,t,fM,n?n.x:void 0,r?r.x:void 0),zm(e.y,t,gM,n?n.y:void 0,r?r.y:void 0)}function Um(e){return e.translate===0&&e.scale===1}function AB(e){return Um(e.x)&&Um(e.y)}function pM(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 dB(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 Ym(e){return Sn(e.x)/Sn(e.y)}class hM{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(kf(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;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:i}=t.options;i===!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 Gm(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:A,rotateX:f,rotateY:p}=n;A&&(r+=`rotate(${A}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const CM=(e,t)=>e.depth-t.depth;class mM{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){kf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CM),this.isDirty=!1,this.children.forEach(t)}}function EM(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Vr(r),e(a-t))};return It.read(r,!0),()=>Vr(r)}function IM(e){window.MotionDebug&&window.MotionDebug.record(e)}function BM(e){return e instanceof SVGElement&&e.tagName!=="svg"}function yM(e,t,n){const r=Cn(e)?e:Ni(e);return r.start(Mf("",r,t,n)),r.animation}const Km=["","X","Y","Z"],qm=1e3;let vM=0;const Ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fB({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=vM++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Ho.totalNodes=Ho.resolvedTargetDeltas=Ho.recalculatedProjection=0,this.nodes.forEach(xM),this.nodes.forEach(SM),this.nodes.forEach(OM),this.nodes.forEach(wM),IM(Ho)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let A=0;A<this.path.length;A++)this.path[A].shouldResetTransform=!0;this.root===this&&(this.nodes=new mM)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Ff),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const A=this.eventHandlers.get(l);A&&A.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=BM(l),this.instance=l;const{layoutId:A,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||A)&&(this.isLayoutDirty=!0),e){let C;const h=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,C&&C(),C=EM(h,250),Nl.hasAnimatedSinceResize&&(Nl.hasAnimatedSinceResize=!1,this.nodes.forEach(Jm))})}A&&this.root.registerSharedNode(A,this),this.options.animate!==!1&&p&&(A||f)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:h,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const B=this.options.transition||p.getDefaultTransition()||FM,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=p.getProps(),M=!this.targetLayout||!dB(this.targetLayout,I)||E,x=!h&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,x);const T={...XI(B,"layout"),onPlay:v,onComplete:R};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else h||Jm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(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(DM),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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 C=this.path[p];C.shouldResetTransform=!0,C.updateScroll("snapshot"),C.options.layoutRoot&&C.willUpdate(!1)}const{layoutId:u,layout:A}=this.options;if(u===void 0&&!A)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_m);return}this.isUpdating||this.nodes.forEach(PM),this.isUpdating=!1,this.nodes.forEach(RM),this.nodes.forEach(bM),this.nodes.forEach(QM),this.clearAllSnapshots();const u=performance.now();Yt.delta=go(0,1e3/60,u-Yt.timestamp),Yt.timestamp=u,Yt.isProcessing=!0,FA.update.process(Yt),FA.preRender.process(Yt),FA.render.process(Yt),Yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(TM),this.sharedNodes.forEach(MM)}scheduleUpdateProjection(){It.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){It.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 A=0;A<this.path.length;A++)this.path[A].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:l,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!AB(this.projectionDelta),A=this.getTransformTemplate(),f=A?A(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&(u||Vo(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let A=this.removeElementScroll(u);return l&&(A=this.removeTransform(A)),LM(A),{animationId:this.root.animationId,measuredBox:u,layoutBox:A,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Lt();const u=l.measureViewportBox(),{scroll:A}=this.root;return A&&(so(u.x,A.offset.x),so(u.y,A.offset.y)),u}removeElementScroll(l){const u=Lt();zn(u,l);for(let A=0;A<this.path.length;A++){const f=this.path[A],{scroll:p,options:C}=f;if(f!==this.root&&p&&C.layoutScroll){if(p.isRoot){zn(u,l);const{scroll:h}=this.root;h&&(so(u.x,-h.offset.x),so(u.y,-h.offset.y))}so(u.x,p.offset.x),so(u.y,p.offset.y)}}return u}applyTransform(l,u=!1){const A=Lt();zn(A,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Si(A,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Vo(p.latestValues)&&Si(A,p.latestValues)}return Vo(this.latestValues)&&Si(A,this.latestValues),A}removeTransform(l){const u=Lt();zn(u,l);for(let A=0;A<this.path.length;A++){const f=this.path[A];if(!f.instance||!Vo(f.latestValues))continue;Rd(f.latestValues)&&f.updateSnapshot();const p=Lt(),C=f.measurePageBox();zn(p,C),Wm(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Vo(this.latestValues)&&Wm(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==Yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var u;const A=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=A.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=A.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=A.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==A;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:C,layoutId:h}=this.options;if(!(!this.layout||!(C||h))){if(this.resolvedRelativeTargetAt=Yt.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Us(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zn(this.target,this.layout.layoutBox),sB(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Us(this.relativeTargetOrigin,this.target,E.target),zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ho.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rd(this.parent.latestValues)||iB(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 l;const u=this.getLead(),A=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(f=!1),A&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Yt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:C}=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||C))return;zn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,E=this.treeScale.y;_D(this.layoutCorrected,this.treeScale,this.path,A),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox);const{target:I}=u;if(!I){this.projectionTransform&&(this.projectionDelta=Ri(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri());const B=this.projectionTransform;Ws(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=Gm(this.projectionDelta,this.treeScale),(this.projectionTransform!==B||this.treeScale.x!==h||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),Ho.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,u=!1){const A=this.snapshot,f=A?A.latestValues:{},p={...this.latestValues},C=Ri();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const h=Lt(),E=A?A.source:void 0,I=this.layout?this.layout.source:void 0,B=E!==I,v=this.getStack(),R=!v||v.members.length<=1,M=!!(B&&!R&&this.options.crossfade===!0&&!this.path.some(kM));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const P=T/1e3;Xm(C.x,l.x,P),Xm(C.y,l.y,P),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Us(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jM(this.relativeTarget,this.relativeTargetOrigin,h,P),x&&pM(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),zn(x,this.relativeTarget)),B&&(this.animationValues=p,cM(p,f,this.latestValues,P,M,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=It.update(()=>{Nl.hasAnimatedSinceResize=!0,this.currentAnimation=yM(0,qm,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:A,layout:f,latestValues:p}=l;if(!(!u||!A||!f)){if(this!==l&&this.layout&&f&&gB(this.options.animationType,this.layout.layoutBox,f.layoutBox)){A=this.target||Lt();const C=Sn(this.layout.layoutBox.x);A.x.min=l.target.x.min,A.x.max=A.x.min+C;const h=Sn(this.layout.layoutBox.y);A.y.min=l.target.y.min,A.y.max=A.y.min+h}zn(u,A),Si(u,p),Ws(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new hM),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:A}={}){const f=this.getStack();f&&f.promote(this,A),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:A}=l;if((A.rotate||A.rotateX||A.rotateY||A.rotateZ)&&(u=!0),!u)return;const f={};for(let p=0;p<Km.length;p++){const C="rotate"+Km[p];A[C]&&(f[C]=A[C],l.setStaticValue(C,0))}l.render();for(const p in f)l.setStaticValue(p,f[p]);l.scheduleRender()}getProjectionStyles(l={}){var u,A;const f={};if(!this.instance||this.isSVG)return f;if(this.isVisible)f.visibility="";else return{visibility:"hidden"};const p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ll(l.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const B={};return this.options.layoutId&&(B.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,B.pointerEvents=Ll(l.pointerEvents)||""),this.hasProjected&&!Vo(this.latestValues)&&(B.transform=p?p({},""):"none",this.hasProjected=!1),B}const h=C.animationValues||C.latestValues;this.applyTransformsToTarget(),f.transform=Gm(this.projectionDeltaWithTransform,this.treeScale,h),p&&(f.transform=p(h,f.transform));const{x:E,y:I}=this.projectionDelta;f.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,C.animationValues?f.opacity=C===this?(A=(u=h.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&A!==void 0?A:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:f.opacity=C===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const B in Zl){if(h[B]===void 0)continue;const{correct:v,applyTo:R}=Zl[B],M=f.transform==="none"?h[B]:v(h[B],C);if(R){const x=R.length;for(let T=0;T<x;T++)f[R[T]]=M}else f[B]=M}return this.options.layoutId&&(f.pointerEvents=C===this?Ll(l.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(_m),this.root.sharedNodes.clear()}}}function bM(e){e.updateLayout()}function QM(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:i}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?gr(C=>{const h=l?n.measuredBox[C]:n.layoutBox[C],E=Sn(h);h.min=r[C].min,h.max=h.min+E}):gB(a,n.layoutBox,r)&&gr(C=>{const h=l?n.measuredBox[C]:n.layoutBox[C],E=Sn(r[C]);h.max=h.min+E,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[C].max=e.relativeTarget[C].min+E)});const u=Ri();Ws(u,r,n.layoutBox);const A=Ri();l?Ws(A,e.applyTransform(i,!0),n.measuredBox):Ws(A,r,n.layoutBox);const f=!AB(u);let p=!1;if(!e.resumeFrom){const C=e.getClosestProjectingParent();if(C&&!C.resumeFrom){const{snapshot:h,layout:E}=C;if(h&&E){const I=Lt();Us(I,n.layoutBox,h.layoutBox);const B=Lt();Us(B,r,E.layoutBox),dB(I,B)||(p=!0),C.options.layoutRoot&&(e.relativeTarget=B,e.relativeTargetOrigin=I,e.relativeParent=C)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:A,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function xM(e){Ho.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 wM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TM(e){e.clearSnapshot()}function _m(e){e.clearMeasurements()}function PM(e){e.isLayoutDirty=!1}function RM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function OM(e){e.calcProjection()}function DM(e){e.resetRotation()}function MM(e){e.removeLeadSnapshot()}function Xm(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zm(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function jM(e,t,n,r){Zm(e.x,t.x,n.x,r),Zm(e.y,t.y,n.y,r)}function kM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FM={duration:.45,ease:[.4,0,.1,1]},$m=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),eE=$m("applewebkit/")&&!$m("chrome/")?Math.round:Ot;function tE(e){e.min=eE(e.min),e.max=eE(e.max)}function LM(e){tE(e.x),tE(e.y)}function gB(e,t,n){return e==="position"||e==="preserve-aspect"&&!Td(Ym(t),Ym(n),.2)}const NM=fB({attachResizeListener:(e,t)=>kr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qA={current:void 0},pB=fB({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qA.current){const e=new NM({});e.mount(window),e.setOptions({layoutScroll:!0}),qA.current=e}return qA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),VM={pan:{Feature:rM},drag:{Feature:nM,ProjectionNode:pB,MeasureLayout:lB}},HM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zM(e){const t=HM.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const WM=4;function Od(e,t,n=1){Ir(n<=WM,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=zM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return ZI(l)?parseFloat(l):l}else return Bd(i)?Od(i,t,n+1):i}function UM(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!Bd(a))return;const l=Od(a,r);l&&i.set(l)});for(const i in t){const a=t[i];if(!Bd(a))continue;const l=Od(a,r);l&&(t[i]=l,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const YM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hB=e=>YM.has(e),GM=e=>Object.keys(e).some(hB),bl=e=>e===Zo||e===De,nE=(e,t)=>parseFloat(e.split(", ")[t]),rE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return nE(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?nE(a[1],e):0}},KM=new Set(["x","y","z"]),qM=ca.filter(e=>!KM.has(e));function _M(e){const t=[];return qM.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 Vi={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:rE(4,13),y:rE(5,14)};Vi.translateX=Vi.x;Vi.translateY=Vi.y;const JM=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:l}=a,u={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=Vi[f](r,a)}),t.render();const A=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);p&&p.jump(u[f]),e[f]=Vi[f](A,a)}),e},XM=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(hB);let a=[],l=!1;const u=[];if(i.forEach(A=>{const f=e.getValue(A);if(!e.hasValue(A))return;let p=n[A],C=Ps(p);const h=t[A];let E;if(ec(h)){const I=h.length,B=h[0]===null?1:0;p=h[B],C=Ps(p);for(let v=B;v<I&&h[v]!==null;v++)E?Ir(Ps(h[v])===E,"All keyframes must be of the same type"):(E=Ps(h[v]),Ir(E===C||bl(C)&&bl(E),"Keyframes must be of the same dimension as the current value"))}else E=Ps(h);if(C!==E)if(bl(C)&&bl(E)){const I=f.get();typeof I=="string"&&f.set(parseFloat(I)),typeof h=="string"?t[A]=parseFloat(h):Array.isArray(h)&&E===De&&(t[A]=h.map(parseFloat))}else C!=null&&C.transform&&(E!=null&&E.transform)&&(p===0||h===0)?p===0?f.set(E.transform(p)):t[A]=C.transform(h):(l||(a=_M(e),l=!0),u.push(A),r[A]=r[A]!==void 0?r[A]:t[A],f.jump(h))}),u.length){const A=u.indexOf("height")>=0?window.pageYOffset:null,f=JM(t,e,u);return a.length&&a.forEach(([p,C])=>{e.getValue(p).set(C)}),e.render(),Dc&&A!==null&&window.scrollTo({top:A}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function ZM(e,t,n,r){return GM(t)?XM(e,t,n,r):{target:t,transitionEnd:r}}const $M=(e,t,n,r)=>{const i=UM(e,t,r);return t=i.target,r=i.transitionEnd,ZM(e,t,n,r)},Dd={current:null},CB={current:!1};function ej(){if(CB.current=!0,!!Dc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dd.current=e.matches;e.addListener(t),t()}else Dd.current=!1}function tj(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],l=n[i];if(Cn(a))e.addValue(i,a),oc(r)&&r.add(i),process.env.NODE_ENV==="development"&&Lf(a.version==="10.16.4",`Attempting to mix Framer Motion versions ${a.version} with 10.16.4 may not work as expected.`);else if(Cn(l))e.addValue(i,Ni(a,{owner:e})),oc(r)&&r.remove(i);else if(l!==a)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,Ni(u!==void 0?u:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const oE=new WeakMap,mB=Object.keys(ta),nj=mB.length,iE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rj=Bf.length;class oj{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},l={}){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=()=>It.render(this.render,!1,!0);const{latestValues:u,renderState:A}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=A,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.isControllingVariants=jc(n),this.isVariantNode=nI(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{});for(const C in p){const h=p[C];u[C]!==void 0&&Cn(h)&&(h.set(u[C],!1),oc(f)&&f.add(C))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,oE.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)),CB.current||ej(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dd.current,process.env.NODE_ENV!=="production"&&Lf(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(){oE.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(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=Xo.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&It.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let l,u;if(process.env.NODE_ENV!=="production"&&i&&r){const A="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?da(!1,A):Ir(!1,A)}for(let A=0;A<nj;A++){const f=mB[A],{isEnabled:p,Feature:C,ProjectionNode:h,MeasureLayout:E}=ta[f];h&&(l=h),p(n)&&(!this.features[f]&&C&&(this.features[f]=new C(this)),E&&(u=E))}if(!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);const{layoutId:A,layout:f,drag:p,dragConstraints:C,layoutScroll:h,layoutRoot:E}=n;this.projection.setOptions({layoutId:A,layout:f,alwaysMeasureLayout:!!p||C&&Ti(C),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:E})}return u}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):Lt()}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<iE.length;r++){const i=iE[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=tj(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<rj;r++){const i=Bf[r],a=this.props[i];(ea(a)||a===!1)&&(n[i]=a)}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=Ni(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,i=typeof r=="string"||typeof r=="object"?(n=Pf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Cn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ff),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class EB extends oj{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:i},a){let l=yD(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),l&&(l=i(l))),a){ID(this,r,l);const u=$M(this,r,l,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function ij(e){return window.getComputedStyle(e)}class sj extends EB{readValueFromInstance(t,n){if(Xo.has(n)){const r=Df(n);return r&&r.default||0}else{const r=ij(t),i=(aI(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return aB(t,n)}build(t,n,r,i){vf(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Tf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){fI(t,n,r,i)}}class aj extends EB{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xo.has(n)){const r=Df(n);return r&&r.default||0}return n=gI.has(n)?n:wf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(t,n){return hI(t,n)}build(t,n,r,i){Qf(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){pI(t,n,r,i)}mount(t){this.isSVGTag=xf(t.tagName),super.mount(t)}}const lj=(e,t)=>yf(e)?new aj(t,{enableHardwareAcceleration:!1}):new sj(t,{enableHardwareAcceleration:!0}),cj={layout:{ProjectionNode:pB,MeasureLayout:lB}},uj={...kD,...o3,...VM,...cj},Ql=dO((e,t)=>YO(e,t,uj,lj)),Aj=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function sE(...e){const t=O.useRef(0),[n,r]=O.useState(e[t.current]),i=O.useCallback(a=>{t.current=typeof a!="number"?Aj(0,e.length,t.current+1):a,r(e[t.current])},[e.length,...e]);return[n,i]}function IB({children:e,type:t="scale",direction:n="right",offset:r=10,scale:i={hover:1.05,tap:.95}}){let a,l;switch(n){case"up":case"left":a=r,l=0;break;case"right":case"down":default:a=0,l=r;break}const[u,A]=sE(a,l),[f,p]=sE(a,l);switch(t){case"rotate":return g.jsx(Ql.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(Ql.div,{animate:{y:f!==void 0?f:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):g.jsx(Ql.div,{animate:{x:u!==void 0?u:""},onHoverEnd:()=>A(),onHoverStart:()=>A(),children:e});case"scale":default:return typeof i=="number"&&(i={hover:i,tap:i}),g.jsx(Ql.div,{whileHover:{scale:i==null?void 0:i.hover},whileTap:{scale:i==null?void 0:i.tap},children:e})}}IB.propTypes={children:c.node,offset:c.number,type:c.oneOf(["slide","scale","rotate"]),direction:c.oneOf(["up","down","left","right"]),scale:c.oneOfType([c.number,c.object])};function dj(e){return zt("MuiSvgIcon",e)}qt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fj=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gj=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(n)}`]};return En(i,dj,r)},pj=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Te(n.color)}`],t[`fontSize${Te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,l,u,A,f,p,C,h,E,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:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(A=u.pxToRem)==null?void 0:A.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(C=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?C:{action:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(I=(e.vars||e).palette)==null||(I=I.action)==null?void 0:I.disabled,inherit:void 0}[t.color]}}),Nf=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:u="svg",fontSize:A="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:C,viewBox:h="0 0 24 24"}=r,E=Ge(r,fj),I=N.isValidElement(i)&&i.type==="svg",B=W({},r,{color:l,component:u,fontSize:A,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:I}),v={};p||(v.viewBox=h);const R=gj(B);return g.jsxs(pj,W({as:u,className:Je(R.root,a),focusable:"false",color:f,"aria-hidden":C?void 0:!0,role:C?"img":void 0,ref:n},v,E,I&&i.props,{ownerState:B,children:[I?i.props.children:i,C?g.jsx("title",{children:C}):null]}))});process.env.NODE_ENV!=="production"&&(Nf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});Nf.muiName="SvgIcon";const aE=Nf;function Vf(e,t){function n(r,i){return g.jsx(aE,W({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=aE.muiName,N.memo(N.forwardRef(n))}const hj=Vf(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 Cj(e){return zt("MuiAvatar",e)}qt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const mj=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Ej=e=>{const{classes:t,variant:n,colorDefault:r}=e;return En({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Cj,t)},Ij=ce("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})=>W({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&&W({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]}))),Bj=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),yj=ce(hj,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function vj({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;a(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&a("loaded")},u.onerror=()=>{l&&a("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),i}const BB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:l,component:u="div",imgProps:A,sizes:f,src:p,srcSet:C,variant:h="circular"}=r,E=Ge(r,mj);let I=null;const B=vj(W({},A,{src:p,srcSet:C})),v=p||C,R=v&&B!=="error",M=W({},r,{colorDefault:!R,component:u,variant:h}),x=Ej(M);return R?I=g.jsx(Bj,W({alt:i,srcSet:C,src:p,sizes:f,ownerState:M,className:x.img},A)):a!=null?I=a:v&&i?I=i[0]:I=g.jsx(yj,{ownerState:M,className:x.fallback}),g.jsx(Ij,W({as:u,ownerState:M,className:Je(x.root,l),ref:n},E,{children:I}))});process.env.NODE_ENV!=="production"&&(BB.propTypes={alt:c.string,children:c.node,classes:c.object,className:c.string,component:c.elementType,imgProps:c.object,sizes:c.string,src:c.string,srcSet:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["circular","rounded","square"]),c.string])});const bj=BB,nn=(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 Qj({theme:e,color:t,type:n}){const r=nn(e,t),{lighter:i,light:a,main:l,contrastText:u}=r;switch(n){case"filled":return{color:u,backgroundColor:l};case"outlined":return{color:l,border:"1px solid",borderColor:l,backgroundColor:"transparent"};case"combined":return{color:l,border:"1px solid",borderColor:a,backgroundColor:i};default:return{color:l,backgroundColor:i}}}function xj(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 wj=ce(bj,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,variant:t,color:n,type:r,size:i})=>({...xj(i),...Qj({variant:t,theme:e,color:n,type:r}),...i==="badge"&&{borderColor:e.palette.background.default}}));function sc({variant:e="circular",children:t,color:n="primary",type:r,size:i="md",...a}){const l=Tt();return g.jsx(wj,{variant:e,theme:l,color:n,type:r,size:i,...a,children:t})}sc.propTypes={children:c.node,color:c.string,type:c.string,size:c.string,variant:c.string};const lE={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},Yn=O.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:i=!0,contentSX:a={},darkTitle:l,divider:u=!0,elevation:A,secondary:f,shadow:p,sx:C={},title:h,modal:E=!1,color:I="default",...B},v)=>{const R=Tt();return t=R.palette.mode==="dark"?t||!0:t,g.jsxs(b.Card,{elevation:A||0,ref:v,...B,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:R.palette.mode==="dark"?R.palette.divider:R.palette.grey.A800,boxShadow:t&&(!e||R.palette.mode==="dark")?p||R.customShadows.z1:"inherit",":hover":{boxShadow:t?p||R.customShadows.z1:"inherit"},backgroundColor:I==="default"?R.palette.background.paper:Zs(I==="primary"?R.palette.primary[100]:R.palette.secondary[100],.5),...E&&{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)"}},...C},children:[!l&&h&&g.jsx(b.CardHeader,{sx:lE,titleTypographyProps:{variant:"subtitle1"},title:h,action:f,subheader:r}),l&&h&&g.jsx(b.CardHeader,{sx:lE,title:g.jsx(b.Typography,{variant:"h4",children:h}),action:f}),h&&u&&g.jsx(b.Divider,{}),i&&g.jsx(b.CardContent,{sx:a,children:n}),!i&&n]})});Yn.propTypes={border:c.bool,boxShadow:c.bool,children:c.oneOfType([c.node,c.arrayOf(c.node)]),subheader:c.oneOfType([c.node,c.string]),content:c.bool,contentClass:c.string,contentSX:c.object,darkTitle:c.bool,divider:c.bool,elevation:c.number,secondary:c.oneOfType([c.node,c.string,c.object]),shadow:c.string,sx:c.object,title:c.oneOfType([c.node,c.string,c.object]),modal:c.bool,color:c.oneOf(["default","primary","secondary"])};function Tj(e){return zt("MuiTypography",e)}qt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Pj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rj=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${Te(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return En(u,Tj,l)},Sj=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>W({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})),cE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Oj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Dj=e=>Oj[e]||e,yB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTypography"}),i=Dj(r.color),a=MS(W({},r,{color:i})),{align:l="inherit",className:u,component:A,gutterBottom:f=!1,noWrap:p=!1,paragraph:C=!1,variant:h="body1",variantMapping:E=cE}=a,I=Ge(a,Pj),B=W({},a,{align:l,color:i,className:u,component:A,gutterBottom:f,noWrap:p,paragraph:C,variant:h,variantMapping:E}),v=A||(C?"p":E[h]||cE[h])||"span",R=Rj(B);return g.jsx(Sj,W({as:v,ref:n,ownerState:B,className:Je(R.root,u)},I))});process.env.NODE_ENV!=="production"&&(yB.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});const Mj=yB,jj=Vf(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 Md(e,t){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Md(e,t)}function vB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Md(e,t)}const uE={disabled:!1};var kj=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]);const ac=O.createContext(null);var Fj=function(t){return t.scrollTop},Ls="unmounted",zo="exited",Wo="entering",xi="entered",jd="exiting",Ur=function(e){vB(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=i,u=l&&!l.isMounting?r.enter:r.appear,A;return a.appearStatus=null,r.in?u?(A=zo,a.appearStatus=Wo):A=xi:r.unmountOnExit||r.mountOnEnter?A=Ls:A=zo,a.state={status:A},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Ls?{status:zo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Wo&&l!==xi&&(a=Wo):(l===Wo||l===xi)&&(a=jd)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,u;return a=l=u=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,u=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this);l&&Fj(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zo&&this.setState({status:Ls})},n.performEnter=function(i){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:i,A=this.props.nodeRef?[u]:[ks.findDOMNode(this),u],f=A[0],p=A[1],C=this.getTimeouts(),h=u?C.appear:C.enter;if(!i&&!l||uE.disabled){this.safeSetState({status:xi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Wo},function(){a.props.onEntering(f,p),a.onTransitionEnd(h,function(){a.safeSetState({status:xi},function(){a.props.onEntered(f,p)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:ks.findDOMNode(this);if(!a||uE.disabled){this.safeSetState({status:zo},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:jd},function(){i.props.onExiting(u),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:zo},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,i(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var A=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=A[0],p=A[1];this.props.addEndListener(f,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ls)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=Ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(ac.Provider,{value:null},typeof l=="function"?l(i,u):O.cloneElement(O.Children.only(l),u))},t}(O.Component);Ur.contextType=ac;Ur.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(e,t,n,r,i,a){var l=e[t];return c.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(t){var n=kj;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function Ii(){}Ur.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ii,onEntering:Ii,onEntered:Ii,onExit:Ii,onExiting:Ii,onExited:Ii};Ur.UNMOUNTED=Ls;Ur.EXITED=zo;Ur.ENTERING=Wo;Ur.ENTERED=xi;Ur.EXITING=jd;const Hf=Ur;function Lj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zf(e,t){var n=function(a){return t&&O.isValidElement(a)?t(a):a},r=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Nj(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l,u={};for(var A in t){if(r[A])for(l=0;l<r[A].length;l++){var f=r[A][l];u[r[A][l]]=n(f)}u[A]=n(A)}for(l=0;l<i.length;l++)u[i[l]]=n(i[l]);return u}function Yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Vj(e,t){return zf(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Yo(n,"appear",e),enter:Yo(n,"enter",e),exit:Yo(n,"exit",e)})})}function Hj(e,t,n){var r=zf(e.children),i=Nj(t,r);return Object.keys(i).forEach(function(a){var l=i[a];if(O.isValidElement(l)){var u=a in t,A=a in r,f=t[a],p=O.isValidElement(f)&&!f.props.in;A&&(!u||p)?i[a]=O.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Yo(l,"exit",e),enter:Yo(l,"enter",e)}):!A&&u&&!p?i[a]=O.cloneElement(l,{in:!1}):A&&u&&O.isValidElement(f)&&(i[a]=O.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Yo(l,"exit",e),enter:Yo(l,"enter",e)}))}}),i}var zj=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Wj={component:"div",childFactory:function(t){return t}},Wf=function(e){vB(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=a.handleExited.bind(Lj(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}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(i,a){var l=a.children,u=a.handleExited,A=a.firstRender;return{children:A?Vj(i,u):Hj(i,l,u),firstRender:!1}},n.handleExited=function(i,a){var l=zf(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(u){var A=W({},u.children);return delete A[i.key],{children:A}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,u=Ge(i,["component","childFactory"]),A=this.state.contextValue,f=zj(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,a===null?O.createElement(ac.Provider,{value:A},f):O.createElement(ac.Provider,{value:A},O.createElement(a,u,f))},t}(O.Component);Wf.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{};Wf.defaultProps=Wj;const Uj=Wf;function bB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:u,onExited:A,timeout:f}=e,[p,C]=N.useState(!1),h=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),E={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},I=Je(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&C(!0),N.useEffect(()=>{if(!u&&A!=null){const B=setTimeout(A,f);return()=>{clearTimeout(B)}}},[A,u,f]),g.jsx("span",{className:h,style:E,children:g.jsx("span",{className:I})})}process.env.NODE_ENV!=="production"&&(bB.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const Yj=qt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wn=Yj,Gj=["center","classes","className"];let Nc=e=>e,AE,dE,fE,gE;const kd=550,Kj=80,qj=Kt.keyframes(AE||(AE=Nc`
97
+ }`;var Ue=IC(function(){return Ze(w,ye+"return "+oe).apply(n,D)});if(Ue.source=oe,mA(Ue))throw Ue;return Ue}function _2(o){return $e(o).toLowerCase()}function J2(o){return $e(o).toUpperCase()}function X2(o,s,d){if(o=$e(o),o&&(d||s===n))return Pp(o);if(!o||!(s=yn(s)))return o;var m=nr(o),y=nr(s),w=Rp(m,y),D=Sp(m,y)+1;return $r(m,w,D).join("")}function Z2(o,s,d){if(o=$e(o),o&&(d||s===n))return o.slice(0,Dp(o)+1);if(!o||!(s=yn(s)))return o;var m=nr(o),y=Sp(m,nr(s))+1;return $r(m,0,y).join("")}function $2(o,s,d){if(o=$e(o),o&&(d||s===n))return o.replace(yr,"");if(!o||!(s=yn(s)))return o;var m=nr(o),y=Rp(m,nr(s));return $r(m,y).join("")}function eP(o,s){var d=U,m=$;if(xt(s)){var y="separator"in s?s.separator:y;d="length"in s?Ne(s.length):d,m="omission"in s?yn(s.omission):m}o=$e(o);var w=o.length;if(ri(o)){var D=nr(o);w=D.length}if(d>=w)return o;var L=d-oi(m);if(L<1)return m;var Y=D?$r(D,0,L).join(""):o.slice(0,L);if(y===n)return Y+m;if(D&&(L+=Y.length-L),EA(y)){if(o.slice(L).search(y)){var ne,re=Y;for(y.global||(y=ju(y.source,$e(As.exec(y))+"g")),y.lastIndex=0;ne=y.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?L:oe)}}else if(o.indexOf(yn(y),L)!=L){var he=Y.lastIndexOf(y);he>-1&&(Y=Y.slice(0,he))}return Y+m}function tP(o){return o=$e(o),o&&ba.test(o)?o.replace(va,RQ):o}var nP=Ai(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),yA=Bh("toUpperCase");function EC(o,s,d){return o=$e(o),s=d?n:s,s===n?QQ(o)?DQ(o):hQ(o):o.match(s)||[]}var IC=Ye(function(o,s){try{return In(o,n,s)}catch(d){return mA(d)?d:new ke(d)}}),rP=wr(function(o,s){return jn(s,function(d){d=fr(d),Qr(o,d,hA(o[d],o))}),o});function oP(o){var s=o==null?0:o.length,d=Re();return o=s?yt(o,function(m){if(typeof m[1]!="function")throw new kn(l);return[d(m[0]),m[1]]}):[],Ye(function(m){for(var y=-1;++y<s;){var w=o[y];if(In(w[0],this,m))return In(w[1],this,m)}})}function iP(o){return Rx(Ln(o,C))}function vA(o){return function(){return o}}function sP(o,s){return o==null||o!==o?s:o}var aP=vh(),lP=vh(!0);function fn(o){return o}function bA(o){return $p(typeof o=="function"?o:Ln(o,C))}function cP(o){return th(Ln(o,C))}function uP(o,s){return nh(o,Ln(s,C))}var AP=Ye(function(o,s){return function(d){return Is(d,o,s)}}),dP=Ye(function(o,s){return function(d){return Is(o,d,s)}});function QA(o,s,d){var m=Ut(s),y=Za(s,m);d==null&&!(xt(s)&&(y.length||!m.length))&&(d=s,s=o,o=this,y=Za(s,Ut(s)));var w=!(xt(d)&&"chain"in d)||!!d.chain,D=Pr(o);return jn(y,function(L){var Y=s[L];o[L]=Y,D&&(o.prototype[L]=function(){var ne=this.__chain__;if(w||ne){var re=o(this.__wrapped__),oe=re.__actions__=un(this.__actions__);return oe.push({func:Y,args:arguments,thisArg:o}),re.__chain__=ne,re}return Y.apply(o,Kr([this.value()],arguments))})}),o}function fP(){return Jt._===this&&(Jt._=NQ),this}function xA(){}function gP(o){return o=Ne(o),Ye(function(s){return rh(s,o)})}var pP=rA(yt),hP=rA(bp),CP=rA(Tu);function BC(o){return uA(o)?Pu(fr(o)):Kx(o)}function mP(o){return function(s){return o==null?n:Oo(o,s)}}var EP=Qh(),IP=Qh(!0);function wA(){return[]}function TA(){return!1}function BP(){return{}}function yP(){return""}function vP(){return!0}function bP(o,s){if(o=Ne(o),o<1||o>k)return[];var d=_,m=Zt(o,_);s=Re(s),o-=_;for(var y=Ou(m,s);++d<o;)s(d);return y}function QP(o){return Fe(o)?yt(o,fr):vn(o)?[o]:un(Hh($e(o)))}function xP(o){var s=++FQ;return $e(o)+s}var wP=ol(function(o,s){return o+s},0),TP=oA("ceil"),PP=ol(function(o,s){return o/s},1),RP=oA("floor");function SP(o){return o&&o.length?Xa(o,fn,Wu):n}function OP(o,s){return o&&o.length?Xa(o,Re(s,2),Wu):n}function DP(o){return wp(o,fn)}function MP(o,s){return wp(o,Re(s,2))}function jP(o){return o&&o.length?Xa(o,fn,Ku):n}function kP(o,s){return o&&o.length?Xa(o,Re(s,2),Ku):n}var FP=ol(function(o,s){return o*s},1),LP=oA("round"),NP=ol(function(o,s){return o-s},0);function VP(o){return o&&o.length?Su(o,fn):0}function HP(o,s){return o&&o.length?Su(o,Re(s,2)):0}return Q.after=cT,Q.ary=Zh,Q.assign=JT,Q.assignIn=dC,Q.assignInWith=Cl,Q.assignWith=XT,Q.at=ZT,Q.before=$h,Q.bind=hA,Q.bindAll=rP,Q.bindKey=eC,Q.castArray=BT,Q.chain=_h,Q.chunk=R1,Q.compact=S1,Q.concat=O1,Q.cond=oP,Q.conforms=iP,Q.constant=vA,Q.countBy=Vw,Q.create=$T,Q.curry=tC,Q.curryRight=nC,Q.debounce=rC,Q.defaults=e2,Q.defaultsDeep=t2,Q.defer=uT,Q.delay=AT,Q.difference=D1,Q.differenceBy=M1,Q.differenceWith=j1,Q.drop=k1,Q.dropRight=F1,Q.dropRightWhile=L1,Q.dropWhile=N1,Q.fill=V1,Q.filter=zw,Q.flatMap=Yw,Q.flatMapDeep=Gw,Q.flatMapDepth=Kw,Q.flatten=Yh,Q.flattenDeep=H1,Q.flattenDepth=z1,Q.flip=dT,Q.flow=aP,Q.flowRight=lP,Q.fromPairs=W1,Q.functions=l2,Q.functionsIn=c2,Q.groupBy=qw,Q.initial=Y1,Q.intersection=G1,Q.intersectionBy=K1,Q.intersectionWith=q1,Q.invert=A2,Q.invertBy=d2,Q.invokeMap=Jw,Q.iteratee=bA,Q.keyBy=Xw,Q.keys=Ut,Q.keysIn=dn,Q.map=Al,Q.mapKeys=g2,Q.mapValues=p2,Q.matches=cP,Q.matchesProperty=uP,Q.memoize=fl,Q.merge=h2,Q.mergeWith=fC,Q.method=AP,Q.methodOf=dP,Q.mixin=QA,Q.negate=gl,Q.nthArg=gP,Q.omit=C2,Q.omitBy=m2,Q.once=fT,Q.orderBy=Zw,Q.over=pP,Q.overArgs=gT,Q.overEvery=hP,Q.overSome=CP,Q.partial=CA,Q.partialRight=oC,Q.partition=$w,Q.pick=E2,Q.pickBy=gC,Q.property=BC,Q.propertyOf=mP,Q.pull=Z1,Q.pullAll=Kh,Q.pullAllBy=$1,Q.pullAllWith=ew,Q.pullAt=tw,Q.range=EP,Q.rangeRight=IP,Q.rearg=pT,Q.reject=nT,Q.remove=nw,Q.rest=hT,Q.reverse=gA,Q.sampleSize=oT,Q.set=B2,Q.setWith=y2,Q.shuffle=iT,Q.slice=rw,Q.sortBy=lT,Q.sortedUniq=uw,Q.sortedUniqBy=Aw,Q.split=Y2,Q.spread=CT,Q.tail=dw,Q.take=fw,Q.takeRight=gw,Q.takeRightWhile=pw,Q.takeWhile=hw,Q.tap=Sw,Q.throttle=mT,Q.thru=ul,Q.toArray=cC,Q.toPairs=pC,Q.toPairsIn=hC,Q.toPath=QP,Q.toPlainObject=AC,Q.transform=v2,Q.unary=ET,Q.union=Cw,Q.unionBy=mw,Q.unionWith=Ew,Q.uniq=Iw,Q.uniqBy=Bw,Q.uniqWith=yw,Q.unset=b2,Q.unzip=pA,Q.unzipWith=qh,Q.update=Q2,Q.updateWith=x2,Q.values=gi,Q.valuesIn=w2,Q.without=vw,Q.words=EC,Q.wrap=IT,Q.xor=bw,Q.xorBy=Qw,Q.xorWith=xw,Q.zip=ww,Q.zipObject=Tw,Q.zipObjectDeep=Pw,Q.zipWith=Rw,Q.entries=pC,Q.entriesIn=hC,Q.extend=dC,Q.extendWith=Cl,QA(Q,Q),Q.add=wP,Q.attempt=IC,Q.camelCase=S2,Q.capitalize=CC,Q.ceil=TP,Q.clamp=T2,Q.clone=yT,Q.cloneDeep=bT,Q.cloneDeepWith=QT,Q.cloneWith=vT,Q.conformsTo=xT,Q.deburr=mC,Q.defaultTo=sP,Q.divide=PP,Q.endsWith=O2,Q.eq=or,Q.escape=D2,Q.escapeRegExp=M2,Q.every=Hw,Q.find=Ww,Q.findIndex=Wh,Q.findKey=n2,Q.findLast=Uw,Q.findLastIndex=Uh,Q.findLastKey=r2,Q.floor=RP,Q.forEach=Jh,Q.forEachRight=Xh,Q.forIn=o2,Q.forInRight=i2,Q.forOwn=s2,Q.forOwnRight=a2,Q.get=IA,Q.gt=wT,Q.gte=TT,Q.has=u2,Q.hasIn=BA,Q.head=Gh,Q.identity=fn,Q.includes=_w,Q.indexOf=U1,Q.inRange=P2,Q.invoke=f2,Q.isArguments=jo,Q.isArray=Fe,Q.isArrayBuffer=PT,Q.isArrayLike=An,Q.isArrayLikeObject=Dt,Q.isBoolean=RT,Q.isBuffer=eo,Q.isDate=ST,Q.isElement=OT,Q.isEmpty=DT,Q.isEqual=MT,Q.isEqualWith=jT,Q.isError=mA,Q.isFinite=kT,Q.isFunction=Pr,Q.isInteger=iC,Q.isLength=pl,Q.isMap=sC,Q.isMatch=FT,Q.isMatchWith=LT,Q.isNaN=NT,Q.isNative=VT,Q.isNil=zT,Q.isNull=HT,Q.isNumber=aC,Q.isObject=xt,Q.isObjectLike=Pt,Q.isPlainObject=xs,Q.isRegExp=EA,Q.isSafeInteger=WT,Q.isSet=lC,Q.isString=hl,Q.isSymbol=vn,Q.isTypedArray=fi,Q.isUndefined=UT,Q.isWeakMap=YT,Q.isWeakSet=GT,Q.join=_1,Q.kebabCase=j2,Q.last=Vn,Q.lastIndexOf=J1,Q.lowerCase=k2,Q.lowerFirst=F2,Q.lt=KT,Q.lte=qT,Q.max=SP,Q.maxBy=OP,Q.mean=DP,Q.meanBy=MP,Q.min=jP,Q.minBy=kP,Q.stubArray=wA,Q.stubFalse=TA,Q.stubObject=BP,Q.stubString=yP,Q.stubTrue=vP,Q.multiply=FP,Q.nth=X1,Q.noConflict=fP,Q.noop=xA,Q.now=dl,Q.pad=L2,Q.padEnd=N2,Q.padStart=V2,Q.parseInt=H2,Q.random=R2,Q.reduce=eT,Q.reduceRight=tT,Q.repeat=z2,Q.replace=W2,Q.result=I2,Q.round=LP,Q.runInContext=V,Q.sample=rT,Q.size=sT,Q.snakeCase=U2,Q.some=aT,Q.sortedIndex=ow,Q.sortedIndexBy=iw,Q.sortedIndexOf=sw,Q.sortedLastIndex=aw,Q.sortedLastIndexBy=lw,Q.sortedLastIndexOf=cw,Q.startCase=G2,Q.startsWith=K2,Q.subtract=NP,Q.sum=VP,Q.sumBy=HP,Q.template=q2,Q.times=bP,Q.toFinite=Rr,Q.toInteger=Ne,Q.toLength=uC,Q.toLower=_2,Q.toNumber=Hn,Q.toSafeInteger=_T,Q.toString=$e,Q.toUpper=J2,Q.trim=X2,Q.trimEnd=Z2,Q.trimStart=$2,Q.truncate=eP,Q.unescape=tP,Q.uniqueId=xP,Q.upperCase=nP,Q.upperFirst=yA,Q.each=Jh,Q.eachRight=Xh,Q.first=Gh,QA(Q,function(){var o={};return Ar(Q,function(s,d){ct.call(Q.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),Q.VERSION=r,jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){Q[o].placeholder=Q}),jn(["drop","take"],function(o,s){qe.prototype[o]=function(d){d=d===n?1:Ht(Ne(d),0);var m=this.__filtered__&&!s?new qe(this):this.clone();return m.__filtered__?m.__takeCount__=Zt(d,m.__takeCount__):m.__views__.push({size:Zt(d,_),type:o+(m.__dir__<0?"Right":"")}),m},qe.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),jn(["filter","map","takeWhile"],function(o,s){var d=s+1,m=d==X||d==H;qe.prototype[o]=function(y){var w=this.clone();return w.__iteratees__.push({iteratee:Re(y,3),type:d}),w.__filtered__=w.__filtered__||m,w}}),jn(["head","last"],function(o,s){var d="take"+(s?"Right":"");qe.prototype[o]=function(){return this[d](1).value()[0]}}),jn(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");qe.prototype[o]=function(){return this.__filtered__?new qe(this):this[d](1)}}),qe.prototype.compact=function(){return this.filter(fn)},qe.prototype.find=function(o){return this.filter(o).head()},qe.prototype.findLast=function(o){return this.reverse().find(o)},qe.prototype.invokeMap=Ye(function(o,s){return typeof o=="function"?new qe(this):this.map(function(d){return Is(d,o,s)})}),qe.prototype.reject=function(o){return this.filter(gl(Re(o)))},qe.prototype.slice=function(o,s){o=Ne(o);var d=this;return d.__filtered__&&(o>0||s<0)?new qe(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ne(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},qe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},qe.prototype.toArray=function(){return this.take(_)},Ar(qe.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),y=Q[m?"take"+(s=="last"?"Right":""):s],w=m||/^find/.test(s);y&&(Q.prototype[s]=function(){var D=this.__wrapped__,L=m?[1]:arguments,Y=D instanceof qe,ne=L[0],re=Y||Fe(D),oe=function(Ke){var _e=y.apply(Q,Kr([Ke],L));return m&&he?_e[0]:_e};re&&d&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var he=this.__chain__,ye=!!this.__actions__.length,Se=w&&!he,Ue=Y&&!ye;if(!w&&re){D=Ue?D:new qe(this);var Oe=o.apply(D,L);return Oe.__actions__.push({func:ul,args:[oe],thisArg:n}),new Fn(Oe,he)}return Se&&Ue?o.apply(this,L):(Oe=this.thru(oe),Se?m?Oe.value()[0]:Oe.value():Oe)})}),jn(["pop","push","shift","sort","splice","unshift"],function(o){var s=ka[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);Q.prototype[o]=function(){var y=arguments;if(m&&!this.__chain__){var w=this.value();return s.apply(Fe(w)?w:[],y)}return this[d](function(D){return s.apply(Fe(D)?D:[],y)})}}),Ar(qe.prototype,function(o,s){var d=Q[s];if(d){var m=d.name+"";ct.call(li,m)||(li[m]=[]),li[m].push({name:s,func:d})}}),li[rl(n,R).name]=[{name:"wrapper",func:n}],qe.prototype.clone=tx,qe.prototype.reverse=nx,qe.prototype.value=rx,Q.prototype.at=Ow,Q.prototype.chain=Dw,Q.prototype.commit=Mw,Q.prototype.next=jw,Q.prototype.plant=Fw,Q.prototype.reverse=Lw,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=Nw,Q.prototype.first=Q.prototype.head,fs&&(Q.prototype[fs]=kw),Q},ii=MQ();wo?((wo.exports=ii)._=ii,bu._=ii):Jt._=ii}).call(Un)})(Xl,Xl.exports);var it=Xl.exports;const gt=Gi(it),em=e=>function(){return e.apply(this,arguments)},Li=c.shape({id:c.string,title:c.string,type:c.oneOf(["group","item","collapse"]),icon:c.elementType,url:c.string,parent:c.shape(em(()=>Li)),children:c.arrayOf(em(()=>Li)),resource:c.bool}),Y0={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2},ff=O.createContext(Y0),_O=e=>e==="vertical",JO=e=>e==="horizontal",gf=({initialConfig:e,children:t})=>{const[n,r]=mf("theme-config",{...Y0,...e}),i=I=>r(B=>({...B,fontFamily:I})),a=I=>r(B=>({...B,menuOrientation:I})),l=I=>r(B=>({...B,miniDrawer:I})),u=I=>r(B=>({...B,container:I})),A=I=>r(B=>({...B,mode:I})),f=I=>r(B=>({...B,presetColor:I})),p=I=>r(B=>({...B,themeDirection:I})),C=I=>r(B=>({...B,appDefaultPath:I})),h=I=>r(B=>({...B,drawerWidth:I})),E=I=>r(B=>({...B,horizontalMaxItems:I}));return g.jsx(ff.Provider,{value:{...n,setFontFamily:i,setMenuOrientation:a,setMiniDrawer:l,setContainer:u,setMode:A,setPresetColor:f,setThemeDirection:p,setAppDefaultPath:C,setDrawerWidth:h,setHorizontalMaxItems:E,isVerticalLayout:_O,isHorizontalLayout:JO},children:t})};gf.propTypes={children:c.node};const G0={openItem:["dashboard"],openComponent:"buttons",selectedID:null,drawerOpen:!1,componentDrawerOpen:!0,menuDashboard:{},error:null},pf=O.createContext(G0),hf=({menu:e,children:t})=>{const[n,r]=mf("menu-config",{...G0}),i=C=>{r(h=>({...h,openItem:C}))},a=C=>{r(h=>({...h,selectedID:C}))},l=C=>{r(h=>({...h,openComponent:C}))},u=C=>{r(h=>({...h,drawerOpen:C}))},A=C=>{r(h=>({...h,componentDrawerOpen:C}))},f=C=>{r(h=>({...h,menuDashboard:C}))},p=C=>{r(h=>({...h,error:C}))};return g.jsx(pf.Provider,{value:{...n,groups:e,activeItem:i,activeComponent:l,openDrawer:u,openComponentDrawer:A,activeID:a,getMenuSuccess:f,hasError:p},children:t})};hf.propTypes={children:c.node,menu:c.arrayOf(Li)};const fo=()=>O.useContext(pf),XO=["e-","entities/"],ZO=e=>{let t=e;return XO.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t},$O=(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"},e4=(e,t)=>{const n=ZO(e.name);return t==null?void 0:t.includes(`${n}:list`)},Id=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const i=e[r];if(i.children&&(n=Id(i.children,t),n))return n}return n},K0=(e,t,n)=>{let r=e.find(i=>["group","collapse"].indexOf(i.type)!==-1&&$O(i,t));if(!r)for(let i=0;i<e.length;i++){const a=e[i];if(a.children&&(r=K0(a.children,t),r))return r}return r},q0=(e,t)=>{let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const i=e[r];if(i.children&&(n=q0(i.children,t),n))return n}return n},_0=e=>e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(_0)),e.children&&e.children.length>0):!1,J0=e=>(e.children&&e.children.forEach(t=>{t.parent=e,J0(t)}),e),t4=({userGroups:e,resources:t,permissions:n,translate:r,roles:i})=>{const a=C=>(C.title=r(C.title,{_:C.title}),C.children&&C.children.forEach(h=>a(h)),C),l=Object.keys(t),u=(C,h)=>(C.children&&(C.children=C.children.filter(E=>E.resource===!1?!0:E.type==="item"?h.includes(E.id):(u(E,h),E.children&&E.children.length>0))),C),A=it.cloneDeep(e).map(C=>({type:"group",icon:ot.AntDesignOutlined,children:[],...C})).map(a).map(C=>u(C,l)),f=Object.values(t).map(C=>{var h;return((h=C.options)==null?void 0:h.group)||"admin"}).filter((C,h,E)=>E.indexOf(C)===h).filter(C=>C!==void 0&&q0(e,C)===null).map(C=>({id:C,title:r(`ra.menu.group.${C}`),type:"group",icon:ot.AntDesignOutlined,children:[]})),p=[...A,...f];return Object.values(t).forEach(C=>{var M,x,T,P;const h=K0(p,C),E=(M=h==null?void 0:h.children)==null?void 0:M.find(F=>F.id===C.name),I=(x=h==null?void 0:h.children)==null?void 0:x.some(F=>F.id===C.name),B=(E==null?void 0:E.roles)||((T=C.options)==null?void 0:T.roles)||[],v=!B||B.length===0||B.some(F=>i.includes(F));if(!e4(C,n)||!C.hasList||!v){I&&((P=h==null?void 0:h.children)==null?void 0:P.length)>0&&(h.children=h.children.filter(F=>F.id!==C.name));return}h&&(h.children||(h.children=[]))}),p.filter(_0).map(J0)},Cf=()=>{const e=S.useResourceDefinitions(),{isLoading:t,data:n}=S.useGetIdentity(),r=n&&n.id>0,{isLoading:i,permissions:a}=S.usePermissions(r),{groups:l}=fo(),u=S.useTranslate(),A=O.useMemo(()=>{if(t||!n||n===null||(n==null?void 0:n.id)<=0)return null;const p=((n==null?void 0:n.roles)||[]).map(h=>h.id);return t4({resources:e,permissions:a,translate:u,userGroups:l,roles:p})},[t,i,n,e,a,u,l]),f=O.useMemo(()=>t,[t]);return{menu:A,isLoading:f,getItem:p=>f?!1:Id(A,p),findInMenu:f?()=>{}:Id}},X0=()=>{const e=S.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=Cf(),{pathname:i}=pt.useLocation();return O.useMemo(()=>{var C;const a=i.split("/").filter(h=>h);let l=it.cloneDeep(n),u=i,A=r(l,i);if(A||(A=r(l,a[a.length-1]),u=A?A.id:u),!A)for(let h=a.length;h>=0;h--){let E=a.slice(0,h).join("/");if(A=r(l,E),A){u=A.id;break}}const f=(C=A==null?void 0:A.url)==null?void 0:C.split("/");if(a.length>=(f==null?void 0:f.length)){const h=a[a.length-1];if(A){const E=h==="create"||i===A.url?"create":"edit",I=`resources.${u}.breadcrumbs.${E}`,B={id:`${u}-${E}`,type:"item",title:e(I,{_:e(I,{_:I})}),url:i,breadcrumbs:!0,parent:A};A.type="collapse",A.breadcrumbs=!0,A.children=A.children||[],A.children.push(B),A=B}}let p=[];if(A){let h={...A,last:!0};for(;h;)p.push(h),h=h.parent;p=p.reverse()}return{isLoading:t,navigation:{items:l},breadcrumbs:p}},[t,i,n,r,e])};function mf(e,t){const[n,r]=O.useState(()=>{const a=typeof window<"u"?localStorage.getItem(e):null;return a===null?t:JSON.parse(a)});return O.useEffect(()=>{const a=l=>{typeof window<"u"&&l.storageArea===localStorage&&l.key===e&&r(l.newValue?JSON.parse(l.newValue):l.newValue)};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}},[e,t]),[n,a=>{r(l=>{const u=typeof a=="function"?a(l):a;return typeof window<"u"&&localStorage.setItem(e,JSON.stringify(u)),u})}]}const Z0=e=>{const t=S.useRecordContext(),n=S.useTranslate(),r=S.useResourceContext(),i=t!=null&&t.id?"edit":"create";return O.useMemo(()=>{const l=`resources.${r}.title`;return e||n(`resources.${r}.title.${i}`,{_:n(l,{_:l}),...t})},[i,t,r,n,e])},Zn=()=>O.useContext(ff);function Xi(e,t){const n=gt.merge(gt.cloneDeepWith((e==null?void 0:e.sx)??{},a=>gt.isFunction(a)?a:void 0),t),[r,i]=O.useState(n);return O.useEffect(()=>{gt.isEqual(r,n)||i(n)},[r,n]),r}function n4(e,t){const[n,r]=O.useState({width:1,height:1}),i=e.current;return O.useEffect(()=>{function a(){var f;let u=0,A=0;switch(t){case"client":u=(i==null?void 0:i.clientWidth)??0,A=(i==null?void 0:i.clientHeight)??0;break;case"offset":u=(i==null?void 0:i.offsetWidth)??0,A=(i==null?void 0:i.offsetHeight)??0;break;case"scroll":u=(i==null?void 0:i.scrollWidth)??0,A=(i==null?void 0:i.scrollHeight)??0;break;case"bounding":default:{const p=((f=e.current)==null?void 0:f.getBoundingClientRect())??{width:0,height:0};u=p.width,A=p.height;break}}r({width:u,height:A})}const l=new ResizeObserver(a);return gt.isEmpty(e==null?void 0:e.current)||(l.observe(e==null?void 0:e.current),a()),()=>{l.disconnect()}},[i,t]),n}const $0=ce(qO,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Zn();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})}}});$0.propTypes={open:c.bool};const eI=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Oc=O.createContext({}),Ef=O.createContext(null),Dc=typeof document<"u",r4=Dc?O.useLayoutEffect:O.useEffect,tI=O.createContext({strict:!1});function o4(e,t,n,r){const{visualElement:i}=O.useContext(Oc),a=O.useContext(tI),l=O.useContext(Ef),u=O.useContext(eI).reducedMotion,A=O.useRef();r=r||a.renderer,!A.current&&r&&(A.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=A.current;O.useInsertionEffect(()=>{f&&f.update(n,l)});const p=O.useRef(!!window.HandoffAppearAnimations);return r4(()=>{f&&(f.render(),p.current&&f.animationState&&f.animationState.animateChanges())}),O.useEffect(()=>{f&&(f.updateFeatures(),!p.current&&f.animationState&&f.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,p.current=!1)}),f}function Ti(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function i4(e,t,n){return O.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ti(n)&&(n.current=r))},[t])}function ea(e){return typeof e=="string"||Array.isArray(e)}function Mc(e){return typeof e=="object"&&typeof e.start=="function"}const If=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bf=["initial",...If];function jc(e){return Mc(e.animate)||Bf.some(t=>ea(e[t]))}function nI(e){return!!(jc(e)||e.variants)}function s4(e,t){if(jc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ea(n)?n:void 0,animate:ea(r)?r:void 0}}return e.inherit!==!1?t:{}}function a4(e){const{initial:t,animate:n}=s4(e,O.useContext(Oc));return O.useMemo(()=>({initial:t,animate:n}),[tm(t),tm(n)])}function tm(e){return Array.isArray(e)?e.join(" "):e}const nm={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"]},ta={};for(const e in nm)ta[e]={isEnabled:t=>nm[e].some(n=>!!t[n])};function l4(e){for(const t in e)ta[t]={...ta[t],...e[t]}}const rI=O.createContext({}),oI=O.createContext({}),c4=Symbol.for("motionComponentSymbol");function u4({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&l4(e);function a(u,A){let f;const p={...O.useContext(eI),...u,layoutId:A4(u)},{isStatic:C}=p,h=a4(u),E=r(u,C);if(!C&&Dc){h.visualElement=o4(i,E,p,t);const I=O.useContext(oI),B=O.useContext(tI).strict;h.visualElement&&(f=h.visualElement.loadFeatures(p,B,e,I))}return N.createElement(Oc.Provider,{value:h},f&&h.visualElement?N.createElement(f,{visualElement:h.visualElement,...p}):null,n(i,u,i4(E,h.visualElement,A),E,C,h.visualElement))}const l=O.forwardRef(a);return l[c4]=i,l}function A4({layoutId:e}){const t=O.useContext(rI).id;return t&&e!==void 0?t+"-"+e:e}function d4(e){function t(r,i={}){return u4(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const f4=["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 yf(e){return typeof e!="string"||e.includes("-")?!1:!!(f4.indexOf(e)>-1||/[A-Z]/.test(e))}const Zl={};function g4(e){Object.assign(Zl,e)}const ca=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xo=new Set(ca);function iI(e,{layout:t,layoutId:n}){return Xo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zl[e]||e==="opacity")}const Cn=e=>!!(e&&e.getVelocity),p4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},h4=ca.length;function C4(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let l=0;l<h4;l++){const u=ca[l];if(e[u]!==void 0){const A=p4[u]||u;a+=`${A}(${e[u]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const sI=e=>t=>typeof t=="string"&&t.startsWith(e),aI=sI("--"),Bd=sI("var(--"),m4=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,E4=(e,t)=>t&&typeof e=="number"?t.transform(e):e,go=(e,t,n)=>Math.min(Math.max(n,e),t),Zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hs={...Zo,transform:e=>go(0,1,e)},Il={...Zo,default:1},zs=e=>Math.round(e*1e5)/1e5,kc=/(-)?([\d]*\.?[\d])+/g,lI=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,I4=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ua(e){return typeof e=="string"}const Aa=e=>({test:t=>ua(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),io=Aa("deg"),mr=Aa("%"),De=Aa("px"),B4=Aa("vh"),y4=Aa("vw"),rm={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},om={...Zo,transform:Math.round},cI={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:io,rotateX:io,rotateY:io,rotateZ:io,scale:Il,scaleX:Il,scaleY:Il,scaleZ:Il,skew:io,skewX:io,skewY:io,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:Hs,originX:rm,originY:rm,originZ:De,zIndex:om,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:om};function vf(e,t,n,r){const{style:i,vars:a,transform:l,transformOrigin:u}=e;let A=!1,f=!1,p=!0;for(const C in t){const h=t[C];if(aI(C)){a[C]=h;continue}const E=cI[C],I=E4(h,E);if(Xo.has(C)){if(A=!0,l[C]=I,!p)continue;h!==(E.default||0)&&(p=!1)}else C.startsWith("origin")?(f=!0,u[C]=I):i[C]=I}if(t.transform||(A||r?i.transform=C4(e.transform,n,p,r):i.transform&&(i.transform="none")),f){const{originX:C="50%",originY:h="50%",originZ:E=0}=u;i.transformOrigin=`${C} ${h} ${E}`}}const bf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uI(e,t,n){for(const r in t)!Cn(t[r])&&!iI(r,n)&&(e[r]=t[r])}function v4({transformTemplate:e},t,n){return O.useMemo(()=>{const r=bf();return vf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function b4(e,t,n){const r=e.style||{},i={};return uI(i,r,e),Object.assign(i,v4(e,t,n)),e.transformValues?e.transformValues(i):i}function Q4(e,t,n){const r={},i=b4(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const x4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $l(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||x4.has(e)}let AI=e=>!$l(e);function w4(e){e&&(AI=t=>t.startsWith("on")?!$l(t):e(t))}try{w4(require("@emotion/is-prop-valid").default)}catch{}function T4(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(AI(i)||n===!0&&$l(i)||!t&&!$l(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function im(e,t,n){return typeof e=="string"?e:De.transform(t+n*e)}function P4(e,t,n){const r=im(t,e.x,e.width),i=im(n,e.y,e.height);return`${r} ${i}`}const R4={offset:"stroke-dashoffset",array:"stroke-dasharray"},S4={offset:"strokeDashoffset",array:"strokeDasharray"};function O4(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?R4:S4;e[a.offset]=De.transform(-r);const l=De.transform(t),u=De.transform(n);e[a.array]=`${l} ${u}`}function Qf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:A=0,...f},p,C,h){if(vf(e,f,p,h),C){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:E,style:I,dimensions:B}=e;E.transform&&(B&&(I.transform=E.transform),delete E.transform),B&&(i!==void 0||a!==void 0||I.transform)&&(I.transformOrigin=P4(B,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(E.x=t),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),l!==void 0&&O4(E,l,u,A,!1)}const dI=()=>({...bf(),attrs:{}}),xf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D4(e,t,n,r){const i=O.useMemo(()=>{const a=dI();return Qf(a,t,{enableHardwareAcceleration:!1},xf(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};uI(a,e.style,e),i.style={...a,...i.style}}return i}function M4(e=!1){return(n,r,i,{latestValues:a},l)=>{const A=(yf(n)?D4:Q4)(r,a,l,n),p={...T4(r,typeof n=="string",e),...A,ref:i},{children:C}=r,h=O.useMemo(()=>Cn(C)?C.get():C,[C]);return O.createElement(n,{...p,children:h})}}const wf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function fI(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const gI=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 pI(e,t,n,r){fI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gI.has(i)?i:wf(i),t.attrs[i])}function Tf(e,t){const{style:n}=e,r={};for(const i in n)(Cn(n[i])||t.style&&Cn(t.style[i])||iI(i,e))&&(r[i]=n[i]);return r}function hI(e,t){const n=Tf(e,t);for(const r in e)if(Cn(e[r])||Cn(t[r])){const i=ca.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Pf(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function j4(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const ec=e=>Array.isArray(e),k4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),F4=e=>ec(e)?e[e.length-1]||0:e;function Ll(e){const t=Cn(e)?e.get():e;return k4(t)?t.toValue():t}function L4({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const l={latestValues:N4(r,i,a,e),renderState:t()};return n&&(l.mount=u=>n(r,u,l)),l}const CI=e=>(t,n)=>{const r=O.useContext(Oc),i=O.useContext(Ef),a=()=>L4(e,t,r,i);return n?a():j4(a)};function N4(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Ll(a[h]);let{initial:l,animate:u}=e;const A=jc(e),f=nI(e);t&&f&&!A&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const C=p?u:l;return C&&typeof C!="boolean"&&!Mc(C)&&(Array.isArray(C)?C:[C]).forEach(E=>{const I=Pf(e,E);if(!I)return;const{transitionEnd:B,transition:v,...R}=I;for(const M in R){let x=R[M];if(Array.isArray(x)){const T=p?x.length-1:0;x=x[T]}x!==null&&(i[M]=x)}for(const M in B)i[M]=B[M]}),i}const Ot=e=>e;class sm{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 V4(e){let t=new sm,n=new sm,r=0,i=!1,a=!1;const l=new WeakSet,u={schedule:(A,f=!1,p=!1)=>{const C=p&&i,h=C?t:n;return f&&l.add(A),h.add(A)&&C&&i&&(r=t.order.length),A},cancel:A=>{n.remove(A),l.delete(A)},process:A=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f<r;f++){const p=t.order[f];p(A),l.has(p)&&(u.schedule(p),e())}i=!1,a&&(a=!1,u.process(A))}};return u}const Bl=["prepare","read","update","preRender","render","postRender"],H4=40;function z4(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Bl.reduce((C,h)=>(C[h]=V4(()=>n=!0),C),{}),l=C=>a[C].process(i),u=()=>{const C=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,H4),1),i.timestamp=C,i.isProcessing=!0,Bl.forEach(l),i.isProcessing=!1,n&&t&&(r=!1,e(u))},A=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Bl.reduce((C,h)=>{const E=a[h];return C[h]=(I,B=!1,v=!1)=>(n||A(),E.schedule(I,B,v)),C},{}),cancel:C=>Bl.forEach(h=>a[h].cancel(C)),state:i,steps:a}}const{schedule:It,cancel:Vr,state:Yt,steps:FA}=z4(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0),W4={useVisualState:CI({scrapeMotionValuesFromProps:hI,createRenderState:dI,onMount:(e,t,{renderState:n,latestValues:r})=>{It.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),It.render(()=>{Qf(n,r,{enableHardwareAcceleration:!1},xf(t.tagName),e.transformTemplate),pI(t,n)})}})},U4={useVisualState:CI({scrapeMotionValuesFromProps:Tf,createRenderState:bf})};function Y4(e,{forwardMotionProps:t=!1},n,r){return{...yf(e)?W4:U4,preloadedFeatures:n,useRender:M4(t),createVisualElement:r,Component:e}}function kr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mI=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const G4=e=>t=>mI(t)&&e(t,Fc(t));function Fr(e,t,n,r){return kr(e,t,G4(n),r)}const K4=(e,t)=>n=>t(e(n)),uo=(...e)=>e.reduce(K4);function EI(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const am=EI("dragHorizontal"),lm=EI("dragVertical");function II(e){let t=!1;if(e==="y")t=lm();else if(e==="x")t=am();else{const n=am(),r=lm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function BI(){const e=II(!0);return e?(e(),!1):!0}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,l)=>{if(a.type==="touch"||BI())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&It.update(()=>u[r](a,l))};return Fr(e.current,n,i,{passive:!e.getProps()[r]})}class q4 extends Eo{mount(){this.unmount=uo(cm(this.node,!0),cm(this.node,!1))}unmount(){}}class _4 extends Eo{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=uo(kr(this.node.current,"focus",()=>this.onFocus()),kr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yI=(e,t)=>t?e===t?!0:yI(e,t.parentElement):!1;function LA(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fc(n))}class J4 extends Eo{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Fr(window,"pointerup",(u,A)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:p}=this.node.getProps();It.update(()=>{yI(this.node.current,u.target)?f&&f(u,A):p&&p(u,A)})},{passive:!(r.onTap||r.onPointerUp)}),l=Fr(window,"pointercancel",(u,A)=>this.cancelPress(u,A),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=uo(a,l),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const l=u=>{u.key!=="Enter"||!this.checkPressEnd()||LA("up",(A,f)=>{const{onTap:p}=this.node.getProps();p&&It.update(()=>p(A,f))})};this.removeEndListeners(),this.removeEndListeners=kr(this.node.current,"keyup",l),LA("down",(u,A)=>{this.startPress(u,A)})},n=kr(this.node.current,"keydown",t),r=()=>{this.isPressing&&LA("cancel",(a,l)=>this.cancelPress(a,l))},i=kr(this.node.current,"blur",r);this.removeAccessibleListeners=uo(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&It.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!BI()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&It.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Fr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=uo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const yd=new WeakMap,NA=new WeakMap,X4=e=>{const t=yd.get(e.target);t&&t(e)},Z4=e=>{e.forEach(X4)};function $4({root:e,...t}){const n=e||document;NA.has(n)||NA.set(n,{});const r=NA.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Z4,{root:e,...t})),r[i]}function e3(e,t,n){const r=$4(t);return yd.set(e,n),r.observe(e),()=>{yd.delete(e),r.unobserve(e)}}const t3={some:0,all:1};class n3 extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:t3[i]},u=A=>{const{isIntersecting:f}=A;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:C}=this.node.getProps(),h=f?p:C;h&&h(A)};return e3(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(r3(t,n))&&this.startObserver()}unmount(){}}function r3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o3={inView:{Feature:n3},tap:{Feature:J4},focus:{Feature:_4},hover:{Feature:q4}};function vI(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 i3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function s3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Lc(e,t,n){const r=e.getProps();return Pf(r,t,n!==void 0?n:r.custom,i3(e),s3(e))}const a3="framerAppearId",l3="data-"+wf(a3);let da=Ot,Ir=Ot;process.env.NODE_ENV!=="production"&&(da=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ir=(e,t)=>{if(!e)throw new Error(t)});const Ao=e=>e*1e3,Lr=e=>e/1e3,c3={current:!1},bI=e=>Array.isArray(e)&&typeof e[0]=="number";function QI(e){return!!(!e||typeof e=="string"&&xI[e]||bI(e)||Array.isArray(e)&&e.every(QI))}const Fs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,xI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fs([0,.65,.55,1]),circOut:Fs([.55,0,1,.45]),backIn:Fs([.31,.01,.66,-.59]),backOut:Fs([.33,1.53,.69,.99])};function wI(e){if(e)return bI(e)?Fs(e):Array.isArray(e)?e.map(wI):xI[e]}function u3(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:l="loop",ease:u,times:A}={}){const f={[t]:n};A&&(f.offset=A);const p=wI(u);return Array.isArray(p)&&(f.easing=p),e.animate(f,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}function A3(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const TI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d3=1e-7,f3=12;function g3(e,t,n,r,i){let a,l,u=0;do l=t+(n-t)/2,a=TI(l,r,i)-e,a>0?n=l:t=l;while(Math.abs(a)>d3&&++u<f3);return l}function fa(e,t,n,r){if(e===t&&n===r)return Ot;const i=a=>g3(a,0,1,e,n);return a=>a===0||a===1?a:TI(i(a),t,r)}const p3=fa(.42,0,1,1),h3=fa(0,0,.58,1),PI=fa(.42,0,.58,1),C3=e=>Array.isArray(e)&&typeof e[0]!="number",RI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,SI=e=>t=>1-e(1-t),OI=e=>1-Math.sin(Math.acos(e)),Rf=SI(OI),m3=RI(Rf),DI=fa(.33,1.53,.69,.99),Sf=SI(DI),E3=RI(Sf),I3=e=>(e*=2)<1?.5*Sf(e):.5*(2-Math.pow(2,-10*(e-1))),um={linear:Ot,easeIn:p3,easeInOut:PI,easeOut:h3,circIn:OI,circInOut:m3,circOut:Rf,backIn:Sf,backInOut:E3,backOut:DI,anticipate:I3},Am=e=>{if(Array.isArray(e)){Ir(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return fa(t,n,r,i)}else if(typeof e=="string")return Ir(um[e]!==void 0,`Invalid easing type '${e}'`),um[e];return e},Of=(e,t)=>n=>!!(ua(n)&&I4.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),MI=(e,t,n)=>r=>{if(!ua(r))return r;const[i,a,l,u]=r.match(kc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},B3=e=>go(0,255,e),VA={...Zo,transform:e=>Math.round(B3(e))},Uo={test:Of("rgb","red"),parse:MI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+VA.transform(e)+", "+VA.transform(t)+", "+VA.transform(n)+", "+zs(Hs.transform(r))+")"};function y3(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const vd={test:Of("#"),parse:y3,transform:Uo.transform},Pi={test:Of("hsl","hue"),parse:MI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(zs(t))+", "+mr.transform(zs(n))+", "+zs(Hs.transform(r))+")"},ln={test:e=>Uo.test(e)||vd.test(e)||Pi.test(e),parse:e=>Uo.test(e)?Uo.parse(e):Pi.test(e)?Pi.parse(e):vd.parse(e),transform:e=>ua(e)?e:e.hasOwnProperty("red")?Uo.transform(e):Pi.transform(e)},wt=(e,t,n)=>-n*e+n*t+e;function HA(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 v3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,l=0;if(!t)i=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,A=2*n-u;i=HA(A,u,e+1/3),a=HA(A,u,e),l=HA(A,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}const zA=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},b3=[vd,Uo,Pi],Q3=e=>b3.find(t=>t.test(e));function dm(e){const t=Q3(e);Ir(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Pi&&(n=v3(n)),n}const jI=(e,t)=>{const n=dm(e),r=dm(t),i={...n};return a=>(i.red=zA(n.red,r.red,a),i.green=zA(n.green,r.green,a),i.blue=zA(n.blue,r.blue,a),i.alpha=wt(n.alpha,r.alpha,a),Uo.transform(i))};function x3(e){var t,n;return isNaN(e)&&ua(e)&&(((t=e.match(kc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(lI))===null||n===void 0?void 0:n.length)||0)>0}const kI={regex:m4,countKey:"Vars",token:"${v}",parse:Ot},FI={regex:lI,countKey:"Colors",token:"${c}",parse:ln.parse},LI={regex:kc,countKey:"Numbers",token:"${n}",parse:Zo.parse};function WA(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function tc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&WA(n,kI),WA(n,FI),WA(n,LI),n}function NI(e){return tc(e).values}function VI(e){const{values:t,numColors:n,numVars:r,tokenised:i}=tc(e),a=t.length;return l=>{let u=i;for(let A=0;A<a;A++)A<r?u=u.replace(kI.token,l[A]):A<r+n?u=u.replace(FI.token,ln.transform(l[A])):u=u.replace(LI.token,zs(l[A]));return u}}const w3=e=>typeof e=="number"?0:e;function T3(e){const t=NI(e);return VI(e)(t.map(w3))}const po={test:x3,parse:NI,createTransformer:VI,getAnimatableNone:T3},HI=(e,t)=>n=>`${n>0?t:e}`;function zI(e,t){return typeof e=="number"?n=>wt(e,t,n):ln.test(e)?jI(e,t):e.startsWith("var(")?HI(e,t):UI(e,t)}const WI=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,l)=>zI(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=i[l](a);return n}},P3=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zI(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},UI=(e,t)=>{const n=po.createTransformer(t),r=tc(e),i=tc(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?uo(WI(r.values,i.values),n):(da(!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.`),HI(e,t))},na=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},fm=(e,t)=>n=>wt(e,t,n);function R3(e){return typeof e=="number"?fm:typeof e=="string"?ln.test(e)?jI:UI:Array.isArray(e)?WI:typeof e=="object"?P3:fm}function S3(e,t,n){const r=[],i=n||R3(e[0]),a=e.length-1;for(let l=0;l<a;l++){let u=i(e[l],e[l+1]);if(t){const A=Array.isArray(t)?t[l]||Ot:t;u=uo(A,u)}r.push(u)}return r}function YI(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ir(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=S3(t,r,i),u=l.length,A=f=>{let p=0;if(u>1)for(;p<e.length-2&&!(f<e[p+1]);p++);const C=na(e[p],e[p+1],f);return l[p](C)};return n?f=>A(go(e[0],e[a-1],f)):A}function O3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=na(0,t,r);e.push(wt(n,1,i))}}function D3(e){const t=[0];return O3(t,e.length-1),t}function M3(e,t){return e.map(n=>n*t)}function j3(e,t){return e.map(()=>t||PI).splice(0,e.length-1)}function nc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=C3(r)?r.map(Am):Am(r),a={done:!1,value:t[0]},l=M3(n&&n.length===t.length?n:D3(t),e),u=YI(l,t,{ease:Array.isArray(i)?i:j3(t,i)});return{calculatedDuration:e,next:A=>(a.value=u(A),a.done=A>=e,a)}}function GI(e,t){return t?e*(1e3/t):0}const k3=5;function KI(e,t,n){const r=Math.max(t-k3,0);return GI(n-e(r),t-r)}const UA=.001,F3=.01,gm=10,L3=.05,N3=1;function V3({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;da(e<=Ao(gm),"Spring duration must be 10 seconds or less");let l=1-t;l=go(L3,N3,l),e=go(F3,gm,Lr(e)),l<1?(i=f=>{const p=f*l,C=p*e,h=p-n,E=bd(f,l),I=Math.exp(-C);return UA-h/E*I},a=f=>{const C=f*l*e,h=C*n+n,E=Math.pow(l,2)*Math.pow(f,2)*e,I=Math.exp(-C),B=bd(Math.pow(f,2),l);return(-i(f)+UA>0?-1:1)*((h-E)*I)/B}):(i=f=>{const p=Math.exp(-f*e),C=(f-n)*e+1;return-UA+p*C},a=f=>{const p=Math.exp(-f*e),C=(n-f)*(e*e);return p*C});const u=5/e,A=z3(i,a,u);if(e=Ao(e),isNaN(A))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(A,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const H3=12;function z3(e,t,n){let r=n;for(let i=1;i<H3;i++)r=r-e(r)/t(r);return r}function bd(e,t){return e*Math.sqrt(1-t*t)}const W3=["duration","bounce"],U3=["stiffness","damping","mass"];function pm(e,t){return t.some(n=>e[n]!==void 0)}function Y3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pm(e,U3)&&pm(e,W3)){const n=V3(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function qI({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],l={done:!1,value:i},{stiffness:u,damping:A,mass:f,velocity:p,duration:C,isResolvedFromDuration:h}=Y3(r),E=p?-Lr(p):0,I=A/(2*Math.sqrt(u*f)),B=a-i,v=Lr(Math.sqrt(u/f)),R=Math.abs(B)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let M;if(I<1){const x=bd(v,I);M=T=>{const P=Math.exp(-I*v*T);return a-P*((E+I*v*B)/x*Math.sin(x*T)+B*Math.cos(x*T))}}else if(I===1)M=x=>a-Math.exp(-v*x)*(B+(E+v*B)*x);else{const x=v*Math.sqrt(I*I-1);M=T=>{const P=Math.exp(-I*v*T),F=Math.min(x*T,300);return a-P*((E+I*v*B)*Math.sinh(F)+x*B*Math.cosh(F))/x}}return{calculatedDuration:h&&C||null,next:x=>{const T=M(x);if(h)l.done=x>=C;else{let P=E;x!==0&&(I<1?P=KI(M,x,T):P=0);const F=Math.abs(P)<=n,j=Math.abs(a-T)<=t;l.done=F&&j}return l.value=l.done?a:T,l}}}function hm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:A,restDelta:f=.5,restSpeed:p}){const C=e[0],h={done:!1,value:C},E=K=>u!==void 0&&K<u||A!==void 0&&K>A,I=K=>u===void 0?A:A===void 0||Math.abs(u-K)<Math.abs(A-K)?u:A;let B=n*t;const v=C+B,R=l===void 0?v:l(v);R!==v&&(B=R-C);const M=K=>-B*Math.exp(-K/r),x=K=>R+M(K),T=K=>{const q=M(K),U=x(K);h.done=Math.abs(q)<=f,h.value=h.done?R:U};let P,F;const j=K=>{E(h.value)&&(P=K,F=qI({keyframes:[h.value,I(h.value)],velocity:KI(x,K,h.value),damping:i,stiffness:a,restDelta:f,restSpeed:p}))};return j(0),{calculatedDuration:null,next:K=>{let q=!1;return!F&&P===void 0&&(q=!0,T(K),j(K)),P!==void 0&&K>P?F.next(K-P):(!q&&T(K),h)}}}const G3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>It.update(t,!0),stop:()=>Vr(t),now:()=>Yt.isProcessing?Yt.timestamp:performance.now()}},Cm=2e4;function mm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Cm;)t+=n,r=e.next(t);return t>=Cm?1/0:t}const K3={decay:hm,inertia:hm,tween:nc,keyframes:nc,spring:qI};function rc({autoplay:e=!0,delay:t=0,driver:n=G3,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",onPlay:A,onStop:f,onComplete:p,onUpdate:C,...h}){let E=1,I=!1,B,v;const R=()=>{v=new Promise(_=>{B=_})};R();let M;const x=K3[i]||nc;let T;x!==nc&&typeof r[0]!="number"&&(T=YI([0,100],r,{clamp:!1}),r=[0,100]);const P=x({...h,keyframes:r});let F;u==="mirror"&&(F=x({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let j="idle",K=null,q=null,U=null;P.calculatedDuration===null&&a&&(P.calculatedDuration=mm(P));const{calculatedDuration:$}=P;let ae=1/0,ie=1/0;$!==null&&(ae=$+l,ie=ae*(a+1)-l);let X=0;const G=_=>{if(q===null)return;E>0&&(q=Math.min(q,_)),E<0&&(q=Math.min(_-ie/E,q)),K!==null?X=K:X=Math.round(_-q)*E;const Ae=X-t*(E>=0?1:-1),fe=E>=0?Ae<0:Ae>ie;X=Math.max(Ae,0),j==="finished"&&K===null&&(X=ie);let le=X,ue=P;if(a){const pe=X/ae;let me=Math.floor(pe),Qe=pe%1;!Qe&&pe>=1&&(Qe=1),Qe===1&&me--,me=Math.min(me,a+1);const se=!!(me%2);se&&(u==="reverse"?(Qe=1-Qe,l&&(Qe-=l/ae)):u==="mirror"&&(ue=F));let He=go(0,1,Qe);X>ie&&(He=u==="reverse"&&se?1:0),le=He*ae}const ge=fe?{done:!1,value:r[0]}:ue.next(le);T&&(ge.value=T(ge.value));let{done:Ee}=ge;!fe&&$!==null&&(Ee=E>=0?X>=ie:X<=0);const Ce=K===null&&(j==="finished"||j==="running"&&Ee);return C&&C(ge.value),Ce&&k(),ge},H=()=>{M&&M.stop(),M=void 0},J=()=>{j="idle",H(),B(),R(),q=U=null},k=()=>{j="finished",p&&p(),H(),B()},ee=()=>{if(I)return;M||(M=n(G));const _=M.now();A&&A(),K!==null?q=_-K:(!q||j==="finished")&&(q=_),j==="finished"&&R(),U=q,K=null,j="running",M.start()};e&&ee();const z={then(_,Ae){return v.then(_,Ae)},get time(){return Lr(X)},set time(_){_=Ao(_),X=_,K!==null||!M||E===0?K=_:q=M.now()-_/E},get duration(){const _=P.calculatedDuration===null?mm(P):P.calculatedDuration;return Lr(_)},get speed(){return E},set speed(_){_===E||!M||(E=_,z.time=Lr(X))},get state(){return j},play:ee,pause:()=>{j="paused",K=X},stop:()=>{I=!0,j!=="idle"&&(j="idle",f&&f(),J())},cancel:()=>{U!==null&&G(U),J()},complete:()=>{j="finished"},sample:_=>(q=0,G(_))};return z}function q3(e){let t;return()=>(t===void 0&&(t=e()),t)}const _3=q3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),J3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),yl=10,X3=2e4,Z3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!QI(t.ease);function $3(e,t,{onUpdate:n,onComplete:r,...i}){if(!(_3()&&J3.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let l=!1,u,A;const f=()=>{A=new Promise(M=>{u=M})};f();let{keyframes:p,duration:C=300,ease:h,times:E}=i;if(Z3(t,i)){const M=rc({...i,repeat:0,delay:0});let x={done:!1,value:p[0]};const T=[];let P=0;for(;!x.done&&P<X3;)x=M.sample(P),T.push(x.value),P+=yl;E=void 0,p=T,C=P-yl,h="linear"}const I=u3(e.owner.current,t,p,{...i,duration:C,ease:h,times:E});i.syncStart&&(I.startTime=Yt.isProcessing?Yt.timestamp:document.timeline?document.timeline.currentTime:performance.now());const B=()=>I.cancel(),v=()=>{It.update(B),u(),f()};return I.onfinish=()=>{e.set(A3(p,i)),r&&r(),v()},{then(M,x){return A.then(M,x)},attachTimeline(M){return I.timeline=M,I.onfinish=null,Ot},get time(){return Lr(I.currentTime||0)},set time(M){I.currentTime=Ao(M)},get speed(){return I.playbackRate},set speed(M){I.playbackRate=M},get duration(){return Lr(C)},play:()=>{l||(I.play(),Vr(B))},pause:()=>I.pause(),stop:()=>{if(l=!0,I.playState==="idle")return;const{currentTime:M}=I;if(M){const x=rc({...i,autoplay:!1});e.setWithVelocity(x.sample(M-yl).value,x.sample(M).value,yl)}v()},complete:()=>I.finish(),cancel:v}}function eD({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ot,pause:Ot,stop:Ot,then:a=>(a(),Promise.resolve()),cancel:Ot,complete:Ot});return t?rc({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const tD={type:"spring",stiffness:500,damping:25,restSpeed:10},nD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rD={type:"keyframes",duration:.8},oD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iD=(e,{keyframes:t})=>t.length>2?rD:Xo.has(e)?e.startsWith("scale")?nD(t[1]):tD:oD,Qd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(po.test(t)||t==="0")&&!t.startsWith("url(")),sD=new Set(["brightness","contrast","saturate","opacity"]);function aD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(kc)||[];if(!r)return e;const i=n.replace(r,"");let a=sD.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const lD=/([a-z-]*)\(.*?\)/g,xd={...po,getAnimatableNone:e=>{const t=e.match(lD);return t?t.map(aD).join(" "):e}},cD={...cI,color:ln,backgroundColor:ln,outlineColor:ln,fill:ln,stroke:ln,borderColor:ln,borderTopColor:ln,borderRightColor:ln,borderBottomColor:ln,borderLeftColor:ln,filter:xd,WebkitFilter:xd},Df=e=>cD[e];function _I(e,t){let n=Df(e);return n!==xd&&(n=po),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const JI=e=>/^0[^.\s]+$/.test(e);function uD(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||JI(e)}function AD(e,t,n,r){const i=Qd(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const l=r.from!==void 0?r.from:e.get();let u;const A=[];for(let f=0;f<a.length;f++)a[f]===null&&(a[f]=f===0?l:a[f-1]),uD(a[f])&&A.push(f),typeof a[f]=="string"&&a[f]!=="none"&&a[f]!=="0"&&(u=a[f]);if(i&&A.length&&u)for(let f=0;f<A.length;f++){const p=A[f];a[p]=_I(t,u)}return a}function dD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:l,repeatDelay:u,from:A,elapsed:f,...p}){return!!Object.keys(p).length}function XI(e,t){return e[t]||e.default||e}const Mf=(e,t,n,r={})=>i=>{const a=XI(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ao(l);const A=AD(t,e,n,a),f=A[0],p=A[A.length-1],C=Qd(e,f),h=Qd(e,p);da(C===h,`You are trying to animate ${e} from "${f}" to "${p}". ${f} is not an animatable value - to enable this animation set ${f} to a value animatable to ${p} via the \`style\` property.`);let E={keyframes:A,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-u,onUpdate:I=>{t.set(I),a.onUpdate&&a.onUpdate(I)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(dD(a)||(E={...E,...iD(e,E)}),E.duration&&(E.duration=Ao(E.duration)),E.repeatDelay&&(E.repeatDelay=Ao(E.repeatDelay)),!C||!h||c3.current||a.type===!1)return eD(E);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const I=$3(t,e,E);if(I)return I}return rc(E)};function oc(e){return!!(Cn(e)&&e.add)}const ZI=e=>/^\-?\d*\.?\d+$/.test(e);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ff{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>kf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Em=new Set;function Lf(e,t,n){e||Em.has(t)||(console.warn(t),n&&console.warn(n),Em.add(t))}const fD=e=>!isNaN(parseFloat(e));class gD{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:l}=Yt;this.lastUpdated!==l&&(this.timeDelta=a,this.lastUpdated=l,It.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>It.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=fD(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Lf(!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 Ff);const r=this.events[t].add(n);return t==="change"?()=>{r(),It.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?GI(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 Ni(e,t){return new gD(e,t)}const $I=e=>t=>t.test(e),pD={test:e=>e==="auto",parse:e=>e},eB=[Zo,De,mr,io,y4,B4,pD],Ps=e=>eB.find($I(e)),hD=[...eB,ln,po],CD=e=>hD.find($I(e));function mD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ni(n))}function ED(e,t){const n=Lc(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const l in a){const u=F4(a[l]);mD(e,l,u)}}function ID(e,t,n){var r,i;const a=Object.keys(t).filter(u=>!e.hasValue(u)),l=a.length;if(l)for(let u=0;u<l;u++){const A=a[u],f=t[A];let p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(i=(r=n[A])!==null&&r!==void 0?r:e.readValue(A))!==null&&i!==void 0?i:t[A]),p!=null&&(typeof p=="string"&&(ZI(p)||JI(p))?p=parseFloat(p):!CD(p)&&po.test(f)&&(p=_I(A,f)),e.addValue(A,Ni(p,{owner:e})),n[A]===void 0&&(n[A]=p),p!==null&&e.setBaseTarget(A,p))}}function BD(e,t){return t?(t[e]||t.default||t).from:void 0}function yD(e,t,n){const r={};for(const i in e){const a=BD(i,t);if(a!==void 0)r[i]=a;else{const l=n.getValue(i);l&&(r[i]=l.get())}}return r}function vD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tB(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=e.makeTargetAnimatable(t);const A=e.getValue("willChange");r&&(a=r);const f=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const C in u){const h=e.getValue(C),E=u[C];if(!h||E===void 0||p&&vD(p,C))continue;const I={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!h.hasAnimated){const v=e.getProps()[l3];v&&(I.elapsed=window.HandoffAppearAnimations(v,C,h,It),I.syncStart=!0)}h.start(Mf(C,h,E,e.shouldReduceMotion&&Xo.has(C)?{type:!1}:I));const B=h.animation;oc(A)&&(A.add(C),B.then(()=>A.remove(C))),f.push(B)}return l&&Promise.all(f).then(()=>{l&&ED(e,l)}),f}function wd(e,t,n={}){const r=Lc(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(tB(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:C}=i;return bD(e,t,f+A,p,C,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[A,f]=u==="beforeChildren"?[a,l]:[l,a];return A().then(()=>f())}else return Promise.all([a(),l(n.delay)])}function bD(e,t,n=0,r=0,i=1,a){const l=[],u=(e.variantChildren.size-1)*r,A=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(QD).forEach((f,p)=>{f.notify("AnimationStart",t),l.push(wd(f,t,{...a,delay:n+A(p)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(l)}function QD(e,t){return e.sortNodePosition(t)}function xD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>wd(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=wd(e,t,n);else{const i=typeof t=="function"?Lc(e,t,n.custom):t;r=Promise.all(tB(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const wD=[...If].reverse(),TD=If.length;function PD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xD(e,n,r)))}function RD(e){let t=PD(e);const n=OD();let r=!0;const i=(A,f)=>{const p=Lc(e,f);if(p){const{transition:C,transitionEnd:h,...E}=p;A={...A,...E,...h}}return A};function a(A){t=A(e)}function l(A,f){const p=e.getProps(),C=e.getVariantContext(!0)||{},h=[],E=new Set;let I={},B=1/0;for(let R=0;R<TD;R++){const M=wD[R],x=n[M],T=p[M]!==void 0?p[M]:C[M],P=ea(T),F=M===f?x.isActive:null;F===!1&&(B=R);let j=T===C[M]&&T!==p[M]&&P;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),x.protectedKeys={...I},!x.isActive&&F===null||!T&&!x.prevProp||Mc(T)||typeof T=="boolean")continue;const K=SD(x.prevProp,T);let q=K||M===f&&x.isActive&&!j&&P||R>B&&P;const U=Array.isArray(T)?T:[T];let $=U.reduce(i,{});F===!1&&($={});const{prevResolvedValues:ae={}}=x,ie={...ae,...$},X=G=>{q=!0,E.delete(G),x.needsAnimating[G]=!0};for(const G in ie){const H=$[G],J=ae[G];I.hasOwnProperty(G)||(H!==J?ec(H)&&ec(J)?!vI(H,J)||K?X(G):x.protectedKeys[G]=!0:H!==void 0?X(G):E.add(G):H!==void 0&&E.has(G)?X(G):x.protectedKeys[G]=!0)}x.prevProp=T,x.prevResolvedValues=$,x.isActive&&(I={...I,...$}),r&&e.blockInitialAnimation&&(q=!1),q&&!j&&h.push(...U.map(G=>({animation:G,options:{type:M,...A}})))}if(E.size){const R={};E.forEach(M=>{const x=e.getBaseTarget(M);x!==void 0&&(R[M]=x)}),h.push({animation:R})}let v=!!h.length;return r&&p.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function u(A,f,p){var C;if(n[A].isActive===f)return Promise.resolve();(C=e.variantChildren)===null||C===void 0||C.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(A,f)}),n[A].isActive=f;const h=l(p,A);for(const E in n)n[E].protectedKeys={};return h}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n}}function SD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vI(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OD(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}class DD extends Eo{constructor(t){super(t),t.animationState||(t.animationState=RD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Mc(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 MD=0;class jD extends Eo{constructor(){super(...arguments),this.id=MD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const kD={animation:{Feature:DD},exit:{Feature:jD}},Im=(e,t)=>Math.abs(e-t);function FD(e,t){const n=Im(e.x,t.x),r=Im(e.y,t.y);return Math.sqrt(n**2+r**2)}class nB{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=GA(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,C=FD(f.offset,{x:0,y:0})>=3;if(!p&&!C)return;const{point:h}=f,{timestamp:E}=Yt;this.history.push({...h,timestamp:E});const{onStart:I,onMove:B}=this.handlers;p||(I&&I(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=YA(p,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:C,onSessionEnd:h}=this.handlers,E=GA(f.type==="pointercancel"?this.lastMoveEventInfo:YA(p,this.transformPagePoint),this.history);this.startEvent&&C&&C(f,E),h&&h(f,E)},!mI(t))return;this.handlers=n,this.transformPagePoint=r;const i=Fc(t),a=YA(i,this.transformPagePoint),{point:l}=a,{timestamp:u}=Yt;this.history=[{...l,timestamp:u}];const{onSessionStart:A}=n;A&&A(t,GA(a,this.history)),this.removeListeners=uo(Fr(window,"pointermove",this.handlePointerMove),Fr(window,"pointerup",this.handlePointerUp),Fr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}}function YA(e,t){return t?{point:t(e.point)}:e}function Bm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function GA({point:e},t){return{point:e,delta:Bm(e,rB(t)),offset:Bm(e,LD(t)),velocity:ND(t,.1)}}function LD(e){return e[0]}function rB(e){return e[e.length-1]}function ND(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rB(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ao(t)));)n--;if(!r)return{x:0,y:0};const a=Lr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Sn(e){return e.max-e.min}function Td(e,t=0,n=.01){return Math.abs(e-t)<=n}function ym(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),(Td(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(Td(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ws(e,t,n,r){ym(e.x,t.x,n.x,r?r.originX:void 0),ym(e.y,t.y,n.y,r?r.originY:void 0)}function vm(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function VD(e,t,n){vm(e.x,t.x,n.x),vm(e.y,t.y,n.y)}function bm(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function Us(e,t,n){bm(e.x,t.x,n.x),bm(e.y,t.y,n.y)}function HD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Qm(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 zD(e,{top:t,left:n,bottom:r,right:i}){return{x:Qm(e.x,n,i),y:Qm(e.y,t,r)}}function xm(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 WD(e,t){return{x:xm(e.x,t.x),y:xm(e.y,t.y)}}function UD(e,t){let n=.5;const r=Sn(e),i=Sn(t);return i>r?n=na(t.min,t.max-r,e.min):r>i&&(n=na(e.min,e.max-i,t.min)),go(0,1,n)}function YD(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 Pd=.35;function GD(e=Pd){return e===!1?e=0:e===!0&&(e=Pd),{x:wm(e,"left","right"),y:wm(e,"top","bottom")}}function wm(e,t,n){return{min:Tm(e,t),max:Tm(e,n)}}function Tm(e,t){return typeof e=="number"?e:e[t]||0}const Pm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ri=()=>({x:Pm(),y:Pm()}),Rm=()=>({min:0,max:0}),Lt=()=>({x:Rm(),y:Rm()});function gr(e){return[e("x"),e("y")]}function oB({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function KD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qD(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 KA(e){return e===void 0||e===1}function Rd({scale:e,scaleX:t,scaleY:n}){return!KA(e)||!KA(t)||!KA(n)}function Vo(e){return Rd(e)||iB(e)||e.z||e.rotate||e.rotateX||e.rotateY}function iB(e){return Sm(e.x)||Sm(e.y)}function Sm(e){return e&&e!=="0%"}function ic(e,t,n){const r=e-n,i=t*r;return n+i}function Om(e,t,n,r,i){return i!==void 0&&(e=ic(e,i,r)),ic(e,n,r)+t}function Sd(e,t=0,n=1,r,i){e.min=Om(e.min,t,n,r,i),e.max=Om(e.max,t,n,r,i)}function sB(e,{x:t,y:n}){Sd(e.x,t.translate,t.scale,t.originPoint),Sd(e.y,n.translate,n.scale,n.originPoint)}function _D(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,l;for(let u=0;u<i;u++){a=n[u],l=a.projectionDelta;const A=a.instance;A&&A.style&&A.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Si(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,sB(e,l)),r&&Vo(a.latestValues)&&Si(e,a.latestValues))}t.x=Dm(t.x),t.y=Dm(t.y)}function Dm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function so(e,t){e.min=e.min+t,e.max=e.max+t}function Mm(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,l=wt(e.min,e.max,a);Sd(e,t[n],t[r],l,t.scale)}const JD=["x","scaleX","originX"],XD=["y","scaleY","originY"];function Si(e,t){Mm(e.x,t,JD),Mm(e.y,t,XD)}function aB(e,t){return oB(qD(e.getBoundingClientRect(),t))}function ZD(e,t,n){const r=aB(e,n),{scroll:i}=t;return i&&(so(r.x,i.offset.x),so(r.y,i.offset.y)),r}const $D=new WeakMap;class eM{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=Lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=A=>{this.stopAnimation(),n&&this.snapToCursor(Fc(A,"page").point)},a=(A,f)=>{const{drag:p,dragPropagation:C,onDragStart:h}=this.getProps();if(p&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=II(p),!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),gr(I=>{let B=this.getAxisMotionValue(I).get()||0;if(mr.test(B)){const{projection:v}=this.visualElement;if(v&&v.layout){const R=v.layout.layoutBox[I];R&&(B=Sn(R)*(parseFloat(B)/100))}}this.originPoint[I]=B}),h&&It.update(()=>h(A,f),!1,!0);const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},l=(A,f)=>{const{dragPropagation:p,dragDirectionLock:C,onDirectionLock:h,onDrag:E}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:I}=f;if(C&&this.currentDirection===null){this.currentDirection=tM(I),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,I),this.updateAxis("y",f.point,I),this.visualElement.render(),E&&E(A,f)},u=(A,f)=>this.stop(A,f);this.panSession=new nB(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&It.update(()=>a(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:i}=this.getProps();if(!r||!vl(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=HD(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Ti(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=zD(r.layoutBox,t):this.constraints=!1,this.elastic=GD(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&gr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=YD(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ti(t))return!1;const r=t.current;Ir(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=ZD(r,i.root,this.visualElement.getTransformPagePoint());let l=WD(i.layout.layoutBox,a);if(n){const u=n(KD(l));this.hasMutatedConstraints=!!u,u&&(l=oB(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),A=this.constraints||{},f=gr(p=>{if(!vl(p,n,this.currentDirection))return;let C=A&&A[p]||{};l&&(C={min:0,max:0});const h=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?t[p]:0,bounceStiffness:h,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...a,...C};return this.startAxisValueAnimation(p,I)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Mf(t,r,0,n))}stopAnimation(){gr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){gr(n=>{const{drag:r}=this.getProps();if(!vl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];a.set(t[n]-wt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ti(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gr(l=>{const u=this.getAxisMotionValue(l);if(u){const A=u.get();i[l]=UD({min:A,max:A},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gr(l=>{if(!vl(l,t,null))return;const u=this.getAxisMotionValue(l),{min:A,max:f}=this.constraints[l];u.set(wt(A,f,i[l]))})}addListeners(){if(!this.visualElement.current)return;$D.set(this.visualElement,this);const t=this.visualElement.current,n=Fr(t,"pointerdown",A=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(A)}),r=()=>{const{dragConstraints:A}=this.getProps();Ti(A)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const l=kr(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:A,hasLayoutChanged:f})=>{this.isDragging&&f&&(gr(p=>{const C=this.getAxisMotionValue(p);C&&(this.originPoint[p]+=A[p].translate,C.set(C.get()+A[p].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:l=Pd,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function vl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nM extends Eo{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new eM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const jm=e=>(t,n)=>{e&&It.update(()=>e(t,n))};class rM extends Eo{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new nB(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:jm(t),onStart:jm(n),onMove:r,onEnd:(a,l)=>{delete this.session,i&&It.update(()=>i(a,l))}}}mount(){this.removePointerDownListener=Fr(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 oM(){const e=O.useContext(Ef);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=O.useId();return O.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function km(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(De.test(e))e=parseFloat(e);else return e;const n=km(e,t.target.x),r=km(e,t.target.y);return`${n}% ${r}%`}},iM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=po.parse(e);if(i.length>5)return r;const a=po.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,A=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=A;const f=wt(u,A,.5);return typeof i[2+l]=="number"&&(i[2+l]/=f),typeof i[3+l]=="number"&&(i[3+l]/=f),a(i)}};class sM extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;g4(aM),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||It.postRender(()=>{const u=l.getStack();(!u||!u.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lB(e){const[t,n]=oM(),r=O.useContext(rI);return O.createElement(sM,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(oI),isPresent:t,safeToRemove:n})}const aM={borderRadius:{...Rs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rs,borderTopRightRadius:Rs,borderBottomLeftRadius:Rs,borderBottomRightRadius:Rs,boxShadow:iM},cB=["TopLeft","TopRight","BottomLeft","BottomRight"],lM=cB.length,Fm=e=>typeof e=="string"?parseFloat(e):e,Lm=e=>typeof e=="number"||De.test(e);function cM(e,t,n,r,i,a){i?(e.opacity=wt(0,n.opacity!==void 0?n.opacity:1,uM(r)),e.opacityExit=wt(t.opacity!==void 0?t.opacity:1,0,AM(r))):a&&(e.opacity=wt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<lM;l++){const u=`border${cB[l]}Radius`;let A=Nm(t,u),f=Nm(n,u);if(A===void 0&&f===void 0)continue;A||(A=0),f||(f=0),A===0||f===0||Lm(A)===Lm(f)?(e[u]=Math.max(wt(Fm(A),Fm(f),r),0),(mr.test(f)||mr.test(A))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function Nm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const uM=uB(0,.5,Rf),AM=uB(.5,.95,Ot);function uB(e,t,n){return r=>r<e?0:r>t?1:n(na(e,t,r))}function Vm(e,t){e.min=t.min,e.max=t.max}function zn(e,t){Vm(e.x,t.x),Vm(e.y,t.y)}function Hm(e,t,n,r,i){return e-=t,e=ic(e,1/n,r),i!==void 0&&(e=ic(e,1/i,r)),e}function dM(e,t=0,n=1,r=.5,i,a=e,l=e){if(mr.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(a.min,a.max,r);e===a&&(u-=t),e.min=Hm(e.min,t,n,u,i),e.max=Hm(e.max,t,n,u,i)}function zm(e,t,[n,r,i],a,l){dM(e,t[n],t[r],t[i],t.scale,a,l)}const fM=["x","scaleX","originX"],gM=["y","scaleY","originY"];function Wm(e,t,n,r){zm(e.x,t,fM,n?n.x:void 0,r?r.x:void 0),zm(e.y,t,gM,n?n.y:void 0,r?r.y:void 0)}function Um(e){return e.translate===0&&e.scale===1}function AB(e){return Um(e.x)&&Um(e.y)}function pM(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 dB(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 Ym(e){return Sn(e.x)/Sn(e.y)}class hM{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(kf(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;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:i}=t.options;i===!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 Gm(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:A,rotateX:f,rotateY:p}=n;A&&(r+=`rotate(${A}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const CM=(e,t)=>e.depth-t.depth;class mM{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){kf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CM),this.isDirty=!1,this.children.forEach(t)}}function EM(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Vr(r),e(a-t))};return It.read(r,!0),()=>Vr(r)}function IM(e){window.MotionDebug&&window.MotionDebug.record(e)}function BM(e){return e instanceof SVGElement&&e.tagName!=="svg"}function yM(e,t,n){const r=Cn(e)?e:Ni(e);return r.start(Mf("",r,t,n)),r.animation}const Km=["","X","Y","Z"],qm=1e3;let vM=0;const Ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fB({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=vM++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Ho.totalNodes=Ho.resolvedTargetDeltas=Ho.recalculatedProjection=0,this.nodes.forEach(xM),this.nodes.forEach(SM),this.nodes.forEach(OM),this.nodes.forEach(wM),IM(Ho)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let A=0;A<this.path.length;A++)this.path[A].shouldResetTransform=!0;this.root===this&&(this.nodes=new mM)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Ff),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const A=this.eventHandlers.get(l);A&&A.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=BM(l),this.instance=l;const{layoutId:A,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||A)&&(this.isLayoutDirty=!0),e){let C;const h=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,C&&C(),C=EM(h,250),Nl.hasAnimatedSinceResize&&(Nl.hasAnimatedSinceResize=!1,this.nodes.forEach(Jm))})}A&&this.root.registerSharedNode(A,this),this.options.animate!==!1&&p&&(A||f)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:h,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const B=this.options.transition||p.getDefaultTransition()||FM,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=p.getProps(),M=!this.targetLayout||!dB(this.targetLayout,I)||E,x=!h&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,x);const T={...XI(B,"layout"),onPlay:v,onComplete:R};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else h||Jm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(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(DM),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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 C=this.path[p];C.shouldResetTransform=!0,C.updateScroll("snapshot"),C.options.layoutRoot&&C.willUpdate(!1)}const{layoutId:u,layout:A}=this.options;if(u===void 0&&!A)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_m);return}this.isUpdating||this.nodes.forEach(PM),this.isUpdating=!1,this.nodes.forEach(RM),this.nodes.forEach(bM),this.nodes.forEach(QM),this.clearAllSnapshots();const u=performance.now();Yt.delta=go(0,1e3/60,u-Yt.timestamp),Yt.timestamp=u,Yt.isProcessing=!0,FA.update.process(Yt),FA.preRender.process(Yt),FA.render.process(Yt),Yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(TM),this.sharedNodes.forEach(MM)}scheduleUpdateProjection(){It.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){It.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 A=0;A<this.path.length;A++)this.path[A].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:l,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!AB(this.projectionDelta),A=this.getTransformTemplate(),f=A?A(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&(u||Vo(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let A=this.removeElementScroll(u);return l&&(A=this.removeTransform(A)),LM(A),{animationId:this.root.animationId,measuredBox:u,layoutBox:A,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Lt();const u=l.measureViewportBox(),{scroll:A}=this.root;return A&&(so(u.x,A.offset.x),so(u.y,A.offset.y)),u}removeElementScroll(l){const u=Lt();zn(u,l);for(let A=0;A<this.path.length;A++){const f=this.path[A],{scroll:p,options:C}=f;if(f!==this.root&&p&&C.layoutScroll){if(p.isRoot){zn(u,l);const{scroll:h}=this.root;h&&(so(u.x,-h.offset.x),so(u.y,-h.offset.y))}so(u.x,p.offset.x),so(u.y,p.offset.y)}}return u}applyTransform(l,u=!1){const A=Lt();zn(A,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Si(A,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Vo(p.latestValues)&&Si(A,p.latestValues)}return Vo(this.latestValues)&&Si(A,this.latestValues),A}removeTransform(l){const u=Lt();zn(u,l);for(let A=0;A<this.path.length;A++){const f=this.path[A];if(!f.instance||!Vo(f.latestValues))continue;Rd(f.latestValues)&&f.updateSnapshot();const p=Lt(),C=f.measurePageBox();zn(p,C),Wm(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Vo(this.latestValues)&&Wm(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==Yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var u;const A=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=A.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=A.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=A.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==A;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:C,layoutId:h}=this.options;if(!(!this.layout||!(C||h))){if(this.resolvedRelativeTargetAt=Yt.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Us(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zn(this.target,this.layout.layoutBox),sB(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Us(this.relativeTargetOrigin,this.target,E.target),zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ho.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rd(this.parent.latestValues)||iB(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 l;const u=this.getLead(),A=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(f=!1),A&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Yt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:C}=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||C))return;zn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,E=this.treeScale.y;_D(this.layoutCorrected,this.treeScale,this.path,A),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox);const{target:I}=u;if(!I){this.projectionTransform&&(this.projectionDelta=Ri(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri());const B=this.projectionTransform;Ws(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=Gm(this.projectionDelta,this.treeScale),(this.projectionTransform!==B||this.treeScale.x!==h||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),Ho.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,u=!1){const A=this.snapshot,f=A?A.latestValues:{},p={...this.latestValues},C=Ri();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const h=Lt(),E=A?A.source:void 0,I=this.layout?this.layout.source:void 0,B=E!==I,v=this.getStack(),R=!v||v.members.length<=1,M=!!(B&&!R&&this.options.crossfade===!0&&!this.path.some(kM));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const P=T/1e3;Xm(C.x,l.x,P),Xm(C.y,l.y,P),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Us(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jM(this.relativeTarget,this.relativeTargetOrigin,h,P),x&&pM(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),zn(x,this.relativeTarget)),B&&(this.animationValues=p,cM(p,f,this.latestValues,P,M,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=It.update(()=>{Nl.hasAnimatedSinceResize=!0,this.currentAnimation=yM(0,qm,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:A,layout:f,latestValues:p}=l;if(!(!u||!A||!f)){if(this!==l&&this.layout&&f&&gB(this.options.animationType,this.layout.layoutBox,f.layoutBox)){A=this.target||Lt();const C=Sn(this.layout.layoutBox.x);A.x.min=l.target.x.min,A.x.max=A.x.min+C;const h=Sn(this.layout.layoutBox.y);A.y.min=l.target.y.min,A.y.max=A.y.min+h}zn(u,A),Si(u,p),Ws(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new hM),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:A}={}){const f=this.getStack();f&&f.promote(this,A),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:A}=l;if((A.rotate||A.rotateX||A.rotateY||A.rotateZ)&&(u=!0),!u)return;const f={};for(let p=0;p<Km.length;p++){const C="rotate"+Km[p];A[C]&&(f[C]=A[C],l.setStaticValue(C,0))}l.render();for(const p in f)l.setStaticValue(p,f[p]);l.scheduleRender()}getProjectionStyles(l={}){var u,A;const f={};if(!this.instance||this.isSVG)return f;if(this.isVisible)f.visibility="";else return{visibility:"hidden"};const p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ll(l.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const B={};return this.options.layoutId&&(B.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,B.pointerEvents=Ll(l.pointerEvents)||""),this.hasProjected&&!Vo(this.latestValues)&&(B.transform=p?p({},""):"none",this.hasProjected=!1),B}const h=C.animationValues||C.latestValues;this.applyTransformsToTarget(),f.transform=Gm(this.projectionDeltaWithTransform,this.treeScale,h),p&&(f.transform=p(h,f.transform));const{x:E,y:I}=this.projectionDelta;f.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,C.animationValues?f.opacity=C===this?(A=(u=h.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&A!==void 0?A:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:f.opacity=C===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const B in Zl){if(h[B]===void 0)continue;const{correct:v,applyTo:R}=Zl[B],M=f.transform==="none"?h[B]:v(h[B],C);if(R){const x=R.length;for(let T=0;T<x;T++)f[R[T]]=M}else f[B]=M}return this.options.layoutId&&(f.pointerEvents=C===this?Ll(l.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(_m),this.root.sharedNodes.clear()}}}function bM(e){e.updateLayout()}function QM(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:i}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?gr(C=>{const h=l?n.measuredBox[C]:n.layoutBox[C],E=Sn(h);h.min=r[C].min,h.max=h.min+E}):gB(a,n.layoutBox,r)&&gr(C=>{const h=l?n.measuredBox[C]:n.layoutBox[C],E=Sn(r[C]);h.max=h.min+E,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[C].max=e.relativeTarget[C].min+E)});const u=Ri();Ws(u,r,n.layoutBox);const A=Ri();l?Ws(A,e.applyTransform(i,!0),n.measuredBox):Ws(A,r,n.layoutBox);const f=!AB(u);let p=!1;if(!e.resumeFrom){const C=e.getClosestProjectingParent();if(C&&!C.resumeFrom){const{snapshot:h,layout:E}=C;if(h&&E){const I=Lt();Us(I,n.layoutBox,h.layoutBox);const B=Lt();Us(B,r,E.layoutBox),dB(I,B)||(p=!0),C.options.layoutRoot&&(e.relativeTarget=B,e.relativeTargetOrigin=I,e.relativeParent=C)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:A,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function xM(e){Ho.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 wM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TM(e){e.clearSnapshot()}function _m(e){e.clearMeasurements()}function PM(e){e.isLayoutDirty=!1}function RM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function OM(e){e.calcProjection()}function DM(e){e.resetRotation()}function MM(e){e.removeLeadSnapshot()}function Xm(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zm(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function jM(e,t,n,r){Zm(e.x,t.x,n.x,r),Zm(e.y,t.y,n.y,r)}function kM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FM={duration:.45,ease:[.4,0,.1,1]},$m=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),eE=$m("applewebkit/")&&!$m("chrome/")?Math.round:Ot;function tE(e){e.min=eE(e.min),e.max=eE(e.max)}function LM(e){tE(e.x),tE(e.y)}function gB(e,t,n){return e==="position"||e==="preserve-aspect"&&!Td(Ym(t),Ym(n),.2)}const NM=fB({attachResizeListener:(e,t)=>kr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qA={current:void 0},pB=fB({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qA.current){const e=new NM({});e.mount(window),e.setOptions({layoutScroll:!0}),qA.current=e}return qA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),VM={pan:{Feature:rM},drag:{Feature:nM,ProjectionNode:pB,MeasureLayout:lB}},HM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zM(e){const t=HM.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const WM=4;function Od(e,t,n=1){Ir(n<=WM,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=zM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return ZI(l)?parseFloat(l):l}else return Bd(i)?Od(i,t,n+1):i}function UM(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!Bd(a))return;const l=Od(a,r);l&&i.set(l)});for(const i in t){const a=t[i];if(!Bd(a))continue;const l=Od(a,r);l&&(t[i]=l,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const YM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hB=e=>YM.has(e),GM=e=>Object.keys(e).some(hB),bl=e=>e===Zo||e===De,nE=(e,t)=>parseFloat(e.split(", ")[t]),rE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return nE(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?nE(a[1],e):0}},KM=new Set(["x","y","z"]),qM=ca.filter(e=>!KM.has(e));function _M(e){const t=[];return qM.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 Vi={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:rE(4,13),y:rE(5,14)};Vi.translateX=Vi.x;Vi.translateY=Vi.y;const JM=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:l}=a,u={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=Vi[f](r,a)}),t.render();const A=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);p&&p.jump(u[f]),e[f]=Vi[f](A,a)}),e},XM=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(hB);let a=[],l=!1;const u=[];if(i.forEach(A=>{const f=e.getValue(A);if(!e.hasValue(A))return;let p=n[A],C=Ps(p);const h=t[A];let E;if(ec(h)){const I=h.length,B=h[0]===null?1:0;p=h[B],C=Ps(p);for(let v=B;v<I&&h[v]!==null;v++)E?Ir(Ps(h[v])===E,"All keyframes must be of the same type"):(E=Ps(h[v]),Ir(E===C||bl(C)&&bl(E),"Keyframes must be of the same dimension as the current value"))}else E=Ps(h);if(C!==E)if(bl(C)&&bl(E)){const I=f.get();typeof I=="string"&&f.set(parseFloat(I)),typeof h=="string"?t[A]=parseFloat(h):Array.isArray(h)&&E===De&&(t[A]=h.map(parseFloat))}else C!=null&&C.transform&&(E!=null&&E.transform)&&(p===0||h===0)?p===0?f.set(E.transform(p)):t[A]=C.transform(h):(l||(a=_M(e),l=!0),u.push(A),r[A]=r[A]!==void 0?r[A]:t[A],f.jump(h))}),u.length){const A=u.indexOf("height")>=0?window.pageYOffset:null,f=JM(t,e,u);return a.length&&a.forEach(([p,C])=>{e.getValue(p).set(C)}),e.render(),Dc&&A!==null&&window.scrollTo({top:A}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function ZM(e,t,n,r){return GM(t)?XM(e,t,n,r):{target:t,transitionEnd:r}}const $M=(e,t,n,r)=>{const i=UM(e,t,r);return t=i.target,r=i.transitionEnd,ZM(e,t,n,r)},Dd={current:null},CB={current:!1};function ej(){if(CB.current=!0,!!Dc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dd.current=e.matches;e.addListener(t),t()}else Dd.current=!1}function tj(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],l=n[i];if(Cn(a))e.addValue(i,a),oc(r)&&r.add(i),process.env.NODE_ENV==="development"&&Lf(a.version==="10.16.4",`Attempting to mix Framer Motion versions ${a.version} with 10.16.4 may not work as expected.`);else if(Cn(l))e.addValue(i,Ni(a,{owner:e})),oc(r)&&r.remove(i);else if(l!==a)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,Ni(u!==void 0?u:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const oE=new WeakMap,mB=Object.keys(ta),nj=mB.length,iE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rj=Bf.length;class oj{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},l={}){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=()=>It.render(this.render,!1,!0);const{latestValues:u,renderState:A}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=A,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.isControllingVariants=jc(n),this.isVariantNode=nI(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{});for(const C in p){const h=p[C];u[C]!==void 0&&Cn(h)&&(h.set(u[C],!1),oc(f)&&f.add(C))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,oE.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)),CB.current||ej(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dd.current,process.env.NODE_ENV!=="production"&&Lf(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(){oE.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(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=Xo.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&It.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let l,u;if(process.env.NODE_ENV!=="production"&&i&&r){const A="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?da(!1,A):Ir(!1,A)}for(let A=0;A<nj;A++){const f=mB[A],{isEnabled:p,Feature:C,ProjectionNode:h,MeasureLayout:E}=ta[f];h&&(l=h),p(n)&&(!this.features[f]&&C&&(this.features[f]=new C(this)),E&&(u=E))}if(!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);const{layoutId:A,layout:f,drag:p,dragConstraints:C,layoutScroll:h,layoutRoot:E}=n;this.projection.setOptions({layoutId:A,layout:f,alwaysMeasureLayout:!!p||C&&Ti(C),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:E})}return u}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):Lt()}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<iE.length;r++){const i=iE[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=tj(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<rj;r++){const i=Bf[r],a=this.props[i];(ea(a)||a===!1)&&(n[i]=a)}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=Ni(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,i=typeof r=="string"||typeof r=="object"?(n=Pf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Cn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ff),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class EB extends oj{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:i},a){let l=yD(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),l&&(l=i(l))),a){ID(this,r,l);const u=$M(this,r,l,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function ij(e){return window.getComputedStyle(e)}class sj extends EB{readValueFromInstance(t,n){if(Xo.has(n)){const r=Df(n);return r&&r.default||0}else{const r=ij(t),i=(aI(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return aB(t,n)}build(t,n,r,i){vf(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Tf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){fI(t,n,r,i)}}class aj extends EB{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xo.has(n)){const r=Df(n);return r&&r.default||0}return n=gI.has(n)?n:wf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(t,n){return hI(t,n)}build(t,n,r,i){Qf(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){pI(t,n,r,i)}mount(t){this.isSVGTag=xf(t.tagName),super.mount(t)}}const lj=(e,t)=>yf(e)?new aj(t,{enableHardwareAcceleration:!1}):new sj(t,{enableHardwareAcceleration:!0}),cj={layout:{ProjectionNode:pB,MeasureLayout:lB}},uj={...kD,...o3,...VM,...cj},Ql=d4((e,t)=>Y4(e,t,uj,lj)),Aj=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function sE(...e){const t=O.useRef(0),[n,r]=O.useState(e[t.current]),i=O.useCallback(a=>{t.current=typeof a!="number"?Aj(0,e.length,t.current+1):a,r(e[t.current])},[e.length,...e]);return[n,i]}function IB({children:e,type:t="scale",direction:n="right",offset:r=10,scale:i={hover:1.05,tap:.95}}){let a,l;switch(n){case"up":case"left":a=r,l=0;break;case"right":case"down":default:a=0,l=r;break}const[u,A]=sE(a,l),[f,p]=sE(a,l);switch(t){case"rotate":return g.jsx(Ql.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(Ql.div,{animate:{y:f!==void 0?f:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):g.jsx(Ql.div,{animate:{x:u!==void 0?u:""},onHoverEnd:()=>A(),onHoverStart:()=>A(),children:e});case"scale":default:return typeof i=="number"&&(i={hover:i,tap:i}),g.jsx(Ql.div,{whileHover:{scale:i==null?void 0:i.hover},whileTap:{scale:i==null?void 0:i.tap},children:e})}}IB.propTypes={children:c.node,offset:c.number,type:c.oneOf(["slide","scale","rotate"]),direction:c.oneOf(["up","down","left","right"]),scale:c.oneOfType([c.number,c.object])};function dj(e){return zt("MuiSvgIcon",e)}qt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fj=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gj=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(n)}`]};return En(i,dj,r)},pj=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Te(n.color)}`],t[`fontSize${Te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,l,u,A,f,p,C,h,E,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:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(A=u.pxToRem)==null?void 0:A.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(C=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?C:{action:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(I=(e.vars||e).palette)==null||(I=I.action)==null?void 0:I.disabled,inherit:void 0}[t.color]}}),Nf=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:u="svg",fontSize:A="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:C,viewBox:h="0 0 24 24"}=r,E=Ge(r,fj),I=N.isValidElement(i)&&i.type==="svg",B=W({},r,{color:l,component:u,fontSize:A,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:I}),v={};p||(v.viewBox=h);const R=gj(B);return g.jsxs(pj,W({as:u,className:Je(R.root,a),focusable:"false",color:f,"aria-hidden":C?void 0:!0,role:C?"img":void 0,ref:n},v,E,I&&i.props,{ownerState:B,children:[I?i.props.children:i,C?g.jsx("title",{children:C}):null]}))});process.env.NODE_ENV!=="production"&&(Nf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});Nf.muiName="SvgIcon";const aE=Nf;function Vf(e,t){function n(r,i){return g.jsx(aE,W({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=aE.muiName,N.memo(N.forwardRef(n))}const hj=Vf(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 Cj(e){return zt("MuiAvatar",e)}qt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const mj=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Ej=e=>{const{classes:t,variant:n,colorDefault:r}=e;return En({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Cj,t)},Ij=ce("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})=>W({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&&W({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]}))),Bj=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),yj=ce(hj,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function vj({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;a(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&a("loaded")},u.onerror=()=>{l&&a("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),i}const BB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:l,component:u="div",imgProps:A,sizes:f,src:p,srcSet:C,variant:h="circular"}=r,E=Ge(r,mj);let I=null;const B=vj(W({},A,{src:p,srcSet:C})),v=p||C,R=v&&B!=="error",M=W({},r,{colorDefault:!R,component:u,variant:h}),x=Ej(M);return R?I=g.jsx(Bj,W({alt:i,srcSet:C,src:p,sizes:f,ownerState:M,className:x.img},A)):a!=null?I=a:v&&i?I=i[0]:I=g.jsx(yj,{ownerState:M,className:x.fallback}),g.jsx(Ij,W({as:u,ownerState:M,className:Je(x.root,l),ref:n},E,{children:I}))});process.env.NODE_ENV!=="production"&&(BB.propTypes={alt:c.string,children:c.node,classes:c.object,className:c.string,component:c.elementType,imgProps:c.object,sizes:c.string,src:c.string,srcSet:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["circular","rounded","square"]),c.string])});const bj=BB,nn=(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 Qj({theme:e,color:t,type:n}){const r=nn(e,t),{lighter:i,light:a,main:l,contrastText:u}=r;switch(n){case"filled":return{color:u,backgroundColor:l};case"outlined":return{color:l,border:"1px solid",borderColor:l,backgroundColor:"transparent"};case"combined":return{color:l,border:"1px solid",borderColor:a,backgroundColor:i};default:return{color:l,backgroundColor:i}}}function xj(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 wj=ce(bj,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,variant:t,color:n,type:r,size:i})=>({...xj(i),...Qj({variant:t,theme:e,color:n,type:r}),...i==="badge"&&{borderColor:e.palette.background.default}}));function sc({variant:e="circular",children:t,color:n="primary",type:r,size:i="md",...a}){const l=Tt();return g.jsx(wj,{variant:e,theme:l,color:n,type:r,size:i,...a,children:t})}sc.propTypes={children:c.node,color:c.string,type:c.string,size:c.string,variant:c.string};const lE={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},Yn=O.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:i=!0,contentSX:a={},darkTitle:l,divider:u=!0,elevation:A,secondary:f,shadow:p,sx:C={},title:h,modal:E=!1,color:I="default",...B},v)=>{const R=Tt();return t=R.palette.mode==="dark"?t||!0:t,g.jsxs(b.Card,{elevation:A||0,ref:v,...B,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:R.palette.mode==="dark"?R.palette.divider:R.palette.grey.A800,boxShadow:t&&(!e||R.palette.mode==="dark")?p||R.customShadows.z1:"inherit",":hover":{boxShadow:t?p||R.customShadows.z1:"inherit"},backgroundColor:I==="default"?R.palette.background.paper:Zs(I==="primary"?R.palette.primary[100]:R.palette.secondary[100],.5),...E&&{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)"}},...C},children:[!l&&h&&g.jsx(b.CardHeader,{sx:lE,titleTypographyProps:{variant:"subtitle1"},title:h,action:f,subheader:r}),l&&h&&g.jsx(b.CardHeader,{sx:lE,title:g.jsx(b.Typography,{variant:"h4",children:h}),action:f}),h&&u&&g.jsx(b.Divider,{}),i&&g.jsx(b.CardContent,{sx:a,children:n}),!i&&n]})});Yn.propTypes={border:c.bool,boxShadow:c.bool,children:c.oneOfType([c.node,c.arrayOf(c.node)]),subheader:c.oneOfType([c.node,c.string]),content:c.bool,contentClass:c.string,contentSX:c.object,darkTitle:c.bool,divider:c.bool,elevation:c.number,secondary:c.oneOfType([c.node,c.string,c.object]),shadow:c.string,sx:c.object,title:c.oneOfType([c.node,c.string,c.object]),modal:c.bool,color:c.oneOf(["default","primary","secondary"])};function Tj(e){return zt("MuiTypography",e)}qt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Pj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rj=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${Te(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return En(u,Tj,l)},Sj=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>W({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})),cE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Oj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Dj=e=>Oj[e]||e,yB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTypography"}),i=Dj(r.color),a=MS(W({},r,{color:i})),{align:l="inherit",className:u,component:A,gutterBottom:f=!1,noWrap:p=!1,paragraph:C=!1,variant:h="body1",variantMapping:E=cE}=a,I=Ge(a,Pj),B=W({},a,{align:l,color:i,className:u,component:A,gutterBottom:f,noWrap:p,paragraph:C,variant:h,variantMapping:E}),v=A||(C?"p":E[h]||cE[h])||"span",R=Rj(B);return g.jsx(Sj,W({as:v,ref:n,ownerState:B,className:Je(R.root,u)},I))});process.env.NODE_ENV!=="production"&&(yB.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});const Mj=yB,jj=Vf(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 Md(e,t){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Md(e,t)}function vB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Md(e,t)}const uE={disabled:!1};var kj=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]);const ac=O.createContext(null);var Fj=function(t){return t.scrollTop},Ls="unmounted",zo="exited",Wo="entering",xi="entered",jd="exiting",Ur=function(e){vB(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=i,u=l&&!l.isMounting?r.enter:r.appear,A;return a.appearStatus=null,r.in?u?(A=zo,a.appearStatus=Wo):A=xi:r.unmountOnExit||r.mountOnEnter?A=Ls:A=zo,a.state={status:A},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Ls?{status:zo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Wo&&l!==xi&&(a=Wo):(l===Wo||l===xi)&&(a=jd)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,u;return a=l=u=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,u=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this);l&&Fj(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zo&&this.setState({status:Ls})},n.performEnter=function(i){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:i,A=this.props.nodeRef?[u]:[ks.findDOMNode(this),u],f=A[0],p=A[1],C=this.getTimeouts(),h=u?C.appear:C.enter;if(!i&&!l||uE.disabled){this.safeSetState({status:xi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Wo},function(){a.props.onEntering(f,p),a.onTransitionEnd(h,function(){a.safeSetState({status:xi},function(){a.props.onEntered(f,p)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:ks.findDOMNode(this);if(!a||uE.disabled){this.safeSetState({status:zo},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:jd},function(){i.props.onExiting(u),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:zo},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,i(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var A=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=A[0],p=A[1];this.props.addEndListener(f,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ls)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=Ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(ac.Provider,{value:null},typeof l=="function"?l(i,u):O.cloneElement(O.Children.only(l),u))},t}(O.Component);Ur.contextType=ac;Ur.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(e,t,n,r,i,a){var l=e[t];return c.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(t){var n=kj;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function Ii(){}Ur.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ii,onEntering:Ii,onEntered:Ii,onExit:Ii,onExiting:Ii,onExited:Ii};Ur.UNMOUNTED=Ls;Ur.EXITED=zo;Ur.ENTERING=Wo;Ur.ENTERED=xi;Ur.EXITING=jd;const Hf=Ur;function Lj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zf(e,t){var n=function(a){return t&&O.isValidElement(a)?t(a):a},r=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Nj(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l,u={};for(var A in t){if(r[A])for(l=0;l<r[A].length;l++){var f=r[A][l];u[r[A][l]]=n(f)}u[A]=n(A)}for(l=0;l<i.length;l++)u[i[l]]=n(i[l]);return u}function Yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Vj(e,t){return zf(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Yo(n,"appear",e),enter:Yo(n,"enter",e),exit:Yo(n,"exit",e)})})}function Hj(e,t,n){var r=zf(e.children),i=Nj(t,r);return Object.keys(i).forEach(function(a){var l=i[a];if(O.isValidElement(l)){var u=a in t,A=a in r,f=t[a],p=O.isValidElement(f)&&!f.props.in;A&&(!u||p)?i[a]=O.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Yo(l,"exit",e),enter:Yo(l,"enter",e)}):!A&&u&&!p?i[a]=O.cloneElement(l,{in:!1}):A&&u&&O.isValidElement(f)&&(i[a]=O.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Yo(l,"exit",e),enter:Yo(l,"enter",e)}))}}),i}var zj=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Wj={component:"div",childFactory:function(t){return t}},Wf=function(e){vB(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=a.handleExited.bind(Lj(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}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(i,a){var l=a.children,u=a.handleExited,A=a.firstRender;return{children:A?Vj(i,u):Hj(i,l,u),firstRender:!1}},n.handleExited=function(i,a){var l=zf(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(u){var A=W({},u.children);return delete A[i.key],{children:A}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,u=Ge(i,["component","childFactory"]),A=this.state.contextValue,f=zj(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,a===null?O.createElement(ac.Provider,{value:A},f):O.createElement(ac.Provider,{value:A},O.createElement(a,u,f))},t}(O.Component);Wf.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{};Wf.defaultProps=Wj;const Uj=Wf;function bB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:u,onExited:A,timeout:f}=e,[p,C]=N.useState(!1),h=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),E={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},I=Je(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&C(!0),N.useEffect(()=>{if(!u&&A!=null){const B=setTimeout(A,f);return()=>{clearTimeout(B)}}},[A,u,f]),g.jsx("span",{className:h,style:E,children:g.jsx("span",{className:I})})}process.env.NODE_ENV!=="production"&&(bB.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const Yj=qt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wn=Yj,Gj=["center","classes","className"];let Nc=e=>e,AE,dE,fE,gE;const kd=550,Kj=80,qj=Kt.keyframes(AE||(AE=Nc`
98
98
  0% {
99
99
  transform: scale(0);
100
100
  opacity: 0.1;
@@ -262,5 +262,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
262
262
  `),LH)),YH=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>W({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:Vg(t,e.color),transition:`transform .${Kd}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Kt.css(l0||(l0=is`
263
263
  width: auto;
264
264
  animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
265
- `),NH)),gb=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiLinearProgress"}),{className:i,color:a="primary",value:l,valueBuffer:u,variant:A="indeterminate"}=r,f=Ge(r,FH),p=W({},r,{color:a,variant:A}),C=HH(p),h=Tt(),E={},I={bar1:{},bar2:{}};if(A==="determinate"||A==="buffer")if(l!==void 0){E["aria-valuenow"]=Math.round(l),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=l-100;h.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(A==="buffer")if(u!==void 0){let B=(u||0)-100;h.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(zH,W({className:Je(C.root,i),ownerState:p,role:"progressbar"},E,{ref:n},f,{children:[A==="buffer"?g.jsx(WH,{className:C.dashed,ownerState:p}):null,g.jsx(UH,{className:C.bar1,ownerState:p,style:I.bar1}),A==="determinate"?null:g.jsx(YH,{className:C.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(gb.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.number,valueBuffer:c.number,variant:c.oneOf(["buffer","determinate","indeterminate","query"])});const GH=gb,KH=ce("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),pb=()=>g.jsx(KH,{children:g.jsx(GH,{color:"primary"})}),qH=e=>t=>g.jsx(O.Suspense,{fallback:g.jsx(pb,{}),children:g.jsx(e,{...t})}),su=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]});su.propTypes={title:c.string.isRequired};const hb=ce(S.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}})),Hg=({children:e})=>{const t=pt.useLocation(),{pathname:n}=t;return O.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};Hg.propTypes={children:c.node};const _H=ce("div")({width:"100%",overflowX:"auto",display:"block"}),zg=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});zg.propTypes={title:c.string.isRequired};const Wg=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(i=>i.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},JH=(e,t)=>e&&e.data?{data:Wg(e.data,t),total:e.total+1}:e,XH=(e,t)=>e&&e.length>0?Wg(e,t):e,ZH=(e,t)=>e&&e.data?{...e,data:Wg(e.data,t),total:e.total+1}:e,Ug=({onClose:e,record:t,children:n,redirect:r,onSubmit:i,onSuccess:a,onError:l})=>{const u=qd.useQueryClient(),A=S.useResourceContext(),f=S.useRedirect(),p=S.useNotify(),C=O.useCallback(B=>{const R=Date.now();u.setQueryData([A,"getOne",{id:B.id}],B),u.setQueriesData([A,"getList"],M=>ZH(M,B),{updatedAt:R}),u.setQueriesData([A,"getMany"],M=>XH(M,B),{updatedAt:R}),u.setQueriesData([A,"getManyReference"],M=>JH(M,B),{updatedAt:R}),e(),p("ra.notification.created"),r!==void 0&&f(r,A,B.id,B),a&&a(B)},[e,a,u,A,p,f,r]),{save:h,...E}=S.useCreateController({mutationOptions:{onSuccess:C,onError:l}}),I=O.useCallback(B=>{i?i(B,e):h&&h(B)},[i,h,e]);return g.jsx(S.CreateContextProvider,{value:{record:t,save:I,saving:E==null?void 0:E.saving,redirect:r},children:O.cloneElement(n,{...n.props,toolbar:g.jsxs(Yr,{children:[g.jsx(S.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),g.jsx(S.SaveButton,{disabled:E==null?void 0:E.saving})]})})})};Ug.propTypes={children:c.node,onClose:c.func,record:c.object,redirect:c.oneOf(["list","edit","show",!1])};Ug.defaultProps={redirect:!1};const $H={true:{_scrollToTop:!0},false:{}},ez=ce(b.Fab,{name:"RaApplicaCreateInDialogButton",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${S.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Yg=({fullWidth:e,maxWidth:t,label:n,record:r,redirect:i,scrollToTop:a,className:l,sx:u,onSubmit:A,onSuccess:f,onError:p,...C})=>{const[h,E]=O.useState(!1),I=S.useTranslate(),B=S.useResourceContext(),{openDialog:v,closeDialog:R}=Jo(),M=O.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=O.useCallback(()=>R(B,()=>E(!1)),[R,B]),T=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[T?g.jsx(ez,{...C,state:$H[String(a)],color:"primary",className:Je(S.CreateButtonClasses.floating,l),"aria-label":n&&I(n),onClick:M,children:g.jsx(_n.Add,{})}):g.jsx(S.Button,{...C,sx:u,label:n,onClick:M,children:g.jsx(_n.Add,{})}),g.jsx(b.Dialog,{open:h,onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(Ug,{...C,redirect:i,record:r,onClose:x,onSubmit:A,onSuccess:f,onError:p})})]})};Yg.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.create",scrollToTop:!0};Yg.propTypes={...S.Button.propTypes,redirect:c.oneOf(["list","edit","show",!1]),fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string,record:c.object,scrollToTop:c.bool,className:c.string,sx:c.object,children:c.node,onSubmit:c.func,onSuccess:c.func,onError:c.func};const Cb=({onClose:e,children:t})=>{const n=S.useNotify(),r=S.useRecordContext(),i=S.useResourceContext(),{id:a}=r,{isLoading:l,data:u}=S.useGetOne(i,{id:a}),A=O.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:f,saving:p}=S.useEditController({resource:i,id:a,mutationMode:"pessimistic",mutationOptions:{onSuccess:A}});return g.jsx(S.EditContextProvider,{value:{record:u,isLoading:l,save:f,saving:p},children:O.cloneElement(t,{toolbar:g.jsxs(Yr,{children:[g.jsx(S.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(S.SaveButton,{})]})})})};Cb.propTypes={children:c.node,onClose:c.func};const Gg=({fullWidth:e,maxWidth:t,label:n,...r})=>{const[i,a]=O.useState(!1),{openDialog:l,closeDialog:u}=Jo(),A=S.useResourceContext(),f=O.useCallback(()=>l(A,()=>a(!0)),[l,A]),p=O.useCallback(()=>u(A,()=>a(!1)),[u,A]);return g.jsxs(g.Fragment,{children:[g.jsx(S.Button,{label:n,onClick:f,children:g.jsx(_n.Edit,{})}),g.jsx(b.Dialog,{open:i,onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(Cb,{...r,onClose:p})})]})};Gg.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.edit"};Gg.propTypes={fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string};const mb=({label:e="ra.auth.sign_in",...t})=>{const n=S.useRecordContext(),[r,i]=O.useState(!1),a=S.useAuthProvider(),l=O.useCallback(u=>{u.stopPropagation(),u.preventDefault(),i(!0),a.impersonate(n==null?void 0:n.id).then(()=>{i(!1),document.location.href="/"})},[a,n==null?void 0:n.id]);return g.jsx(S.Button,{disabled:r||a.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...t,children:g.jsx(_n.VpnKey,{})})};mb.propTypes={label:c.string};const tz=ce(S.Datagrid,{name:"ApplicaDatagrid",slot:"root"})(()=>({"& .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"}})),Kg=e=>g.jsx(tz,{...e});Kg.propTypes={...S.Datagrid.propTypes};Kg.defaultProps={...S.Datagrid.defaultProps};const nz=ce("div")(({theme:e})=>({padding:e.spacing(2)})),Eb=({actions:e,className:t,...n})=>{const{hasCreate:r}=be.useResourceDefinition(n),i=be.useResourceContext(n),a=be.useTranslate(),l=be.useGetResourceLabel(),u=a(`resources.${i}.forcedCaseName`,{smart_count:0,_:l(i,0)}),A=a("ra.page.empty",{name:u}),f=a("ra.page.invite");return g.jsxs(rz,{className:t,children:[g.jsxs("div",{className:ji.message,children:[g.jsx(_n.Inbox,{className:ji.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:a(`resources.${i}.empty`,{_:A})}),r&&g.jsx(b.Typography,{variant:"body1",children:a(`resources.${i}.invite`,{_:f})})]}),g.jsx(nz,{className:ji.toolbar,children:e})]})},Wl="ApplicaEmpty",ji={message:`${Wl}-message`,icon:`${Wl}-icon`,toolbar:`${Wl}-toolbar`},rz=ce("span",{name:Wl,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${ji.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ji.icon}`]:{width:"9em",height:"9em"},[`& .${ji.toolbar}`]:{textAlign:"center",marginTop:"2em"}}));Eb.propTypes={actions:c.element,className:c.string};const oz=_i(S.List,{name:"RaApplicaList",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:e.spacing(2)}},"& .RaList-actions":{padding:e.spacing(2),paddingTop:e.spacing(1),alignItems:"center","& form":{alignItems:"center"},"& .RaFilterForm-filterFormInput":{"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},marginTop:e.spacing(1.5)},"& .RaFilterFormInput-hideButton":{marginBottom:e.spacing(.5),marginRight:e.spacing(1)},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"flex-end",minHeight:"fit-content"}},"& .RaList-content":{"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}})),Ib=e=>g.jsx(Yn,{content:!1,children:g.jsx(oz,{...e})});Ib.propTypes={...S.List.propTypes};const iz=()=>{const e=S.useRefresh(),t=S.useNotify(),n=S.useUnselectAll(),r=S.useResourceContext(),{selectedIds:i,data:a}=S.useListContext(),l=S.useRecordContext(),u=i.map(C=>a.find(h=>h.id===C)),[A,{isLoading:f}]=S.useUpdateMany(r,{ids:i.length>0?i:[l==null?void 0:l.id],data:{readed:Hr().format("YYYY-MM-DD HH:mm:ss")},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),n(r)},onError:()=>t("ra.notification.readed_error","warning"),onFailure:()=>t("ra.notification.readed_error","warning")}),p=O.useCallback(()=>{A()},[A]);return g.jsx(S.Button,{label:"ra.notification.mark_as_readed",disabled:f||(l==null?void 0:l.readed)!==null,onClick:p,children:g.jsx(_n.Email,{})})},sz=()=>{const e=S.useRefresh(),t=S.useNotify(),n=S.useUnselectAll(),{selectedIds:r,data:i}=S.useListContext(),a=S.useRecordContext(),l=S.useResourceContext(),u=r.map(C=>i.find(h=>h.id===C)).concat([a]),[A,{isLoading:f}]=S.useUpdateMany(l,{ids:r.length>0?r:[a==null?void 0:a.id],data:{readed:null},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),n("notifications")},onFailure:()=>t("resources.notifications.messages.unreaded.error","warning")}),p=O.useCallback(()=>{A()},[A]);return g.jsx(S.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:f||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(_n.Drafts,{})})},az=e=>{const t=S.useRecordContext(e),n=S.useResourceContext(e),r=S.useRedirect(),i=S.useNotify(),a=S.useTranslate(),[l]=S.useLocaleState(),u=O.useMemo(()=>t!=null&&t.readed?Hr(t==null?void 0:t.readed).locale(l).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,l]),[A]=S.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Hr().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)},onFailure:()=>{i("ra.notification.readed_error","warning")}}),f=O.useCallback(()=>A(),[A]);return g.jsxs("div",{onClick:f,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),u&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:a("ra.notification.readed",{readed:u})})]})},lz=({...e})=>{const t=b.useTheme(),{mode:n,colorize:r,density:i}=O.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),a=O.useCallback(l=>({backgroundColor:l!=null&&l.readed?r(t.palette.primary[n],i):r(t.palette.secondary[n],i)}),[t,n,r,i]);return g.jsxs(S.Datagrid,{...e,rowStyle:a,children:[g.jsx(az,{source:"notification",sortable:!1,label:"ra.notification"}),g.jsx(Kc,{source:"created",label:"ra.notification.created"}),g.jsxs(Ji,{children:[g.jsx(iz,{}),g.jsx(sz,{})]})]})},Ol={width:"1.5rem",alignSelf:"center"},qg=({source:e,label:t,variant:n,record:r,spaceBottom:i,spaceTop:a,component:l,leftIcon:u,rightIcon:A,button:f,buttonProps:p,...C})=>{const{getCurrentDialog:h}=Jo(),E=be.useResourceContext(C),I=h(),B=be.useRecordContext(),v=r||B,R=it.get(v,e||"");return g.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:M=>({pt:1,pb:1,borderBottom:`1px solid ${M.palette.divider}`,...i&&{mb:2},...a&&{mt:2}}),children:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[u&&(O.isValidElement(u)?O.cloneElement(u,{style:Ol}):O.createElement(u,{style:Ol})),g.jsx(be.FieldTitle,{label:t,source:e,resource:I||E})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[l?O.isValidElement(l)?O.cloneElement(l,{record:v,resource:E,value:R}):O.createElement(l,{source:e,record:v,resource:E,value:R}):g.jsx(b.Typography,{variant:n,children:R}),A&&(O.isValidElement(A)?O.cloneElement(A,{style:Ol}):O.createElement(A,{style:Ol})),f&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:f})]})]})};qg.propTypes={source:c.string,label:c.string,record:c.object,variant:c.oneOf(["body1","body2","caption","button","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),spaceTop:c.bool,spaceBottom:c.bool,leftIcon:c.oneOfType([c.elementType,c.element,c.func]),rightIcon:c.oneOfType([c.elementType,c.element,c.func]),component:c.oneOfType([c.elementType,c.element,c.func]),buttonProps:c.object,button:c.string};qg.defaultProps={variant:"body1"};const Bb=()=>{const e=Kt.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return g.jsx(b.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:g.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),g.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),g.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),g.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),g.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),g.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),g.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),g.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})},yb=({children:e,...t})=>{const n=Tt();return g.jsx(Yn,{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(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};yb.propTypes={children:c.node};const Ba=({version:e,name:t,copy:n,children:r,background:i=Bb})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[O.isValidElement(i)?i:O.createElement(i),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3,mt:3},children:g.jsx(su,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.jsx(b.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(b.Grid,{item:!0,children:g.jsx(yb,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(ha,{name:t,copy:n,version:e})})]})]})]});Ba.propTypes={children:c.node,version:c.string,name:c.string,copy:c.string,background:c.oneOfType([c.node,c.func,c.object])};const vb=({name:e,copy:t,version:n,background:r})=>{const i=be.useTranslate(),a=be.useAuthProvider(),l=be.useNotify(),u=pt.useNavigate(),{token:A}=pt.useParams();return O.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{l("ra.auth.activate_success",{type:"info"}),gt.delay(()=>u("/login"),1e3)}).catch(f=>{l(f,{type:"error"}),gt.delay(()=>u("/login"),1e3)})},[A]),g.jsx(Ba,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:i("ra.auth.activate")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})};vb.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const au=({version:e,name:t,copy:n,enablePasswordRecover:r,enableRegistration:i,redirectTo:a,background:l})=>{const[u,A]=be.useSafeSetState(!1),f=be.useLogin(),p=be.useTranslate(),C=be.useNotify(),h=be.useCheckAuth(),E=pt.useNavigate();O.useEffect(()=>{h({},!1).then(()=>{E("/")}).catch(()=>{})},[h,E]);const I=B=>{A(!0),f(B,a).then(()=>{A(!1)}).catch(v=>{A(!1),C(typeof v=="string"?v:typeof v>"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return g.jsx(Ba,{name:t,version:e,copy:n,background:l,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),i&&g.jsx(b.Typography,{component:pt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:p("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(be.Form,{onSubmit:I,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Gn,{autoFocus:!0,source:"username",label:p("ra.auth.username"),autoComplete:"username",validate:be.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Gn,{source:"password",label:p("ra.auth.password"),type:"password",autoComplete:"current-password",validate:be.required(),placeholder:p("ra.auth.password_placeholder"),fullWidth:!0})})]}),r&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:pt.Link,to:"/recover",color:"text.primary",children:p("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):p("ra.auth.sign_in")})})]})})]})})};au.propTypes={version:c.string.isRequired,name:c.string.isRequired,enablePasswordRecover:c.bool,enableRegister:c.bool,background:c.element};au.defaultProps={enablePasswordRecover:!1,enableRegister:!1,background:g.jsx(Bb,{})};const bb=({name:e,copy:t,version:n,background:r})=>{const[i,a]=O.useState(!1),l=be.useTranslate(),u=be.useRedirect(),A=be.useNotify(),f=be.useAuthProvider(),p=({email:C})=>{a(!0),f.recover(C).then(h=>{const E=`ra.auth.recover_${h.responseCode}`,I=h.responseCode==="ok"?"info":"error";A(E,{type:I}),u("/login")}).catch(h=>{A(h,{type:"error"})}).finally(()=>a(!1))};return g.jsx(Ba,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(S.Form,{onSubmit:p,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"email",validate:[be.required(),be.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?g.jsx(b.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})};bb.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const Qb=({name:e,copy:t,version:n})=>{const[r,i]=O.useState(!1),a=be.useTranslate(),l=be.useRedirect(),u=be.useNotify(),A=be.useAuthProvider(),f=p=>{i(!0),A.register(p).then(C=>{const h=`ra.auth.register_${C.responseCode}`,E=C.responseCode==="ok"?"info":"error";u(h,{type:E}),l("/login")}).catch(C=>{u(C,{type:"error"})}).finally(()=>i(!1))};return g.jsx(Ba,{name:e,copy:t,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:a("ra.auth.register.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:a("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(S.Form,{onSubmit:f,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"name",label:a("ra.register.name"),validate:be.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"email",type:"email",validate:[be.required(),be.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"password",type:"password",validate:be.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:r,fullWidth:!0,children:r?g.jsx(b.CircularProgress,{size:19,thickness:3}):a("ra.auth.create_account")})})]})})]})})};Qb.propTypes={name:c.string.isRequired,version:c.string.isRequired};const cz=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 ${Ve(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Ve(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Ve(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Ve(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Ve(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Ve(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Ve(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Ve(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Ve(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Ve(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Ve(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Ve(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Ve(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Ve(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Ve(e.palette.grey[500],.2)}`});function qn(e,t){uz(e)&&(e="100%");var n=Az(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 uz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Az(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function id(e){return e.length===1?"0"+e:String(e)}function fz(e,t,n){return{r:qn(e,255)*255,g:qn(t,255)*255,b:qn(n,255)*255}}function sd(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 gz(e,t,n){var r,i,a;if(e=qn(e,360),t=qn(t,100),n=qn(n,100),t===0)i=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=sd(u,l,e+1/3),i=sd(u,l,e),a=sd(u,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function pz(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=r,u=r-i,A=r===0?0:u/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:A,v:l}}function hz(e,t,n){e=qn(e,360)*6,t=qn(t,100),n=qn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),A=r%6,f=[n,l,a,a,u,n][A],p=[u,n,n,l,a,a][A],C=[a,a,u,n,n,l][A];return{r:f*255,g:p*255,b:C*255}}function Cz(e,t,n,r){var i=[id(Math.round(e).toString(16)),id(Math.round(t).toString(16)),id(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c0(e){return wn(e)/255}function wn(e){return parseInt(e,16)}var u0={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 js(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,l=!1,u=!1;return typeof e=="string"&&(e=Iz(e)),typeof e=="object"&&(Dr(e.r)&&Dr(e.g)&&Dr(e.b)?(t=fz(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Dr(e.h)&&Dr(e.s)&&Dr(e.v)?(r=Dl(e.s),i=Dl(e.v),t=hz(e.h,r,i),l=!0,u="hsv"):Dr(e.h)&&Dr(e.s)&&Dr(e.l)&&(r=Dl(e.s),a=Dl(e.l),t=gz(e.h,r,a),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dz(n),{ok:l,format:e.format||u,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 mz="[-\\+]?\\d+%?",Ez="[-\\+]?\\d*\\.\\d+%?",co="(?:".concat(Ez,")|(?:").concat(mz,")"),ad="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),ld="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(co),rgb:new RegExp("rgb"+ad),rgba:new RegExp("rgba"+ld),hsl:new RegExp("hsl"+ad),hsla:new RegExp("hsla"+ld),hsv:new RegExp("hsv"+ad),hsva:new RegExp("hsva"+ld),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 Iz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(u0[e])e=u0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sr.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:c0(n[4]),format:t?"name":"hex8"}:(n=sr.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=sr.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:c0(n[4]+n[4]),format:t?"name":"hex8"}:(n=sr.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Dr(e){return!!sr.CSS_UNIT.exec(String(e))}var Ml=2,A0=.16,Bz=.05,yz=.05,vz=.15,xb=5,wb=4,bz=[{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 d0(e){var t=e.r,n=e.g,r=e.b,i=pz(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function jl(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Cz(t,n,r,!1))}function Qz(e,t,n){var r=n/100,i={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 i}function f0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ml*t:Math.round(e.h)+Ml*t:r=n?Math.round(e.h)+Ml*t:Math.round(e.h)-Ml*t,r<0?r+=360:r>=360&&(r-=360),r}function g0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-A0*t:t===wb?r=e.s+A0:r=e.s+Bz*t,r>1&&(r=1),n&&t===xb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function p0(e,t,n){var r;return n?r=e.v+yz*t:r=e.v-vz*t,r>1&&(r=1),Number(r.toFixed(2))}function h0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=js(e),i=xb;i>0;i-=1){var a=d0(r),l=jl(js({h:f0(a,i,!0),s:g0(a,i,!0),v:p0(a,i,!0)}));n.push(l)}n.push(jl(r));for(var u=1;u<=wb;u+=1){var A=d0(r),f=jl(js({h:f0(A,u),s:g0(A,u),v:p0(A,u)}));n.push(f)}return t.theme==="dark"?bz.map(function(p){var C=p.index,h=p.opacity,E=jl(Qz(js(t.backgroundColor||"#141414"),js(n[C]),h*100));return E}):n}var cd={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"},Gt={},Ul={};Object.keys(cd).forEach(function(e){Gt[e]=h0(cd[e]),Gt[e].primary=Gt[e][5],Ul[e]=h0(cd[e],{theme:"dark",backgroundColor:"#141414"}),Ul[e].primary=Ul[e][5]});Gt.red;Gt.volcano;Gt.gold;Gt.orange;Gt.yellow;Gt.lime;Gt.green;Gt.cyan;Gt.blue;Gt.geekblue;Gt.purple;Gt.magenta;Gt.grey;Gt.grey;const Tb=e=>{const{blue:t,red:n,gold:r,cyan:i,green:a,grey:l}=e,u={0:l[0],50:l[1],100:l[2],200:l[3],300:l[4],400:l[5],500:l[6],600:l[7],700:l[8],800:l[9],900:l[10],A50:l[15],A100:l[11],A200:l[12],A400:l[13],A700:l[14],A800:l[16]},A="#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:A},secondary:{lighter:u[100],100:u[100],200:u[200],light:u[300],400:u[400],main:u[500],600:u[600],dark:u[700],800:u[800],darker:u[900],A100:u[0],A200:u.A400,A300:u.A700,contrastText:u[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:A},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:u[100]},info:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:A},success:{lighter:a[0],light:a[3],main:a[5],dark:a[7],darker:a[9],contrastText:A},grey:u}};Tb.propTypes={colors:c.object};const xz=(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]},i="#fff";let a=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],l=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],u=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],A=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],f=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(a=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],l=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],u=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],A=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],f=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},wz=(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]},i="#fff";let a=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Tz=(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]},i="#fff";let a=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Pz=(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]},i="#fff";let a=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Rz=(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]},i="#fff";let a=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Sz=(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]},i="#fff";let a=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Oz=(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]},i="#fff";let a=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Dz=(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]},i="#fff";let a=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Pb=(e,t,n)=>{switch(t){case"theme1":return xz(e,n);case"theme2":return wz(e,n);case"theme3":return Tz(e,n);case"theme4":return Pz(e,n);case"theme5":return Rz(e,n);case"theme6":return Sz(e,n);case"theme7":return Oz(e,n);case"theme8":return Dz(e,n);default:return Tb(e)}};Pb.propTypes={colors:c.object,presetColor:c.any};const Mz=(e,t)=>{const n=e==="dark"?Ul:Gt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#121212","#d3d8db"]),n.grey=[...r,...i,...a];const l=Pb(n,t,e);return lf({palette:{mode:e,common:{black:"#000",white:"#fff"},...l,text:{primary:e==="dark"?Ve(l.grey[900],.87):l.grey[700],secondary:e==="dark"?Ve(l.grey[900],.45):l.grey[500],disabled:e==="dark"?Ve(l.grey[900],.1):l.grey[400]},action:{disabled:l.grey[300]},divider:e==="dark"?Ve(l.grey[900],.05):l.grey[200],background:{paper:e==="dark"?l.grey[100]:l.grey[0],default:l.grey.A50}}})},jz=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 kz(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 Fz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Lz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(ot.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 Fo({color:e,theme:t}){const n=nn(t,e),{lighter:r,light:i,main:a}=n;return{borderColor:Ve(i,.5),backgroundColor:r,"& .MuiAlert-icon":{color:a}}}function Nz(e){const t=Fo({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":Fo({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Fo({color:"secondary",theme:e}),"&.MuiAlert-borderError":Fo({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Fo({color:"success",theme:e}),"&.MuiAlert-borderInfo":Fo({color:"info",theme:e}),"&.MuiAlert-borderWarning":Fo({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 Vz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Hz(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 Lo({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i}=n;return{color:i,backgroundColor:r}}function zz(e){const t=Lo({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Lo({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Lo({color:"secondary",theme:e}),"&.MuiBadge-colorError":Lo({color:"error",theme:e}),"&.MuiBadge-colorInfo":Lo({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Lo({color:"success",theme:e}),"&.MuiBadge-colorWarning":Lo({color:"warning",theme:e})}}}}}function Xe({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:i,main:a,dark:l,contrastText:u}=r,A=`${t}Button`,f=Zi(n,A),p={"&::after":{boxShadow:`0 0 5px 5px ${Ve(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Ve(a,.9)}`},"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:l},...p};case"shadow":return{color:u,backgroundColor:a,boxShadow:f,"&:hover":{boxShadow:"none",backgroundColor:l},...p};case"outlined":return{borderColor:a,"&:hover":{color:l,backgroundColor:"transparent",borderColor:l},...p};case"dashed":return{color:a,borderColor:a,backgroundColor:i,"&:hover":{color:l,borderColor:l},...p};case"text":default:return{"&:hover":{color:l,backgroundColor:i},...p}}}function Wz(e){const t=Xe({variant:"dashed",color:"primary",theme:e}),n=Xe({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*: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:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":Xe({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":Xe({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":Xe({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":Xe({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":Xe({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":Xe({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":Xe({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":Xe({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":Xe({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":Xe({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":Xe({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":Xe({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:Xe({variant:"contained",color:"primary",theme:e}),containedSecondary:Xe({variant:"contained",color:"secondary",theme:e}),containedError:Xe({variant:"contained",color:"error",theme:e}),containedSuccess:Xe({variant:"contained",color:"success",theme:e}),containedInfo:Xe({variant:"contained",color:"info",theme:e}),containedWarning:Xe({variant:"contained",color:"warning",theme:e}),outlinedPrimary:Xe({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:Xe({variant:"outlined",color:"secondary",theme:e}),outlinedError:Xe({variant:"outlined",color:"error",theme:e}),outlinedSuccess:Xe({variant:"outlined",color:"success",theme:e}),outlinedInfo:Xe({variant:"outlined",color:"info",theme:e}),outlinedWarning:Xe({variant:"outlined",color:"warning",theme:e}),textPrimary:Xe({variant:"text",color:"primary",theme:e}),textSecondary:Xe({variant:"text",color:"secondary",theme:e}),textError:Xe({variant:"text",color:"error",theme:e}),textSuccess:Xe({variant:"text",color:"success",theme:e}),textInfo:Xe({variant:"text",color:"info",theme:e}),textWarning:Xe({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Uz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Yz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Gz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Bi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i,dark:a}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:i}},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function Kz(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 ud(e){const t=Kz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function qz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(ot.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(ot.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...ud("small")},"&.size-medium":{...ud("medium")},"&.size-large":{...ud("large")}},colorPrimary:Bi({color:"primary",theme:e}),colorSecondary:Bi({color:"secondary",theme:e}),colorSuccess:Bi({color:"success",theme:e}),colorWarning:Bi({color:"warning",theme:e}),colorInfo:Bi({color:"info",theme:e}),colorError:Bi({color:"error",theme:e})}}}}function yi({color:e,theme:t}){const n=nn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function xn({color:e,theme:t}){const n=nn(t,e),{light:r,lighter:i,main:a}=n;return{color:a,backgroundColor:i,borderColor:r,"& .MuiChip-deleteIcon":{color:a,"&:hover":{color:r}}}}function _z(e){const t=xn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":yi({color:"primary",theme:e}),"&.MuiChip-colorSecondary":yi({color:"secondary",theme:e}),"&.MuiChip-colorError":yi({color:"error",theme:e}),"&.MuiChip-colorInfo":yi({color:"info",theme:e}),"&.MuiChip-colorSuccess":yi({color:"success",theme:e}),"&.MuiChip-colorWarning":yi({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":xn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":xn({color:"secondary",theme:e}),"&.MuiChip-lightError":xn({color:"error",theme:e}),"&.MuiChip-lightInfo":xn({color:"info",theme:e}),"&.MuiChip-lightSuccess":xn({color:"success",theme:e}),"&.MuiChip-lightWarning":xn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":xn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":xn({color:"secondary",theme:e}),"&.MuiChip-combinedError":xn({color:"error",theme:e}),"&.MuiChip-combinedInfo":xn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":xn({color:"success",theme:e}),"&.MuiChip-combinedWarning":xn({color:"warning",theme:e})}}}}}function Jz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Ve("#000",.7)}}}}}}function Xz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Zz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function vi({color:e,theme:t}){const n=nn(t,e),{main:r,dark:i,contrastText:a}=n,l=`${e}Button`,u=Zi(t,l);return{color:a,backgroundColor:r,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:i},"&:focus-visible":{outline:`2px solid ${i}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Ve(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Ve(r,.9)}`}}}function $z(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":vi({color:"primary",theme:e}),"&.MuiFab-secondary":vi({color:"secondary",theme:e}),"&.Mui-error":vi({color:"error",theme:e}),"&.MuiFab-success":vi({color:"success",theme:e}),"&.MuiFab-info":vi({color:"info",theme:e}),"&.MuiFab-warning":vi({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 eW(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 tW(){return{MuiInputBase:{styleOverrides:{}}}}function nW(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 rW(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function oW(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function iW(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function sW(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function aW(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function No({variant:e,theme:t}){const n=nn(t,e),{light:r}=n,i=Zi(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:i,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function lW(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:{...No({variant:"primary",theme:e}),"&.Mui-error":{...No({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:No({variant:"secondary",theme:e}),colorError:No({variant:"error",theme:e}),colorWarning:No({variant:"warning",theme:e}),colorInfo:No({variant:"info",theme:e}),colorSuccess:No({variant:"success",theme:e})}}}}function cW(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function bt({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:i,light:a,dark:l,main:u,contrastText:A}=r,f={"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:A,backgroundColor:u,"&:hover":{backgroundColor:a},...f};case"outlined":return{borderColor:u,"&:hover":{backgroundColor:i,borderColor:a},...f};case"text":default:return{color:u,"&:hover":{backgroundColor:u,color:i},...f}}}function uW(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":bt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":bt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":bt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":bt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":bt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":bt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":bt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":bt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":bt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":bt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":bt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":bt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":bt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":bt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":bt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":bt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":bt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":bt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":bt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":bt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":bt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":bt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":bt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":bt({variant:"outlined",color:"warning",theme:e})}}}}}}function AW(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function bi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i,dark:a}=n;return{"& .dot":{backgroundColor:i},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function dW(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 Ad(e){const t=dW(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function fW(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(b.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":{...Ad("small")},"&.size-medium":{...Ad("medium")},"&.size-large":{...Ad("large")}},colorPrimary:bi({color:"primary",theme:e}),colorSecondary:bi({color:"secondary",theme:e}),colorSuccess:bi({color:"success",theme:e}),colorWarning:bi({color:"warning",theme:e}),colorInfo:bi({color:"info",theme:e}),colorError:bi({color:"error",theme:e})}}}}function Qi({color:e,theme:t}){const n=nn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function gW(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":Qi({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Qi({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Qi({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Qi({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Qi({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Qi({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 pW(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 dd(e,t){const n=pW(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 hW(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},...dd(e,"medium")},sizeLarge:{...dd(e,"large")},sizeSmall:{...dd(e,"small")}}}}}function CW(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 mW(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 EW(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 IW(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function BW(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function yW(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function vW(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function bW(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function QW(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 xW(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function wW(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function TW(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function PW(e){return it.merge(kz(e),Fz(e),Lz(e),Nz(e),Vz(),Hz(e),zz(e),Wz(e),Uz(),Yz(),Gz(),qz(e),_z(e),Jz(),Xz(e),Zz(),$z(e),eW(e),tW(),nW(e),rW(),oW(),iW(e),sW(e),aW(),lW(e),cW(),uW(e),AW(e),fW(e),gW(e),hW(e),CW(e),mW(e),EW(e),IW(e),BW(e),yW(),vW(),bW(),QW(e),xW(e),wW(),TW())}const _g=({themeOverrides:e,children:t})=>{const{themeDirection:n,mode:r,presetColor:i,fontFamily:a}=Zn(),l=O.useMemo(()=>Mz(r,i),[r,i]),u=O.useMemo(()=>jz(a),[a]),A=O.useMemo(()=>cz(l),[l]),f=O.useMemo(()=>gt.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:n,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:l.palette,customShadows:A,typography:u,shadows:l.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:l.spacing(2.6875),height:l.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(l):e),[n,l,u,A,e]),p=lf(f),C=gt.cloneDeep(p.components??{});return p.components=gt.merge(PW(p),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(V0,{theme:p,children:[g.jsx(b.CssBaseline,{}),t]})})};_g.propTypes={children:c.node,themeOverrides:c.oneOfType([c.object,c.func])};const Rb=({children:e,theme:t,...n})=>g.jsx(S.CoreAdminContext,{...n,children:g.jsx(_g,{themeOverrides:t,children:g.jsx(Hg,{children:e})})});Rb.displayName="ApplicaAdminContext";const ss=e=>{const{authProvider:t,catchAll:n,children:r,dashboard:i,dataProvider:a,disableTelemetry:l,history:u,i18nProvider:A,layout:f,loading:p,loginPage:C,authCallbackPage:h,menu:E,notification:I,queryClient:B,requireAuth:v,store:R,ready:M,theme:x,title:T="React Admin"}=e;return g.jsx(Rb,{authProvider:t,dataProvider:a,i18nProvider:A,store:R,history:u,queryClient:B,theme:x,children:g.jsx(S.AdminUI,{layout:f,dashboard:i,disableTelemetry:l,menu:E,catchAll:n,title:T,loading:p,loginPage:C,authCallbackPage:h,notification:I,requireAuth:v,ready:M,children:r})})};ss.defaultProps={store:S.localStorageStore(),title:"Applica Admin"};ss.propTypes={...S.AdminUI.propTypes};class Sb{constructor({catch:t,display:n,log:r,error:i}){ws(this,"catch");ws(this,"display");ws(this,"log");ws(this,"error");this.catch=t,this.display=n,this.log=r,this.error=i}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const RW=({apiUrl:e,endpoint:t,message:n,bodyBuilder:r})=>fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(r(n))}),SW=({enabled:e=!0,apiUrl:t,endpoint:n="/ui-errors/put",loading:r,catcherFn:i=l=>new Sb({catch:l!=null,display:!1,log:!1}),bodyBuilder:a=l=>({message:l})})=>(N.useMemo(()=>{if(r||!e)return;const l=console.error;console.error=function(u,...A){if(!u||typeof u!="string"){l.apply(console,arguments);return}const f=u.replace(/%s/g,()=>A.shift()),p=i(f);if(!p.isCatched()){l.apply(console,arguments);return}p.logError()&&RW({apiUrl:t,endpoint:n,message:f,bodyBuilder:a}),p.displayError()?l.apply(console,arguments):console.debug.apply(console,arguments)}},[t,r,a,n,i,e]),!0),Jg=({languages:e,defaultLocale:t,allowMissing:n=!1})=>YP(r=>it.get(e,r,{}),t,[{locale:t}],{allowMissing:n}),C0=[],OW=({apiUrl:e,endpoint:t,locale:n,message:r,bodyBuilder:i})=>r!=null&&r!=="undefined"&&r.indexOf("[")===-1&&r.indexOf("]")===-1&&C0.indexOf(`${n}-${r}`)===-1&&C0.push(`${n}-${r}`)&&fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(i(n,r)||{})}),Ob=({apiUrl:e,enabled:t=!0,endpoint:n="/languages/put-message",loading:r,bodyBuilder:i=(a,l)=>({lang:a,code:l,text:l})})=>{const[a]=S.useLocaleState();return N.useMemo(()=>{if(r||!t)return;const l=console.error;console.error=function(u){if(!(typeof u=="string"&&u==="%c%s")){if(typeof u=="string"&&u.indexOf("Missing translation for key: ")>=0){if(u=u.replace("Warning: Missing translation for key: ",""),u=u.split('"').join("").trim(),u===null||u.indexOf(" ")!==-1||u.indexOf(".")===-1)return;const A=localStorage.getItem("locale")||a;OW({apiUrl:e,endpoint:n,locale:A,message:u,bodyBuilder:i});return}l.apply(console,arguments)}}},[e,a,r,i,n,t]),!0};window.React=O;const Db=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,i]=O.useState({loading:!0,languages:null});return O.useEffect(()=>{let a=new Headers;a.append("Accept","application/json"),a.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:a}).then(l=>l.json()).then(l=>i({loading:!1,...n(l)}))},[e,t,n]),r},DW=({apiUrl:e,locale:t="en",languages:n={}})=>Jg({apiUrl:e,locale:t,languages:n}),MW=e=>e.reduce((t,n)=>({...t,[n.lang]:{...t[n.lang]||{},[n.code]:n.text}}),{}),jW=(e,t)=>({lang:e,code:t,text:t}),kW=new qd.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Xg=({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r,development:i,logoMain:a,logoIcon:l,loginPage:u,menu:A,name:f,copy:p,version:C,dataProvider:h,authProvider:E,notification:I,enableNotification:B,enableRegistration:v,enablePasswordRecover:R,...M})=>{const x=Db({apiUrl:n,endpoint:"/i18n/messages",mapper:MW});Ob({bodyBuilder:jW,apiUrl:n,endpoint:"/i18n/message",loading:x==null?void 0:x.loading,enabled:i}),SW({apiUrl:n,endpoint:"/cli/error",catcherFn:j=>{const K=j==null?void 0:j.toString(),U=["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`.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>."].some(ae=>K==null?void 0:K.includes(ae));return new Sb({catch:U,display:!U,log:!U,error:j})}});const T=O.useMemo(()=>O.isValidElement(u)?O.cloneElement(u,{name:f,copy:p,version:C,enableRegistration:v,enablePasswordRecover:R}):u,[u,f,C,p,v,R]),P=O.useMemo(()=>j=>{const K=f?g.jsx(su,{title:f}):a,q=f?g.jsx(zg,{title:f}):l;return g.jsx(fb,{...j,name:f,copy:p,version:C,logoMain:K,logoIcon:q,notification:I,enableNotification:B})},[a,l,f,C,I,B]);if(x!=null&&x.loading)return null;const F=Jg({languages:x,defaultLocale:r,allowMissing:i});return g.jsx(df,{children:g.jsx(hf,{menu:A,children:g.jsx(gf,{initialConfig:t,children:g.jsx(ss,{theme:e,layout:P,notification:hb,queryClient:kW,dataProvider:h,authProvider:E,i18nProvider:F,loginPage:T,...M})})})})};Xg.defaultProps={...ss.defaultProps,fileFields:[],defaultLocale:"en",development:!1,version:"0.0.0",notification:"entities/notification",enableNotification:!1,enableRegistration:!1,enableForgotPassword:!1,loginPage:g.jsx(au,{version:"0.0.0",name:"Applica",redirectTo:"/"})};Xg.propTypes={...ss.propTypes,theme:c.oneOfType([c.object,c.func]),apiUrl:c.string.isRequired,defaultLocale:c.string,development:c.bool,logoMain:c.node,logoIcon:c.node,menu:c.arrayOf(Li),name:c.string,version:c.string,authProvider:c.oneOfType([c.func,c.object]),dataProvider:c.oneOfType([c.func,c.object]),notification:c.string,enableNotification:c.bool,enableRegistration:c.bool,enableForgotPassword:c.bool};Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>S.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>S.BooleanField});Object.defineProperty(exports,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>S.BulkDeleteWithConfirmButton});Object.defineProperty(exports,"Button",{enumerable:!0,get:()=>S.Button});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>S.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>S.Confirm});Object.defineProperty(exports,"CreateButton",{enumerable:!0,get:()=>S.CreateButton});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>S.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>S.CustomRoutes});Object.defineProperty(exports,"DeleteWithConfirmButton",{enumerable:!0,get:()=>S.DeleteWithConfirmButton});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>S.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>S.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>S.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>S.FieldTitle});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>S.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>S.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>S.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>S.I18nContextProvider});Object.defineProperty(exports,"ListToolbar",{enumerable:!0,get:()=>S.ListToolbar});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>S.LoadingIndicator});Object.defineProperty(exports,"Pagination",{enumerable:!0,get:()=>S.Pagination});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>S.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>S.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>S.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>S.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>S.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>S.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>S.SaveButton});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>S.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleList",{enumerable:!0,get:()=>S.SimpleList});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>S.SingleFieldList});Object.defineProperty(exports,"TopToolbar",{enumerable:!0,get:()=>S.TopToolbar});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>S.UrlField});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>S.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>S.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>S.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>S.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>S.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>S.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>S.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>S.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>S.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>S.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>S.useAuthProvider});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>S.useCreateController});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>S.useDataProvider});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>S.useEditContext});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>S.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>S.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>S.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>S.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>S.useGetOne});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>S.useListContext});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>S.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>S.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>S.useRecordContext});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>S.useRefresh});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>S.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>S.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>S.useResourceDefinitions});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>S.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>S.useSimpleFormIteratorItem});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>S.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>S.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>S.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>S.useUnselectAll});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>S.useUpdateMany});exports.ActionsField=Kf;exports.ActionsMenu=Ji;exports.ActivatePage=vb;exports.Admin=ss;exports.AnimateButton=IB;exports.AppConfigContext=Af;exports.AppConfigProvider=df;exports.ApplicaAdmin=Xg;exports.ArrayInput=l5;exports.AttachmentField=qf;exports.AttachmentInput=tg;exports.AutocompleteArrayInput=ng;exports.AutocompleteInput=rg;exports.Avatar=sc;exports.BooleanInput=og;exports.Breadcrumbs=Vc;exports.CardForm=Wc;exports.ChangePasswordForm=pg;exports.CircularWithLabel=NB;exports.CircularWithPath=VB;exports.CoverField=Gc;exports.Create=j5;exports.CreateInDialogButton=Yg;exports.Datagrid=Kg;exports.DateAgoField=Kc;exports.DateField=_f;exports.DateInput=ig;exports.DateTimeInput=sg;exports.Dot=Hc;exports.Drawer=lb;exports.DrawerHeader=$y;exports.DrawerHeaderStyled=Mg;exports.DrawerToggle=my;exports.Edit=k5;exports.EditInDialogButton=Gg;exports.EmailField=Jf;exports.Empty=Eb;exports.FileField=Xf;exports.FileInput=ag;exports.Footer=ha;exports.FormHeader=hg;exports.FunctionField=qB;exports.Header=Ey;exports.HeaderNotification=Iy;exports.HeaderProfile=By;exports.HeaderSpacer=vy;exports.HorizontalBar=cb;exports.IconButton=ho;exports.ImageField=ga;exports.ImageInput=lg;exports.ImpersonateUserButton=mb;exports.LabeledArrayInput=Yc;exports.LabeledInput=at;exports.Layout=fb;exports.LayoutContent=by;exports.LayoutProvider=py;exports.LayoutWrapper=Qy;exports.LinearWithIcon=HB;exports.LinearWithLabel=zB;exports.List=Ib;exports.ListItem=qg;exports.Loadable=qH;exports.Loader=pb;exports.LoadingButton=Yf;exports.LoginPage=au;exports.Logo=jg;exports.LongForm=pa;exports.MainCard=Yn;exports.MainIcon=su;exports.MenuConfigContext=pf;exports.MenuConfigProvider=hf;exports.MenuPopover=Sc;exports.MenuPropTypes=Li;exports.NavMenu=ub;exports.Navigation=db;exports.Notification=hb;exports.NotificationList=lz;exports.NumberInput=cg;exports.ReadonlyField=$f;exports.RecordInput=ZB;exports.RecoverPage=bb;exports.ReferenceArrayInput=ug;exports.ReferenceInput=Ag;exports.ReferenceManyField=$i;exports.ReferenceManyInput=dg;exports.RegisterPage=Qb;exports.ResponsiveSection=yy;exports.ScrollTop=Hg;exports.ScrollX=_H;exports.SearchInput=w5;exports.SelectArrayInput=fg;exports.SelectInput=ey;exports.SimpleBar=Ng;exports.SimpleForm=Uc;exports.SimpleFormIterator=e8;exports.SizeField=JB;exports.SmallIcon=zg;exports.SmartTextInput=qc;exports.TabbedForm=Xc;exports.TableFormIterator=DL;exports.TextField=eg;exports.TextInput=Gn;exports.ThemeConfigContext=ff;exports.ThemeConfigProvider=gf;exports.ThemeProvider=_g;exports.TimeInput=gg;exports.Toolbar=Yr;exports.Tooltip=LB;exports.Transitions=Co;exports.createI18nProvider=Jg;exports.parseTime=ty;exports.useAppConfig=Jo;exports.useBreadcrumbs=X0;exports.useI18nCatcher=Ob;exports.useI18nLanguages=Db;exports.useI18nProvider=DW;exports.useLayoutContext=vg;exports.useLayoutDispatch=kL;exports.useLayoutDrawerState=$o;exports.useLayoutLogoState=Cy;exports.useLayoutMediaState=$n;exports.useLayoutNotificationsState=tu;exports.useLayoutState=rs;exports.useLayoutThemeState=nu;exports.useLocalStorage=mf;exports.useMenu=Cf;exports.useMenuConfig=fo;exports.useRefDimensions=nO;exports.useResourceDefaultValues=M5;exports.useResourceTitle=Z0;exports.useSx=Xi;exports.useThemeConfig=Zn;exports.uuid=P5;exports.withLayoutProvider=hy;
265
+ `),NH)),gb=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiLinearProgress"}),{className:i,color:a="primary",value:l,valueBuffer:u,variant:A="indeterminate"}=r,f=Ge(r,FH),p=W({},r,{color:a,variant:A}),C=HH(p),h=Tt(),E={},I={bar1:{},bar2:{}};if(A==="determinate"||A==="buffer")if(l!==void 0){E["aria-valuenow"]=Math.round(l),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=l-100;h.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(A==="buffer")if(u!==void 0){let B=(u||0)-100;h.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(zH,W({className:Je(C.root,i),ownerState:p,role:"progressbar"},E,{ref:n},f,{children:[A==="buffer"?g.jsx(WH,{className:C.dashed,ownerState:p}):null,g.jsx(UH,{className:C.bar1,ownerState:p,style:I.bar1}),A==="determinate"?null:g.jsx(YH,{className:C.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(gb.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.number,valueBuffer:c.number,variant:c.oneOf(["buffer","determinate","indeterminate","query"])});const GH=gb,KH=ce("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),pb=()=>g.jsx(KH,{children:g.jsx(GH,{color:"primary"})}),qH=e=>t=>g.jsx(O.Suspense,{fallback:g.jsx(pb,{}),children:g.jsx(e,{...t})}),su=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]});su.propTypes={title:c.string.isRequired};const hb=ce(S.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}})),Hg=({children:e})=>{const t=pt.useLocation(),{pathname:n}=t;return O.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};Hg.propTypes={children:c.node};const _H=ce("div")({width:"100%",overflowX:"auto",display:"block"}),zg=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});zg.propTypes={title:c.string.isRequired};const Wg=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(i=>i.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},JH=(e,t)=>e&&e.data?{data:Wg(e.data,t),total:e.total+1}:e,XH=(e,t)=>e&&e.length>0?Wg(e,t):e,ZH=(e,t)=>e&&e.data?{...e,data:Wg(e.data,t),total:e.total+1}:e,Ug=({onClose:e,record:t,children:n,redirect:r,onSubmit:i,onSuccess:a,onError:l})=>{const u=qd.useQueryClient(),A=S.useResourceContext(),f=S.useRedirect(),p=S.useNotify(),C=O.useCallback(B=>{const R=Date.now();u.setQueryData([A,"getOne",{id:B.id}],B),u.setQueriesData([A,"getList"],M=>ZH(M,B),{updatedAt:R}),u.setQueriesData([A,"getMany"],M=>XH(M,B),{updatedAt:R}),u.setQueriesData([A,"getManyReference"],M=>JH(M,B),{updatedAt:R}),e(),p("ra.notification.created"),r!==void 0&&f(r,A,B.id,B),a&&a(B)},[e,a,u,A,p,f,r]),{save:h,...E}=S.useCreateController({mutationOptions:{onSuccess:C,onError:l}}),I=O.useCallback(B=>{i?i(B,e):h&&h(B)},[i,h,e]);return g.jsx(S.CreateContextProvider,{value:{record:t,save:I,saving:E==null?void 0:E.saving,redirect:r},children:O.cloneElement(n,{...n.props,toolbar:g.jsxs(Yr,{children:[g.jsx(S.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),g.jsx(S.SaveButton,{disabled:E==null?void 0:E.saving})]})})})};Ug.propTypes={children:c.node,onClose:c.func,record:c.object,redirect:c.oneOf(["list","edit","show",!1])};Ug.defaultProps={redirect:!1};const $H={true:{_scrollToTop:!0},false:{}},ez=ce(b.Fab,{name:"RaApplicaCreateInDialogButton",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${S.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Yg=({fullWidth:e,maxWidth:t,label:n,record:r,redirect:i,scrollToTop:a,className:l,sx:u,onSubmit:A,onSuccess:f,onError:p,...C})=>{const[h,E]=O.useState(!1),I=S.useTranslate(),B=S.useResourceContext(),{openDialog:v,closeDialog:R}=Jo(),M=O.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=O.useCallback(()=>R(B,()=>E(!1)),[R,B]),T=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[T?g.jsx(ez,{...C,state:$H[String(a)],color:"primary",className:Je(S.CreateButtonClasses.floating,l),"aria-label":n&&I(n),onClick:M,children:g.jsx(_n.Add,{})}):g.jsx(S.Button,{...C,sx:u,label:n,onClick:M,children:g.jsx(_n.Add,{})}),g.jsx(b.Dialog,{open:h,onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(Ug,{...C,redirect:i,record:r,onClose:x,onSubmit:A,onSuccess:f,onError:p})})]})};Yg.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.create",scrollToTop:!0};Yg.propTypes={...S.Button.propTypes,redirect:c.oneOf(["list","edit","show",!1]),fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string,record:c.object,scrollToTop:c.bool,className:c.string,sx:c.object,children:c.node,onSubmit:c.func,onSuccess:c.func,onError:c.func};const Cb=({onClose:e,children:t})=>{const n=S.useNotify(),r=S.useRecordContext(),i=S.useResourceContext(),{id:a}=r,{isLoading:l,data:u}=S.useGetOne(i,{id:a}),A=O.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:f,saving:p}=S.useEditController({resource:i,id:a,mutationMode:"pessimistic",mutationOptions:{onSuccess:A}});return g.jsx(S.EditContextProvider,{value:{record:u,isLoading:l,save:f,saving:p},children:O.cloneElement(t,{toolbar:g.jsxs(Yr,{children:[g.jsx(S.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(S.SaveButton,{})]})})})};Cb.propTypes={children:c.node,onClose:c.func};const Gg=({fullWidth:e,maxWidth:t,label:n,...r})=>{const[i,a]=O.useState(!1),{openDialog:l,closeDialog:u}=Jo(),A=S.useResourceContext(),f=O.useCallback(()=>l(A,()=>a(!0)),[l,A]),p=O.useCallback(()=>u(A,()=>a(!1)),[u,A]);return g.jsxs(g.Fragment,{children:[g.jsx(S.Button,{label:n,onClick:f,children:g.jsx(_n.Edit,{})}),g.jsx(b.Dialog,{open:i,onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(Cb,{...r,onClose:p})})]})};Gg.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.edit"};Gg.propTypes={fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string};const mb=({label:e="ra.auth.sign_in",...t})=>{const n=S.useRecordContext(),[r,i]=O.useState(!1),a=S.useAuthProvider(),l=O.useCallback(u=>{u.stopPropagation(),u.preventDefault(),i(!0),a.impersonate(n==null?void 0:n.id).then(()=>{i(!1),document.location.href="/"})},[a,n==null?void 0:n.id]);return g.jsx(S.Button,{disabled:r||a.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...t,children:g.jsx(_n.VpnKey,{})})};mb.propTypes={label:c.string};const tz=ce(S.Datagrid,{name:"ApplicaDatagrid",slot:"root"})(()=>({"& .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"}})),Kg=e=>g.jsx(tz,{...e});Kg.propTypes={...S.Datagrid.propTypes};Kg.defaultProps={...S.Datagrid.defaultProps};const nz=ce("div")(({theme:e})=>({padding:e.spacing(2)})),Eb=({actions:e,className:t,...n})=>{const{hasCreate:r}=be.useResourceDefinition(n),i=be.useResourceContext(n),a=be.useTranslate(),l=be.useGetResourceLabel(),u=a(`resources.${i}.forcedCaseName`,{smart_count:0,_:l(i,0)}),A=a("ra.page.empty",{name:u}),f=a("ra.page.invite");return g.jsxs(rz,{className:t,children:[g.jsxs("div",{className:ji.message,children:[g.jsx(_n.Inbox,{className:ji.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:a(`resources.${i}.empty`,{_:A})}),r&&g.jsx(b.Typography,{variant:"body1",children:a(`resources.${i}.invite`,{_:f})})]}),g.jsx(nz,{className:ji.toolbar,children:e})]})},Wl="ApplicaEmpty",ji={message:`${Wl}-message`,icon:`${Wl}-icon`,toolbar:`${Wl}-toolbar`},rz=ce("span",{name:Wl,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${ji.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ji.icon}`]:{width:"9em",height:"9em"},[`& .${ji.toolbar}`]:{textAlign:"center",marginTop:"2em"}}));Eb.propTypes={actions:c.element,className:c.string};const oz=_i(S.List,{name:"RaApplicaList",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:e.spacing(2)}},"& .RaList-actions":{padding:e.spacing(2),paddingTop:e.spacing(1),alignItems:"center","& form":{alignItems:"center"},"& .RaFilterForm-filterFormInput":{"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},marginTop:e.spacing(1.5)},"& .RaFilterFormInput-hideButton":{marginBottom:e.spacing(.5),marginRight:e.spacing(1)},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"flex-end",minHeight:"fit-content"}},"& .RaList-content":{"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}})),Ib=e=>g.jsx(Yn,{content:!1,children:g.jsx(oz,{...e})});Ib.propTypes={...S.List.propTypes};const iz=()=>{const e=S.useRefresh(),t=S.useNotify(),n=S.useUnselectAll(),r=S.useResourceContext(),{selectedIds:i,data:a}=S.useListContext(),l=S.useRecordContext(),u=i.map(C=>a.find(h=>h.id===C)),[A,{isLoading:f}]=S.useUpdateMany(r,{ids:i.length>0?i:[l==null?void 0:l.id],data:{readed:Hr().format("YYYY-MM-DD HH:mm:ss")},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),n(r)},onError:()=>t("ra.notification.readed_error","warning"),onFailure:()=>t("ra.notification.readed_error","warning")}),p=O.useCallback(()=>{A()},[A]);return g.jsx(S.Button,{label:"ra.notification.mark_as_readed",disabled:f||(l==null?void 0:l.readed)!==null,onClick:p,children:g.jsx(_n.Email,{})})},sz=()=>{const e=S.useRefresh(),t=S.useNotify(),n=S.useUnselectAll(),{selectedIds:r,data:i}=S.useListContext(),a=S.useRecordContext(),l=S.useResourceContext(),u=r.map(C=>i.find(h=>h.id===C)).concat([a]),[A,{isLoading:f}]=S.useUpdateMany(l,{ids:r.length>0?r:[a==null?void 0:a.id],data:{readed:null},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),n("notifications")},onFailure:()=>t("resources.notifications.messages.unreaded.error","warning")}),p=O.useCallback(()=>{A()},[A]);return g.jsx(S.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:f||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(_n.Drafts,{})})},az=e=>{const t=S.useRecordContext(e),n=S.useResourceContext(e),r=S.useRedirect(),i=S.useNotify(),a=S.useTranslate(),[l]=S.useLocaleState(),u=O.useMemo(()=>t!=null&&t.readed?Hr(t==null?void 0:t.readed).locale(l).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,l]),[A]=S.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Hr().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)},onFailure:()=>{i("ra.notification.readed_error","warning")}}),f=O.useCallback(()=>A(),[A]);return g.jsxs("div",{onClick:f,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),u&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:a("ra.notification.readed",{readed:u})})]})},lz=({...e})=>{const t=b.useTheme(),{mode:n,colorize:r,density:i}=O.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),a=O.useCallback(l=>({backgroundColor:l!=null&&l.readed?r(t.palette.primary[n],i):r(t.palette.secondary[n],i)}),[t,n,r,i]);return g.jsxs(S.Datagrid,{...e,rowStyle:a,children:[g.jsx(az,{source:"notification",sortable:!1,label:"ra.notification"}),g.jsx(Kc,{source:"created",label:"ra.notification.created"}),g.jsxs(Ji,{children:[g.jsx(iz,{}),g.jsx(sz,{})]})]})},Ol={width:"1.5rem",alignSelf:"center"},qg=({source:e,label:t,variant:n,record:r,spaceBottom:i,spaceTop:a,component:l,leftIcon:u,rightIcon:A,button:f,buttonProps:p,...C})=>{const{getCurrentDialog:h}=Jo(),E=be.useResourceContext(C),I=h(),B=be.useRecordContext(),v=r||B,R=it.get(v,e||"");return g.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:M=>({pt:1,pb:1,borderBottom:`1px solid ${M.palette.divider}`,...i&&{mb:2},...a&&{mt:2}}),children:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[u&&(O.isValidElement(u)?O.cloneElement(u,{style:Ol}):O.createElement(u,{style:Ol})),g.jsx(be.FieldTitle,{label:t,source:e,resource:I||E})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[l?O.isValidElement(l)?O.cloneElement(l,{record:v,resource:E,value:R}):O.createElement(l,{source:e,record:v,resource:E,value:R}):g.jsx(b.Typography,{variant:n,children:R}),A&&(O.isValidElement(A)?O.cloneElement(A,{style:Ol}):O.createElement(A,{style:Ol})),f&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:f})]})]})};qg.propTypes={source:c.string,label:c.string,record:c.object,variant:c.oneOf(["body1","body2","caption","button","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),spaceTop:c.bool,spaceBottom:c.bool,leftIcon:c.oneOfType([c.elementType,c.element,c.func]),rightIcon:c.oneOfType([c.elementType,c.element,c.func]),component:c.oneOfType([c.elementType,c.element,c.func]),buttonProps:c.object,button:c.string};qg.defaultProps={variant:"body1"};const Bb=()=>{const e=Kt.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return g.jsx(b.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:g.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),g.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),g.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),g.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),g.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),g.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),g.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),g.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})},yb=({children:e,...t})=>{const n=Tt();return g.jsx(Yn,{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(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};yb.propTypes={children:c.node};const Ba=({version:e,name:t,copy:n,children:r,background:i=Bb})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[O.isValidElement(i)?i:O.createElement(i),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3,mt:3},children:g.jsx(su,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.jsx(b.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(b.Grid,{item:!0,children:g.jsx(yb,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(ha,{name:t,copy:n,version:e})})]})]})]});Ba.propTypes={children:c.node,version:c.string,name:c.string,copy:c.string,background:c.oneOfType([c.node,c.func,c.object])};const vb=({name:e,copy:t,version:n,background:r})=>{const i=be.useTranslate(),a=be.useAuthProvider(),l=be.useNotify(),u=pt.useNavigate(),{token:A}=pt.useParams();return O.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{l("ra.auth.activate_success",{type:"info"}),gt.delay(()=>u("/login"),1e3)}).catch(f=>{l(f,{type:"error"}),gt.delay(()=>u("/login"),1e3)})},[A]),g.jsx(Ba,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:i("ra.auth.activate")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})};vb.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const au=({version:e,name:t,copy:n,enablePasswordRecover:r,enableRegistration:i,redirectTo:a,background:l})=>{const[u,A]=be.useSafeSetState(!1),f=be.useLogin(),p=be.useTranslate(),C=be.useNotify(),h=be.useCheckAuth(),E=pt.useNavigate();O.useEffect(()=>{h({},!1).then(()=>{E("/")}).catch(()=>{})},[h,E]);const I=B=>{A(!0),f(B,a).then(()=>{A(!1)}).catch(v=>{A(!1),C(typeof v=="string"?v:typeof v>"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return g.jsx(Ba,{name:t,version:e,copy:n,background:l,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),i&&g.jsx(b.Typography,{component:pt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:p("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(be.Form,{onSubmit:I,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Gn,{autoFocus:!0,source:"username",label:p("ra.auth.username"),autoComplete:"username",validate:be.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Gn,{source:"password",label:p("ra.auth.password"),type:"password",autoComplete:"current-password",validate:be.required(),placeholder:p("ra.auth.password_placeholder"),fullWidth:!0})})]}),r&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:pt.Link,to:"/recover",color:"text.primary",children:p("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):p("ra.auth.sign_in")})})]})})]})})};au.propTypes={version:c.string.isRequired,name:c.string.isRequired,enablePasswordRecover:c.bool,enableRegister:c.bool,background:c.element};au.defaultProps={enablePasswordRecover:!1,enableRegister:!1,background:g.jsx(Bb,{})};const bb=({name:e,copy:t,version:n,background:r})=>{const[i,a]=O.useState(!1),l=be.useTranslate(),u=be.useRedirect(),A=be.useNotify(),f=be.useAuthProvider(),p=({email:C})=>{a(!0),f.recover(C).then(h=>{const E=`ra.auth.recover_${h.responseCode}`,I=h.responseCode==="ok"?"info":"error";A(E,{type:I}),u("/login")}).catch(h=>{A(h,{type:"error"})}).finally(()=>a(!1))};return g.jsx(Ba,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(S.Form,{onSubmit:p,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"email",validate:[be.required(),be.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?g.jsx(b.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})};bb.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const Qb=({name:e,copy:t,version:n})=>{const[r,i]=O.useState(!1),a=be.useTranslate(),l=be.useRedirect(),u=be.useNotify(),A=be.useAuthProvider(),f=p=>{i(!0),A.register(p).then(C=>{const h=`ra.auth.register_${C.responseCode}`,E=C.responseCode==="ok"?"info":"error";u(h,{type:E}),l("/login")}).catch(C=>{u(C,{type:"error"})}).finally(()=>i(!1))};return g.jsx(Ba,{name:e,copy:t,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:a("ra.auth.register.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:a("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(S.Form,{onSubmit:f,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"name",label:a("ra.register.name"),validate:be.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"email",type:"email",validate:[be.required(),be.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Gn,{source:"password",type:"password",validate:be.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:r,fullWidth:!0,children:r?g.jsx(b.CircularProgress,{size:19,thickness:3}):a("ra.auth.create_account")})})]})})]})})};Qb.propTypes={name:c.string.isRequired,version:c.string.isRequired};const cz=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 ${Ve(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Ve(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Ve(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Ve(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Ve(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Ve(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Ve(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Ve(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Ve(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Ve(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Ve(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Ve(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Ve(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Ve(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Ve(e.palette.grey[500],.2)}`});function qn(e,t){uz(e)&&(e="100%");var n=Az(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 uz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Az(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function id(e){return e.length===1?"0"+e:String(e)}function fz(e,t,n){return{r:qn(e,255)*255,g:qn(t,255)*255,b:qn(n,255)*255}}function sd(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 gz(e,t,n){var r,i,a;if(e=qn(e,360),t=qn(t,100),n=qn(n,100),t===0)i=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=sd(u,l,e+1/3),i=sd(u,l,e),a=sd(u,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function pz(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=r,u=r-i,A=r===0?0:u/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:A,v:l}}function hz(e,t,n){e=qn(e,360)*6,t=qn(t,100),n=qn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),A=r%6,f=[n,l,a,a,u,n][A],p=[u,n,n,l,a,a][A],C=[a,a,u,n,n,l][A];return{r:f*255,g:p*255,b:C*255}}function Cz(e,t,n,r){var i=[id(Math.round(e).toString(16)),id(Math.round(t).toString(16)),id(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c0(e){return wn(e)/255}function wn(e){return parseInt(e,16)}var u0={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 js(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,l=!1,u=!1;return typeof e=="string"&&(e=Iz(e)),typeof e=="object"&&(Dr(e.r)&&Dr(e.g)&&Dr(e.b)?(t=fz(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Dr(e.h)&&Dr(e.s)&&Dr(e.v)?(r=Dl(e.s),i=Dl(e.v),t=hz(e.h,r,i),l=!0,u="hsv"):Dr(e.h)&&Dr(e.s)&&Dr(e.l)&&(r=Dl(e.s),a=Dl(e.l),t=gz(e.h,r,a),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dz(n),{ok:l,format:e.format||u,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 mz="[-\\+]?\\d+%?",Ez="[-\\+]?\\d*\\.\\d+%?",co="(?:".concat(Ez,")|(?:").concat(mz,")"),ad="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),ld="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(co),rgb:new RegExp("rgb"+ad),rgba:new RegExp("rgba"+ld),hsl:new RegExp("hsl"+ad),hsla:new RegExp("hsla"+ld),hsv:new RegExp("hsv"+ad),hsva:new RegExp("hsva"+ld),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 Iz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(u0[e])e=u0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sr.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:c0(n[4]),format:t?"name":"hex8"}:(n=sr.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=sr.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:c0(n[4]+n[4]),format:t?"name":"hex8"}:(n=sr.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Dr(e){return!!sr.CSS_UNIT.exec(String(e))}var Ml=2,A0=.16,Bz=.05,yz=.05,vz=.15,xb=5,wb=4,bz=[{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 d0(e){var t=e.r,n=e.g,r=e.b,i=pz(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function jl(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Cz(t,n,r,!1))}function Qz(e,t,n){var r=n/100,i={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 i}function f0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ml*t:Math.round(e.h)+Ml*t:r=n?Math.round(e.h)+Ml*t:Math.round(e.h)-Ml*t,r<0?r+=360:r>=360&&(r-=360),r}function g0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-A0*t:t===wb?r=e.s+A0:r=e.s+Bz*t,r>1&&(r=1),n&&t===xb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function p0(e,t,n){var r;return n?r=e.v+yz*t:r=e.v-vz*t,r>1&&(r=1),Number(r.toFixed(2))}function h0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=js(e),i=xb;i>0;i-=1){var a=d0(r),l=jl(js({h:f0(a,i,!0),s:g0(a,i,!0),v:p0(a,i,!0)}));n.push(l)}n.push(jl(r));for(var u=1;u<=wb;u+=1){var A=d0(r),f=jl(js({h:f0(A,u),s:g0(A,u),v:p0(A,u)}));n.push(f)}return t.theme==="dark"?bz.map(function(p){var C=p.index,h=p.opacity,E=jl(Qz(js(t.backgroundColor||"#141414"),js(n[C]),h*100));return E}):n}var cd={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"},Gt={},Ul={};Object.keys(cd).forEach(function(e){Gt[e]=h0(cd[e]),Gt[e].primary=Gt[e][5],Ul[e]=h0(cd[e],{theme:"dark",backgroundColor:"#141414"}),Ul[e].primary=Ul[e][5]});Gt.red;Gt.volcano;Gt.gold;Gt.orange;Gt.yellow;Gt.lime;Gt.green;Gt.cyan;Gt.blue;Gt.geekblue;Gt.purple;Gt.magenta;Gt.grey;Gt.grey;const Tb=e=>{const{blue:t,red:n,gold:r,cyan:i,green:a,grey:l}=e,u={0:l[0],50:l[1],100:l[2],200:l[3],300:l[4],400:l[5],500:l[6],600:l[7],700:l[8],800:l[9],900:l[10],A50:l[15],A100:l[11],A200:l[12],A400:l[13],A700:l[14],A800:l[16]},A="#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:A},secondary:{lighter:u[100],100:u[100],200:u[200],light:u[300],400:u[400],main:u[500],600:u[600],dark:u[700],800:u[800],darker:u[900],A100:u[0],A200:u.A400,A300:u.A700,contrastText:u[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:A},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:u[100]},info:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:A},success:{lighter:a[0],light:a[3],main:a[5],dark:a[7],darker:a[9],contrastText:A},grey:u}};Tb.propTypes={colors:c.object};const xz=(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]},i="#fff";let a=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],l=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],u=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],A=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],f=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(a=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],l=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],u=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],A=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],f=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},wz=(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]},i="#fff";let a=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Tz=(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]},i="#fff";let a=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Pz=(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]},i="#fff";let a=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Rz=(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]},i="#fff";let a=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Sz=(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]},i="#fff";let a=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Oz=(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]},i="#fff";let a=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Dz=(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]},i="#fff";let a=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},Pb=(e,t,n)=>{switch(t){case"theme1":return xz(e,n);case"theme2":return wz(e,n);case"theme3":return Tz(e,n);case"theme4":return Pz(e,n);case"theme5":return Rz(e,n);case"theme6":return Sz(e,n);case"theme7":return Oz(e,n);case"theme8":return Dz(e,n);default:return Tb(e)}};Pb.propTypes={colors:c.object,presetColor:c.any};const Mz=(e,t)=>{const n=e==="dark"?Ul:Gt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#121212","#d3d8db"]),n.grey=[...r,...i,...a];const l=Pb(n,t,e);return lf({palette:{mode:e,common:{black:"#000",white:"#fff"},...l,text:{primary:e==="dark"?Ve(l.grey[900],.87):l.grey[700],secondary:e==="dark"?Ve(l.grey[900],.45):l.grey[500],disabled:e==="dark"?Ve(l.grey[900],.1):l.grey[400]},action:{disabled:l.grey[300]},divider:e==="dark"?Ve(l.grey[900],.05):l.grey[200],background:{paper:e==="dark"?l.grey[100]:l.grey[0],default:l.grey.A50}}})},jz=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 kz(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 Fz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Lz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(ot.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 Fo({color:e,theme:t}){const n=nn(t,e),{lighter:r,light:i,main:a}=n;return{borderColor:Ve(i,.5),backgroundColor:r,"& .MuiAlert-icon":{color:a}}}function Nz(e){const t=Fo({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":Fo({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Fo({color:"secondary",theme:e}),"&.MuiAlert-borderError":Fo({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Fo({color:"success",theme:e}),"&.MuiAlert-borderInfo":Fo({color:"info",theme:e}),"&.MuiAlert-borderWarning":Fo({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 Vz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Hz(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 Lo({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i}=n;return{color:i,backgroundColor:r}}function zz(e){const t=Lo({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Lo({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Lo({color:"secondary",theme:e}),"&.MuiBadge-colorError":Lo({color:"error",theme:e}),"&.MuiBadge-colorInfo":Lo({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Lo({color:"success",theme:e}),"&.MuiBadge-colorWarning":Lo({color:"warning",theme:e})}}}}}function Xe({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:i,main:a,dark:l,contrastText:u}=r,A=`${t}Button`,f=Zi(n,A),p={"&::after":{boxShadow:`0 0 5px 5px ${Ve(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Ve(a,.9)}`},"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:l},...p};case"shadow":return{color:u,backgroundColor:a,boxShadow:f,"&:hover":{boxShadow:"none",backgroundColor:l},...p};case"outlined":return{borderColor:a,"&:hover":{color:l,backgroundColor:"transparent",borderColor:l},...p};case"dashed":return{color:a,borderColor:a,backgroundColor:i,"&:hover":{color:l,borderColor:l},...p};case"text":default:return{"&:hover":{color:l,backgroundColor:i},...p}}}function Wz(e){const t=Xe({variant:"dashed",color:"primary",theme:e}),n=Xe({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*: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:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":Xe({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":Xe({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":Xe({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":Xe({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":Xe({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":Xe({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":Xe({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":Xe({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":Xe({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":Xe({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":Xe({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":Xe({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:Xe({variant:"contained",color:"primary",theme:e}),containedSecondary:Xe({variant:"contained",color:"secondary",theme:e}),containedError:Xe({variant:"contained",color:"error",theme:e}),containedSuccess:Xe({variant:"contained",color:"success",theme:e}),containedInfo:Xe({variant:"contained",color:"info",theme:e}),containedWarning:Xe({variant:"contained",color:"warning",theme:e}),outlinedPrimary:Xe({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:Xe({variant:"outlined",color:"secondary",theme:e}),outlinedError:Xe({variant:"outlined",color:"error",theme:e}),outlinedSuccess:Xe({variant:"outlined",color:"success",theme:e}),outlinedInfo:Xe({variant:"outlined",color:"info",theme:e}),outlinedWarning:Xe({variant:"outlined",color:"warning",theme:e}),textPrimary:Xe({variant:"text",color:"primary",theme:e}),textSecondary:Xe({variant:"text",color:"secondary",theme:e}),textError:Xe({variant:"text",color:"error",theme:e}),textSuccess:Xe({variant:"text",color:"success",theme:e}),textInfo:Xe({variant:"text",color:"info",theme:e}),textWarning:Xe({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Uz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Yz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Gz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Bi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i,dark:a}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:i}},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function Kz(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 ud(e){const t=Kz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function qz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(ot.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(ot.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...ud("small")},"&.size-medium":{...ud("medium")},"&.size-large":{...ud("large")}},colorPrimary:Bi({color:"primary",theme:e}),colorSecondary:Bi({color:"secondary",theme:e}),colorSuccess:Bi({color:"success",theme:e}),colorWarning:Bi({color:"warning",theme:e}),colorInfo:Bi({color:"info",theme:e}),colorError:Bi({color:"error",theme:e})}}}}function yi({color:e,theme:t}){const n=nn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function xn({color:e,theme:t}){const n=nn(t,e),{light:r,lighter:i,main:a}=n;return{color:a,backgroundColor:i,borderColor:r,"& .MuiChip-deleteIcon":{color:a,"&:hover":{color:r}}}}function _z(e){const t=xn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":yi({color:"primary",theme:e}),"&.MuiChip-colorSecondary":yi({color:"secondary",theme:e}),"&.MuiChip-colorError":yi({color:"error",theme:e}),"&.MuiChip-colorInfo":yi({color:"info",theme:e}),"&.MuiChip-colorSuccess":yi({color:"success",theme:e}),"&.MuiChip-colorWarning":yi({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":xn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":xn({color:"secondary",theme:e}),"&.MuiChip-lightError":xn({color:"error",theme:e}),"&.MuiChip-lightInfo":xn({color:"info",theme:e}),"&.MuiChip-lightSuccess":xn({color:"success",theme:e}),"&.MuiChip-lightWarning":xn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":xn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":xn({color:"secondary",theme:e}),"&.MuiChip-combinedError":xn({color:"error",theme:e}),"&.MuiChip-combinedInfo":xn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":xn({color:"success",theme:e}),"&.MuiChip-combinedWarning":xn({color:"warning",theme:e})}}}}}function Jz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Ve("#000",.7)}}}}}}function Xz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Zz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function vi({color:e,theme:t}){const n=nn(t,e),{main:r,dark:i,contrastText:a}=n,l=`${e}Button`,u=Zi(t,l);return{color:a,backgroundColor:r,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:i},"&:focus-visible":{outline:`2px solid ${i}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Ve(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Ve(r,.9)}`}}}function $z(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":vi({color:"primary",theme:e}),"&.MuiFab-secondary":vi({color:"secondary",theme:e}),"&.Mui-error":vi({color:"error",theme:e}),"&.MuiFab-success":vi({color:"success",theme:e}),"&.MuiFab-info":vi({color:"info",theme:e}),"&.MuiFab-warning":vi({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 eW(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 tW(){return{MuiInputBase:{styleOverrides:{}}}}function nW(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 rW(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function oW(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function iW(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function sW(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function aW(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function No({variant:e,theme:t}){const n=nn(t,e),{light:r}=n,i=Zi(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:i,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function lW(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:{...No({variant:"primary",theme:e}),"&.Mui-error":{...No({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:No({variant:"secondary",theme:e}),colorError:No({variant:"error",theme:e}),colorWarning:No({variant:"warning",theme:e}),colorInfo:No({variant:"info",theme:e}),colorSuccess:No({variant:"success",theme:e})}}}}function cW(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function bt({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:i,light:a,dark:l,main:u,contrastText:A}=r,f={"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:A,backgroundColor:u,"&:hover":{backgroundColor:a},...f};case"outlined":return{borderColor:u,"&:hover":{backgroundColor:i,borderColor:a},...f};case"text":default:return{color:u,"&:hover":{backgroundColor:u,color:i},...f}}}function uW(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":bt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":bt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":bt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":bt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":bt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":bt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":bt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":bt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":bt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":bt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":bt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":bt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":bt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":bt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":bt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":bt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":bt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":bt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":bt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":bt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":bt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":bt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":bt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":bt({variant:"outlined",color:"warning",theme:e})}}}}}}function AW(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function bi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:i,dark:a}=n;return{"& .dot":{backgroundColor:i},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function dW(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 Ad(e){const t=dW(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function fW(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(b.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":{...Ad("small")},"&.size-medium":{...Ad("medium")},"&.size-large":{...Ad("large")}},colorPrimary:bi({color:"primary",theme:e}),colorSecondary:bi({color:"secondary",theme:e}),colorSuccess:bi({color:"success",theme:e}),colorWarning:bi({color:"warning",theme:e}),colorInfo:bi({color:"info",theme:e}),colorError:bi({color:"error",theme:e})}}}}function Qi({color:e,theme:t}){const n=nn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function gW(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":Qi({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Qi({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Qi({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Qi({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Qi({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Qi({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 pW(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 dd(e,t){const n=pW(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 hW(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},...dd(e,"medium")},sizeLarge:{...dd(e,"large")},sizeSmall:{...dd(e,"small")}}}}}function CW(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 mW(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 EW(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 IW(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function BW(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function yW(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function vW(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function bW(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function QW(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 xW(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function wW(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function TW(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function PW(e){return it.merge(kz(e),Fz(e),Lz(e),Nz(e),Vz(),Hz(e),zz(e),Wz(e),Uz(),Yz(),Gz(),qz(e),_z(e),Jz(),Xz(e),Zz(),$z(e),eW(e),tW(),nW(e),rW(),oW(),iW(e),sW(e),aW(),lW(e),cW(),uW(e),AW(e),fW(e),gW(e),hW(e),CW(e),mW(e),EW(e),IW(e),BW(e),yW(),vW(),bW(),QW(e),xW(e),wW(),TW())}const _g=({themeOverrides:e,children:t})=>{const{themeDirection:n,mode:r,presetColor:i,fontFamily:a}=Zn(),l=O.useMemo(()=>Mz(r,i),[r,i]),u=O.useMemo(()=>jz(a),[a]),A=O.useMemo(()=>cz(l),[l]),f=O.useMemo(()=>gt.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:n,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:l.palette,customShadows:A,typography:u,shadows:l.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:l.spacing(2.6875),height:l.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(l):e),[n,l,u,A,e]),p=lf(f),C=gt.cloneDeep(p.components??{});return p.components=gt.merge(PW(p),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(V0,{theme:p,children:[g.jsx(b.CssBaseline,{}),t]})})};_g.propTypes={children:c.node,themeOverrides:c.oneOfType([c.object,c.func])};const Rb=({children:e,theme:t,...n})=>g.jsx(S.CoreAdminContext,{...n,children:g.jsx(_g,{themeOverrides:t,children:g.jsx(Hg,{children:e})})});Rb.displayName="ApplicaAdminContext";const ss=e=>{const{authProvider:t,catchAll:n,children:r,dashboard:i,dataProvider:a,disableTelemetry:l,history:u,i18nProvider:A,layout:f,loading:p,loginPage:C,authCallbackPage:h,menu:E,notification:I,queryClient:B,requireAuth:v,store:R,ready:M,theme:x,title:T="React Admin"}=e;return g.jsx(Rb,{authProvider:t,dataProvider:a,i18nProvider:A,store:R,history:u,queryClient:B,theme:x,children:g.jsx(S.AdminUI,{layout:f,dashboard:i,disableTelemetry:l,menu:E,catchAll:n,title:T,loading:p,loginPage:C,authCallbackPage:h,notification:I,requireAuth:v,ready:M,children:r})})};ss.defaultProps={store:S.localStorageStore(),title:"Applica Admin"};ss.propTypes={...S.AdminUI.propTypes};class Sb{constructor({catch:t,display:n,log:r,error:i}){ws(this,"catch");ws(this,"display");ws(this,"log");ws(this,"error");this.catch=t,this.display=n,this.log=r,this.error=i}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const RW=({apiUrl:e,endpoint:t,message:n,bodyBuilder:r})=>fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(r(n))}),SW=({enabled:e=!0,apiUrl:t,endpoint:n="/ui-errors/put",loading:r,catcherFn:i=l=>new Sb({catch:l!=null,display:!1,log:!1}),bodyBuilder:a=l=>({message:l})})=>(N.useMemo(()=>{if(r||!e)return;const l=console.error;console.error=function(u,...A){if(!u||typeof u!="string"){l.apply(console,arguments);return}const f=u.replace(/%s/g,()=>A.shift()),p=i(f);if(!p.isCatched()){l.apply(console,arguments);return}p.logError()&&RW({apiUrl:t,endpoint:n,message:f,bodyBuilder:a}),p.displayError()?l.apply(console,arguments):console.debug.apply(console,arguments)}},[t,r,a,n,i,e]),!0),Jg=({languages:e,defaultLocale:t,allowMissing:n=!1})=>YP(r=>it.get(e,r,{}),t,[{locale:t}],{allowMissing:n}),C0=[],OW=({apiUrl:e,endpoint:t,locale:n,message:r,bodyBuilder:i})=>r!=null&&r!=="undefined"&&r.indexOf("[")===-1&&r.indexOf("]")===-1&&C0.indexOf(`${n}-${r}`)===-1&&C0.push(`${n}-${r}`)&&fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(i(n,r)||{})}),Ob=({apiUrl:e,enabled:t=!0,endpoint:n="/languages/put-message",loading:r,bodyBuilder:i=(a,l)=>({lang:a,code:l,text:l})})=>{const[a]=S.useLocaleState();return N.useMemo(()=>{if(r||!t)return;const l=console.error;console.error=function(u){if(!(typeof u=="string"&&u==="%c%s")){if(typeof u=="string"&&u.indexOf("Missing translation for key: ")>=0){if(u=u.replace("Warning: Missing translation for key: ",""),u=u.split('"').join("").trim(),u===null||u.indexOf(" ")!==-1||u.indexOf(".")===-1)return;const A=localStorage.getItem("locale")||a;OW({apiUrl:e,endpoint:n,locale:A,message:u,bodyBuilder:i});return}l.apply(console,arguments)}}},[e,a,r,i,n,t]),!0};window.React=O;const Db=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,i]=O.useState({loading:!0,languages:null});return O.useEffect(()=>{let a=new Headers;a.append("Accept","application/json"),a.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:a}).then(l=>l.json()).then(l=>i({loading:!1,...n(l)}))},[e,t,n]),r},DW=({apiUrl:e,locale:t="en",languages:n={}})=>Jg({apiUrl:e,locale:t,languages:n}),MW=e=>e.reduce((t,n)=>({...t,[n.lang]:{...t[n.lang]||{},[n.code]:n.text}}),{}),jW=(e,t)=>({lang:e,code:t,text:t}),kW=new qd.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Xg=({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r,development:i,logoMain:a,logoIcon:l,loginPage:u,menu:A,name:f,copy:p,version:C,dataProvider:h,authProvider:E,notification:I,enableNotification:B,enableRegistration:v,enablePasswordRecover:R,...M})=>{const x=Db({apiUrl:n,endpoint:"/i18n/messages",mapper:MW});Ob({bodyBuilder:jW,apiUrl:n,endpoint:"/i18n/message",loading:x==null?void 0:x.loading,enabled:i}),SW({apiUrl:n,endpoint:"/cli/error",catcherFn:j=>{const K=j==null?void 0:j.toString(),U=["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`.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>."].some(ae=>K==null?void 0:K.includes(ae));return new Sb({catch:U,display:!U,log:!U,error:j})}});const T=O.useMemo(()=>O.isValidElement(u)?O.cloneElement(u,{name:f,copy:p,version:C,enableRegistration:v,enablePasswordRecover:R}):u,[u,f,C,p,v,R]),P=O.useMemo(()=>j=>{const K=f?g.jsx(su,{title:f}):a,q=f?g.jsx(zg,{title:f}):l;return g.jsx(fb,{...j,name:f,copy:p,version:C,logoMain:K,logoIcon:q,notification:I,enableNotification:B})},[a,l,f,C,I,B]);if(x!=null&&x.loading)return null;const F=Jg({languages:x,defaultLocale:r,allowMissing:i});return g.jsx(df,{children:g.jsx(hf,{menu:A,children:g.jsx(gf,{initialConfig:t,children:g.jsx(ss,{theme:e,layout:P,notification:hb,queryClient:kW,dataProvider:h,authProvider:E,i18nProvider:F,loginPage:T,...M})})})})};Xg.defaultProps={...ss.defaultProps,fileFields:[],defaultLocale:"en",development:!1,version:"0.0.0",notification:"entities/notification",enableNotification:!1,enableRegistration:!1,enableForgotPassword:!1,loginPage:g.jsx(au,{version:"0.0.0",name:"Applica",redirectTo:"/"})};Xg.propTypes={...ss.propTypes,theme:c.oneOfType([c.object,c.func]),apiUrl:c.string.isRequired,defaultLocale:c.string,development:c.bool,logoMain:c.node,logoIcon:c.node,menu:c.arrayOf(Li),name:c.string,version:c.string,authProvider:c.oneOfType([c.func,c.object]),dataProvider:c.oneOfType([c.func,c.object]),notification:c.string,enableNotification:c.bool,enableRegistration:c.bool,enableForgotPassword:c.bool};Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>S.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>S.BooleanField});Object.defineProperty(exports,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>S.BulkDeleteWithConfirmButton});Object.defineProperty(exports,"Button",{enumerable:!0,get:()=>S.Button});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>S.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>S.Confirm});Object.defineProperty(exports,"CreateButton",{enumerable:!0,get:()=>S.CreateButton});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>S.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>S.CustomRoutes});Object.defineProperty(exports,"DeleteWithConfirmButton",{enumerable:!0,get:()=>S.DeleteWithConfirmButton});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>S.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>S.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>S.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>S.FieldTitle});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>S.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>S.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>S.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>S.I18nContextProvider});Object.defineProperty(exports,"ListToolbar",{enumerable:!0,get:()=>S.ListToolbar});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>S.LoadingIndicator});Object.defineProperty(exports,"Pagination",{enumerable:!0,get:()=>S.Pagination});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>S.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>S.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>S.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>S.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>S.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>S.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>S.SaveButton});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>S.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleList",{enumerable:!0,get:()=>S.SimpleList});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>S.SingleFieldList});Object.defineProperty(exports,"TopToolbar",{enumerable:!0,get:()=>S.TopToolbar});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>S.UrlField});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>S.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>S.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>S.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>S.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>S.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>S.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>S.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>S.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>S.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>S.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>S.useAuthProvider});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>S.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>S.useChoicesContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>S.useCreateController});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>S.useDataProvider});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>S.useEditContext});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>S.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>S.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>S.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>S.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>S.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>S.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>S.useListContext});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>S.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>S.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>S.useRecordContext});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>S.useRefresh});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>S.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>S.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>S.useResourceDefinitions});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>S.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>S.useSimpleFormIteratorItem});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>S.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>S.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>S.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>S.useUnselectAll});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>S.useUpdateMany});exports.ActionsField=Kf;exports.ActionsMenu=Ji;exports.ActivatePage=vb;exports.Admin=ss;exports.AnimateButton=IB;exports.AppConfigContext=Af;exports.AppConfigProvider=df;exports.ApplicaAdmin=Xg;exports.ArrayInput=l5;exports.AttachmentField=qf;exports.AttachmentInput=tg;exports.AutocompleteArrayInput=ng;exports.AutocompleteInput=rg;exports.Avatar=sc;exports.BooleanInput=og;exports.Breadcrumbs=Vc;exports.CardForm=Wc;exports.ChangePasswordForm=pg;exports.CircularWithLabel=NB;exports.CircularWithPath=VB;exports.CoverField=Gc;exports.Create=j5;exports.CreateInDialogButton=Yg;exports.Datagrid=Kg;exports.DateAgoField=Kc;exports.DateField=_f;exports.DateInput=ig;exports.DateTimeInput=sg;exports.Dot=Hc;exports.Drawer=lb;exports.DrawerHeader=$y;exports.DrawerHeaderStyled=Mg;exports.DrawerToggle=my;exports.Edit=k5;exports.EditInDialogButton=Gg;exports.EmailField=Jf;exports.Empty=Eb;exports.FileField=Xf;exports.FileInput=ag;exports.Footer=ha;exports.FormHeader=hg;exports.FunctionField=qB;exports.Header=Ey;exports.HeaderNotification=Iy;exports.HeaderProfile=By;exports.HeaderSpacer=vy;exports.HorizontalBar=cb;exports.IconButton=ho;exports.ImageField=ga;exports.ImageInput=lg;exports.ImpersonateUserButton=mb;exports.LabeledArrayInput=Yc;exports.LabeledInput=at;exports.Layout=fb;exports.LayoutContent=by;exports.LayoutProvider=py;exports.LayoutWrapper=Qy;exports.LinearWithIcon=HB;exports.LinearWithLabel=zB;exports.List=Ib;exports.ListItem=qg;exports.Loadable=qH;exports.Loader=pb;exports.LoadingButton=Yf;exports.LoginPage=au;exports.Logo=jg;exports.LongForm=pa;exports.MainCard=Yn;exports.MainIcon=su;exports.MenuConfigContext=pf;exports.MenuConfigProvider=hf;exports.MenuPopover=Sc;exports.MenuPropTypes=Li;exports.NavMenu=ub;exports.Navigation=db;exports.Notification=hb;exports.NotificationList=lz;exports.NumberInput=cg;exports.ReadonlyField=$f;exports.RecordInput=ZB;exports.RecoverPage=bb;exports.ReferenceArrayInput=ug;exports.ReferenceInput=Ag;exports.ReferenceManyField=$i;exports.ReferenceManyInput=dg;exports.RegisterPage=Qb;exports.ResponsiveSection=yy;exports.ScrollTop=Hg;exports.ScrollX=_H;exports.SearchInput=w5;exports.SelectArrayInput=fg;exports.SelectInput=ey;exports.SimpleBar=Ng;exports.SimpleForm=Uc;exports.SimpleFormIterator=e8;exports.SizeField=JB;exports.SmallIcon=zg;exports.SmartTextInput=qc;exports.TabbedForm=Xc;exports.TableFormIterator=DL;exports.TextField=eg;exports.TextInput=Gn;exports.ThemeConfigContext=ff;exports.ThemeConfigProvider=gf;exports.ThemeProvider=_g;exports.TimeInput=gg;exports.Toolbar=Yr;exports.Tooltip=LB;exports.Transitions=Co;exports.createI18nProvider=Jg;exports.parseTime=ty;exports.useAppConfig=Jo;exports.useBreadcrumbs=X0;exports.useI18nCatcher=Ob;exports.useI18nLanguages=Db;exports.useI18nProvider=DW;exports.useLayoutContext=vg;exports.useLayoutDispatch=kL;exports.useLayoutDrawerState=$o;exports.useLayoutLogoState=Cy;exports.useLayoutMediaState=$n;exports.useLayoutNotificationsState=tu;exports.useLayoutState=rs;exports.useLayoutThemeState=nu;exports.useLocalStorage=mf;exports.useMenu=Cf;exports.useMenuConfig=fo;exports.useRefDimensions=n4;exports.useResourceDefaultValues=M5;exports.useResourceTitle=Z0;exports.useSx=Xi;exports.useThemeConfig=Zn;exports.uuid=P5;exports.withLayoutProvider=hy;
266
266
  //# sourceMappingURL=react-admin.cjs.js.map