thrownewError('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
}
}else{
if(_doubleSlashStart.test(ret.path)){
thrownewError('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
}
}elseif(_doubleSlashStart.test(ret.path)){
thrownewError('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');