!function(e,a){"object"==typeofexports&&"object"==typeofmodule?module.exports=a():"function"==typeofdefine&&define.amd?define([],a):"object"==typeofexports?exports.Tornado=a():e.Tornado=a()}(self,(()=>(()=>{var__webpack_modules__={15795:(e,a,t)=>{constc=t(26613);a.cidForWeb=e=>{leta=newc(e);0===a.version&&(a=a.toV1());lett=a.toString("base32");if(t.length>63){conste=a.toString("base36");if(e.length<=63)returne;thrownewTypeError("CID is longer than DNS limit of 63 characters and is not compatible with public gateways")}returnt},a.cidV0ToV1Base32=e=>{leta=newc(e);return0===a.version&&(a=a.toV1()),a.toString("base32")}},81810:(e,a,t)=>{constc=t(52021),f=t(14243),{hexStringToBuffer:d,profiles:r}=t(55262),{cidForWeb:n,cidV0ToV1Base32:i}=t(15795);e.exports={helpers:{cidForWeb:n,cidV0ToV1Base32:i},decode:function(e){consta=d(e),t=c.getCodec(a),f=c.rmPrefix(a);letn=r[t];returnn||(n=r.default),n.decode(f)},fromIpfs:function(e){returnthis.encode("ipfs-ns",e)},fromSkylink:function(e){returnthis.encode("skynet-ns",e)},fromSwarm:function(e){returnthis.encode("swarm-ns",e)},fromArweave:function(e){returnthis.encode("arweave-ns",e)},encode:function(e,a){lett=r[e];t||(t=r.default);constd=t.encode(a);returnf.toHexString(c.addPrefix(e,d))},getCodec:function(e){leta=d(e);returnc.getCodec(a)}}},55262:(e,a,t)=>{varc=t(62045).hp;constf=t(26613),d=t(14243),r=t(8127),n=e=>{leta=e.slice(0,2),t=e.slice(2),c="";returnc="0x"===a?t:e,d.fromHexString(c)},i=e=>{try{const{multihash:a}=e;if(a.length<38){conste=d.decode(a);if("identity"===e.name&&e.length<36)return!1}return!0}catch(e){return!1}},b={skynet:e=>r.toUint8Array(e),swarm:e=>{consta=d.encode(n(e),"keccak-256");returnnewf(1,"swarm-manifest",a).bytes},ipfs:e=>newf(e).toV1().bytes,ipns:e=>{consta=newf(e);if(!i(a))throwError("ipns-ns allows only valid cryptographic libp2p-key identifiers, try using ED25519 pubkey instead");returnnewf(1,"libp2p-key",a.multihash).bytes},utf8:e=>c.from(e,"utf8"),arweave:e=>r.toUint8Array(e)},o={hexMultiHash:e=>{consta=newf(e);returnd.decode(a.multihash).digest.toString("hex")},ipfs:e=>{consta=newf(e).toV1();returna.toString("libp2p-key"===a.codec?"base36":"base32")},ipns:e=>{consta=newf(e).toV1();returni(a)?a.toString("base36"):(console.warn("[ensdomains/content-hash] use of non-cryptographic identifiers in ipns-ns is deprecated and will be removed, migrate to ED25519 libp2p-key"),String(d.decode(newf(e).multihash).digest))},utf8:e=>e.toString("utf8"),base64:e=>r.fromUint8Array(e,!0)},s={"skynet-ns":{encode:b.skynet,decode:o.base64},"swarm-ns":{encode:b.swarm,decode:o.hexMultiHash},"ipfs-ns":{encode:b.ipfs,decode:o.ipfs},"ipns-ns":{encode:b.ipns,decode:o.ipns},"arweave-ns":{encode:b.arweave,decode:o.base64},default:{encode:b.utf8,decode:o.utf8}};a.hexStringToBuffer=n,a.profiles=s},66289:(e,a)=>{"use strict";functiont(e){if(Array.isArray(e)){consta=[];letc=0;for(letf=0;f<e.length;f++){constd=t(e[f]);a.push(d),c+=d.length}returnl(d(c,192),...a)}consta=g(e);return1===a.length&&a[0]<128?a:l(d(a.length,128),a)}functionc(e,a,t){if(t>e.length)thrownewError("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");returne.slice(a,t)}functionf(e){if(0===e[0])thrownewError("invalid RLP: extra zeros");returno(b(e))}functiond(e,a){if(e<56)returnUint8Array.from([e+a]);constt=h(e),c=h(a+55+t.length/2);returnUint8Array.from(s(c+t))}functionr(e,a=!1){if(null==e||0===e.length)returnUint8Array.from([]);constt=n(g(e));if(a)returnt;if(0!==t.remainder.length)thrownewError("invalid RLP: remainder must be zero");returnt.data}functionn(e){leta,t,d,r,i;constb=[],o=e[0];if(o<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(o<=183){if(a=o-127,d=128===o?Uint8Array.from([]):c(e,1,a),2===a&&d[0]<128)thrownewError("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:d,remainder:e.slice(a)}}if(o<=191){if(t=o-182,e.length-1<t)thrownewError("invalid RLP: not enough bytes for string length");if(a=f(c(e,1,t)),a<=55)thrownewError("invalidRLP:expectedstringlength