Parses and normalizes a mint URL: validates the scheme (http/https only), rejects credentials, query parameters, fragments, and percent-encoded characters in the path, and strips any trailing slashes.
normalizeMintUrl('https://Mint.Example.COM/'); // 'https://mint.example.com' Copy
normalizeMintUrl('https://Mint.Example.COM/'); // 'https://mint.example.com'
CTSError if the URL is invalid, non-http(s), or contains credentials, query, fragment, or percent-encoded characters in the path.
Parses and normalizes a mint URL: validates the scheme (http/https only), rejects credentials, query parameters, fragments, and percent-encoded characters in the path, and strips any trailing slashes.