console.error("The pseudo class \""+unsafePseudoClass+"\" is potentially unsafe when doing server-side rendering. Try changing it to \""+unsafePseudoClass.split('-child')[0]+"-of-type\".");
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
thrownewError("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n"+"If multiple caches share the same key they might \"fight\" for each other's style elements.");
}
if(isBrowser&&key==='css'){
varssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");// get SSRed styles out of the way of React's hydration
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
// note this very very intentionally targets all style elements regardless of the key to ensure
// that creating a cache works inside of render of a React component