1import{j as h,T as y}from"./createTheme-DGRhmPzQ.js";import{r as m,R as g}from"./index-WXg1Ab5K.js";import{g as v}from"./getThemeProps-PM1xRsBs.js";import{u as E}from"./useEnhancedEffect-Xxv5vrNq.js";function Q(n,r,e,s,c){const[t,d]=m.useState(()=>c&&e?e(n).matches:s?s(n).matches:r);return E(()=>{if(!e)return;const o=e(n),i=()=>{d(o.matches)};return i(),o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[n,e]),t}const M={...g},l=M.useSyncExternalStore;function S(n,r,e,s,c){const t=m.useCallback(()=>r,[r]),d=m.useMemo(()=>{if(c&&e)return()=>e(n).matches;if(s!==null){const{matches:a}=s(n);return()=>a}return t},[t,n,s,c,e]),[o,i]=m.useMemo(()=>{if(e===null)return[t,()=>()=>{}];const a=e(n);return[()=>a.matches,u=>(a.addEventListener("change",u),()=>{a.removeEventListener("change",u)})]},[t,e,n]);return l(i,o,d)}function f(n={}){const{themeId:r}=n;return function(s,c={}){let t=h();t&&r&&(t=t[r]||t);const d=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=d?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:a=!1}=v({name:"MuiUseMediaQuery",props:c,theme:t});let u=typeof s=="function"?s(t):s;return u=u.replace(/^@media( ?)/m,""),u.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(` 2`)),(l!==void 0?S:Q)(u,o,i,p,a)}}f();const R=f({themeId:y});export{R as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.