/* esm.sh - iso-url@0.4.7 */
var $=Object.create;var l=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var n=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var B=(s,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of y(t))!v.call(s,e)&&e!==r&&l(s,e,{get:()=>t[e],enumerable:!(a=q(t,e))||a.enumerable});return s};var k=(s,t,r)=>(r=s!=null?$(x(s)):{},B(t||!s||!s.__esModule?l(r,"default",{value:s,enumerable:!0}):r,s));var c=n((F,g)=>{"use strict";var f=self.location?self.location.protocol+"//"+self.location.host:"",p=self.URL,i=class{constructor(t="",r=f){this.super=new p(t,r),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(t){this.super.hash=t}set host(t){this.super.host=t}set hostname(t){this.super.hostname=t}set href(t){this.super.href=t}set origin(t){this.super.origin=t}set password(t){this.super.password=t}set pathname(t){this.super.pathname=t}set port(t){this.super.port=t}set protocol(t){this.super.protocol=t}set search(t){this.super.search=t}set searchParams(t){this.super.searchParams=t}set username(t){this.super.username=t}createObjectURL(t){return this.super.createObjectURL(t)}revokeObjectURL(t){this.super.revokeObjectURL(t)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}};function J(s){if(typeof s=="string")return new p(s).toString();if(!(s instanceof p)){let t=s.username&&s.password?`${s.username}:${s.password}@`:"",r=s.auth?s.auth+"@":"",a=s.port?":"+s.port:"",e=s.protocol?s.protocol+"//":"",h=s.host||"",u=s.hostname||"",m=s.search||(s.query?"?"+s.query:""),S=s.hash||"",P=s.pathname||"",O=s.path||P+m;return`${e}${t||r}${h||u+a}${O}${S}`}}g.exports={URLWithLegacySupport:i,URLSearchParams:self.URLSearchParams,defaultBase:f,format:J}});var R=n((G,L)=>{"use strict";var{URLWithLegacySupport:d,format:N}=c();L.exports=(s,t={},r={},a)=>{let e=t.protocol?t.protocol.replace(":",""):"http";e=(r[e]||a||e)+":";let h;try{h=new d(s)}catch{h={}}let u=Object.assign({},t,{protocol:e||h.protocol,host:t.host||h.host});return new d(s,N(u)).toString()}});var w=n((H,U)=>{"use strict";var{URLWithLegacySupport:W,format:z,URLSearchParams:A,defaultBase:C}=c(),D=R();U.exports={URL:W,URLSearchParams:A,format:z,relative:D,defaultBase:C}});var o=k(w()),{URL:I,URLSearchParams:K,format:M,relative:Q,defaultBase:T}=o,V=o.default??o;export{I as URL,K as URLSearchParams,V as default,T as defaultBase,M as format,Q as relative};
//# sourceMappingURL=iso-url.mjs.map