import{i as e}from"./chunk-aKtaBQYM.js";import{C as t,H as n,K as r,U as i,Vt as a,W as o,dt as s,ft as c,tt as l,ut as u,wt as d}from"./mui-B6lh3XSP.js";var f=e(a(),1);function p(e){return s(`MuiTypography`,e)}var m=u(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),h=d(),g=e=>{let{align:t,gutterBottom:r,noWrap:i,variant:a,classes:o}=e;return l({root:[`root`,a,e.align!==`inherit`&&`align${n(t)}`,r&&`gutterBottom`,i&&`noWrap`]},p,o)},_=r(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!==`inherit`&&t[`align${n(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom]}})(o(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${n(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),v={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},y=f.forwardRef(function(e,t){let n=i({props:e,name:`MuiTypography`}),{color:r,align:a=`inherit`,className:o,component:s,gutterBottom:l=!1,noWrap:u=!1,variant:d=`body1`,variantMapping:f=v,...p}=n,m={...n,align:a,color:r,className:o,component:s,gutterBottom:l,noWrap:u,variant:d,variantMapping:f};return(0,h.jsx)(_,{as:s||f[d]||v[d]||`span`,ref:t,className:c(g(m).root,o),...p,ownerState:m,style:{...a!==`inherit`&&{"--Typography-textAlign":a},...p.style}})});export{m as n,y as t};