varinternalReactFunctionNames=/* #__PURE__ */newSet(['renderWithHooks','processChild','finishClassComponent','renderToString']);// These identifiers come from error stacks, so they have to be valid JS
// identifiers, thus we only need to replace what is a valid character for JS,
if(process.env.NODE_ENV!=='production'&&typeofprops.css==='string'&&// check if there is a css declaration
props.css.indexOf(':')!==-1){
thrownewError("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+props.css+"`");
}
varnewProps={};
for(varkeyinprops){
if(hasOwnProperty.call(props,key)){
newProps[key]=props[key];
}
}
newProps[typePropName]=type;// For performance, only call getLabelFromStackTrace in development and when