function urlFormat(obj) {
  // ensure it's an object, and not a string url.
  // If it's an obj, this is a no-op.
  // this way, you can call url_format() on strings
  // to clean up potentially wonky urls.
  if (isString$1(obj)) obj = parse$$1({}, obj);
  return format$1(obj);
}
// format a parsed object into a url string
format a parsed object into a url string
format a parsed object into a url string
function urlFormat(obj) {
  if (isString$1(obj)) obj = parse$$1({}, obj);
  return format$1(obj);
}
function urlFormat ( obj ) { if ( isString$1 ( obj ) ) obj = parse$$1 ( { } , obj ) ; return format$1 ( obj ) ; }
format a parsed object into a url string
format a parsed object into a url string
// ensure it's an object, and not a string url. // If it's an obj, this is a no-op. // this way, you can call url_format() on strings // to clean up potentially wonky urls.