import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./jsx-runtime-BWRPWl8p.js";import{t as n}from"./clsx-CjueKrWZ.js";import{n as r}from"./emotion-element-f0de968e.browser.esm-Cvmz_rCX.js";var i=e(t(),1),a=`$$material`;function o(e){return Object.keys(e).length===0}function s(e=null){let t=i.useContext(r);return!t||o(t)?e:t}function c(e,t,r=!1){let i={...t};for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)){let o=a;if(o===`components`||o===`slots`)i[o]={...e[o],...i[o]};else if(o===`componentsProps`||o===`slotProps`){let n=e[o],a=t[o];if(!a)i[o]=n||{};else if(!n)i[o]=a;else{i[o]={...a};for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=e;i[o][t]=c(n[t],a[t],r)}}}else o===`className`&&r&&t.className!==void 0?i.className=n(e?.className,t?.className):o===`style`&&r&&t.style?i.style={...e?.style,...t?.style}:i[o]===void 0&&(i[o]=e[o])}return i}function l(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:c(t.components[n].defaultProps,r)}var u=typeof window<`u`?i.useLayoutEffect:i.useEffect;function d(e,t,n,r,a){let[o,s]=i.useState(()=>a&&n?n(e).matches:r?r(e).matches:t);return u(()=>{if(!n)return;let t=n(e),r=()=>{s(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),o}var f={...i}.useSyncExternalStore;function p(e,t,n,r,a){let o=i.useCallback(()=>t,[t]),s=i.useMemo(()=>{if(a&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return o},[o,e,r,a,n]),[c,l]=i.useMemo(()=>{if(n===null)return[o,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[o,n,e]);return f(l,c,s)}function m(e={}){let{themeId:t}=e;return function(e,n={}){let r=s();r&&t&&(r=r[t]||r);let a=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:o=!1,matchMedia:c,ssrMatchMedia:u=null,noSsr:m=!1}=l({name:`MuiUseMediaQuery`,props:n,theme:r}),h=i.useMemo(()=>c===void 0?a===null?null:a.bind(window):c,[c,a]),g=typeof e==`function`?e(r):e;return g=g.replace(/^@media( ?)/m,``),g.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(f===void 0?d:p)(g,o,h,u,m)}}m();var h=m({themeId:a});export{s as n,a as r,h as t};