consterror=newError("Found invalid properties in the configuration:\n"+joined+"\n\nYou can only specify the following properties:\n"+mapped2.join("\n")+"\n\nIf you want to specify configuration for screens, you need to specify them under a 'screens' property.\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");
throwerror;
}else{
if(flag){
if("path"inconfig){
if(typeofconfig.path==="string"){
constpath=config.path;
if(path.includes(":")){
const_Error=Error;
let_HermesInternal=HermesInternal;
consterror1=newError("Found invalid path '"+config.path+"'. The 'path' in the top-level configuration cannot contain patterns for params.");
throwerror1;
}
}
}
}
if(tmp2){
const_Object=Object;
constentries2=Object.entries(config.screens);
constitem=entries2.forEach((arg0)=>{
lettmp;
[,tmp]=arg0;
if(typeoftmp!=="string"){
obj(tmp,false);
}
});
}
}
}
}
consterror2=newError("Expected the configuration to be an object, but got "+JSON.stringify(config)+".");