n initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,n,r,o=h(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={path:""},t.handleOnChange=t.handleOnChange.bind(v(t)),t.handleOnSubmit=t.handleOnSubmit.bind(v(t)),t}return t=a,(n=[{key:"handleOnSubmit",value:function(e){e.preventDefault(),this.props.doExploreUserProvidedPath(this.state.path)}},{key:"handleOnChange",value:function(e){var t=e.target.value;this.setState({path:t})}},{key:"render",value:function(){var e=this.props.t;return i.a.createElement("form",{"data-id":"IpldExploreForm",className:"sans-serif black-80 flex",onSubmit:this.handleOnSubmit},i.a.createElement("div",{className:"flex-auto"},i.a.createElement("div",{className:"relative"},i.a.createElement("input",{id:"ipfs-path",className:"input-reset bn pa2 mb2 db w-100 f6 br-0 placeholder-light focus-outline",style:{borderRadius:"3px 0 0 3px"},type:"text",placeholder:"QmHash","aria-describedby":"name-desc",onChange:this.handleOnChange,value:this.state.path}),i.a.createElement("small",{id:"ipfs-path-desc",className:"o-0 absolute f6 black-60 db mb2"},"Paste in a CID or IPFS path"))),i.a.createElement("div",{className:"flex-none"},i.a.createElement("button",{type:"submit",className:"button-reset dib lh-copy pv1 pl2 pr3 ba f7 fw4 focus-outline white bg-aqua bn",style:{borderRadius:"0 3px 3px 0"}},i.a.createElement(l,{style:{height:24},className:"dib fill-current-color v-mid"}),i.a.createElement("span",{className:"ml2"},e("IpldExploreForm.explore")))))}}])&&p(t.prototype,n),r&&p(t,r),a}(i.a.Component),y=Object(u.b)("doExploreUserProvidedPath",Object(a.a)("explore")(m)),k=n(181),w=n(177),E=n.p+"static/media/ipld.c2e6094f.svg",x=Object(a.a)("explore")((function(e){var t=e.t;return i.a.createElement(w.a,{className:"tl dib pa4 avenir measure-wide-l lh-copy dark-gray ba-l b--black-10"},i.a.createElement("div",{className:"tc"},i.a.createElement("a",{className:"link",href:"https://ipld.io"},i.a.createElement("img",{src:E,alt:"IPLD",style:{height:60}}))),i.a.createElement(k.a,{i18nKey:"AboutIpld.paragraph1",t:t},i.a.createElement("p",null,"IPLD is ",i.a.createElement("strong",null,"the data model of the content-addressable web.")," It allows us to treat all hash-linked data structures as subsets of a unified information space, unifying all data models that link data with hashes as instances of IPLD.")),i.a.createElement(k.a,{i18nKey:"AboutIpld.paragraph2",t:t},i.a.createElement("p",null,"Content addressing through hashes has become a widely-used means of connecting data in distributed systems, from the blockchains that run your favorite cryptocurrencies, to the commits that back your code, to the web\u2019s content at large. Yet, whilst all of these tools rely on some common primitives, their specific underlying data structures are not interoperable.")),i.a.createElement(k.a,{i18nKey:"AboutIpld.paragraph3",t:t},i.a.createElement("p",null,"Enter IPLD: a single namespace for all hash-inspired protocols. Through IPLD, links can be traversed across protocols, allowing you to explore data regardless of the underlying protocol.")))})),S=n(141),_=n(247),A=function(e){var t=e.cid,n=e.name,r=e.type;return i.a.createElement("a",{className:"flex items-center lh-copy pl3 pl0-l pv3 bb b--black-10 link focus-outline",href:"#/explore/".concat(t)},i.a.createElement("span",{className:"flex items-center justify-center w3 h3 flex-none br-100 tc",style:{background:Object(s.a)(r)}},i.a.createElement("span",{className:"montserrat fw2 f4 snow",title:Object(s.c)(r)},Object(s.d)(r))),i.a.createElement("span",{className:"pl3 truncate"},i.a.createElement("h2",{className:"ma0 fw4 f5 db black montserrat"},n),i.a.createElement("span",{className:"f7 db blue truncate monospace"},t)))},C=Object(a.a)("explore")((function(e){var t=e.t,n=e.embed,r=e.runTour,a=void 0!==r&&r,s=e.joyrideCallback;return i.a.createElement("div",{className:"mw9 center explore-sug-2"},i.a.createElement(o.Helmet,null,i.a.createElement("title",null,t("StartExploringPage.title"))),i.a.createElement("div",{className:"flex-l"},i.a.createElement("div",{className:"flex-auto-l mr3-l"},i.a.createElement("div",{className:"pl3 pl0-l pt4 pt2-l"},i.a.createElement("h1",{className:"f3 f2-l ma0 fw4 montserrat charcoal"},t("StartExploringPage.header")),i.a.createElement("p",{className:"lh-copy f5 avenir charcoal-muted"},t("StartExploringPage.leadParagraph"))),n?i.a.createElement(y,null):null,i.a.createElement("ul",{className:"list pl0 ma0 mt4 mt0-l bt bn-l b--black-10"},i.a.createElement("li",null,i.a.createElement(A,{name:"Project Apollo Archives",cid:"QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D",type:"dag-pb"})),i.a.createElement("li",null,i.a.createElement(A,{name:"IGIS Git Repo",cid:"baf4bcfg4ep767tjp5lxyanx5urpjjgx5q2volvy",type:"git-raw"})),i.a.createElement("li",null,i.a.createElement(A,{name:"An Ethereum Block",cid:"bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq",type:"eth-block"})),i.a.createElement("li",null,i.a.createElement(A,{name:"XKCD Archives",cid:"QmdmQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm",type:"dag-pb"})))),i.a.createElement("div",{className:"pt2-l"},i.a.createElement(x,null))),i.a.createElement(S.b,{run:a,steps:_.b.getSteps({t:t}),styles:_.b.styles,callback:s,scrollToFirstStep:!0}))})),O=n(35),T=n(172),P=Object(O.a)((function(){return n.e(20).then(n.bind(null,1666))}),{fallback:i.a.createElement(T.a,null)}),I=(n(272),n(268),n(2)),R=n.n(I),D=n(13),N=n.n(D),j=n(12),L=n(404);function F(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){F(o,r,i,a,s,"next",e)}function s(e){F(o,r,i,a,s,"throw",e)}a(void 0)}))}}function B(e,t,n){return U.apply(this,arguments)}function U(){return(U=M(R.a.mark((function e(t,n,r){var i,o,a,s,u,c,l,f,p,d,h,b=arguments;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=b.length>3&&void 0!==b[3]?b[3]:[],o=b.length>4&&void 0!==b[4]?b[4]:[],e.next=4,z(t,n,r);case 4:if(a=e.sent,s=a.value,u=a.remainderPath,c=n.toString(),l=Object(L.a)(s,c),i.push(l),f=V(r,u),!(p=G(l,f))){e.next=15;break}return o.push(p),e.abrupt("return",B(t,new N.a(p.target),u,i,o));case 15:return d=r?"".concat(c).concat(r):c,h=l,e.abrupt("return",{targetNode:h,canonicalPath:d,localPath:r,nodes:i,pathBoundaries:o});case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e,t,n){return H.apply(this,arguments)}function H(){return(H=M(R.a.mark((function e(t,n,r){return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get(n);case 2:return e.t0=e.sent,e.next=5,t.resolve(n,r||"/").first();case 5:return e.t1=e.sent.remainderPath,e.abrupt("return",{value:e.t0,remainderPath:e.t1});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e,t){return t&&e?e.links.find((function(e){return e.path===t})):null}function V(e,t){if(!e||"/"===e)return null;if(!t)return W(e);if(!e.endsWith(t))throw new Error("Requested IPLD path should end with the remainder path",{fullPath:e,remainderPath:t});return W(e.substring(0,e.length-t.length))}function W(e){return e.startsWith("/")&&(e=e.substring(1)),e.endsWith("/")&&(e=e.substring(0,e.length-1)),e}var q=/(\/(ipns|ipfs|ipld)\/)?([^/]+)(\/.*)?/;function K(e){var t=q.exec(e);return t?{namespace:t[2],cidOrFqdn:t[3],rest:t[4],address:t[0]}:null}function Y(e){return function(e){if(Array.isArray(e))return $(e)}(e)||Q(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e){return function(e){if(Array.isArray(e))return e}(e)||Q(e)||J(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){if(e){if("string"===typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var v=function(e){return Array.prototype.map.call(e,(function(e){return e.toString(16).padStart(2,"0")})).join("").toUpperCase()};t.a=Object(d.a)("explore")((function(e){var t=e.t,n=(e.tReady,e.cid),r=e.className,o=b(e,["t","tReady","cid","className"]),a=null,s=null;try{s=n?function(e){var t=p(e),n=t.multihash.name,r=t.multihash.code.toString("16"),i=t.multihash.length.toString("16"),o=8*t.multihash.length,a=v(t.multihash.digest),s=a.split("").reduce((function(e,t,n){var r=Math.floor(n/32);return e[r]||(e[r]=[]),e[r].push(t),e}),[]);return{hashFn:n,hashFnCode:r,hashLengthCode:i,hashLengthInBits:o,hashValue:a,hashValueIn32CharChunks:s,humanReadable:"".concat(t.multibase.name," - cidv").concat(t.cid.version," - ").concat(t.cid.codec," - ").concat(n,"~").concat(o,"~").concat(a,")")}}(n):null}catch(u){a=u}return n?i.a.createElement("section",h({className:"ph3 pv4 sans-serif ".concat(r)},o),i.a.createElement("label",{className:"db pb2"},i.a.createElement("a",{className:"tracked ttu f5 fw2 teal-muted hover-aqua link",href:"https://docs.ipfs.io/guides/concepts/cid/"},t("CidInfo.header"))),s?i.a.createElement("div",null,i.a.createElement("div",{className:"f7 monospace fw4 ma0 pb2 truncate gray"},n),i.a.createElement("div",{className:"f6 sans-serif fw4 ma0 pb2 truncate",id:"CidInfo-human-readable-cid"},s.humanReadable),i.a.createElement("label",{htmlFor:"CidInfo-human-readable-cid",className:"db fw2 ma0 gray ttu f7 tracked"},t("base")," - ",t("version")," - ",t("codec")," - ",t("multihash")),i.a.createElement("a",{href:"https://github.com/multiformats/multihash#visual-examples",className:"dib tracked ttu f6 fw2 teal-muted hover-aqua link mt4"},t("multihash")),i.a.createElement("div",null,i.a.createElement("div",{className:"dib monospace f6 pt2 tr dark-gray lh-title ph2"},i.a.createElement("code",{className:"gray"},"0x"),i.a.createElement("span",{className:"orange"},s.hashFnCode),i.a.createElement("span",{className:"green"},s.hashLengthCode),i.a.createElement("span",{id:"CidInfo-multihash"},s.hashValueIn32CharChunks.map((function(e){return i.a.createElement("span",{key:e.join("")},e.join(""),i.a.createElement("br",null))}))),i.a.createElement("label",{htmlFor:"CidInfo-multihash",className:"sans-serif fw2 ma0 gray ttu f7 tracked"},t("CidInfo.hashDigest")),i.a.createElement("div",{className:"tl lh-copy"},i.a.createElement("a",{className:"db link orange pt2",href:"https://github.com/multiformats/multicodec/blob/master/table.csv"},i.a.createElement("code",{className:"gray"},"0x"),i.a.createElement("code",null,s.hashFnCode)," = ",s.hashFn),i.a.createElement("div",{id:"CidInfo-multihash",className:"green"},i.a.createElement("code",{className:"gray"},"0x"),i.a.createElement("code",null,s.hashLengthCode)," = ",s.hashLengthInBits," bits"))))):null,a?i.a.createElement("div",null,i.a.createElement("div",{className:"f5 sans-serif fw5 ma0 pv2 truncate navy"},n),i.a.createElement("div",{className:"red fw2 ma0 f7"},a.message)):null):null}))},,function(e,t,n){"use strict";var r=n(449),i=n(193),o=i.encodeText,a=i.decodeText,s=i.concat;function u(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: ".concat(e))}(t=e.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");var n=u(e),r=n.name,i=n.codeBuf;return function(e,t){u(e).decode(a(t))}(r,t),s([i,t],i.length+t.length)}).encode=function(e,t){var n=u(e),r=o(n.encode(t));return s([n.codeBuf,r],n.codeBuf.length+r.length)},t.decode=function(e){e instanceof Uint8Array&&(e=a(e));var t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),u(e[0]).decode(e.substring(1))},t.isEncoded=function(e){if(e instanceof Uint8Array&&(e=a(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return u(e[0]).name}catch(t){return!1}},t.encoding=u,t.encodingFromData=function(e){return e instanceof Uint8Array&&(e=a(e)),u(e[0])},t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&0!==this.string.length&&t===this.multibaseName)return this.string;if(0===this.version){if("base58btc"!==t)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");e=o.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");e=f(a.encode(t,this.bytes))}return t===this.multibaseName&&Object.defineProperty(this,"string",{value:e}),e}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&p(this.multihash,e.multihash)}},{key:"bytes",get:function(){var e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");var t=s.getCodeVarint(this.codec);e=l([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}Object.defineProperty(this,"_bytes",{value:e})}return e}},{key:"prefix",get:function(){var e=s.getCodeVarint(this.codec),t=o.prefix(this.multihash);return l([[this.version],e,t],1+e.byteLength+t.byteLength)}},{key:"code",get:function(){return u[this.codec]}}],[{key:"validateCID",value:function(e){var t=c.checkCIDComponents(e);if(t)throw new Error(t)}},{key:"isCID",value:function(t){return t instanceof e||Boolean(t&&t[h])}}]),e}();b.codecs=u,e.exports=b},function(e,t,n){"use strict";var r=n(111),i=n(467),o=n(471).names,a=n(472),s=n(473),u=n(474),c={};for(var l in o){var f=l;c[o[f]]=f}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!b(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:c[t],length:n,digest:e}}function d(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===c[t]&&!h(t))throw new Error("Unrecognized function code: ".concat(t));return t}function h(e){return e>0&&e<16}function b(e){return!!h(e)||!!c[e]}function v(e){p(e)}e.exports={names:o,codes:Object.freeze(c),toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:p,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=d(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:h,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:b}},function(e,t,n){e.exports={encode:n(476),decode:n(477),encodingLength:n(478)}},function(e,t,n){"use strict";var r=n(280),i=n(128),o=n(282);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(195).names,i=new(0,n(110).TextEncoder);function o(e){for(var t=new Uint8Array(e.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";if("utf8"===t||"utf-8"===t)return i.encode(e);if("ascii"===t)return o(e);var n=r[t];if(!n)throw new Error("Unknown base");return n.decode(e)}},function(e,t,n){var r=n(200),i=n(284);function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(151),i=n(45),o=n(500).names,a=n(203),s=n(286),u=n(204),c={};for(var l in o){var f=l;c[o[f]]=f}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!b(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:c[t],length:n,digest:e}}function d(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===c[t]&&!h(t))throw new Error("Unrecognized function code: ".concat(t));return t}function h(e){return e>0&&e<16}function b(e){return!!h(e)||!!c[e]}function v(e){p(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:p,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=d(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:h,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:b}},function(e,t,n){"use strict";var r=n(151).encoding,i=new(0,n(202).TextEncoder);function o(e){for(var t=new Uint8Array(e.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?o(e):r(t).decode(e)}},function(e,t,n){"use strict";var r=n(45),i=n(203),o=n(286);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(20),i=n(21),o="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var a=self.URL,s=o?"http://localhost":self.location.protocol+"//"+self.location.host,u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;r(this,e),this.super=new a(t,n),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}return i(e,[{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}},{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}}],[{key:"createObjectURL",value:function(e){return a.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){a.revokeObjectURL(e)}}]),e}();e.exports={URLWithLegacySupport:u,URLSearchParams:self.URLSearchParams,defaultBase:s,format:function(e){if("string"===typeof e)return new a(e).toString();if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u;return"".concat(i).concat(t||n).concat(o||s+r).concat(f).concat(c)}}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15);function i(e,t){for(var n=0;n=t};return new Promise((function(r,o){var a=setTimeout((function(){i()&&(o(new g),n.abort())}),t),s=function(e){return function(t){clearTimeout(a),i()?o(new g):e(t)}};e.then(s(r),s(o))}))},C={throwHttpErrors:!0,credentials:"same-origin"},O=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.opts=y(C,t)}return u(e,[{key:"fetch",value:function(){var e=a(i.mark((function e(t){var n,r,a,s,u,p,v,g,k,x,C=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=C.length>1&&void 0!==C[1]?C[1]:{},r=y(this.opts,n),a=new b(r.headers),"string"===typeof t||(t instanceof w||t instanceof h)){e.next=5;break}throw new TypeError("`resource` must be a string, URL, or Request");case 5:return s=new w(t.toString(),r.base),u=r.searchParams,p=r.transformSearchParams,v=r.json,u&&(s.search="function"===typeof p?p(new E(r.searchParams)):new E(r.searchParams)),v&&(r.body=JSON.stringify(r.json),a.set("content-type","application/json")),g=new S,k=_([g.signal,r.signal]),e.next=13,A(d(s.toString(),o(o({},r),{},{signal:k,timeout:void 0,headers:a})),r.timeout,g);case 13:if((x=e.sent).ok||!r.throwHttpErrors){e.next=19;break}if(!r.handleError){e.next=18;break}return e.next=18,r.handleError(x);case 18:throw new m(x);case 19:return x.iterator=function(){return P(x.body)},x.ndjson=l(i.mark((function e(){var t,r,o,a,s,u,l;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=!1,e.prev=2,a=f(T(x.iterator()));case 4:return e.next=6,c(a.next());case 6:return s=e.sent,t=s.done,e.next=10,c(s.value);case 10:if(u=e.sent,t){e.next=23;break}if(l=u,!n.transform){e.next=18;break}return e.next=16,n.transform(l);case 16:e.next=20;break;case 18:return e.next=20,l;case 20:t=!0,e.next=4;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(2),r=!0,o=e.t0;case 29:if(e.prev=29,e.prev=30,t||null==a.return){e.next=34;break}return e.next=34,c(a.return());case 34:if(e.prev=34,!r){e.next=37;break}throw o;case 37:return e.finish(34);case 38:return e.finish(29);case 39:case"end":return e.stop()}}),e,null,[[2,25,29,39],[30,,34,38]])}))),e.abrupt("return",x);case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,o(o({},t),{},{method:"POST"}))}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,o(o({},t),{},{method:"GET"}))}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,o(o({},t),{},{method:"PUT"}))}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,o(o({},t),{},{method:"DELETE"}))}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,o(o({},t),{},{method:"OPTIONS"}))}}]),e}(),T=function(){var e=l(i.mark((function e(t){var n,r,o,a,s,u,l,p,d,h,b,v;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new x,r="",o=!0,a=!1,e.prev=4,u=f(t);case 6:return e.next=8,c(u.next());case 8:return l=e.sent,o=l.done,e.next=12,c(l.value);case 12:if(p=e.sent,o){e.next=30;break}d=p,r+=n.decode(d,{stream:!0}),h=r.split(/\r?\n/),b=0;case 18:if(!(b0)){e.next=23;break}return e.next=23,JSON.parse(v);case 23:b++,e.next=18;break;case 26:r=h[h.length-1];case 27:o=!0,e.next=6;break;case 30:e.next=36;break;case 32:e.prev=32,e.t0=e.catch(4),a=!0,s=e.t0;case 36:if(e.prev=36,e.prev=37,o||null==u.return){e.next=41;break}return e.next=41,c(u.return());case 41:if(e.prev=41,!a){e.next=44;break}throw s;case 44:return e.finish(41);case 45:return e.finish(36);case 46:if(0===(r=(r+=n.decode()).trim()).length){e.next=51;break}return e.next=51,JSON.parse(r);case 51:case"end":return e.stop()}}),e,null,[[4,32,36,46],[37,,41,45]])})));return function(t){return e.apply(this,arguments)}}(),P=function(e){if(D(e)){var t=e[Symbol.asyncIterator]();return r({},Symbol.asyncIterator,(function(){return{next:t.next.bind(t),return:function(n){return e.destroy(),"function"===typeof t.return?t.return():Promise.resolve({done:!0,value:n})}}}))}if(R(e)){var n=e.getReader();return l(i.mark((function e(){var t,r,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0;case 1:return e.next=4,c(n.read());case 4:if(t=e.sent,r=t.done,o=t.value,!r){e.next=9;break}return e.abrupt("return");case 9:if(!o){e.next=12;break}return e.next=12,o;case 12:e.next=1;break;case 14:return e.prev=14,n.releaseLock(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,,14,17]])})))()}if(I(e))return e;throw new TypeError("Body can't be converted to AsyncIterable")},I=function(e){return"object"===typeof e&&null!==e&&"function"===typeof e[Symbol.asyncIterator]},R=function(e){return e&&"function"===typeof e.getReader},D=function(e){return Object.prototype.hasOwnProperty.call(e,"readable")&&Object.prototype.hasOwnProperty.call(e,"writable")};O.HTTPError=m,O.TimeoutError=g,O.streamToAsyncIterator=P,O.post=function(e,t){return new O(t).post(e,t)},O.get=function(e,t){return new O(t).get(e,t)},O.put=function(e,t){return new O(t).put(e,t)},O.delete=function(e,t){return new O(t).delete(e,t)},O.options=function(e,t){return new O(t).options(e,t)},e.exports=O},function(e,t,n){"use strict";var r=n(20),i=n(89),o=n(90),a=n(298),s=function(e){i(n,e);var t=o(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Request timed out";return r(this,n),(e=t.call(this,i)).name="TimeoutError",e}return n}(a(Error));t.TimeoutError=s;var u=function(e){i(n,e);var t=o(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted.";return r(this,n),(e=t.call(this,i)).name="AbortError",e}return n}(a(Error));t.AbortError=u;var c=function(e){i(n,e);var t=o(n);function n(e){var i;return r(this,n),(i=t.call(this,e.statusText)).name="HTTPError",i.response=e,i}return n}(a(Error));t.HTTPError=c},function(e,t,n){var r=n(149),i=n(200),o=n(527),a=n(283);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},function(e,t,n){"use strict";(function(t){var r=n(529),i="object"===typeof window&&"object"===typeof document&&9===document.nodeType,o=r(),a=i&&!o,s=o&&!i,u=o&&i,c="undefined"!==typeof t&&"undefined"!==typeof t.release&&"node"===t.release.name&&!o,l="function"===typeof importScripts&&"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f="undefined"!==typeof t&&!1;e.exports={isTest:f,isElectron:o,isElectronMain:s,isElectronRenderer:u,isNode:c,isBrowser:a,isWebWorker:l,isEnvWithDom:i}}).call(this,n(126))},function(e,t,n){"use strict";var r=n(533),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),c=function(e,t,n,r){var i;(!(t in e)||"function"===typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";"undefined"!==typeof self?e.exports=self:"undefined"!==typeof window?e.exports=window:e.exports=Function("return this")()},function(e,t,n){"use strict";(function(t){var r=n(302);e.exports=function(){return"object"===typeof t&&t&&t.Math===Math&&t.Array===Array?t:r}}).call(this,n(38))},function(e,t,n){"use strict";e.exports=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},function(e,t,n){"use strict";var r=n(20),i=n(21),o=self.location&&self.location.protocol+"//"+self.location.host,a=self.URL,s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;r(this,e),this.super=new a(t,n),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}return i(e,[{key:"createObjectURL",value:function(e){return this.super.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){this.super.revokeObjectURL(e)}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}},{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin},set:function(e){this.super.origin=e}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams},set:function(e){this.super.searchParams=e}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}}]),e}();e.exports={URLWithLegacySupport:s,URLSearchParams:self.URLSearchParams,defaultBase:o,format:function(e){if("string"===typeof e)return new a(e).toString();if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u;return"".concat(i).concat(t||n).concat(o||s+r).concat(f).concat(c)}}}},function(e,t,n){"use strict";var r;r=globalThis.AbortController&&globalThis.AbortSignal?globalThis:n(307),e.exports={AbortController:r.AbortController,AbortSignal:r.AbortSignal}},function(e,t,n){"use strict";var r="undefined"!==typeof self?self:"undefined"!==typeof window?window:void 0,i=r.AbortController,o=r.AbortSignal;e.exports=i,e.exports.AbortSignal=o,e.exports.default=i},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(51),a=n(23),s=n(22),u=n(19),c=n(13),l=n(30),f=n(8),p=n(64),d=n(9),h=n(65),b=n(53).AbortController;e.exports=f((function(e){function t(){return(t=s(r.mark((function t(n){var s,c,f,g,y,k,w,E,x,S,_,A,C,O,T,P,I,R,D,N,j=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=j.length>1&&void 0!==j[1]?j[1]:{},c=new b,f=h(c.signal,s.signal),t.next=5,a(p(n,c,s.headers));case 5:return g=t.sent,y=g.headers,k=g.body,w=g.total,E=g.parts,x="function"===typeof s.progress?v(w,E,s.progress):[void 0,void 0],S=o(x,2),_=S[0],A=S[1],t.next=13,a(e.post("add",{searchParams:d(i(i({"stream-channels":!0},s),{},{progress:Boolean(_)})),timeout:s.timeout,onUploadProgress:A,signal:f,headers:y,body:k}));case 13:C=t.sent,O=!0,T=!1,t.prev=16,I=u(C.ndjson());case 18:return t.next=20,a(I.next());case 20:return R=t.sent,O=R.done,t.next=24,a(R.value);case 24:if(D=t.sent,O){t.next=37;break}if(void 0===(N=l(N=D)).hash){t.next=33;break}return t.next=31,m(N);case 31:t.next=34;break;case 33:_&&_(N.bytes||0,N.name);case 34:O=!0,t.next=18;break;case 37:t.next=43;break;case 39:t.prev=39,t.t0=t.catch(16),T=!0,P=t.t0;case 43:if(t.prev=43,t.prev=44,O||null==I.return){t.next=48;break}return t.next=48,a(I.return());case 48:if(t.prev=48,!T){t.next=51;break}throw P;case 51:return t.finish(48);case 52:return t.finish(43);case 53:case"end":return t.stop()}}),t,null,[[16,39,43,53],[44,,48,52]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}));var v=function(e,t,n){return t?[void 0,g(e,t,n)]:[n,void 0]},g=function(e,t,n){var r=0,i=t.length;return function(o){for(var a=o.loaded,s=o.total,u=Math.floor(a/s*e);r=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(545)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(126))},function(e,t,n){"use strict";var r=n(79),i=n(51);e.exports=function(e){var t=e[Symbol.asyncIterator]?[e[Symbol.asyncIterator](),Symbol.asyncIterator]:[e[Symbol.iterator](),Symbol.iterator],n=i(t,2),o=n[0],a=n[1],s=[];return r({peek:function(){return o.next()},push:function(e){s.push(e)},next:function(){return s.length?{done:!1,value:s.shift()}:o.next()}},a,(function(){return this}))}},function(e,t,n){"use strict";var r=n(2),i=n(23),o=n(22);function a(){return(a=o(r.mark((function e(t){var n,o,a,s=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},o=t.getReader(),e.prev=2;case 3:return e.next=6,i(o.read());case 6:if(!(a=e.sent).done){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,a.value;case 11:e.next=3;break;case 13:return e.prev=13,!0!==n.preventCancel&&o.cancel(),o.releaseLock(),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,,13,17]])})))).apply(this,arguments)}e.exports=function(e){return a.apply(this,arguments)}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(93).BigNumber,a=n(13),s=n(8),u=n(9);function c(e){return{provideBufLen:e.ProvideBufLen,wantlist:(e.Wantlist||[]).map((function(e){return new a(e["/"])})),peers:e.Peers||[],blocksReceived:new o(e.BlocksReceived),dataReceived:new o(e.DataReceived),blocksSent:new o(e.BlocksSent),dataSent:new o(e.DataSent),dupBlksReceived:new o(e.DupBlksReceived),dupDataReceived:new o(e.DupDataReceived)}}e.exports=s((function(e){function t(){return(t=i(r.mark((function t(){var n,i,o=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("bitswap/stat",{searchParams:u(n),timeout:n.timeout,signal:n.signal,headers:n.headers});case 3:return i=t.sent,t.t0=c,t.next=7,i.json();case 7:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}}))},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(7),a=n(264),s=n(13),u=n(8),c=n(9);e.exports=u((function(e){function t(){return(t=o(r.mark((function t(n){var o,u,l=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>1&&void 0!==l[1]?l[1]:{},n=new s(n),t.next=4,e.post("block/get",{timeout:o.timeout,signal:o.signal,searchParams:c(i({arg:n.toString()},o)),headers:o.headers});case 4:return u=t.sent,t.t0=a,t.t1=Uint8Array,t.next=9,u.arrayBuffer();case 9:return t.t2=t.sent,t.t3=new t.t1(t.t2),t.t4=n,t.abrupt("return",new t.t0(t.t3,t.t4));case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}))},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(79),a=n(154),s=n(657),u=n(680),c=n(130),l=function(){};e.exports=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.formats,f=void 0===n?[]:n,p=t.loadFormat,d=void 0===p?l:p;f=f||[],d=d||l;var h=(o(e={},c.DAG_PB,a),o(e,c.DAG_CBOR,s),o(e,c.RAW,u),e);f.forEach((function(e){h[e.codec]=e}));var b=function(){var e=i(r.mark((function e(t){var n,i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.getNumber(t),e.t0=h[n],e.t0){e.next=6;break}return e.next=5,d(t);case 5:e.t0=e.sent;case 6:if(i=e.t0){e.next=9;break}throw Object.assign(new Error('Missing IPLD format "'.concat(t,'"')),{missingMulticodec:t});case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return b}},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(199),a=n(316),s=n(113),u=n(319).serializeDAGNode,c=n(614),l=n(652),f=n(654),p=n(155),d=n(211),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r(this,e),t||(t=new Uint8Array(0)),"string"===typeof t&&(t=p(t)),!(t instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(null!==i&&"number"!==typeof i)throw new Error("Passed 'serializedSize' must be a number!");n=n.map((function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)})),a(n),Object.defineProperties(this,{Data:{value:t,writable:!1,enumerable:!0},Links:{value:n,writable:!1,enumerable:!0},_serializedSize:{value:i,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}return i(e,[{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map((function(e){return e.toJSON()})),size:this.size})),Object.assign({},this._json)}},{key:"toString",value:function(){return'DAGNode ")}},{key:"_invalidateCached",value:function(){this._serializedSize=null,this._size=null}},{key:"addLink",value:function(e){return this._invalidateCached(),l(this,e)}},{key:"rmLink",value:function(e){return this._invalidateCached(),f(this,e)}},{key:"toDAGLink",value:function(e){return c(this,e)}},{key:"serialize",value:function(){return u(this)}},{key:"size",get:function(){return null===this._size&&(null===this._serializedSize&&(this._serializedSize=this.serialize().length),this._size=this.Links.reduce((function(e,t){return e+t.Tsize}),this._serializedSize)),this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}}]),e}();e.exports=o(h,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})},function(e,t,n){"use strict";var r=n(423),i=n(586),o=function(e,t){var n=e.nameAsBuffer,r=t.nameAsBuffer;return i(n,r)};e.exports=function(e){r.inplace(e,o)}},function(e,t,n){"use strict";var r=n(58),i=n(587),o=n(588).rfc4648,a=n(318),s=a.decodeText,u=a.encodeText,c=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=c.reduce((function(e,t){return e[t[1]]=l[t[0]],e}),{});e.exports={names:l,codes:f}},function(e,t,n){"use strict";var r=n(16),i=n(91),o=i.TextEncoder,a=new(0,i.TextDecoder),s=new o;e.exports={decodeText:function(e){return a.decode(e)},encodeText:function(e){return s.encode(e)},concat:function(e,t){var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}}},function(e,t,n){"use strict";var r=n(320)(n(321)),i=n(113);t=e.exports;var o=function(e){var t=e.Data,n=e.Links||[];return r.PBNode.encode(function(e){var t={};return e.Data&&e.Data.byteLength>0?t.Data=e.Data:t.Data=null,e.Links&&e.Links.length>0?t.Links=e.Links.map((function(e){return{Hash:e.Hash.bytes,Name:e.Name,Tsize:e.Tsize}})):t.Links=null,t}({Data:t,Links:n}))};t.serializeDAGNode=o,t.serializeDAGNodeLike=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={Data:e};return n.Links=t.map((function(e){return i.isDAGLink(e)?e:i.util.createDagLinkFromB58EncodedHash(e)})),o(n)}},function(e,t,n){"use strict";var r=n(589),i=n(593);e.exports=function(e,t){if(t||(t={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var n="object"!==typeof e||e instanceof Uint8Array?r.parse(e):e,o=function(){var e=this;i(n,t.encodings||{}).forEach((function(t){e[t.name]=function(e){if(!e)return null;var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t}(t.values)||t}))};return o.prototype.toString=function(){return r.stringify(n)},o.prototype.toJSON=function(){return n},new o}},function(e,t,n){"use strict";e.exports="// An IPFS MerkleDAG Link\nmessage PBLink {\n\n // multihash of the target object\n optional bytes Hash = 1;\n\n // utf string name. should be unique per object\n optional string Name = 2;\n\n // cumulative size of target object\n optional uint64 Tsize = 3;\n}\n\n// An IPFS MerkleDAG Node\nmessage PBNode {\n\n // refs to other objects\n repeated PBLink Links = 2;\n\n // opaque user data\n optional bytes Data = 1;\n}"},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(13),a=n(615),s=n(624);(t=e.exports).codec=a.DAG_PB,t.defaultHashAlg=a.SHA2_256;var u=function(){var e=i(r.mark((function e(n,i){var u,c,l,f,p;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u={cidVersion:1,hashAlg:t.defaultHashAlg},c=Object.assign(u,i),e.next=4,s(n,c.hashAlg);case 4:return l=e.sent,f=a.print[t.codec],p=new o(c.cidVersion,f,l),e.abrupt("return",p);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.cid=u},function(e,t,n){e.exports={encode:n(616),decode:n(617),encodingLength:n(618)}},function(e,t,n){"use strict";var r=n(323),i=n(211),o=n(155);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(213),i=n(629),o=n(633).names,a=n(634),s=n(635),u=n(636),c={};for(var l in o){var f=l;c[o[f]]=f}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!b(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:c[t],length:n,digest:e}}function d(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===c[t]&&!h(t))throw new Error("Unrecognized function code: ".concat(t));return t}function h(e){return e>0&&e<16}function b(e){return!!h(e)||!!c[e]}function v(e){p(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:p,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=d(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:h,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:b}},function(e,t,n){"use strict";t.TextEncoder=TextEncoder,t.TextDecoder=TextDecoder},function(e,t,n){(function(t){function n(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var n;if(e instanceof Uint8Array)n=e;else if(e instanceof t)n=new Uint8Array(e);else{if("string"!==typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");n=new Uint8Array(t.from(e,"utf8"))}return n},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,t,r){for(var i="\n"+e+" = ",o=0;o>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,c-=8);e[n+d-h]|=128*b}},function(e,t,n){"use strict";(e.exports=n(113)).util=n(653)},function(e,t,n){"use strict";var r=n(320)(n(321)),i=n(113),o=n(315),a=n(319).serializeDAGNodeLike,s=n(322);(t=e.exports).codec=s.codec,t.defaultHashAlg=s.defaultHashAlg;t.serialize=function(e){return o.isDAGNode(e)?e.serialize():a(e.Data,e.Links)},t.deserialize=function(e){var t=r.PBNode.decode(e),n=t.Links.map((function(e){return new i(e.Name,e.Tsize,e.Hash)})),a=null==t.Data?new Uint8Array(0):t.Data;return new o(a,n,e.byteLength)},t.cid=function(e,t){return s.cid(e,t)}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(79),a=n(420),s=n(664),u=n(670),c=n(13),l=n(421),f=n(218),p=n(158);function d(e){var t;try{t=l(e)}catch(n){t=!1}if(t)throw new Error("The object passed has circular references");return function e(t){if(!t||t instanceof Uint8Array||"string"===typeof t)return t;if(Array.isArray(t))return t.map(e);if(c.isCID(t))return function(e){return"string"===typeof e?e=new c(e).bytes:c.isCID(e)&&(e=e.bytes),new a.Tagged(42,f([p("00","base16"),e],1+e.length))}(t);var n=Object.keys(t);if(n.length>0){var r={};return n.forEach((function(n){"object"===typeof t[n]?r[n]=e(t[n]):r[n]=t[n]})),r}return t}(e)}var h=s.DAG_CBOR,b=s.SHA2_256,v=o({},42,(function(e){return e=e.slice(1),new c(e)})),g=65536,m=67108864,y=m,k=null;function w(e){var t=v;e?("number"===typeof e.size&&(g=e.size),"number"===typeof e.maxSize&&(y=e.maxSize),e.tags&&(t=Object.assign({},v,e&&e.tags))):(g=65536,y=m);var n={tags:t,size:g};k=new a.Decoder(n),g=n.size}function E(){return(E=i(r.mark((function e(t,n){var i,o,a,l,f;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={cidVersion:1,hashAlg:b},o=Object.assign(i,n),e.next=4,u(t,o.hashAlg);case 4:return a=e.sent,l=s.getNameFromCode(h),f=new c(o.cidVersion,l,a),e.abrupt("return",f);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}w(),e.exports={codec:h,defaultHashAlg:b,configureDecoder:w,serialize:function(e){var t=d(e);return a.encode(t)},deserialize:function(e){if(e.length>g&&e.length<=y&&w({size:e.length}),e.length>g)throw new Error("Data is too large to deserialize with current decoder");var t=k.decodeAll(e);if(1!==t.length)throw new Error("Extraneous CBOR data found beyond initial top-level object");return t[0]},cid:function(e,t){return E.apply(this,arguments)}}},function(e,t,n){"use strict";(function(t){var r=n(20),i=n(21),o=n(50).Buffer,a=n(328),s=n(93).BigNumber,u=n(661),c=n(217),l=n(157),f=n(333),p=n(334),d=n(335).URL,h=function(){function e(n){r(this,e),!(n=n||{}).size||n.size<65536?n.size=65536:n.size=c.nextPowerOf2(n.size),this._heap=new ArrayBuffer(n.size),this._heap8=new Uint8Array(this._heap),this._buffer=o.from(this._heap),this._reset(),this._knownTags=Object.assign({0:function(e){return new Date(e)},1:function(e){return new Date(1e3*e)},2:function(e){return c.arrayBufferToBignumber(e)},3:function(e){return l.NEG_ONE.minus(c.arrayBufferToBignumber(e))},4:function(e){return l.TEN.pow(e[0]).times(e[1])},5:function(e){return l.TWO.pow(e[0]).times(e[1])},32:function(e){return new d(e)},35:function(e){return new RegExp(e)}},n.tags),this.parser=u(t,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}return i(e,[{key:"_closeParent",value:function(){var e=this._parents.pop();if(e.length>0)throw new Error("Missing ".concat(e.length," elements"));switch(e.type){case l.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1]));break;case l.PARENT.BYTE_STRING:this._push(this.createByteString(e.ref,e.length));break;case l.PARENT.UTF8_STRING:this._push(this.createUtf8String(e.ref,e.length));break;case l.PARENT.MAP:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(e.ref,e.length));break;case l.PARENT.OBJECT:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(e.ref,e.length));break;case l.PARENT.ARRAY:this._push(this.createArray(e.ref,e.length))}this._currentParent&&this._currentParent.type===l.PARENT.TAG&&this._dec()}},{key:"_dec",value:function(){var e=this._currentParent;e.length<0||(e.length--,0===e.length&&this._closeParent())}},{key:"_push",value:function(e,t){var n=this._currentParent;switch(n.values++,n.type){case l.PARENT.ARRAY:case l.PARENT.BYTE_STRING:case l.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=e:this._ref.push(e),this._dec();break;case l.PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=e,n.tmpKey=null,this._dec()):(n.tmpKey=e,"string"!==typeof n.tmpKey&&(n.type=l.PARENT.MAP,n.ref=c.buildMap(n.ref)));break;case l.PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,e),n.tmpKey=null,this._dec()):n.tmpKey=e;break;case l.PARENT.TAG:this._ref.push(e),t||this._dec();break;default:throw new Error("Unknown parent type")}}},{key:"_createParent",value:function(e,t,n){this._parents[this._depth]={type:t,length:n,ref:e,values:0,tmpKey:null}}},{key:"_reset",value:function(){this._res=[],this._parents=[{type:l.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}},{key:"createTag",value:function(e,t){var n=this._knownTags[e];return n?n(t):new p(e,t)}},{key:"createMap",value:function(e,t){return e}},{key:"createObject",value:function(e,t){return e}},{key:"createArray",value:function(e,t){return e}},{key:"createByteString",value:function(e,t){return o.concat(e)}},{key:"createByteStringFromHeap",value:function(e,t){return e===t?o.alloc(0):o.from(this._heap.slice(e,t))}},{key:"createInt",value:function(e){return e}},{key:"createInt32",value:function(e,t){return c.buildInt32(e,t)}},{key:"createInt64",value:function(e,t,n,r){return c.buildInt64(e,t,n,r)}},{key:"createFloat",value:function(e){return e}},{key:"createFloatSingle",value:function(e,t,n,r){return a.read([e,t,n,r],0,!1,23,4)}},{key:"createFloatDouble",value:function(e,t,n,r,i,o,s,u){return a.read([e,t,n,r,i,o,s,u],0,!1,52,8)}},{key:"createInt32Neg",value:function(e,t){return-1-c.buildInt32(e,t)}},{key:"createInt64Neg",value:function(e,t,n,r){var i=c.buildInt32(e,t),o=c.buildInt32(n,r);return i>l.MAX_SAFE_HIGH?l.NEG_ONE.minus(new s(i).times(l.SHIFT32).plus(o)):-1-(i*l.SHIFT32+o)}},{key:"createTrue",value:function(){return!0}},{key:"createFalse",value:function(){return!1}},{key:"createNull",value:function(){return null}},{key:"createUndefined",value:function(){}},{key:"createInfinity",value:function(){return 1/0}},{key:"createInfinityNeg",value:function(){return-1/0}},{key:"createNaN",value:function(){return NaN}},{key:"createNaNNeg",value:function(){return NaN}},{key:"createUtf8String",value:function(e,t){return e.join("")}},{key:"createUtf8StringFromHeap",value:function(e,t){return e===t?"":this._buffer.toString("utf8",e,t)}},{key:"createSimpleUnassigned",value:function(e){return new f(e)}},{key:"pushInt",value:function(e){this._push(this.createInt(e))}},{key:"pushInt32",value:function(e,t){this._push(this.createInt32(e,t))}},{key:"pushInt64",value:function(e,t,n,r){this._push(this.createInt64(e,t,n,r))}},{key:"pushFloat",value:function(e){this._push(this.createFloat(e))}},{key:"pushFloatSingle",value:function(e,t,n,r){this._push(this.createFloatSingle(e,t,n,r))}},{key:"pushFloatDouble",value:function(e,t,n,r,i,o,a,s){this._push(this.createFloatDouble(e,t,n,r,i,o,a,s))}},{key:"pushInt32Neg",value:function(e,t){this._push(this.createInt32Neg(e,t))}},{key:"pushInt64Neg",value:function(e,t,n,r){this._push(this.createInt64Neg(e,t,n,r))}},{key:"pushTrue",value:function(){this._push(this.createTrue())}},{key:"pushFalse",value:function(){this._push(this.createFalse())}},{key:"pushNull",value:function(){this._push(this.createNull())}},{key:"pushUndefined",value:function(){this._push(this.createUndefined())}},{key:"pushInfinity",value:function(){this._push(this.createInfinity())}},{key:"pushInfinityNeg",value:function(){this._push(this.createInfinityNeg())}},{key:"pushNaN",value:function(){this._push(this.createNaN())}},{key:"pushNaNNeg",value:function(){this._push(this.createNaNNeg())}},{key:"pushArrayStart",value:function(){this._createParent([],l.PARENT.ARRAY,-1)}},{key:"pushArrayStartFixed",value:function(e){this._createArrayStartFixed(e)}},{key:"pushArrayStartFixed32",value:function(e,t){var n=c.buildInt32(e,t);this._createArrayStartFixed(n)}},{key:"pushArrayStartFixed64",value:function(e,t,n,r){var i=c.buildInt64(e,t,n,r);this._createArrayStartFixed(i)}},{key:"pushObjectStart",value:function(){this._createObjectStartFixed(-1)}},{key:"pushObjectStartFixed",value:function(e){this._createObjectStartFixed(e)}},{key:"pushObjectStartFixed32",value:function(e,t){var n=c.buildInt32(e,t);this._createObjectStartFixed(n)}},{key:"pushObjectStartFixed64",value:function(e,t,n,r){var i=c.buildInt64(e,t,n,r);this._createObjectStartFixed(i)}},{key:"pushByteStringStart",value:function(){this._parents[this._depth]={type:l.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushByteString",value:function(e,t){this._push(this.createByteStringFromHeap(e,t))}},{key:"pushUtf8StringStart",value:function(){this._parents[this._depth]={type:l.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushUtf8String",value:function(e,t){this._push(this.createUtf8StringFromHeap(e,t))}},{key:"pushSimpleUnassigned",value:function(e){this._push(this.createSimpleUnassigned(e))}},{key:"pushTagStart",value:function(e){this._parents[this._depth]={type:l.PARENT.TAG,length:1,ref:[e]}}},{key:"pushTagStart4",value:function(e,t){this.pushTagStart(c.buildInt32(e,t))}},{key:"pushTagStart8",value:function(e,t,n,r){this.pushTagStart(c.buildInt64(e,t,n,r))}},{key:"pushTagUnassigned",value:function(e){this._push(this.createTag(e))}},{key:"pushBreak",value:function(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}},{key:"_createObjectStartFixed",value:function(e){0!==e?this._createParent({},l.PARENT.OBJECT,e):this._push(this.createObject({}))}},{key:"_createArrayStartFixed",value:function(e){0!==e?this._createParent(new Array(e),l.PARENT.ARRAY,e):this._push(this.createArray([]))}},{key:"_decode",value:function(e){if(0===e.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(e);var t=this.parser.parse(e.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}},{key:"decodeFirst",value:function(e){return this._decode(e),this._res[0]}},{key:"decodeAll",value:function(e){return this._decode(e),this._res}},{key:"_depth",get:function(){return this._parents.length}},{key:"_currentParent",get:function(){return this._parents[this._depth-1]}},{key:"_ref",get:function(){return this._currentParent.ref}}],[{key:"decode",value:function(t,n){return"string"===typeof t&&(t=o.from(t,n||"hex")),new e({size:t.length}).decodeFirst(t)}},{key:"decodeAll",value:function(t,n){return"string"===typeof t&&(t=o.from(t,n||"hex")),new e({size:t.length}).decodeAll(t)}}]),e}();h.decodeFirst=h.decode,e.exports=h}).call(this,n(38))},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(157),a=o.MT,s=o.SIMPLE,u=o.SYMS,c=function(){function e(t){if(r(this,e),"number"!==typeof t)throw new Error("Invalid Simple type: "+typeof t);if(t<0||t>255||(0|t)!==t)throw new Error("value must be a small positive integer: "+t);this.value=t}return i(e,[{key:"toString",value:function(){return"simple("+this.value+")"}},{key:"inspect",value:function(){return"simple("+this.value+")"}},{key:"encodeCBOR",value:function(e){return e._pushInt(this.value,a.SIMPLE_FLOAT)}}],[{key:"isSimple",value:function(t){return t instanceof e}},{key:"decode",value:function(t,n){switch(null==n&&(n=!0),t){case s.FALSE:return!1;case s.TRUE:return!0;case s.NULL:return n?null:u.NULL;case s.UNDEFINED:return n?void 0:u.UNDEFINED;case-1:if(!n)throw new Error("Invalid BREAK");return u.BREAK;default:return new e(t)}}}]),e}();e.exports=c},function(e,t,n){"use strict";var r=n(20),i=n(21),o=function(){function e(t,n,i){if(r(this,e),this.tag=t,this.value=n,this.err=i,"number"!==typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}return i(e,[{key:"toString",value:function(){return"".concat(this.tag,"(").concat(JSON.stringify(this.value),")")}},{key:"encodeCBOR",value:function(e){return e._pushTag(this.tag),e.pushAny(this.value)}},{key:"convert",value:function(t){var n,r;if("function"!==typeof(r=null!=t?t[this.tag]:void 0)&&"function"!==typeof(r=e["_tag"+this.tag]))return this;try{return r.call(e,this.value)}catch(i){return n=i,this.err=n,this}}}]),e}();e.exports=o},function(e,t,n){"use strict";var r=n(336),i=r.URLWithLegacySupport,o=r.format,a=r.URLSearchParams,s=r.defaultBase,u=n(662);e.exports={URL:i,URLSearchParams:a,format:o,relative:u,defaultBase:s}},function(e,t,n){"use strict";var r=n(20),i=n(21),o=self.location?self.location.protocol+"//"+self.location.host:"",a=self.URL,s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;r(this,e),this.super=new a(t,n),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}return i(e,[{key:"createObjectURL",value:function(e){return this.super.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){this.super.revokeObjectURL(e)}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}},{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin},set:function(e){this.super.origin=e}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams},set:function(e){this.super.searchParams=e}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}}]),e}();e.exports={URLWithLegacySupport:s,URLSearchParams:self.URLSearchParams,defaultBase:o,format:function(e){if("string"===typeof e)return new a(e).toString();if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u;return"".concat(i).concat(t||n).concat(o||s+r).concat(f).concat(c)}}}},function(e,t,n){"use strict";var r=n(45),i=n(338),o=n(158);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(219).encoding,i=new(0,n(221).TextDecoder)("utf8");function o(e){for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?o(e):r(t).encode(e)}},function(e,t,n){"use strict";var r=n(219),i=n(45),o=n(672).names,a=n(338),s=n(158),u=n(218),c={};for(var l in o){var f=l;c[o[f]]=f}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!b(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:c[t],length:n,digest:e}}function d(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===c[t]&&!h(t))throw new Error("Unrecognized function code: ".concat(t));return t}function h(e){return e>0&&e<16}function b(e){return!!h(e)||!!c[e]}function v(e){p(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:p,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=d(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:h,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:b}},function(e,t,n){"use strict";var r=n(222),i=n(686),o=n(690).names,a=n(691),s=n(341),u=n(692),c={};for(var l in o){var f=l;c[o[f]]=f}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!b(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:c[t],length:n,digest:e}}function d(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===c[t]&&!h(t))throw new Error("Unrecognized function code: ".concat(t));return t}function h(e){return e>0&&e<16}function b(e){return!!h(e)||!!c[e]}function v(e){p(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:p,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=d(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:h,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:b}},function(e,t,n){"use strict";var r=n(222).encoding,i=new(0,n(112).TextEncoder);function o(e){for(var t=new Uint8Array(e.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?o(e):r(t).decode(e)}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(7),a=n(13),s=n(8),u=n(9);e.exports=s((function(e){return function(){var t=o(r.mark((function t(n){var o,s,c,l=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>1&&void 0!==l[1]?l[1]:{},t.next=3,e.post("dag/resolve",{timeout:o.timeout,signal:o.signal,searchParams:u(i({arg:"".concat(n).concat(o.path?"/".concat(o.path).replace(/\/[/]+/g,"/"):"")},o)),headers:o.headers});case 3:return s=t.sent,t.next=6,s.json();case 6:return c=t.sent,t.abrupt("return",{cid:new a(c.Cid["/"]),remainderPath:c.RemPath});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))},function(e,t,n){"use strict";var r=n(30);e.exports=function(e){var t=r(e);return Object.prototype.hasOwnProperty.call(t,"mode")&&(t.mode=parseInt(t.mode,8)),Object.prototype.hasOwnProperty.call(t,"mtime")&&(t.mtime={secs:t.mtime,nsecs:t.mtimeNsecs||0},delete t.mtimeNsecs),t}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(7),a=n(13),s=n(343),u=n(8),c=n(9);function l(e){return e.cid=new a(e.hash),delete e.hash,e}e.exports=u((function(e){function t(){return(t=o(r.mark((function t(n){var o,a,u,f=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>1&&void 0!==f[1]?f[1]:{},"string"!==typeof n&&(o=n||{},n="/"),t.next=4,e.post("files/stat",{timeout:o.timeout,signal:o.signal,searchParams:c(i({arg:n},o)),headers:o.headers});case 4:return a=t.sent,t.next=7,a.json();case 7:return(u=t.sent).WithLocality=u.WithLocality||!1,t.abrupt("return",l(s(u)));case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}))},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(10),a=n(23),s=n(22),u=n(19),c=n(13),l=n(8),f=n(346),p=n(9);e.exports=l((function(e){return function(){var t=s(r.mark((function t(n){var s,l,d,h,b,v,g,m,y,k,w,E,x,S,_,A,C,O,T,P,I,R,D=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=D.length>1&&void 0!==D[1]?D[1]:{},l=!0,d=!1,t.prev=3,b=u(f(n));case 5:return t.next=7,a(b.next());case 7:return v=t.sent,l=v.done,t.next=11,a(v.value);case 11:if(g=t.sent,l){t.next=73;break}return y=(m=g).path,k=m.recursive,w=m.metadata,t.next=16,a(e.post("pin/add",{timeout:s.timeout,signal:s.signal,searchParams:p(o(o({},s),{},{arg:y,recursive:k,metadata:w?JSON.stringify(w):void 0,stream:!0})),headers:s.headers}));case 16:E=t.sent,x=!0,S=!1,t.prev=19,A=u(E.ndjson());case 21:return t.next=23,a(A.next());case 23:return C=t.sent,x=C.done,t.next=27,a(C.value);case 27:if(O=t.sent,x){t.next=54;break}if(!(T=O).Pins){t.next=49;break}P=i(T.Pins),t.prev=32,P.s();case 34:if((I=P.n()).done){t.next=40;break}return R=I.value,t.next=38,new c(R);case 38:t.next=34;break;case 40:t.next=45;break;case 42:t.prev=42,t.t0=t.catch(32),P.e(t.t0);case 45:return t.prev=45,P.f(),t.finish(45);case 48:return t.abrupt("continue",51);case 49:return t.next=51,new c(T);case 51:x=!0,t.next=21;break;case 54:t.next=60;break;case 56:t.prev=56,t.t1=t.catch(19),S=!0,_=t.t1;case 60:if(t.prev=60,t.prev=61,x||null==A.return){t.next=65;break}return t.next=65,a(A.return());case 65:if(t.prev=65,!S){t.next=68;break}throw _;case 68:return t.finish(65);case 69:return t.finish(60);case 70:l=!0,t.next=5;break;case 73:t.next=79;break;case 75:t.prev=75,t.t2=t.catch(3),d=!0,h=t.t2;case 79:if(t.prev=79,t.prev=80,l||null==b.return){t.next=84;break}return t.next=84,a(b.return());case 84:if(t.prev=84,!d){t.next=87;break}throw h;case 87:return t.finish(84);case 88:return t.finish(79);case 89:case"end":return t.stop()}}),t,null,[[3,75,79,89],[19,56,60,70],[32,42,45,48],[61,,65,69],[80,,84,88]])})));return function(e){return t.apply(this,arguments)}}()}))},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(23),a=n(22),s=n(19),u=n(150),c=n(13);function l(e){var t={path:null==e.path?e.cid:"".concat(e.path),recursive:!1!==e.recursive};return null!=e.metadata&&(t.metadata=e.metadata),t}e.exports=function(){var e=a(r.mark((function e(t){var n,a,f,p,d,h,b,v,g,m,y,k,w,E,x,S,_,A,C,O,T,P,I,R;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t&&void 0!==t){e.next=2;break}throw u(new Error("Unexpected input: ".concat(t)),"ERR_UNEXPECTED_INPUT");case 2:if(!c.isCID(t)){e.next=6;break}return e.next=5,l({cid:t});case 5:return e.abrupt("return");case 6:if(!(t instanceof String||"string"===typeof t)){e.next=10;break}return e.next=9,l({path:t});case 9:return e.abrupt("return");case 10:if(null==t.cid&&null==t.path){e.next=14;break}return e.next=13,l(t);case 13:return e.abrupt("return",e.sent);case 14:if(!t[Symbol.iterator]){e.next=62;break}if(n=t[Symbol.iterator](),!(a=n.next()).done){e.next=19;break}return e.abrupt("return",n);case 19:if(!(c.isCID(a.value)||a.value instanceof String||"string"===typeof a.value)){e.next=40;break}return e.next=22,l({cid:a.value});case 22:f=i(n),e.prev=23,f.s();case 25:if((p=f.n()).done){e.next=31;break}return d=p.value,e.next=29,l({cid:d});case 29:e.next=25;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(23),f.e(e.t0);case 36:return e.prev=36,f.f(),e.finish(36);case 39:return e.abrupt("return");case 40:if(null==a.value.cid&&null==a.value.path){e.next=61;break}return e.next=43,l(a.value);case 43:h=i(n),e.prev=44,h.s();case 46:if((b=h.n()).done){e.next=52;break}return v=b.value,e.next=50,l(v);case 50:e.next=46;break;case 52:e.next=57;break;case 54:e.prev=54,e.t1=e.catch(44),h.e(e.t1);case 57:return e.prev=57,h.f(),e.finish(57);case 60:return e.abrupt("return");case 61:throw u(new Error("Unexpected input: "+typeof t),"ERR_UNEXPECTED_INPUT");case 62:if(!t[Symbol.asyncIterator]){e.next=146;break}return g=t[Symbol.asyncIterator](),e.next=66,o(g.next());case 66:if(!(m=e.sent).done){e.next=69;break}return e.abrupt("return",g);case 69:if(!(c.isCID(m.value)||m.value instanceof String||"string"===typeof m.value)){e.next=107;break}return e.next=72,l({cid:m.value});case 72:y=!0,k=!1,e.prev=74,E=s(g);case 76:return e.next=78,o(E.next());case 78:return x=e.sent,y=x.done,e.next=82,o(x.value);case 82:if(S=e.sent,y){e.next=90;break}return _=S,e.next=87,l({cid:_});case 87:y=!0,e.next=76;break;case 90:e.next=96;break;case 92:e.prev=92,e.t2=e.catch(74),k=!0,w=e.t2;case 96:if(e.prev=96,e.prev=97,y||null==E.return){e.next=101;break}return e.next=101,o(E.return());case 101:if(e.prev=101,!k){e.next=104;break}throw w;case 104:return e.finish(101);case 105:return e.finish(96);case 106:return e.abrupt("return");case 107:if(null==m.value.cid&&null==m.value.path){e.next=145;break}return e.next=110,l(m.value);case 110:A=!0,C=!1,e.prev=112,T=s(g);case 114:return e.next=116,o(T.next());case 116:return P=e.sent,A=P.done,e.next=120,o(P.value);case 120:if(I=e.sent,A){e.next=128;break}return R=I,e.next=125,l(R);case 125:A=!0,e.next=114;break;case 128:e.next=134;break;case 130:e.prev=130,e.t3=e.catch(112),C=!0,O=e.t3;case 134:if(e.prev=134,e.prev=135,A||null==T.return){e.next=139;break}return e.next=139,o(T.return());case 139:if(e.prev=139,!C){e.next=142;break}throw O;case 142:return e.finish(139);case 143:return e.finish(134);case 144:return e.abrupt("return");case 145:case 146:throw u(new Error("Unexpected input: "+typeof t),"ERR_UNEXPECTED_INPUT");case 147:case"end":return e.stop()}}),e,null,[[23,33,36,39],[44,54,57,60],[74,92,96,106],[97,,101,105],[112,130,134,144],[135,,139,143]])})));return function(t){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(22),a=n(23),s=n(52),u=n(19),c=n(13),l=n(8),f=n(346),p=n(9);e.exports=l((function(e){return function(){var t=o(r.mark((function t(n){var o,l,d,h,b,v,g,m,y,k,w,E,x,S,_,A,C,O,T,P=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=P.length>1&&void 0!==P[1]?P[1]:{},l=!0,d=!1,t.prev=3,b=u(f(n));case 5:return t.next=7,a(b.next());case 7:return v=t.sent,l=v.done,t.next=11,a(v.value);case 11:if(g=t.sent,l){t.next=60;break}return y=(m=g).path,k=m.recursive,(w=new URLSearchParams(o.searchParams)).append("arg","".concat(y)),null!=k&&w.set("recursive",String(k)),t.next=19,a(e.post("pin/rm",{timeout:o.timeout,signal:o.signal,headers:o.headers,searchParams:p(i(i({},o),{},{arg:"".concat(y),recursive:k}))}));case 19:E=t.sent,x=!0,S=!1,t.prev=22,A=u(E.ndjson());case 24:return t.next=26,a(A.next());case 26:return C=t.sent,x=C.done,t.next=30,a(C.value);case 30:if(O=t.sent,x){t.next=41;break}if(!(T=O).Pins){t.next=36;break}return t.delegateYield(s(u(T.Pins.map((function(e){return new c(e)}))),a),"t0",35);case 35:return t.abrupt("continue",38);case 36:return t.next=38,new c(T);case 38:x=!0,t.next=24;break;case 41:t.next=47;break;case 43:t.prev=43,t.t1=t.catch(22),S=!0,_=t.t1;case 47:if(t.prev=47,t.prev=48,x||null==A.return){t.next=52;break}return t.next=52,a(A.return());case 52:if(t.prev=52,!S){t.next=55;break}throw _;case 55:return t.finish(52);case 56:return t.finish(47);case 57:l=!0,t.next=5;break;case 60:t.next=66;break;case 62:t.prev=62,t.t2=t.catch(3),d=!0,h=t.t2;case 66:if(t.prev=66,t.prev=67,l||null==b.return){t.next=71;break}return t.next=71,a(b.return());case 71:if(t.prev=71,!d){t.next=74;break}throw h;case 74:return t.finish(71);case 75:return t.finish(66);case 76:case"end":return t.stop()}}),t,null,[[3,62,66,76],[22,43,47,57],[48,,52,56],[67,,71,75]])})));return function(e){return t.apply(this,arguments)}}()}))},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(53).AbortController,a=function(){function e(){r(this,e),this._subs=new Map}return i(e,[{key:"subscribe",value:function(e,t,n){var r=this,i=this._subs.get(e)||[];if(i.find((function(e){return e.handler===t})))throw new Error("Already subscribed to ".concat(e," with this handler"));var a=new o;return this._subs.set(e,[{handler:t,controller:a}].concat(i)),n&&n.addEventListener("abort",(function(){return r.unsubscribe(e,t)})),a.signal}},{key:"unsubscribe",value:function(e,t){var n,r=this._subs.get(e)||[];t?(this._subs.set(e,r.filter((function(e){return e.handler!==t}))),n=r.filter((function(e){return e.handler===t}))):(this._subs.set(e,[]),n=r),n.forEach((function(e){return e.controller.abort()}))}}],[{key:"singleton",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();a.instance=null,e.exports=a},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(93).BigNumber,a=n(8),s=n(9);e.exports=a((function(e){return i(r.mark((function t(){var n,i,a,u=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,e.post("repo/stat",{timeout:n.timeout,signal:n.signal,searchParams:s(n),headers:n.headers});case 3:return i=t.sent,t.next=6,i.json();case 6:return a=t.sent,t.abrupt("return",{numObjects:new o(a.NumObjects),repoSize:new o(a.RepoSize),repoPath:a.RepoPath,version:a.Version,storageMax:new o(a.StorageMax)});case 8:case"end":return t.stop()}}),t)})))}))},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(8),a=n(9);e.exports=o((function(e){return i(r.mark((function t(){var n,i,o=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("shutdown",{timeout:n.timeout,signal:n.signal,searchParams:a(n),headers:n.headers});case 3:return i=t.sent,t.next=6,i.text();case 6:case"end":return t.stop()}}),t)})))}))},function(e,t,n){"use strict";var r=n(20),i=n(21),o="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var a=self.URL,s=o?"http://localhost":self.location.protocol+"//"+self.location.host,u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;r(this,e),this.super=new a(t,n),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}return i(e,[{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}},{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}}],[{key:"createObjectURL",value:function(e){return a.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){a.revokeObjectURL(e)}}]),e}();e.exports={URLWithLegacySupport:u,URLSearchParams:self.URLSearchParams,defaultBase:s,format:function(e){if("string"===typeof e)return new a(e).toString();if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u;return"".concat(i).concat(t||n).concat(o||s+r).concat(f).concat(c)}}}},function(e,t){t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var n=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},r=(t.VALID_TAG_NAMES=Object.keys(n).map((function(e){return n[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(r).reduce((function(e,t){return e[r[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[n.NOSCRIPT,n.SCRIPT,n.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},function(e,t,n){e.exports=!n(82)&&!n(133)((function(){return 7!=Object.defineProperty(n(354)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(115),i=n(80).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(96),i=n(116),o=n(812)(!1),a=n(231)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(228);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(230),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chromeLight=t.chromeDark=void 0;var r=o(n(814)),i=o(n(815));function o(e){return e&&e.__esModule?e:{default:e}}t.chromeDark=r.default,t.chromeLight=i.default},function(e,t,n){e.exports={default:n(817),__esModule:!0}},function(e,t,n){"use strict";var r=n(161),i=n(94),o=n(361),a=n(114),s=n(117),u=n(822),c=n(236),l=n(825),f=n(59)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",h="values",b=function(){return this};e.exports=function(e,t,n,v,g,m,y){u(n,t,v);var k,w,E,x=function(e){if(!p&&e in C)return C[e];switch(e){case d:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",_=g==h,A=!1,C=e.prototype,O=C[f]||C["@@iterator"]||g&&C[g],T=O||x(g),P=g?_?x("entries"):T:void 0,I="Array"==t&&C.entries||O;if(I&&(E=l(I.call(new e)))!==Object.prototype&&E.next&&(c(E,S,!0),r||"function"==typeof E[f]||a(E,f,b)),_&&O&&O.name!==h&&(A=!0,T=function(){return O.call(this)}),r&&!y||!p&&!A&&C[f]||a(C,f,T),s[t]=T,s[S]=b,g)if(k={values:_?T:x(h),keys:m?T:x(d),entries:P},y)for(w in k)w in C||o(C,w,k[w]);else i(i.P+i.F*(p||A),t,k);return k}},function(e,t,n){e.exports=n(114)},function(e,t,n){var r=n(355),i=n(233).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(163),i=n(134),o=n(116),a=n(227),s=n(96),u=n(353),c=Object.getOwnPropertyDescriptor;t.f=n(82)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){e.exports=n(846)},function(e,t,n){var r=n(228),i=n(59)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(365),i=n(59)("iterator"),o=n(117);e.exports=n(54).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=b(n(66)),i=b(n(165)),o=b(n(97)),a=b(n(98)),s=b(n(99)),u=b(n(100)),c=b(n(855)),l=n(0),f=b(l),p=b(n(5)),d=b(n(856)),h=n(859);function b(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e,n){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state=n.store.storeState,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"shouldComponentUpdate",value:function(e,t){return!!t.expandedPaths[e.path]!==!!this.state.expandedPaths[this.props.path]||e.data!==this.props.data||e.name!==this.props.name}},{key:"handleClick",value:function(e){this.context.store.storeState=function(e,t){switch(t.type){case"TOGGLE_EXPAND":var n=t.path,r=!!e.expandedPaths[n];return Object.assign({},e,{expandedPaths:Object.assign({},e.expandedPaths,(0,c.default)({},n,!r))});default:return e}}(this.context.store.storeState,{type:"TOGGLE_EXPAND",path:e}),this.setState(this.context.store.storeState)}},{key:"renderChildNodes",value:function(e,n){var o=this.props.dataIterator,a=this.props.depth,s=this.props.nodeRenderer,u=[],c=!0,l=!1,p=void 0;try{for(var d,h=o(e)[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var b=d.value,v=b.name,g=b.data,m=(0,i.default)(b,["name","data"]),y=v,k=n+"."+y;u.push(f.default.createElement(t,(0,r.default)({name:v,data:g,depth:a+1,path:k,key:y,dataIterator:o,nodeRenderer:s},m)))}}catch(w){l=!0,p=w}finally{try{!c&&h.return&&h.return()}finally{if(l)throw p}}return u}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.dataIterator,i=e.path,o=e.depth,a=(0,h.hasChildNodes)(t,n),s=!!this.state.expandedPaths[i],u=this.props.nodeRenderer;return f.default.createElement(d.default,(0,r.default)({expanded:s,onClick:a?this.handleClick.bind(this,i):function(){},shouldShowArrow:a,shouldShowPlaceholder:o>0,nodeRenderer:u},this.props),s?this.renderChildNodes(t,i):void 0)}}]),t}(l.Component);v.propTypes={name:p.default.string,data:p.default.any,dataIterator:p.default.func,depth:p.default.number,expanded:p.default.bool,nodeRenderer:p.default.func},v.contextTypes={store:p.default.any};var g=function(e){function t(e){(0,o.default)(this,t);var n=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.store={storeState:{expandedPaths:(0,h.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel)}},n}return(0,u.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.store={storeState:{expandedPaths:(0,h.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel,this.store.storeState.expandedPaths)}}}},{key:"getChildContext",value:function(){return{store:this.store}}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.data,r=e.dataIterator,i=this.props.nodeRenderer,o=h.DEFAULT_ROOT_PATH;return f.default.createElement(v,{name:t,data:n,dataIterator:r,depth:0,path:o,nodeRenderer:i})}}]),t}(l.Component);g.defaultProps={expandLevel:0,expandPaths:[]},g.childContextTypes={store:p.default.any},g.propTypes={name:p.default.string,data:p.default.any,dataIterator:p.default.func,nodeRenderer:p.default.func},g.defaultProps={name:void 0},t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(167)),o=a(n(860));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.name,n=e.data;return"string"===typeof t?r.default.createElement("span",null,r.default.createElement(i.default,{name:t}),r.default.createElement("span",null,": "),r.default.createElement(o.default,{data:n})):r.default.createElement(o.default,{data:n})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(5)),o=s(n(167)),a=s(n(168));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.name,n=e.data,i=e.isNonenumerable,s=e.isMeta,u=n;return r.default.createElement("span",null,r.default.createElement(o.default,{name:t,dimmed:i||s}),!s&&r.default.createElement("span",null,": "),!s&&r.default.createElement(a.default,{object:u}))};u.propTypes={isNonenumerable:i.default.bool,isMeta:i.default.bool},u.defaultProps={isNonenumerable:!1,isMeta:!1},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return 0===e.childNodes.length||1===e.childNodes.length&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<80}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?o(e):r(t).encode(e)}},function(e,t,n){"use strict";var r=n(45),i=n(373),o=n(260);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";e.exports=f;var r,i=n(101),o=i.LongBits,a=i.base64,s=i.utf8;function u(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var p=function(){return i.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f}};function d(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function b(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function v(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=p(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(b,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(b,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(b,t.length(),t)},f.prototype.bool=function(e){return this._push(d,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var g=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(d,1,0);if(i.isString(e)){var n=f.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(g,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=p(),r._configure()}},function(e,t,n){"use strict";e.exports=u;var r,i=n(101),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c="undefined"!==typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};function f(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw s(this,8);return new o(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},u.prototype.skip=function(e){if("number"===typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!==(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){r=e,u.create=l(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},function(e,t,n){"use strict";var r=n(2),i=n(51),o=n(7),a=n(69),s=n(61),u=n(13),c=new(0,n(920).TextDecoder)("utf8"),l=n(921),f=new u("Qmbt1YbZAhMoqo7r1t6Y5EJrYGVRgcaisNAZhLeJY6ehfg");function p(){return(p=o(r.mark((function e(t,n,i){var o,a,s,f,p,b;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new u(n).toString(),e.prev=1,e.next=4,t.object.get(n);case 4:o=e.sent,a=JSON.parse(c.decode(o.Data)),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),console.error("[ipfs-geoip] failed to get and parse Data via ipfs.object.get('".concat(n,"')"),e.t0),e.t0;case 12:if(s=0,"Node"!==a.type){e.next=24;break}for(;a.mins[s]&&a.mins[s]<=i;)s++;if(f=o.Links[s-1]){e.next=18;break}throw new Error("Failed to lookup node");case 18:if(p=h(f)){e.next=21;break}throw new Error("Failed to lookup node");case 21:return e.abrupt("return",d(t,p,i));case 24:if("Leaf"!==a.type){e.next=32;break}for(;a.data[s]&&a.data[s].min<=i;)s++;if(b=a.data[s-1]){e.next=29;break}throw new Error("Failed to lookup leaf node");case 29:if(b.data){e.next=31;break}throw new Error("Unmapped range");case 31:return e.abrupt("return",l(b.data));case 32:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}var d=a((function(e,t,n){return p.apply(this,arguments)}),{cachePromiseRejection:!1,cacheKey:function(e){var t=i(e,3),n=t[1],r=t[2];return"".concat(n,".").concat(r)}});function h(e){return e&&e.Hash?e.Hash:null}e.exports=function(e,t){return d(e,f,s.toLong(t))}},function(e,t,n){"use strict";var r=n(16),i=n(10),o=function(e,t,n,r){if("length"!==n&&"prototype"!==n&&"arguments"!==n&&"caller"!==n){var i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!a(i,o)&&r||Object.defineProperty(e,n,o)}},a=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},s=function(e,t){var n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},u=function(e,t){return"/* Wrapped ".concat(e,"*/\n").concat(t)},c=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),l=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),f=function(e,t,n){var r=""===n?"":"with ".concat(n.trim(),"() "),o=u.bind(null,r,t.toString());Object.defineProperty(o,"name",l),Object.defineProperty(e,"toString",i(i({},c),{},{value:o}))};e.exports=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.ignoreNonConfigurable,u=void 0!==a&&a,c=e.name,l=r(Reflect.ownKeys(t));try{for(l.s();!(n=l.n()).done;){var p=n.value;o(e,t,p,u)}}catch(d){l.e(d)}finally{l.f()}return s(e,t),f(e,t,c),e}},,,,function(e,t,n){var r=n(84),i=n(73);e.exports=function(e,t,n){var o=i(e,t);return n||(o=o.replace(/ (?=\d)/g,"_")),o.replace(/ (.)/g,(function(e,n){return r(n,t)}))}},function(e,t,n){var r=n(73);e.exports=function(e,t){return r(e,t,"_")}},,function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return b})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__spreadArray",(function(){return m})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return k})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return E})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return _})),n.d(t,"__importDefault",(function(){return A})),n.d(t,"__classPrivateFieldGet",(function(){return C})),n.d(t,"__classPrivateFieldSet",(function(){return O}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return S(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorKind=void 0,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(t.ErrorKind||(t.ErrorKind={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return b})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__spreadArray",(function(){return m})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return k})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return E})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return _})),n.d(t,"__importDefault",(function(){return A})),n.d(t,"__classPrivateFieldGet",(function(){return C})),n.d(t,"__classPrivateFieldSet",(function(){return O}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return S(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n(15);function o(e,t){"function"===typeof e?e(t):e.current=t}function a(e,t){var n=e.ref;return Object(i.a)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(r.cloneElement)(e,{ref:function(e){o(n,e),o(t,e)}}):Object(r.cloneElement)(e,{ref:t})}function s(e){if("string"!==typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
, or turn it into a ")+"drag source or a drop target itself.")}}function u(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(r.isValidElement)(t)){var i=t;return e(i,n),i}var o=t;return s(o),a(o,n?function(t){return e(t,n)}:e)}}(i);t[n]=function(){return o}}})),t}},function(e,t,n){"use strict";var r=n(0),i=n.n(r);function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?T(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},R={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},D=n.n(m).a.canUseDOM,N=void 0!==g.a.createPortal;function j(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function L(e){var t=e.title,n=e.data,r=e.warn,i=void 0!==r&&r,o=e.debug,a=void 0!==o&&o,s=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}function B(){}var U=function(e){function t(e){var n;return y(this,t),n=P(this,A(t).call(this,e)),D?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):P(n)}return _(t,e),w(t,[{key:"componentDidMount",value:function(){D&&(N||this.renderPortal())}},{key:"componentDidUpdate",value:function(){D&&(N||this.renderPortal())}},{key:"componentWillUnmount",value:function(){D&&this.node&&(N||g.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!D)return null;var e=this.props,t=e.children,n=e.setRef;return N?g.a.createPortal(t,this.node):(n(g.a.unstable_renderSubtreeIntoContainer(this,t.length>1?i.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return N?this.renderReact16():null}}]),t}(i.a.Component);E(U,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var z=function(e){function t(){return y(this,t),P(this,A(t).apply(this,arguments))}return _(t,e),w(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,r=t.setArrowRef,o=t.styles.arrow,a=o.color,s=o.display,u=o.length,c=o.margin,l=o.position,f=o.spread,p={display:s,position:l},d=f,h=u;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),p.bottom=0,p.marginLeft=c,p.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),p.top=0,p.marginLeft=c,p.marginRight=c):n.startsWith("left")?(h=f,e="0,0 ".concat(d=u,",").concat(h/2," 0,").concat(h),p.right=0,p.marginTop=c,p.marginBottom=c):n.startsWith("right")&&(h=f,e="".concat(d=u,",").concat(h," ").concat(d,",0 0,").concat(h/2),p.left=0,p.marginTop=c,p.marginBottom=c),i.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},i.a.createElement("span",{ref:r,style:p},i.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}}]),t}(i.a.Component);E(z,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var H=function(e){var t=e.handleClick,n=e.styles,r=n.color,o=n.height,a=n.width,s=O(n,["color","height","width"]);return i.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},i.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},i.a.createElement("g",null,i.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))};H.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var G=function(e){var t=e.content,n=e.footer,r=e.handleClick,o=e.open,a=e.positionWrapper,s=e.showCloseButton,u=e.title,c=e.styles,l={content:i.a.isValidElement(t)?t:i.a.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(l.title=i.a.isValidElement(u)?u:i.a.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(l.footer=i.a.isValidElement(n)?n:i.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(o)||(l.close=i.a.createElement(H,{styles:c.close,handleClick:r})),i.a.createElement("div",{className:"__floater__container",style:c.container},l.close,l.title,l.content,l.footer)};G.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var V=function(e){function t(){return y(this,t),P(this,A(t).apply(this,arguments))}return _(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,r=e.hideArrow,o=e.setFloaterRef,a=e.status,s={},u=["__floater"];return t?i.a.isValidElement(t)?s.content=i.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=i.a.createElement(G,this.props),a===R.OPEN&&u.push("__floater__open"),r||(s.arrow=i.a.createElement(z,this.props)),i.a.createElement("div",{ref:o,className:u.join(" "),style:this.style},i.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,i=e.hideArrow,o=e.status,a=e.styles,s=a.arrow.length,u=a.floater,c=a.floaterCentered,l=a.floaterClosing,f=a.floaterOpening,p=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return i||(r.startsWith("top")?h.padding="0 0 ".concat(s,"px"):r.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[R.OPENING,R.OPEN].indexOf(o)&&(h=S({},h,{},f)),o===R.CLOSING&&(h=S({},h,{},l)),o!==R.OPEN||t||(h=S({},h,{},p)),"center"===r&&(h=S({},h,{},c)),n&&(h=S({},h,{},d)),S({},u,{},h)}}]),t}(i.a.Component);E(V,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var W=function(e){function t(){return y(this,t),P(this,A(t).apply(this,arguments))}return _(t,e),w(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.handleClick,o=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,u=t.setWrapperRef,c=t.style,l=t.styles;if(n)if(1===i.a.Children.count(n))if(i.a.isValidElement(n)){var f=d.a.function(n.type)?"innerRef":"ref";e=i.a.cloneElement(i.a.Children.only(n),E({},f,s))}else e=i.a.createElement("span",null,n);else e=n;return e?i.a.createElement("span",{ref:u,style:S({},l,{},c),onClick:r,onMouseEnter:o,onMouseLeave:a},e):null}}]),t}(i.a.Component);E(W,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var q={zIndex:100};var K=["position","top","right","bottom","left"],Y=function(t){function n(e){var t;return y(this,n),E(T(t=P(this,A(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),E(T(t),"setChildRef",(function(e){t.childRef=e})),E(T(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),E(T(t),"setWrapperRef",(function(e){t.wrapperRef=e})),E(T(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===R.OPENING?R.OPEN:R.IDLE},(function(){var e=t.state.status;n(e===R.OPEN?"open":"close",t.props)}))})),E(T(t),"handleClick",(function(){var e=t.props,n=e.event,r=e.open;if(!d.a.boolean(r)){var i=t.state,o=i.positionWrapper,a=i.status;("click"===t.event||"hover"===t.event&&o)&&(L({title:"click",data:[{event:n,status:a===R.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),E(T(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,r=e.open;if(!d.a.boolean(r)&&!j()){var i=t.state.status;"hover"===t.event&&i===R.IDLE&&(L({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),E(T(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,r=e.eventDelay,i=e.open;if(!d.a.boolean(i)&&!j()){var o=t.state,a=o.status,s=o.positionWrapper;"hover"===t.event&&(L({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),r?-1===[R.OPENING,R.OPEN].indexOf(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*r)):t.toggle(R.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:R.INIT,statusWrapper:R.INIT},t._isMounted=!1,D&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return _(n,t),w(n,[{key:"componentDidMount",value:function(){if(D){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,i=t.target;this._isMounted=!0,L({title:"init",data:{hasChildren:!!n,hasTarget:!!i,isControlled:d.a.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&i&&d.a.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(D){var n,r=this.props,i=r.autoOpen,o=r.open,a=r.target,s=r.wrapperOptions,u=b()(t,this.state),c=u.changedFrom,l=u.changedTo;if(e.open!==o)d.a.boolean(o)&&(n=o?R.OPENING:R.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(l("status",R.IDLE)&&o||c("status",R.INIT,R.IDLE)&&i)&&this.toggle(R.OPEN),this.popper&&l("status",R.OPENING)&&this.popper.instance.update(),this.floaterRef&&(l("status",R.OPENING)||l("status",R.CLOSING))&&function(e,t,n){var r;F(e,t,r=function(i){n(i),M(e,t,r)},arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){D&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,i=r.disableFlip,o=r.getPopper,a=r.hideArrow,s=r.offset,u=r.placement,l=r.wrapperOptions,f="top"===u||"bottom"===u?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===u)this.setState({status:R.IDLE});else if(t&&this.floaterRef){var p=this.options,h=p.arrow,b=p.flip,v=p.offset,g=O(p,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:u,modifiers:S({arrow:S({enabled:!a,element:this.arrowRef},h),flip:S({enabled:!i,behavior:f},b),offset:S({offset:"0, ".concat(s,"px")},v)},g),onCreate:function(t){e.popper=t,o(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:R.IDLE}),u!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var m=d.a.undefined(l.offset)?0:l.offset;new c.a(this.target,this.wrapperRef,{placement:l.placement||u,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(m,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:R.IDLE}),o(t,"wrapper"),u!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===R.OPEN?R.CLOSING:R.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,r=e.status,o=this.props,a=o.children,s=o.component,u=o.content,c=o.disableAnimation,l=o.footer,f=o.hideArrow,p=o.id,d=o.open,h=o.showCloseButton,b=o.style,v=o.target,g=o.title,m=i.a.createElement(W,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},a),y={};return n?y.wrapperInPortal=m:y.wrapperAsChildren=m,i.a.createElement("span",null,i.a.createElement(U,{hasChildren:!!a,id:p,placement:t,setRef:this.setFloaterRef,target:v,zIndex:this.styles.options.zIndex},i.a.createElement(V,{component:s,content:u,disableAnimation:c,footer:l,handleClick:this.handleClick,hideArrow:f||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:r,styles:this.styles,title:g}),y.wrapperInPortal),y.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&j()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return f()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,i=n.positionWrapper,o=n.statusWrapper,a=this.props.styles,s=f()(function(e){var t=f()(q,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);i&&(e=-1===[R.IDLE].indexOf(r)||-1===[R.IDLE].indexOf(o)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=S({},s.wrapper,{},e));if(this.target){var u=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=S({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(u.position)&&(this.wrapperStyles={},i||(K.forEach((function(e){t.wrapperStyles[e]=u[e]})),s.wrapper=S({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!D)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(i.a.Component);E(Y,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:u()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:u()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),E(Y,"defaultProps",{autoOpen:!1,callback:B,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=Y}).call(this,n(38))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(438),i=n(439);function o(){for(var e=[],t=0;t=0:s===r,l=Array.isArray(o)?o.indexOf(u)>=0:u===o;return c&&(a?l:!a)},changedTo:function(n,r){if("undefined"===typeof n)throw new Error("Key parameter is required");var o=i.get(e,n),a=i.get(t,n),s=Array.isArray(r)?r.indexOf(o)<0:o!==r,u=Array.isArray(r)?r.indexOf(a)>=0:a===r;return s&&u},increased:function(n){if("undefined"===typeof n)throw new Error("Key parameter is required");return o(i.get(e,n),i.get(t,n))&&i.get(e,n)i.get(t,n)}}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return{add:n(543)(e),addAll:n(308)(e),bitswap:n(558)(e),block:n(562)(e),bootstrap:n(567)(e),cat:n(573)(e),commands:n(574)(e),config:n(575)(e),dag:n(583)(e),dht:n(699)(e),diag:n(706)(e),dns:n(710)(e),files:n(711)(e),get:n(723)(e),getEndpointConfig:n(734)(e),id:n(735)(e),key:n(736)(e),log:n(742)(e),ls:n(746)(e),mount:n(747)(e),name:n(748)(e),object:n(755)(e),pin:n(767)(e),ping:n(773)(e),pubsub:n(774)(e),refs:n(780)(e),repo:n(782)(e),resolve:n(785)(e),stats:n(786)(e),stop:n(350)(e),shutdown:n(350)(e),swarm:n(788)(e),version:n(794)(e)}}Object.assign(l,{CID:r,multiaddr:i,multibase:o,multicodec:a,multihash:s,globSource:u,urlSource:c}),e.exports=l},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(19),a=function(){var e=i(r.mark((function e(t){var n,i,a,s,u,c,l;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,i=!1,e.prev=2,s=o(t);case 4:return e.next=6,s.next();case 6:return u=e.sent,n=u.done,e.next=10,u.value;case 10:if(c=e.sent,n){e.next=17;break}return l=c,e.abrupt("return",l);case 14:n=!0,e.next=4;break;case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(2),i=!0,a=e.t0;case 23:if(e.prev=23,e.prev=24,n||null==s.return){e.next=28;break}return e.next=28,s.return();case 28:if(e.prev=28,!i){e.next=31;break}throw a;case 31:return e.finish(28);case 32:return e.finish(23);case 33:return e.abrupt("return",void 0);case 34:case"end":return e.stop()}}),e,null,[[2,19,23,33],[24,,28,32]])})));return function(t){return e.apply(this,arguments)}}();e.exports=a},function(e,t,n){var r=n(882),i=n(883),o=n(372),a=n(884);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(885),i=n(886),o=n(372),a=n(887);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){e.exports={parse:n(889),stringify:n(892)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(405),i=n(13),o=n.n(i),a=n(242);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object(a.a)(t);return"dag-pb"===n?function(e,t,n){var i;e=e.toJSON();try{var o=r.UnixFS.unmarshal(e.data),a=o.type,s=o.data,u=o.blockSizes;e.data={type:a,data:s,blockSizes:u},i="unixfs"}catch(l){}return{cid:t,type:n,data:e.data,links:c(e,t),size:e.size,format:i}}(e,t,n):function(e,t,n){var r=l(e,t);return{cid:t,type:n,data:e,links:r}}(e,t,n)}function c(e,t){return e.links.map((function(e,n){var r=e.name,i=e.size,o=e.cid;return{path:r||"Links/".concat(n),source:t,target:o,size:i,index:n}}))}function l(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||"object"===!s(t)||e.isBuffer(t)||"string"===typeof t)return[];if(o.a.isCID(t))return[{path:r,source:n,target:t.toString()}];if(Array.isArray(t))return t.length?t.map((function(e,t){return l(e,n,r?"".concat(r,"/").concat(t):"".concat(t))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return!!e})):[];var i=Object.keys(t);if(1===i.length&&"/"===i[0]){var u=Object(a.b)(t["/"]);if(!u)return[];var c=u.toString();return t["/"]=c,[{path:r,source:n,target:c}]}return i.length>0?i.map((function(e){return l(t[e],n,r?"".concat(r,"/").concat(e):"".concat(e))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return!!e})):[]}}).call(this,n(50).Buffer)},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(900).Data,a=n(915),s=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],u=["directory","hamt-sharded-directory"],c=parseInt("0644",8),l=parseInt("0755",8);function f(e){if(null!=e)return"number"===typeof e?4095&e:"0"===(e=e.toString()).substring(0,1)?4095&parseInt(e,8):4095&parseInt(e,10)}function p(e){if(null!=e){var t;if(null!=e.secs&&(t={secs:e.secs,nsecs:e.nsecs}),null!=e.Seconds&&(t={secs:e.Seconds,nsecs:e.FractionalNanoseconds}),Array.isArray(e)&&(t={secs:e[0],nsecs:e[1]}),e instanceof Date){var n=e.getTime(),r=Math.floor(n/1e3);t={secs:r,nsecs:1e3*(n-1e3*r)}}if(Object.prototype.hasOwnProperty.call(t,"secs")){if(null!=t&&null!=t.nsecs&&(t.nsecs<0||t.nsecs>999999999))throw a(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return t}}}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"file"};r(this,e);var n=t.type,i=t.data,o=t.blockSizes,u=t.hashType,c=t.fanout,l=t.mtime,d=t.mode;if(n&&!s.includes(n))throw a(new Error("Type: "+n+" is not valid"),"ERR_INVALID_TYPE");this.type=n||"file",this.data=i,this.hashType=u,this.fanout=c,this.blockSizes=o||[],this._originalMode=0,this.mode=f(d),l&&(this.mtime=p(l),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}return i(e,null,[{key:"unmarshal",value:function(t){var n=o.decode(t),r=o.toObject(n,{defaults:!1,arrays:!0,longs:Number,objects:!1}),i=new e({type:s[r.Type],data:r.Data,blockSizes:r.blocksizes,mode:r.mode,mtime:r.mtime?{secs:r.mtime.Seconds,nsecs:r.mtime.FractionalNanoseconds}:void 0});return i._originalMode=r.mode||0,i}}]),i(e,[{key:"isDirectory",value:function(){return Boolean(this.type&&u.includes(this.type))}},{key:"addBlockSize",value:function(e){this.blockSizes.push(e)}},{key:"removeBlockSize",value:function(e){this.blockSizes.splice(e,1)}},{key:"fileSize",value:function(){if(this.isDirectory())return 0;var e=0;return this.blockSizes.forEach((function(t){e+=t})),this.data&&(e+=this.data.length),e}},{key:"marshal",value:function(){var e;switch(this.type){case"raw":e=o.DataType.Raw;break;case"directory":e=o.DataType.Directory;break;case"file":e=o.DataType.File;break;case"metadata":e=o.DataType.Metadata;break;case"symlink":e=o.DataType.Symlink;break;case"hamt-sharded-directory":e=o.DataType.HAMTShard;break;default:throw a(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}var t,n,r=this.data;if(this.data&&this.data.length||(r=void 0),null!=this.mode&&((t=4294963200&this._originalMode|(f(this.mode)||0))!==c||this.isDirectory()||(t=void 0),t===l&&this.isDirectory()&&(t=void 0)),null!=this.mtime){var i=p(this.mtime);i&&0===(n={Seconds:i.secs,FractionalNanoseconds:i.nsecs}).FractionalNanoseconds&&delete n.FractionalNanoseconds}var s={Type:e,Data:r,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:t,mtime:n};return o.encode(s).finish()}},{key:"mode",set:function(e){this._mode=this.isDirectory()?l:c;var t=f(e);void 0!==t&&(this._mode=t)},get:function(){return this._mode}}]),e}();e.exports={UnixFS:d,parseMode:f,parseMtime:p}},function(e,t,n){"use strict";var r=n(377),i=n(922);e.exports={lookup:r,lookupPretty:i}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(20),a=n(21),s=n(89),u=n(90);Object.defineProperty(t,"__esModule",{value:!0});var c=n(923),l=n(924),f=n(926),p=function(){},d=new l.TimeoutError,h=function(e){s(n,e);var t=u(n);function n(e){var r,i,a,s,u;if(o(this,n),(r=t.call(this))._intervalCount=0,r._intervalEnd=0,r._pendingCount=0,r._resolveEmpty=p,r._resolveIdle=p,!("number"===typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:f.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(a=null===(i=e.intervalCap)||void 0===i?void 0:i.toString())&&void 0!==a?a:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(u=null===(s=e.interval)||void 0===s?void 0:s.toString())&&void 0!==u?u:"","` (").concat(typeof e.interval,")"));return r._carryoverConcurrencyCount=e.carryoverConcurrencyCount,r._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,r._intervalCap=e.intervalCap,r._interval=e.interval,r._queue=new e.queueClass,r._queueClass=e.queueClass,r.concurrency=e.concurrency,r._timeout=e.timeout,r._throwOnTimeout=!0===e.throwOnTimeout,r._isPaused=!1===e.autoStart,r}return a(n,[{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=p,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=p,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-t;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"add",value:function(){var e=i(r.mark((function e(t){var n,o=this,a=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var s=function(){var s=i(r.mark((function i(){var s;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o._pendingCount++,o._intervalCount++,r.prev=2,s=void 0===o._timeout&&void 0===n.timeout?t():l.default(Promise.resolve(t()),void 0===n.timeout?o._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?o._throwOnTimeout:n.throwOnTimeout)&&a(d)})),r.t0=e,r.next=7,s;case 7:r.t1=r.sent,(0,r.t0)(r.t1),r.next=14;break;case 11:r.prev=11,r.t2=r.catch(2),a(r.t2);case 14:o._next();case 15:case"end":return r.stop()}}),i,null,[[2,11]])})));return function(){return s.apply(this,arguments)}}();o._queue.enqueue(s,n),o._tryToStartAnother(),o.emit("add")})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"addAll",value:function(){var e=i(r.mark((function e(t,n){var o=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=i(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.add(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:function(){var e=i(r.mark((function e(){var t=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onIdle",value:function(){var e=i(r.mark((function e(){var t=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));this._concurrency=e,this._processQueue()}},{key:"size",get:function(){return this._queue.size}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}]),n}(c);t.default=h},function(e,t){e.exports=function(e){if(!e)throw Error("hashlru must have a max value, of type number, greater than 0");var t=0,n=Object.create(null),r=Object.create(null);function i(i,o){n[i]=o,++t>=e&&(t=0,r=n,n=Object.create(null))}return{has:function(e){return void 0!==n[e]||void 0!==r[e]},remove:function(e){void 0!==n[e]&&(n[e]=void 0),void 0!==r[e]&&(r[e]=void 0)},get:function(e){var t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set:function(e,t){void 0!==n[e]?n[e]=t:i(e,t)},clear:function(){n=Object.create(null),r=Object.create(null)}}}},,function(e,t,n){t.no=t.noCase=n(73),t.dot=t.dotCase=n(933),t.swap=t.swapCase=n(934),t.path=t.pathCase=n(935),t.upper=t.upperCase=n(84),t.lower=t.lowerCase=n(135),t.camel=t.camelCase=n(382),t.snake=t.snakeCase=n(383),t.title=t.titleCase=n(936),t.param=t.paramCase=n(937),t.kebab=t.kebabCase=t.paramCase,t.hyphen=t.hyphenCase=t.paramCase,t.header=t.headerCase=n(938),t.pascal=t.pascalCase=n(939),t.constant=t.constantCase=n(940),t.sentence=t.sentenceCase=n(941),t.isUpper=t.isUpperCase=n(942),t.isLower=t.isLowerCase=n(943),t.ucFirst=t.upperCaseFirst=n(244),t.lcFirst=t.lowerCaseFirst=n(944)},function(e,t,n){"use strict";var r=n(31),i=n(42),o=n(43),a=function(){function e(t){Object(i.a)(this,e),this.store=t.store}return Object(o.a)(e,[{key:"setItem",value:function(e,t){if(this.store)try{this.store.setItem(e,t)}catch(n){}}},{key:"getItem",value:function(e,t){if(this.store)try{return this.store.getItem(e,t)}catch(n){}}}]),e}();function s(){return{prefix:"i18next_res_",expirationTime:6048e5,defaultVersion:void 0,versions:{},store:window.localStorage}}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,e),this.init(t,n),this.type="backend"}return Object(o.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=Object(r.a)({},s(),this.options,t),this.storage=new a(this.options)}},{key:"read",value:function(e,t,n){var r=(new Date).getTime();if(!this.storage.store)return n(null,null);var i=this.storage.getItem("".concat(this.options.prefix).concat(e,"-").concat(t));if(i){i=JSON.parse(i);var o=this.getVersion(e);if(i.i18nStamp&&i.i18nStamp+this.options.expirationTime>r&&o===i.i18nVersion)return delete i.i18nVersion,delete i.i18nStamp,n(null,i)}return n(null,null)}},{key:"save",value:function(e,t,n){if(this.storage.store){n.i18nStamp=(new Date).getTime();var r=this.getVersion(e);r&&(n.i18nVersion=r),this.storage.setItem("".concat(this.options.prefix).concat(e,"-").concat(t),JSON.stringify(n))}}},{key:"getVersion",value:function(e){return this.options.versions[e]||this.options.defaultVersion}}]),e}();u.type="backend",t.a=u},function(e,t,n){"use strict";var r=n(106),i=n(413);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,i;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=Object(r.a)(n,this.options||{},s()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(i,n,e,t)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(i,n,e,t)}},{key:"loadUrl",value:function(e,t,n,r){var i=this;this.options.request(this.options,e,void 0,(function(o,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&o&&o.message&&o.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+o.message,!0);if(o)return t(o,!1);var s,u;try{s="string"===typeof a.data?i.options.parse(a.data,n,r):a.data}catch(c){u="failed parsing "+e+" to json"}if(u)return t(u,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,i){var o=this;if(this.options.addPath){"string"===typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,u=[],c=[];e.forEach((function(n){var r=o.options.addPath;"function"===typeof o.options.addPath&&(r=o.options.addPath(n,t));var l=o.services.interpolator.interpolate(r,{lng:n,ns:t});o.options.request(o.options,l,a,(function(t,n){s+=1,u.push(t),c.push(n),s===e.length&&i&&i(u,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};s(o),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)}))}))}))}}}])&&a(t.prototype,n),i&&a(t,i),e}();u.type="backend",t.a=u},function(e,t,n){"use strict";(function(e){var r,i,o,a=n(106),s=n(180);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"===typeof fetch&&("undefined"!==typeof e&&e.fetch?r=e.fetch:"undefined"!==typeof window&&window.fetch&&(r=window.fetch)),a.b&&("undefined"!==typeof e&&e.XMLHttpRequest?i=e.XMLHttpRequest:"undefined"!==typeof window&&window.XMLHttpRequest&&(i=window.XMLHttpRequest)),"function"===typeof ActiveXObject&&("undefined"!==typeof e&&e.ActiveXObject?o=e.ActiveXObject:"undefined"!==typeof window&&window.ActiveXObject&&(o=window.ActiveXObject)),r||!s||i||o||(r=s.default||s),"function"!==typeof r&&(r=void 0);var c=function(e,t){if(t&&"object"===u(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e};t.a=function(e,t,n,s){return"function"===typeof n&&(s=n,n=void 0),s=s||function(){},r?function(e,t,n,i){e.queryStringParams&&(t=c(t,e.queryStringParams));var o=Object(a.a)({},"function"===typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(o["Content-Type"]="application/json"),r(t,Object(a.a)({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},"function"===typeof e.requestOptions?e.requestOptions(n):e.requestOptions)).then((function(e){if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then((function(t){i(null,{status:e.status,data:t})})).catch(i)})).catch(i)}(e,t,n,s):a.b||"function"===typeof ActiveXObject?function(e,t,n,r){n&&"object"===u(n)&&(n=c("",n).slice(1)),e.queryStringParams&&(t=c(t,e.queryStringParams));try{var a;(a=i?new i:new o("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,n&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"===typeof s?s():s)for(var l in s)a.setRequestHeader(l,s[l]);a.onreadystatechange=function(){a.readyState>3&&r(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(n)}catch(f){console&&console.log(f)}}(e,t,n,s):void 0}}).call(this,n(38))},function(e,t,n){"use strict";var r=n(42),i=n(43),o=[],a=o.forEach,s=o.slice;function u(e){return a.call(s.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,l=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=e+"="+encodeURIComponent(t);if(r.maxAge>0){var o=r.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");i+="; Max-Age="+Math.floor(o)}if(r.domain){if(!c.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!c.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},f=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=l(e,encodeURIComponent(t),i)},p=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}return t}},b=null,v=function(){if(null!==b)return b;try{b="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(t){b=!1}return b},g={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&v()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&v()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},m=null,y=function(){if(null!==m)return m;try{m="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(t){m=!1}return m},k={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&y()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&y()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},w={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},E={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},x={name:"path",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof e.lookupFromPathIndex){if("string"!==typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},S={name:"subdomain",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"===typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var _=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Object(i.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=u(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(d),this.addDetector(h),this.addDetector(g),this.addDetector(k),this.addDetector(w),this.addDetector(E),this.addDetector(x),this.addDetector(S)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();_.type="languageDetector",t.a=_},function(e,t,n){var r=n(2),i=n(16),o=n(7);function a(e){return s.apply(this,arguments)}function s(){return(s=o(r.mark((function e(t){var n,s,u,c,l,f,p,d,h,b,v,g,m,y,k=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=k.length>1&&void 0!==k[1]?k[1]:{raw:!1},s=function(e){if(!a.didShowInfo&&"EncodingError"===e.name){a.didShowInfo=!0;var t="".concat(e.name," occured within datatransfer-files-promise module\n")+'Error message: "'.concat(e.message,'"\n')+"Try serving html over http if currently you are running it from the filesystem.";console.warn(t)}},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r,i){e.file((function(e){n.raw||(e.filepath=t+e.name),r(e)}),(function(e){s(e),i(e)}))}))},c=function(e,t){return new Promise((function(n,a){e.readEntries(function(){var e=o(r.mark((function e(o){var a,s,u,c,l;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],s=i(o),e.prev=2,s.s();case 4:if((u=s.n()).done){e.next=12;break}return c=u.value,e.next=8,f(c,t);case 8:l=e.sent,a=a.concat(l);case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),s.e(e.t0);case 17:return e.prev=17,s.f(),e.finish(17);case 20:n(a);case 21:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})));return function(t){return e.apply(this,arguments)}}(),(function(e){s(e),a(e)}))}))},l=function(){var e=o(r.mark((function e(t,n){var i,o,a,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.createReader(),o=n+t.name+"/",a=[];case 3:return e.next=5,c(i,o);case 5:s=e.sent,a=a.concat(s);case 7:if(s.length>0){e.next=3;break}case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=o(r.mark((function e(t){var n,i,o,a=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:"",!t.isFile){e.next=6;break}return e.next=4,u(t,n);case 4:return i=e.sent,e.abrupt("return",[i]);case 6:if(!t.isDirectory){e.next=11;break}return e.next=9,l(t,n);case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=[],d=[],h=0,b=t.length;h-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return i()?{}:{obj:e,k:r(o.shift())}}var i=[],o=i.forEach,a=i.slice;var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.backends=[],this.type="backend",this.init(t,n)}var t,n,o;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this.services=e,this.options=u(n,this.options||{},{}),this.options.backends&&this.options.backends.forEach((function(n,i){t.backends[i]=t.backends[i]||c(n),t.backends[i].init(e,t.options.backendOptions[i],r)}))}},{key:"read",value:function(e,t,n){var r=this,i=this.backends.length,o=function n(i,o){if(!(i<0)){var a=r.backends[i];a.save?(a.save(e,t,o),n(i-1,o)):n(i-1,o)}};!function a(s){if(s>=i)return n(new Error("non of the backend loaded data;",!0));var u=r.backends[s];u.read?u.read(e,t,(function(e,t){!e&&t&&Object.keys(t).length>-1?(n(null,t,s),o(s-1,t)):a(s+1)})):a(s+1)}(0)}},{key:"create",value:function(e,t,n,r){this.backends.forEach((function(i){i.create&&i.create(e,t,n,r)}))}}])&&i(t.prototype,n),o&&i(t,o),e}();l.type="backend";t.a=l},,function(e,t,n){var r=n(546),i=n(547),o=n(192),a=n(548);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";t.Diagnose=n(658),t.Decoder=n(332),t.Encoder=n(663),t.Simple=n(333),t.Tagged=n(334),t.decodeAll=t.Decoder.decodeAll,t.decodeFirst=t.Decoder.decodeFirst,t.diagnose=t.Diagnose.diagnose,t.encode=t.Encoder.encode,t.decode=t.Decoder.decode,t.leveldb={decode:t.Decoder.decodeAll,encode:t.Encoder.encode,buffer:!0,name:"cbor"}},function(e,t,n){var r=n(678);function i(e,t){for(var n in t=new r(e,t),e){var o=e[n];if(o instanceof Object&&(t.contains(o)||i(o,t)))return!0}return!1}e.exports=function(e){if(!(e instanceof Object))throw new TypeError('"obj" must be an object (or inherit from it)');return i(e)}},function(e,t,n){"use strict";e.exports=n(901)},function(e,t,n){e.exports=function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!==typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var i=new Array(r),o=1;oc&&(o=c),a>c&&(a=c),s=i,u=o;;)if(s=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t,n){"use strict";var r=n(189),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,b=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nP.length&&P.push(e)}function D(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return n(r,e,""===t?"."+j(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u