UNPKG

@multiformats/multiaddr-matcher

Version:
5 lines (4 loc) 35.6 kB
(function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.MultiformatsMultiaddrMatcher = factory()}(typeof self !== 'undefined' ? self : this, function () { "use strict";var MultiformatsMultiaddrMatcher=(()=>{var $e=Object.defineProperty;var Br=Object.getOwnPropertyDescriptor;var Rr=Object.getOwnPropertyNames;var zr=Object.prototype.hasOwnProperty;var I=(r,t)=>{for(var e in t)$e(r,e,{get:t[e],enumerable:!0})},Fr=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rr(t))!zr.call(r,o)&&o!==e&&$e(r,o,{get:()=>t[o],enumerable:!(n=Br(t,o))||n.enumerable});return r};var Mr=r=>Fr($e({},"__esModule",{value:!0}),r);var us={};I(us,{Circuit:()=>Ko,DNS:()=>zo,DNS4:()=>Uo,DNS6:()=>Bo,DNSADDR:()=>Ro,HTTP:()=>rs,HTTPS:()=>os,IP:()=>Vo,IP4:()=>Mo,IP6:()=>Lo,IP_OR_DOMAIN:()=>Fo,Memory:()=>is,P2P:()=>Jo,PEER_ID:()=>No,QUIC:()=>Ho,QUIC_V1:()=>jo,TCP:()=>ko,UDP:()=>$o,Unix:()=>cs,WebRTC:()=>es,WebRTCDirect:()=>Go,WebSockets:()=>qo,WebSocketsSecure:()=>Qo,WebTransport:()=>Xo});var Qe={};I(Qe,{base10:()=>jr});var ls=new Uint8Array(0);function kt(r,t){if(r===t)return!0;if(r.byteLength!==t.byteLength)return!1;for(let e=0;e<r.byteLength;e++)if(r[e]!==t[e])return!1;return!0}function M(r){if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")}function $t(r){return new TextEncoder().encode(r)}function Wt(r){return new TextDecoder().decode(r)}function Lr(r,t){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var o=0;o<r.length;o++){var s=r.charAt(o),i=s.charCodeAt(0);if(e[i]!==255)throw new TypeError(s+" is ambiguous");e[i]=o}var a=r.length,p=r.charAt(0),f=Math.log(a)/Math.log(256),b=Math.log(256)/Math.log(a);function z(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";for(var v=0,q=0,O=0,N=h.length;O!==N&&h[O]===0;)O++,v++;for(var U=(N-O)*b+1>>>0,P=new Uint8Array(U);O!==N;){for(var B=h[O],V=0,A=U-1;(B!==0||V<q)&&A!==-1;A--,V++)B+=256*P[A]>>>0,P[A]=B%a>>>0,B=B/a>>>0;if(B!==0)throw new Error("Non-zero carry");q=V,O++}for(var F=U-q;F!==U&&P[F]===0;)F++;for(var Se=p.repeat(v);F<U;++F)Se+=r.charAt(P[F]);return Se}function j(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;var v=0;if(h[v]!==" "){for(var q=0,O=0;h[v]===p;)q++,v++;for(var N=(h.length-v)*f+1>>>0,U=new Uint8Array(N);h[v];){var P=e[h.charCodeAt(v)];if(P===255)return;for(var B=0,V=N-1;(P!==0||B<O)&&V!==-1;V--,B++)P+=a*U[V]>>>0,U[V]=P%256>>>0,P=P/256>>>0;if(P!==0)throw new Error("Non-zero carry");O=B,v++}if(h[v]!==" "){for(var A=N-O;A!==N&&U[A]===0;)A++;for(var F=new Uint8Array(q+(N-A)),Se=q;A!==N;)F[Se++]=U[A++];return F}}}function Ur(h){var v=j(h);if(v)return v;throw new Error(`Non-${t} character`)}return{encode:z,decodeUnsafe:j,decode:Ur}}var Vr=Lr,kr=Vr,jt=kr;var We=class{name;prefix;baseEncode;constructor(t,e,n){this.name=t,this.prefix=e,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},He=class{name;prefix;baseDecode;prefixCodePoint;constructor(t,e,n){this.name=t,this.prefix=e;let o=e.codePointAt(0);if(o===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=o,this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return qt(this,t)}},je=class{decoders;constructor(t){this.decoders=t}or(t){return qt(this,t)}decode(t){let e=t[0],n=this.decoders[e];if(n!=null)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function qt(r,t){return new je({...r.decoders??{[r.prefix]:r},...t.decoders??{[t.prefix]:t}})}var qe=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(t,e,n,o){this.name=t,this.prefix=e,this.baseEncode=n,this.baseDecode=o,this.encoder=new We(t,e,n),this.decoder=new He(t,e,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}};function K({name:r,prefix:t,encode:e,decode:n}){return new qe(r,t,e,n)}function k({name:r,prefix:t,alphabet:e}){let{encode:n,decode:o}=jt(e,r);return K({prefix:t,name:r,encode:n,decode:s=>M(o(s))})}function $r(r,t,e,n){let o=r.length;for(;r[o-1]==="=";)--o;let s=new Uint8Array(o*e/8|0),i=0,a=0,p=0;for(let f=0;f<o;++f){let b=t[r[f]];if(b===void 0)throw new SyntaxError(`Non-${n} character`);a=a<<e|b,i+=e,i>=8&&(i-=8,s[p++]=255&a>>i)}if(i>=e||(255&a<<8-i)!==0)throw new SyntaxError("Unexpected end of data");return s}function Wr(r,t,e){let n=t[t.length-1]==="=",o=(1<<e)-1,s="",i=0,a=0;for(let p=0;p<r.length;++p)for(a=a<<8|r[p],i+=8;i>e;)i-=e,s+=t[o&a>>i];if(i!==0&&(s+=t[o&a<<e-i]),n)for(;(s.length*e&7)!==0;)s+="=";return s}function Hr(r){let t={};for(let e=0;e<r.length;++e)t[r[e]]=e;return t}function w({name:r,prefix:t,bitsPerChar:e,alphabet:n}){let o=Hr(n);return K({prefix:t,name:r,encode(s){return Wr(s,n,e)},decode(s){return $r(s,o,e,r)}})}var jr=k({prefix:"9",name:"base10",alphabet:"0123456789"});var Ge={};I(Ge,{base16:()=>qr,base16upper:()=>Qr});var qr=w({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Qr=w({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Xe={};I(Xe,{base2:()=>Gr});var Gr=w({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Je={};I(Je,{base256emoji:()=>Yr});var Qt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Xr=Qt.reduce((r,t,e)=>(r[e]=t,r),[]),Jr=Qt.reduce((r,t,e)=>{let n=t.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${t}`);return r[n]=e,r},[]);function Zr(r){return r.reduce((t,e)=>(t+=Xr[e],t),"")}function Kr(r){let t=[];for(let e of r){let n=e.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${e}`);let o=Jr[n];if(o==null)throw new Error(`Non-base256emoji character: ${e}`);t.push(o)}return new Uint8Array(t)}var Yr=K({prefix:"\u{1F680}",name:"base256emoji",encode:Zr,decode:Kr});var Ze={};I(Ze,{base32:()=>$,base32hex:()=>nn,base32hexpad:()=>sn,base32hexpadupper:()=>an,base32hexupper:()=>on,base32pad:()=>tn,base32padupper:()=>rn,base32upper:()=>en,base32z:()=>cn});var $=w({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),en=w({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),tn=w({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),rn=w({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),nn=w({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),on=w({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),sn=w({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),an=w({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),cn=w({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Ke={};I(Ke,{base36:()=>pe,base36upper:()=>un});var pe=k({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),un=k({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Ye={};I(Ye,{base58btc:()=>T,base58flickr:()=>pn});var T=k({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),pn=k({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var tt={};I(tt,{base64:()=>ln,base64pad:()=>dn,base64url:()=>et,base64urlpad:()=>fn});var ln=w({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),dn=w({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),et=w({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),fn=w({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var rt={};I(rt,{base8:()=>hn});var hn=w({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var nt={};I(nt,{identity:()=>mn});var mn=K({prefix:"\0",name:"identity",encode:r=>Wt(r),decode:r=>$t(r)});var Ps=new TextEncoder,Ts=new TextDecoder;var st={};I(st,{identity:()=>Mn});var wn=Jt,Gt=128,bn=127,yn=~bn,Cn=Math.pow(2,31);function Jt(r,t,e){t=t||[],e=e||0;for(var n=e;r>=Cn;)t[e++]=r&255|Gt,r/=128;for(;r&yn;)t[e++]=r&255|Gt,r>>>=7;return t[e]=r|0,Jt.bytes=e-n+1,t}var En=ot,Dn=128,Xt=127;function ot(r,n){var e=0,n=n||0,o=0,s=n,i,a=r.length;do{if(s>=a)throw ot.bytes=0,new RangeError("Could not decode varint");i=r[s++],e+=o<28?(i&Xt)<<o:(i&Xt)*Math.pow(2,o),o+=7}while(i>=Dn);return ot.bytes=s-n,e}var vn=Math.pow(2,7),In=Math.pow(2,14),Sn=Math.pow(2,21),Pn=Math.pow(2,28),Tn=Math.pow(2,35),_n=Math.pow(2,42),On=Math.pow(2,49),An=Math.pow(2,56),Nn=Math.pow(2,63),Un=function(r){return r<vn?1:r<In?2:r<Sn?3:r<Pn?4:r<Tn?5:r<_n?6:r<On?7:r<An?8:r<Nn?9:10},Bn={encode:wn,decode:En,encodingLength:Un},Rn=Bn,le=Rn;function de(r,t=0){return[le.decode(r,t),le.decode.bytes]}function Y(r,t,e=0){return le.encode(r,t,e),t}function ee(r){return le.encodingLength(r)}function Q(r,t){let e=t.byteLength,n=ee(r),o=n+ee(e),s=new Uint8Array(o+e);return Y(r,s,0),Y(e,s,n),s.set(t,o),new te(r,e,t,s)}function Zt(r){let t=M(r),[e,n]=de(t),[o,s]=de(t.subarray(n)),i=t.subarray(n+s);if(i.byteLength!==o)throw new Error("Incorrect length");return new te(e,o,i,t)}function Kt(r,t){if(r===t)return!0;{let e=t;return r.code===e.code&&r.size===e.size&&e.bytes instanceof Uint8Array&&kt(r.bytes,e.bytes)}}var te=class{code;size;digest;bytes;constructor(t,e,n,o){this.code=t,this.size=e,this.digest=n,this.bytes=o}};var Yt=0,zn="identity",er=M;function Fn(r){return Q(Yt,er(r))}var Mn={code:Yt,name:zn,encode:er,digest:Fn};var ct={};I(ct,{sha256:()=>Ln,sha512:()=>Vn});function at({name:r,code:t,encode:e}){return new it(r,t,e)}var it=class{name;code;encode;constructor(t,e,n){this.name=t,this.code=e,this.encode=n}digest(t){if(t instanceof Uint8Array){let e=this.encode(t);return e instanceof Uint8Array?Q(this.code,e):e.then(n=>Q(this.code,n))}else throw Error("Unknown type, must be binary type")}};function rr(r){return async t=>new Uint8Array(await crypto.subtle.digest(r,t))}var Ln=at({name:"sha2-256",code:18,encode:rr("SHA-256")}),Vn=at({name:"sha2-512",code:19,encode:rr("SHA-512")});function nr(r,t){let{bytes:e,version:n}=r;switch(n){case 0:return $n(e,ut(r),t??T.encoder);default:return Wn(e,ut(r),t??$.encoder)}}var or=new WeakMap;function ut(r){let t=or.get(r);if(t==null){let e=new Map;return or.set(r,e),e}return t}var W=class r{code;version;multihash;bytes;"/";constructor(t,e,n,o){this.code=e,this.version=t,this.multihash=n,this.bytes=o,this["/"]=o}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:t,multihash:e}=this;if(t!==he)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==Hn)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return r.createV0(e)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:t,digest:e}=this.multihash,n=Q(t,e);return r.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(t){return r.equals(this,t)}static equals(t,e){let n=e;return n!=null&&t.code===n.code&&t.version===n.version&&Kt(t.multihash,n.multihash)}toString(t){return nr(this,t)}toJSON(){return{"/":nr(this)}}link(){return this}[Symbol.toStringTag]="CID";[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(t){if(t==null)return null;let e=t;if(e instanceof r)return e;if(e["/"]!=null&&e["/"]===e.bytes||e.asCID===e){let{version:n,code:o,multihash:s,bytes:i}=e;return new r(n,o,s,i??sr(n,o,s.bytes))}else if(e[jn]===!0){let{version:n,multihash:o,code:s}=e,i=Zt(o);return r.create(n,s,i)}else return null}static create(t,e,n){if(typeof e!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(t){case 0:{if(e!==he)throw new Error(`Version 0 CID must use dag-pb (code: ${he}) block encoding`);return new r(t,e,n,n.bytes)}case 1:{let o=sr(t,e,n.bytes);return new r(t,e,n,o)}default:throw new Error("Invalid version")}}static createV0(t){return r.create(0,he,t)}static createV1(t,e){return r.create(1,t,e)}static decode(t){let[e,n]=r.decodeFirst(t);if(n.length!==0)throw new Error("Incorrect length");return e}static decodeFirst(t){let e=r.inspectBytes(t),n=e.size-e.multihashSize,o=M(t.subarray(n,n+e.multihashSize));if(o.byteLength!==e.multihashSize)throw new Error("Incorrect length");let s=o.subarray(e.multihashSize-e.digestSize),i=new te(e.multihashCode,e.digestSize,s,o);return[e.version===0?r.createV0(i):r.createV1(e.codec,i),t.subarray(e.size)]}static inspectBytes(t){let e=0,n=()=>{let[z,j]=de(t.subarray(e));return e+=j,z},o=n(),s=he;if(o===18?(o=0,e=0):s=n(),o!==0&&o!==1)throw new RangeError(`Invalid CID version ${o}`);let i=e,a=n(),p=n(),f=e+p,b=f-i;return{version:o,codec:s,multihashCode:a,digestSize:p,multihashSize:b,size:f}}static parse(t,e){let[n,o]=kn(t,e),s=r.decode(o);if(s.version===0&&t[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return ut(s).set(n,t),s}};function kn(r,t){switch(r[0]){case"Q":{let e=t??T;return[T.prefix,e.decode(`${T.prefix}${r}`)]}case T.prefix:{let e=t??T;return[T.prefix,e.decode(r)]}case $.prefix:{let e=t??$;return[$.prefix,e.decode(r)]}case pe.prefix:{let e=t??pe;return[pe.prefix,e.decode(r)]}default:{if(t==null)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[r[0],t.decode(r)]}}}function $n(r,t,e){let{prefix:n}=e;if(n!==T.prefix)throw Error(`Cannot string encode V0 in ${e.name} encoding`);let o=t.get(n);if(o==null){let s=e.encode(r).slice(1);return t.set(n,s),s}else return o}function Wn(r,t,e){let{prefix:n}=e,o=t.get(n);if(o==null){let s=e.encode(r);return t.set(n,s),s}else return o}var he=112,Hn=18;function sr(r,t,e){let n=ee(r),o=n+ee(t),s=new Uint8Array(o+e.byteLength);return Y(r,s,0),Y(t,s,n),s.set(e,o),s}var jn=Symbol.for("@ipld/js-cid/CID");var me={...nt,...Xe,...rt,...Qe,...Ge,...Ze,...Ke,...Ye,...tt,...Je},Js={...ct,...st};function xe(r=0){return new Uint8Array(r)}function ar(r,t,e,n){return{name:r,prefix:t,encoder:{name:r,prefix:t,encode:e},decoder:{decode:n}}}var ir=ar("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),pt=ar("ascii","a",r=>{let t="a";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r[e]);return t},r=>{r=r.substring(1);let t=xe(r.length);for(let e=0;e<r.length;e++)t[e]=r.charCodeAt(e);return t}),qn={utf8:ir,"utf-8":ir,hex:me.base16,latin1:pt,ascii:pt,binary:pt,...me},Te=qn;function _(r,t="utf8"){let e=Te[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return e.encoder.encode(r).substring(1)}var C=class extends Error{static name="InvalidMultiaddrError";name="InvalidMultiaddrError"},L=class extends Error{static name="ValidationError";name="ValidationError"},ge=class extends Error{static name="InvalidParametersError";name="InvalidParametersError"},_e=class extends Error{static name="UnknownProtocolError";name="UnknownProtocolError"};function cr(r,t){if(r===t)return!0;if(r.byteLength!==t.byteLength)return!1;for(let e=0;e<r.byteLength;e++)if(r[e]!==t[e])return!1;return!0}function H(r,t="utf8"){let e=Te[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return e.decoder.decode(`${e.prefix}${r}`)}var Qn=Math.pow(2,7),Gn=Math.pow(2,14),Xn=Math.pow(2,21),lt=Math.pow(2,28),dt=Math.pow(2,35),ft=Math.pow(2,42),ht=Math.pow(2,49),g=128,E=127;function re(r){if(r<Qn)return 1;if(r<Gn)return 2;if(r<Xn)return 3;if(r<lt)return 4;if(r<dt)return 5;if(r<ft)return 6;if(r<ht)return 7;if(Number.MAX_SAFE_INTEGER!=null&&r>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function mt(r,t,e=0){switch(re(r)){case 8:t[e++]=r&255|g,r/=128;case 7:t[e++]=r&255|g,r/=128;case 6:t[e++]=r&255|g,r/=128;case 5:t[e++]=r&255|g,r/=128;case 4:t[e++]=r&255|g,r>>>=7;case 3:t[e++]=r&255|g,r>>>=7;case 2:t[e++]=r&255|g,r>>>=7;case 1:{t[e++]=r&255,r>>>=7;break}default:throw new Error("unreachable")}return t}function Jn(r,t){let e=r[t],n=0;if(n+=e&E,e<g||(e=r[t+1],n+=(e&E)<<7,e<g)||(e=r[t+2],n+=(e&E)<<14,e<g)||(e=r[t+3],n+=(e&E)<<21,e<g)||(e=r[t+4],n+=(e&E)*lt,e<g)||(e=r[t+5],n+=(e&E)*dt,e<g)||(e=r[t+6],n+=(e&E)*ft,e<g)||(e=r[t+7],n+=(e&E)*ht,e<g))return n;throw new RangeError("Could not decode varint")}function Zn(r,t){let e=r.get(t),n=0;if(n+=e&E,e<g||(e=r.get(t+1),n+=(e&E)<<7,e<g)||(e=r.get(t+2),n+=(e&E)<<14,e<g)||(e=r.get(t+3),n+=(e&E)<<21,e<g)||(e=r.get(t+4),n+=(e&E)*lt,e<g)||(e=r.get(t+5),n+=(e&E)*dt,e<g)||(e=r.get(t+6),n+=(e&E)*ft,e<g)||(e=r.get(t+7),n+=(e&E)*ht,e<g))return n;throw new RangeError("Could not decode varint")}function xt(r,t=0){return r instanceof Uint8Array?Jn(r,t):Zn(r,t)}function we(r,t){t==null&&(t=r.reduce((o,s)=>o+s.length,0));let e=xe(t),n=0;for(let o of r)e.set(o,n),n+=o.length;return e}var Oe=class{index=0;input="";new(t){return this.index=0,this.input=t,this}readAtomically(t){let e=this.index,n=t();return n===void 0&&(this.index=e),n}parseWith(t){let e=t();if(this.index===this.input.length)return e}peekChar(){if(!(this.index>=this.input.length))return this.input[this.index]}readChar(){if(!(this.index>=this.input.length))return this.input[this.index++]}readGivenChar(t){return this.readAtomically(()=>{let e=this.readChar();if(e===t)return e})}readSeparator(t,e,n){return this.readAtomically(()=>{if(!(e>0&&this.readGivenChar(t)===void 0))return n()})}readNumber(t,e,n,o){return this.readAtomically(()=>{let s=0,i=0,a=this.peekChar();if(a===void 0)return;let p=a==="0",f=2**(8*o)-1;for(;;){let b=this.readAtomically(()=>{let z=this.readChar();if(z===void 0)return;let j=Number.parseInt(z,t);if(!Number.isNaN(j))return j});if(b===void 0)break;if(s*=t,s+=b,s>f||(i+=1,e!==void 0&&i>e))return}if(i!==0)return!n&&p&&i>1?void 0:s})}readIPv4Addr(){return this.readAtomically(()=>{let t=new Uint8Array(4);for(let e=0;e<t.length;e++){let n=this.readSeparator(".",e,()=>this.readNumber(10,3,!1,1));if(n===void 0)return;t[e]=n}return t})}readIPv6Addr(){let t=e=>{for(let n=0;n<e.length/2;n++){let o=n*2;if(n<e.length-3){let i=this.readSeparator(":",n,()=>this.readIPv4Addr());if(i!==void 0)return e[o]=i[0],e[o+1]=i[1],e[o+2]=i[2],e[o+3]=i[3],[o+4,!0]}let s=this.readSeparator(":",n,()=>this.readNumber(16,4,!0,2));if(s===void 0)return[o,!1];e[o]=s>>8,e[o+1]=s&255}return[e.length,!1]};return this.readAtomically(()=>{let e=new Uint8Array(16),[n,o]=t(e);if(n===16)return e;if(o||this.readGivenChar(":")===void 0||this.readGivenChar(":")===void 0)return;let s=new Uint8Array(14),i=16-(n+2),[a]=t(s.subarray(0,i));return e.set(s.subarray(0,a),16-a),e})}readIPAddr(){return this.readIPv4Addr()??this.readIPv6Addr()}};var Yn=45,eo=15,Ae=new Oe;function gt(r){if(!(r.length>eo))return Ae.new(r).parseWith(()=>Ae.readIPv4Addr())}function wt(r){if(r.includes("%")&&(r=r.split("%")[0]),!(r.length>Yn))return Ae.new(r).parseWith(()=>Ae.readIPv6Addr())}function Ne(r){return!!gt(r)}function pr(r){return!!wt(r)}function yt(r){return t=>_(t,r)}function Ct(r){return t=>H(t,r)}function ne(r){return new DataView(r.buffer).getUint16(r.byteOffset).toString()}function G(r){let t=new ArrayBuffer(2);return new DataView(t).setUint16(0,typeof r=="string"?parseInt(r):r),new Uint8Array(t)}function lr(r){let t=r.split(":");if(t.length!==2)throw new Error(`failed to parse onion addr: ["'${t.join('", "')}'"]' does not contain a port number`);if(t[0].length!==16)throw new Error(`failed to parse onion addr: ${t[0]} not a Tor onion address.`);let e=H(t[0],"base32"),n=parseInt(t[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let o=G(n);return we([e,o],e.length+o.length)}function dr(r){let t=r.split(":");if(t.length!==2)throw new Error(`failed to parse onion addr: ["'${t.join('", "')}'"]' does not contain a port number`);if(t[0].length!==56)throw new Error(`failed to parse onion addr: ${t[0]} not a Tor onion3 address.`);let e=$.decode(`b${t[0]}`),n=parseInt(t[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let o=G(n);return we([e,o],e.length+o.length)}function Et(r){let t=r.subarray(0,r.length-2),e=r.subarray(r.length-2),n=_(t,"base32"),o=ne(e);return`${n}:${o}`}var Dt=function(r){r=r.toString().trim();let t=new Uint8Array(4);return r.split(/\./g).forEach((e,n)=>{let o=parseInt(e,10);if(isNaN(o)||o<0||o>255)throw new C("Invalid byte value in IP address");t[n]=o}),t},fr=function(r){let t=0;r=r.toString().trim();let e=r.split(":",8),n;for(n=0;n<e.length;n++){let s=Ne(e[n]),i;s&&(i=Dt(e[n]),e[n]=_(i.subarray(0,2),"base16")),i!=null&&++n<8&&e.splice(n,0,_(i.subarray(2,4),"base16"))}if(e[0]==="")for(;e.length<8;)e.unshift("0");else if(e[e.length-1]==="")for(;e.length<8;)e.push("0");else if(e.length<8){for(n=0;n<e.length&&e[n]!=="";n++);let s=[n,1];for(n=9-e.length;n>0;n--)s.push("0");e.splice.apply(e,s)}let o=new Uint8Array(t+16);for(n=0;n<e.length;n++){e[n]===""&&(e[n]="0");let s=parseInt(e[n],16);if(isNaN(s)||s<0||s>65535)throw new C("Invalid byte value in IP address");o[t++]=s>>8&255,o[t++]=s&255}return o},hr=function(r){if(r.byteLength!==4)throw new C("IPv4 address was incorrect length");let t=[];for(let e=0;e<r.byteLength;e++)t.push(r[e]);return t.join(".")},mr=function(r){if(r.byteLength!==16)throw new C("IPv6 address was incorrect length");let t=[];for(let n=0;n<r.byteLength;n+=2){let o=r[n],s=r[n+1],i=`${o.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`;t.push(i)}let e=t.join(":");try{let n=new URL(`http://[${e}]`);return n.hostname.substring(1,n.hostname.length-1)}catch{throw new C(`Invalid IPv6 address "${e}"`)}};function xr(r){try{let t=new URL(`http://[${r}]`);return t.hostname.substring(1,t.hostname.length-1)}catch{throw new C(`Invalid IPv6 address "${r}"`)}}var bt=Object.values(me).map(r=>r.decoder),to=function(){let r=bt[0].or(bt[1]);return bt.slice(2).forEach(t=>r=r.or(t)),r}();function gr(r){return to.decode(r)}function wr(r){return t=>r.encoder.encode(t)}function ro(r){if(parseInt(r).toString()!==r)throw new L("Value must be an integer")}function no(r){if(r<0)throw new L("Value must be a positive integer, or zero")}function oo(r){return t=>{if(t>r)throw new L(`Value must be smaller than or equal to ${r}`)}}function so(...r){return t=>{for(let e of r)e(t)}}var be=so(ro,no,oo(65535));var y=-1,vt=class{protocolsByCode=new Map;protocolsByName=new Map;getProtocol(t){let e;if(typeof t=="string"?e=this.protocolsByName.get(t):e=this.protocolsByCode.get(t),e==null)throw new _e(`Protocol ${t} was unknown`);return e}addProtocol(t){this.protocolsByCode.set(t.code,t),this.protocolsByName.set(t.name,t),t.aliases?.forEach(e=>{this.protocolsByName.set(e,t)})}removeProtocol(t){let e=this.protocolsByCode.get(t);e!=null&&(this.protocolsByCode.delete(e.code),this.protocolsByName.delete(e.name),e.aliases?.forEach(n=>{this.protocolsByName.delete(n)}))}},S=new vt,Co=[{code:4,name:"ip4",size:32,valueToBytes:Dt,bytesToValue:hr,validate:r=>{if(!Ne(r))throw new L(`Invalid IPv4 address "${r}"`)}},{code:6,name:"tcp",size:16,valueToBytes:G,bytesToValue:ne,validate:be},{code:273,name:"udp",size:16,valueToBytes:G,bytesToValue:ne,validate:be},{code:33,name:"dccp",size:16,valueToBytes:G,bytesToValue:ne,validate:be},{code:41,name:"ip6",size:128,valueToBytes:fr,bytesToValue:mr,stringToValue:xr,validate:r=>{if(!pr(r))throw new L(`Invalid IPv6 address "${r}"`)}},{code:42,name:"ip6zone",size:y},{code:43,name:"ipcidr",size:8,bytesToValue:yt("base10"),valueToBytes:Ct("base10")},{code:53,name:"dns",size:y,resolvable:!0},{code:54,name:"dns4",size:y,resolvable:!0},{code:55,name:"dns6",size:y,resolvable:!0},{code:56,name:"dnsaddr",size:y,resolvable:!0},{code:132,name:"sctp",size:16,valueToBytes:G,bytesToValue:ne,validate:be},{code:301,name:"udt"},{code:302,name:"utp"},{code:400,name:"unix",size:y,path:!0,stringToValue:r=>decodeURIComponent(r),valueToString:r=>encodeURIComponent(r)},{code:421,name:"p2p",aliases:["ipfs"],size:y,bytesToValue:yt("base58btc"),valueToBytes:r=>r.startsWith("Q")||r.startsWith("1")?Ct("base58btc")(r):W.parse(r).multihash.bytes},{code:444,name:"onion",size:96,bytesToValue:Et,valueToBytes:lr},{code:445,name:"onion3",size:296,bytesToValue:Et,valueToBytes:dr},{code:446,name:"garlic64",size:y},{code:447,name:"garlic32",size:y},{code:448,name:"tls"},{code:449,name:"sni",size:y},{code:454,name:"noise"},{code:460,name:"quic"},{code:461,name:"quic-v1"},{code:465,name:"webtransport"},{code:466,name:"certhash",size:y,bytesToValue:wr(et),valueToBytes:gr},{code:480,name:"http"},{code:481,name:"http-path",size:y,stringToValue:r=>`/${decodeURIComponent(r)}`,valueToString:r=>encodeURIComponent(r.substring(1))},{code:443,name:"https"},{code:477,name:"ws"},{code:478,name:"wss"},{code:479,name:"p2p-websocket-star"},{code:277,name:"p2p-stardust"},{code:275,name:"p2p-webrtc-star"},{code:276,name:"p2p-webrtc-direct"},{code:280,name:"webrtc-direct"},{code:281,name:"webrtc"},{code:290,name:"p2p-circuit"},{code:777,name:"memory",size:y}];Co.forEach(r=>{S.addProtocol(r)});function br(r){let t=[],e=0;for(;e<r.length;){let n=xt(r,e),o=S.getProtocol(n),s=re(n),i=Eo(o,r,e+s),a=0;i>0&&o.size===y&&(a=re(i));let p=s+a+i,f={code:n,name:o.name,bytes:r.subarray(e,e+p)};if(i>0){let b=e+s+a,z=r.subarray(b,b+i);f.value=o.bytesToValue?.(z)??_(z)}t.push(f),e+=p}return t}function yr(r){let t=0,e=[];for(let n of r){if(n.bytes==null){let o=S.getProtocol(n.code),s=re(n.code),i,a=0,p=0;n.value!=null&&(i=o.valueToBytes?.(n.value)??H(n.value),a=i.byteLength,o.size===y&&(p=re(a)));let f=new Uint8Array(s+p+a),b=0;mt(n.code,f,b),b+=s,i!=null&&(o.size===y&&(mt(a,f,b),b+=p),f.set(i,b)),n.bytes=f}e.push(n.bytes),t+=n.bytes.byteLength}return we(e,t)}function Cr(r){if(r.charAt(0)!=="/")throw new C('String multiaddr must start with "/"');let t=[],e="protocol",n="",o="";for(let s=1;s<r.length;s++){let i=r.charAt(s);i!=="/"&&(e==="protocol"?o+=r.charAt(s):n+=r.charAt(s));let a=s===r.length-1;if(i==="/"||a){let p=S.getProtocol(o);if(e==="protocol"){if(p.size==null||p.size===0){t.push({code:p.code,name:p.name}),n="",o="",e="protocol";continue}else if(a)throw new C(`Component ${o} was missing value`);e="value"}else if(e==="value"){let f={code:p.code,name:p.name};if(p.size!=null&&p.size!==0){if(n==="")throw new C(`Component ${o} was missing value`);f.value=p.stringToValue?.(n)??n}t.push(f),n="",o="",e="protocol"}}}if(o!==""&&n!=="")throw new C("Incomplete multiaddr");return t}function Er(r){return`/${r.flatMap(t=>{if(t.value==null)return t.name;let e=S.getProtocol(t.code);if(e==null)throw new C(`Unknown protocol code ${t.code}`);return[t.name,e.valueToString?.(t.value)??t.value]}).join("/")}`}function Eo(r,t,e){return r.size==null||r.size===0?0:r.size>0?r.size/8:xt(t,e)}var Do=Symbol.for("nodejs.util.inspect.custom"),Bt=Symbol.for("@multiformats/multiaddr"),vo=[53,54,55,56],Ut=class extends Error{constructor(t="No available resolver"){super(t),this.name="NoAvailableResolverError"}};function Io(r){if(r==null&&(r="/"),vr(r))return r.getComponents();if(r instanceof Uint8Array)return br(r);if(typeof r=="string")return r=r.replace(/\/(\/)+/,"/").replace(/(\/)+$/,""),r===""&&(r="/"),Cr(r);if(Array.isArray(r))return r;throw new C("Must be a string, Uint8Array, Component[], or another Multiaddr")}var ze=class r{[Bt]=!0;#e;#t;#r;constructor(t="/",e={}){this.#e=Io(t),e.validate!==!1&&So(this)}get bytes(){return this.#r==null&&(this.#r=yr(this.#e)),this.#r}toString(){return this.#t==null&&(this.#t=Er(this.#e)),this.#t}toJSON(){return this.toString()}toOptions(){let t,e,n,o,s="";for(let{code:a,name:p,value:f}of this.#e)a===42&&(s=`%${f??""}`),vo.includes(a)&&(e="tcp",o=443,n=`${f??""}${s}`,t=a===55?6:4),(a===6||a===273)&&(e=p==="tcp"?"tcp":"udp",o=parseInt(f??"")),(a===4||a===41)&&(e="tcp",n=`${f??""}${s}`,t=a===41?6:4);if(t==null||e==null||n==null||o==null)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6, dnsaddr}/{address}/{tcp, udp}/{port}".');return{family:t,host:n,transport:e,port:o}}getComponents(){return[...this.#e]}protos(){return this.#e.map(({code:t,value:e})=>{let n=S.getProtocol(t);return{code:t,size:n.size??0,name:n.name,resolvable:!!n.resolvable,path:!!n.path}})}protoCodes(){return this.#e.map(({code:t})=>t)}protoNames(){return this.#e.map(({name:t})=>t)}tuples(){return this.#e.map(({code:t,value:e})=>{if(e==null)return[t];let n=S.getProtocol(t),o=[t];return e!=null&&o.push(n.valueToBytes?.(e)??H(e)),o})}stringTuples(){return this.#e.map(({code:t,value:e})=>e==null?[t]:[t,e])}encapsulate(t){let e=new r(t);return new r([...this.#e,...e.getComponents()],{validate:!1})}decapsulate(t){let e=t.toString(),n=this.toString(),o=n.lastIndexOf(e);if(o<0)throw new ge(`Address ${this.toString()} does not contain subaddress: ${t.toString()}`);return new r(n.slice(0,o),{validate:!1})}decapsulateCode(t){let e;for(let n=this.#e.length-1;n>-1;n--)if(this.#e[n].code===t){e=n;break}return new r(this.#e.slice(0,e),{validate:!1})}getPeerId(){try{let t=[];this.#e.forEach(({code:n,value:o})=>{n===421&&t.push([n,o]),n===290&&(t=[])});let e=t.pop();if(e?.[1]!=null){let n=e[1];return n[0]==="Q"||n[0]==="1"?_(T.decode(`z${n}`),"base58btc"):_(W.parse(n).multihash.bytes,"base58btc")}return null}catch{return null}}getPath(){for(let t of this.#e)if(S.getProtocol(t.code).path)return t.value??null;return null}equals(t){return cr(this.bytes,t.bytes)}async resolve(t){let e=this.protos().find(s=>s.resolvable);if(e==null)return[this];let n=Dr.get(e.name);if(n==null)throw new Ut(`no available resolver for ${e.name}`);return(await n(this,t)).map(s=>Rt(s))}nodeAddress(){let t=this.toOptions();if(t.transport!=="tcp"&&t.transport!=="udp")throw new Error(`multiaddr must have a valid format - no protocol with name: "${t.transport}". Must have a valid transport protocol: "{tcp, udp}"`);return{family:t.family,address:t.host,port:t.port}}isThinWaistAddress(){return!(this.#e.length!==2||this.#e[0].code!==4&&this.#e[0].code!==41||this.#e[1].code!==6&&this.#e[1].code!==273)}[Do](){return`Multiaddr(${this.toString()})`}};function So(r){r.getComponents().forEach(t=>{let e=S.getProtocol(t.code);t.value!=null&&e.validate?.(t.value)})}var aa=parseInt("0xFFFF",16),ca=new Uint8Array([0,0,0,0,0,0,0,0,0,0,255,255]);var Dr=new Map;function vr(r){return!!r?.[Bt]}function Rt(r){return new ze(r)}var x=r=>({match:t=>{let e=t[0];return e==null||e.code!==r||e.value!=null?!1:t.slice(1)}}),c=(r,t)=>({match:e=>{let n=e[0];return n?.code!==r||n.value==null||t!=null&&n.value!==t?!1:e.slice(1)}}),u=r=>({match:t=>{let e=r.match(t);return e===!1?t:e}}),D=(...r)=>({match:t=>{let e;for(let n of r){let o=n.match(t);o!==!1&&(e==null||o.length<e.length)&&(e=o)}return e??!1}}),d=(...r)=>({match:t=>{for(let e of r){let n=e.match(t);if(n===!1)return!1;t=n}return t}});function m(...r){function t(o){if(o==null)return!1;let s=o.getComponents();for(let i of r){let a=i.match(s);if(a===!1)return!1;s=a}return s}function e(o){return t(o)!==!1}function n(o){let s=t(o);return s===!1?!1:s.length===0}return{matchers:r,matches:e,exactMatch:n}}var Ao=c(421),No=m(Ao),Me=c(54),Le=c(55),Ve=c(56),Ft=c(53),Uo=m(Me,u(c(421))),Bo=m(Le,u(c(421))),Ro=m(Ve,u(c(421))),zo=m(D(Ft,Ve,Me,Le),u(c(421))),Pr=d(c(4),u(c(43))),Tr=d(u(c(42)),c(41),u(c(43))),Mt=D(Pr,Tr),Z=D(Mt,Ft,Me,Le,Ve),Fo=m(D(Mt,d(D(Ft,Ve,Me,Le),u(c(421))))),Mo=m(Pr),Lo=m(Tr),Vo=m(Mt),Lt=d(Z,c(6)),Ie=d(Z,c(273)),ko=m(d(Lt,u(c(421)))),$o=m(Ie),Vt=d(Ie,x(460),u(c(421))),ke=d(Ie,x(461),u(c(421))),Wo=D(Vt,ke),Ho=m(Vt),jo=m(ke),zt=D(Z,Lt,Ie,Vt,ke),_r=D(d(zt,x(477),u(c(421)))),qo=m(_r),Or=D(d(zt,x(478),u(c(421))),d(zt,x(448),u(c(449)),x(477),u(c(421)))),Qo=m(Or),Ar=d(Ie,x(280),u(c(466)),u(c(466)),u(c(421))),Go=m(Ar),Nr=d(ke,x(465),u(c(466)),u(c(466)),u(c(421))),Xo=m(Nr),Fe=D(_r,Or,d(Lt,u(c(421))),d(Wo,u(c(421))),d(Z,u(c(421))),Ar,Nr,c(421)),Jo=m(Fe),Zo=d(Fe,x(290),c(421)),Ko=m(Zo),Yo=D(d(Fe,x(290),x(281),u(c(421))),d(Fe,x(281),u(c(421))),d(x(281),u(c(421)))),es=m(Yo),ts=D(d(Z,c(6),x(480),u(c(421))),d(Z,x(480),u(c(421)))),rs=m(ts),ns=d(Z,D(d(c(6,"443"),x(480)),d(c(6),x(443)),d(c(6),x(448),x(480)),d(x(448),x(480)),x(448),x(443)),u(c(421))),os=m(ns),ss=D(d(c(777),u(c(421)))),is=m(ss),as=D(d(c(400),u(c(421)))),cs=m(as);return Mr(us);})(); return MultiformatsMultiaddrMatcher})); //# sourceMappingURL=index.min.js.map