var IpldDagCbor=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){return value},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=69)}([function(module,exports,__webpack_require__){"use strict";(function(global){function typedArraySupport(){try{var arr=new Uint8Array(1);return arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===arr.foo()&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(that,length){if(kMaxLength()<length)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(that=new Uint8Array(length),that.__proto__=Buffer.prototype):(null===that&&(that=new Buffer(length)),that.length=length),that}function Buffer(arg,encodingOrOffset,length){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(arg,encodingOrOffset,length);if("number"==typeof arg){if("string"==typeof encodingOrOffset)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,arg)}return from(this,arg,encodingOrOffset,length)}function from(that,value,encodingOrOffset,length){if("number"==typeof value)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&value instanceof ArrayBuffer?fromArrayBuffer(that,value,encodingOrOffset,length):"string"==typeof value?fromString(that,value,encodingOrOffset):fromObject(that,value)}function assertSize(size){if("number"!=typeof size)throw new TypeError('"size" argument must be a number');if(size<0)throw new RangeError('"size" argument must not be negative')}function alloc(that,size,fill,encoding){return assertSize(size),size<=0?createBuffer(that,size):void 0!==fill?"string"==typeof encoding?createBuffer(that,size).fill(fill,encoding):createBuffer(that,size).fill(fill):createBuffer(that,size)}function allocUnsafe(that,size){if(assertSize(size),that=createBuffer(that,size<0?0:0|checked(size)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;i<size;++i)that[i]=0;return that}function fromString(that,string,encoding){if("string"==typeof encoding&&""!==encoding||(encoding="utf8"),!Buffer.isEncoding(encoding))throw new TypeError('"encoding" must be a valid string encoding');var length=0|byteLength(string,encoding);that=createBuffer(that,length);var actual=that.write(string,encoding);return actual!==length&&(that=that.slice(0,actual)),that}function fromArrayLike(that,array){var length=array.length<0?0:0|checked(array.length);that=createBuffer(that,length);for(var i=0;i<length;i+=1)that[i]=255&array[i];return that}function fromArrayBuffer(that,array,byteOffset,length){if(array.byteLength,byteOffset<0||array.byteLength<byteOffset)throw new RangeError("'offset' is out of bounds");if(array.byteLength<byteOffset+(length||0))throw new RangeError("'length' is out of bounds");return array=void 0===byteOffset&&void 0===length?new Uint8Array(array):void 0===length?new Uint8Array(array,byteOffset):new Uint8Array(array,byteOffset,length),Buffer.TYPED_ARRAY_SUPPORT?(that=array,that.__proto__=Buffer.prototype):that=fromArrayLike(that,array),that}function fromObject(that,obj){if(Buffer.isBuffer(obj)){var len=0|checked(obj.length);return that=createBuffer(that,len),0===that.length?that:(obj.copy(that,0,0,len),that)}if(obj){if("undefined"!=typeof ArrayBuffer&&obj.buffer instanceof ArrayBuffer||"length"in obj)return"number"!=typeof obj.length||isnan(obj.length)?createBuffer(that,0):fromArrayLike(that,obj);if("Buffer"===obj.type&&isArray(obj.data))return fromArrayLike(that,obj.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(length){if(length>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(length){return+length!=length&&(length=0),Buffer.alloc(+length)}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":case void 0:return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if((void 0===start||start<0)&&(start=0),start>this.length)return"";if((void 0===end||end>this.length)&&(end=this.length),end<=0)return"";if(end>>>=0,start>>>=0,end<=start)return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(0===buffer.length)return-1;if("string"==typeof byteOffset?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0){if(!dir)return-1;byteOffset=0}if("string"==typeof val&&(val=Buffer.from(val,encoding)),Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if("number"==typeof val)return val&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){function read(buf,i){return 1===indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=String(encoding).toLowerCase(),"ucs2"===encoding||"ucs-2"===encoding||"utf16le"===encoding||"utf-16le"===encoding)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new TypeError("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(2*i,2),16);if(isNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function latin1Write(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}function base64Slice(buf,start,end){return 0===start&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(127&buf[i]);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length;i+=2)res+=String.fromCharCode(bytes[i]+256*bytes[i+1]);return res}function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){value<0&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);i<j;++i)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){value<0&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);i<j;++i)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return n<16?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(codePoint<1114112))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(255&str.charCodeAt(i));return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isnan(val){return val!==val}var base64=__webpack_require__(27),ieee754=__webpack_require__(13),isArray=__webpack_require__(35);exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),exports.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(arr){return arr.__proto__=Buffer.prototype,arr},Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)},Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)},Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)},Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(0===list.length)return Buffer.alloc(0);var i;if(void 0===length)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!Buffer.isBuffer(buf))throw new TypeError('"list" argument must be an Array of Buffers');buf.copy(buffer,pos),pos+=buf.length}return buffer},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this},Buffer.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this},Buffer.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this},Buffer.prototype.toString=function(){var length=0|this.length;return 0===length?"":0===arguments.length?utf8Slice(this,0,length):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===Buffer.compare(this,b)},Buffer.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return this.length>0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),"<Buffer "+str+">"},Buffer.prototype.compare=function(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target))throw new TypeError("Argument must be a Buffer");if(void 0===start&&(start=0),void 0===end&&(end=target?target.length:0),void 0===thisStart&&(thisStart=0),void 0===thisEnd&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0},Buffer.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1},Buffer.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)},Buffer.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)},Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"==typeof offset)encoding=offset,length=this.length,offset=0;else{if(!isFinite(offset))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");offset|=0,isFinite(length)?(length|=0,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0)}var remaining=this.length-offset;if((void 0===length||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT)newBuf=this.subarray(start,end),newBuf.__proto__=Buffer.prototype;else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,void 0);for(var i=0;i<sliceLen;++i)newBuf[i]=this[i+start]}return newBuf},Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset|=0,byteLength|=0,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength&&(mul*=256);)val+=this[offset+i]*mul;return val},Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset|=0,byteLength|=0,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset+--byteLength],mul=1;byteLength>0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset|=0,byteLength|=0,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength&&(mul*=256);)val+=this[offset+i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset|=0,byteLength|=0,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?(255-this[offset]+1)*-1:this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,byteLength|=0,!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1,i=0;for(this[offset]=255&value;++i<byteLength&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,byteLength|=0,!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var i=byteLength-1,mul=1;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=255&value;++i<byteLength&&(mul*=256);)value<0&&0===sub&&0!==this[offset+i-1]&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)value<0&&0===sub&&0!==this[offset+i+1]&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),value<0&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end<start&&(end=start),end===start)return 0;if(0===target.length||0===this.length)return 0;if(targetStart<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=this.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);var i,len=end-start;if(this===target&&start<targetStart&&targetStart<end)for(i=len-1;i>=0;--i)target[i+targetStart]=this[i+start];else if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<len;++i)target[i+targetStart]=this[i+start];else Uint8Array.prototype.set.call(target,this.subarray(start,start+len),targetStart);return len},Buffer.prototype.fill=function(val,start,end,encoding){if("string"==typeof val){if("string"==typeof start?(encoding=start,start=0,end=this.length):"string"==typeof end&&(encoding=end,end=this.length),1===val.length){var code=val.charCodeAt(0);code<256&&(val=code)}if(void 0!==encoding&&"string"!=typeof encoding)throw new TypeError("encoding must be a string");if("string"==typeof encoding&&!Buffer.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding)}else"number"==typeof val&&(val&=255);if(start<0||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start>>>=0,end=void 0===end?this.length:end>>>0,val||(val=0);var i;if("number"==typeof val)for(i=start;i<end;++i)this[i]=val;else{var bytes=Buffer.isBuffer(val)?val:utf8ToBytes(new Buffer(val,encoding).toString()),len=bytes.length;for(i=0;i<end-start;++i)this[i+start]=bytes[i%len]}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(exports,__webpack_require__(2))},function(module,exports){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);
if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var cachedSetTimeout,cachedClearTimeout,process=module.exports={};!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(globalObj){"use strict";function constructorFactory(configObj){function BigNumber(n,b){var c,e,i,num,len,str,x=this;if(!(x instanceof BigNumber))return ERRORS&&raise(26,"constructor call without new",n),new BigNumber(n,b);if(null!=b&&isValidInt(b,2,64,id,"base")){if(b|=0,str=n+"",10==b)return x=new BigNumber(n instanceof BigNumber?n:str),round(x,DECIMAL_PLACES+x.e+1,ROUNDING_MODE);if((num="number"==typeof n)&&0*n!=0||!new RegExp("^-?"+(c="["+ALPHABET.slice(0,b)+"]+")+"(?:\\."+c+")?$",b<37?"i":"").test(str))return parseNumeric(x,str,num,b);num?(x.s=1/n<0?(str=str.slice(1),-1):1,ERRORS&&str.replace(/^0\.0*|\./,"").length>15&&raise(id,tooManyDigits,n),num=!1):x.s=45===str.charCodeAt(0)?(str=str.slice(1),-1):1,str=convertBase(str,10,b,x.s)}else{if(n instanceof BigNumber)return x.s=n.s,x.e=n.e,x.c=(n=n.c)?n.slice():n,void(id=0);if((num="number"==typeof n)&&0*n==0){if(x.s=1/n<0?(n=-n,-1):1,n===~~n){for(e=0,i=n;i>=10;i/=10,e++);return x.e=e,x.c=[n],void(id=0)}str=n+""}else{if(!isNumeric.test(str=n+""))return parseNumeric(x,str,num);x.s=45===str.charCodeAt(0)?(str=str.slice(1),-1):1}}for((e=str.indexOf("."))>-1&&(str=str.replace(".","")),(i=str.search(/e/i))>0?(e<0&&(e=i),e+=+str.slice(i+1),str=str.substring(0,i)):e<0&&(e=str.length),i=0;48===str.charCodeAt(i);i++);for(len=str.length;48===str.charCodeAt(--len););if(str=str.slice(i,len+1))if(len=str.length,num&&ERRORS&&len>15&&(n>MAX_SAFE_INTEGER||n!==mathfloor(n))&&raise(id,tooManyDigits,x.s*n),e=e-i-1,e>MAX_EXP)x.c=x.e=null;else if(e<MIN_EXP)x.c=[x.e=0];else{if(x.e=e,x.c=[],i=(e+1)%LOG_BASE,e<0&&(i+=LOG_BASE),i<len){for(i&&x.c.push(+str.slice(0,i)),len-=LOG_BASE;i<len;)x.c.push(+str.slice(i,i+=LOG_BASE));str=str.slice(i),i=LOG_BASE-str.length}else i-=len;for(;i--;str+="0");x.c.push(+str)}else x.c=[x.e=0];id=0}function convertBase(str,baseOut,baseIn,sign){var d,e,k,r,x,xc,y,i=str.indexOf("."),dp=DECIMAL_PLACES,rm=ROUNDING_MODE;for(baseIn<37&&(str=str.toLowerCase()),i>=0&&(k=POW_PRECISION,POW_PRECISION=0,str=str.replace(".",""),y=new BigNumber(baseIn),x=y.pow(str.length-i),POW_PRECISION=k,y.c=toBaseOut(toFixedPoint(coeffToString(x.c),x.e),10,baseOut),y.e=y.c.length),xc=toBaseOut(str,baseIn,baseOut),e=k=xc.length;0==xc[--k];xc.pop());if(!xc[0])return"0";if(i<0?--e:(x.c=xc,x.e=e,x.s=sign,x=div(x,y,dp,rm,baseOut),xc=x.c,r=x.r,e=x.e),d=e+dp+1,i=xc[d],k=baseOut/2,r=r||d<0||null!=xc[d+1],r=rm<4?(null!=i||r)&&(0==rm||rm==(x.s<0?3:2)):i>k||i==k&&(4==rm||r||6==rm&&1&xc[d-1]||rm==(x.s<0?8:7)),d<1||!xc[0])str=r?toFixedPoint("1",-dp):"0";else{if(xc.length=d,r)for(--baseOut;++xc[--d]>baseOut;)xc[d]=0,d||(++e,xc.unshift(1));for(k=xc.length;!xc[--k];);for(i=0,str="";i<=k;str+=ALPHABET.charAt(xc[i++]));str=toFixedPoint(str,e)}return str}function format(n,i,rm,caller){var c0,e,ne,len,str;if(rm=null!=rm&&isValidInt(rm,0,8,caller,roundingMode)?0|rm:ROUNDING_MODE,!n.c)return n.toString();if(c0=n.c[0],ne=n.e,null==i)str=coeffToString(n.c),str=19==caller||24==caller&&ne<=TO_EXP_NEG?toExponential(str,ne):toFixedPoint(str,ne);else if(n=round(new BigNumber(n),i,rm),e=n.e,str=coeffToString(n.c),len=str.length,19==caller||24==caller&&(i<=e||e<=TO_EXP_NEG)){for(;len<i;str+="0",len++);str=toExponential(str,e)}else if(i-=ne,str=toFixedPoint(str,e),e+1>len){if(--i>0)for(str+=".";i--;str+="0");}else if(i+=e-len,i>0)for(e+1==len&&(str+=".");i--;str+="0");return n.s<0&&c0?"-"+str:str}function maxOrMin(args,method){var m,n,i=0;for(isArray(args[0])&&(args=args[0]),m=new BigNumber(args[0]);++i<args.length;){if(n=new BigNumber(args[i]),!n.s){m=n;break}method.call(m,n)&&(m=n)}return m}function intValidatorWithErrors(n,min,max,caller,name){return(n<min||n>max||n!=truncate(n))&&raise(caller,(name||"decimal places")+(n<min||n>max?" out of range":" not an integer"),n),!0}function normalise(n,c,e){for(var i=1,j=c.length;!c[--j];c.pop());for(j=c[0];j>=10;j/=10,i++);return(e=i+e*LOG_BASE-1)>MAX_EXP?n.c=n.e=null:e<MIN_EXP?n.c=[n.e=0]:(n.e=e,n.c=c),n}function raise(caller,msg,val){var error=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][caller]+"() "+msg+": "+val);throw error.name="BigNumber Error",id=0,error}function round(x,sd,rm,r){var d,i,j,k,n,ni,rd,xc=x.c,pows10=POWS_TEN;if(xc){out:{for(d=1,k=xc[0];k>=10;k/=10,d++);if(i=sd-d,i<0)i+=LOG_BASE,j=sd,n=xc[ni=0],rd=n/pows10[d-j-1]%10|0;else if(ni=mathceil((i+1)/LOG_BASE),ni>=xc.length){if(!r)break out;for(;xc.length<=ni;xc.push(0));n=rd=0,d=1,i%=LOG_BASE,j=i-LOG_BASE+1}else{for(n=k=xc[ni],d=1;k>=10;k/=10,d++);i%=LOG_BASE,j=i-LOG_BASE+d,rd=j<0?0:n/pows10[d-j-1]%10|0}if(r=r||sd<0||null!=xc[ni+1]||(j<0?n:n%pows10[d-j-1]),r=rm<4?(rd||r)&&(0==rm||rm==(x.s<0?3:2)):rd>5||5==rd&&(4==rm||r||6==rm&&(i>0?j>0?n/pows10[d-j]:0:xc[ni-1])%10&1||rm==(x.s<0?8:7)),sd<1||!xc[0])return xc.length=0,r?(sd-=x.e+1,xc[0]=pows10[(LOG_BASE-sd%LOG_BASE)%LOG_BASE],x.e=-sd||0):xc[0]=x.e=0,x;if(0==i?(xc.length=ni,k=1,ni--):(xc.length=ni+1,k=pows10[LOG_BASE-i],xc[ni]=j>0?mathfloor(n/pows10[d-j]%pows10[j])*k:0),r)for(;;){if(0==ni){for(i=1,j=xc[0];j>=10;j/=10,i++);for(j=xc[0]+=k,k=1;j>=10;j/=10,k++);i!=k&&(x.e++,xc[0]==BASE&&(xc[0]=1));break}if(xc[ni]+=k,xc[ni]!=BASE)break;xc[ni--]=0,k=1}for(i=xc.length;0===xc[--i];xc.pop());}x.e>MAX_EXP?x.c=x.e=null:x.e<MIN_EXP&&(x.c=[x.e=0])}return x}var div,id=0,P=BigNumber.prototype,ONE=new BigNumber(1),DECIMAL_PLACES=20,ROUNDING_MODE=4,TO_EXP_NEG=-7,TO_EXP_POS=21,MIN_EXP=-1e7,MAX_EXP=1e7,ERRORS=!0,isValidInt=intValidatorWithErrors,CRYPTO=!1,MODULO_MODE=1,POW_PRECISION=0,FORMAT={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return BigNumber.another=constructorFactory,BigNumber.ROUND_UP=0,BigNumber.ROUND_DOWN=1,BigNumber.ROUND_CEIL=2,BigNumber.ROUND_FLOOR=3,BigNumber.ROUND_HALF_UP=4,BigNumber.ROUND_HALF_DOWN=5,BigNumber.ROUND_HALF_EVEN=6,BigNumber.ROUND_HALF_CEIL=7,BigNumber.ROUND_HALF_FLOOR=8,BigNumber.EUCLID=9,BigNumber.config=BigNumber.set=function(){var v,p,i=0,r={},a=arguments,o=a[0],has=o&&"object"==typeof o?function(){if(o.hasOwnProperty(p))return null!=(v=o[p])}:function(){if(a.length>i)return null!=(v=a[i++])};return has(p="DECIMAL_PLACES")&&isValidInt(v,0,MAX,2,p)&&(DECIMAL_PLACES=0|v),r[p]=DECIMAL_PLACES,has(p="ROUNDING_MODE")&&isValidInt(v,0,8,2,p)&&(ROUNDING_MODE=0|v),r[p]=ROUNDING_MODE,has(p="EXPONENTIAL_AT")&&(isArray(v)?isValidInt(v[0],-MAX,0,2,p)&&isValidInt(v[1],0,MAX,2,p)&&(TO_EXP_NEG=0|v[0],TO_EXP_POS=0|v[1]):isValidInt(v,-MAX,MAX,2,p)&&(TO_EXP_NEG=-(TO_EXP_POS=0|(v<0?-v:v)))),r[p]=[TO_EXP_NEG,TO_EXP_POS],has(p="RANGE")&&(isArray(v)?isValidInt(v[0],-MAX,-1,2,p)&&isValidInt(v[1],1,MAX,2,p)&&(MIN_EXP=0|v[0],MAX_EXP=0|v[1]):isValidInt(v,-MAX,MAX,2,p)&&(0|v?MIN_EXP=-(MAX_EXP=0|(v<0?-v:v)):ERRORS&&raise(2,p+" cannot be zero",v))),r[p]=[MIN_EXP,MAX_EXP],has(p="ERRORS")&&(v===!!v||1===v||0===v?(id=0,isValidInt=(ERRORS=!!v)?intValidatorWithErrors:intValidatorNoErrors):ERRORS&&raise(2,p+notBool,v)),r[p]=ERRORS,has(p="CRYPTO")&&(v===!0||v===!1||1===v||0===v?v?(v="undefined"==typeof crypto,!v&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?CRYPTO=!0:ERRORS?raise(2,"crypto unavailable",v?void 0:crypto):CRYPTO=!1):CRYPTO=!1:ERRORS&&raise(2,p+notBool,v)),r[p]=CRYPTO,has(p="MODULO_MODE")&&isValidInt(v,0,9,2,p)&&(MODULO_MODE=0|v),r[p]=MODULO_MODE,has(p="POW_PRECISION")&&isValidInt(v,0,MAX,2,p)&&(POW_PRECISION=0|v),r[p]=POW_PRECISION,has(p="FORMAT")&&("object"==typeof v?FORMAT=v:ERRORS&&raise(2,p+" not an object",v)),r[p]=FORMAT,r},BigNumber.max=function(){return maxOrMin(arguments,P.lt)},BigNumber.min=function(){return maxOrMin(arguments,P.gt)},BigNumber.random=function(){var pow2_53=9007199254740992,random53bitInt=Math.random()*pow2_53&2097151?function(){return mathfloor(Math.random()*pow2_53)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(dp){var a,b,e,k,v,i=0,c=[],rand=new BigNumber(ONE);if(dp=null!=dp&&isValidInt(dp,0,MAX,14)?0|dp:DECIMAL_PLACES,k=mathceil(dp/LOG_BASE),CRYPTO)if(crypto.getRandomValues){for(a=crypto.getRandomValues(new Uint32Array(k*=2));i<k;)v=131072*a[i]+(a[i+1]>>>11),v>=9e15?(b=crypto.getRandomValues(new Uint32Array(2)),a[i]=b[0],a[i+1]=b[1]):(c.push(v%1e14),i+=2);i=k/2}else if(crypto.randomBytes){for(a=crypto.randomBytes(k*=7);i<k;)v=281474976710656*(31&a[i])+1099511627776*a[i+1]+4294967296*a[i+2]+16777216*a[i+3]+(a[i+4]<<16)+(a[i+5]<<8)+a[i+6],v>=9e15?crypto.randomBytes(7).copy(a,i):(c.push(v%1e14),i+=7);i=k/7}else CRYPTO=!1,ERRORS&&raise(14,"crypto unavailable",crypto);if(!CRYPTO)for(;i<k;)v=random53bitInt(),v<9e15&&(c[i++]=v%1e14);for(k=c[--i],dp%=LOG_BASE,k&&dp&&(v=POWS_TEN[LOG_BASE-dp],c[i]=mathfloor(k/v)*v);0===c[i];c.pop(),i--);if(i<0)c=[e=0];else{for(e=-1;0===c[0];c.shift(),e-=LOG_BASE);for(i=1,v=c[0];v>=10;v/=10,i++);i<LOG_BASE&&(e-=LOG_BASE-i)}return rand.e=e,rand.c=c,rand}}(),div=function(){function multiply(x,k,base){var m,temp,xlo,xhi,carry=0,i=x.length,klo=k%SQRT_BASE,khi=k/SQRT_BASE|0;for(x=x.slice();i--;)xlo=x[i]%SQRT_BASE,xhi=x[i]/SQRT_BASE|0,m=khi*xlo+xhi*klo,temp=klo*xlo+m%SQRT_BASE*SQRT_BASE+carry,carry=(temp/base|0)+(m/SQRT_BASE|0)+khi*xhi,x[i]=temp%base;return carry&&x.unshift(carry),x}function compare(a,b,aL,bL){var i,cmp;if(aL!=bL)cmp=aL>bL?1:-1;else for(i=cmp=0;i<aL;i++)if(a[i]!=b[i]){cmp=a[i]>b[i]?1:-1;break}return cmp}function subtract(a,b,aL,base){for(var i=0;aL--;)a[aL]-=i,i=a[aL]<b[aL]?1:0,a[aL]=i*base+a[aL]-b[aL];for(;!a[0]&&a.length>1;a.shift());}return function(x,y,dp,rm,base){var cmp,e,i,more,n,prod,prodL,q,qc,rem,remL,rem0,xi,xL,yc0,yL,yz,s=x.s==y.s?1:-1,xc=x.c,yc=y.c;if(!(xc&&xc[0]&&yc&&yc[0]))return new BigNumber(x.s&&y.s&&(xc?!yc||xc[0]!=yc[0]:yc)?xc&&0==xc[0]||!yc?0*s:s/0:NaN);for(q=new BigNumber(s),qc=q.c=[],e=x.e-y.e,s=dp+e+1,base||(base=BASE,e=bitFloor(x.e/LOG_BASE)-bitFloor(y.e/LOG_BASE),s=s/LOG_BASE|0),i=0;yc[i]==(xc[i]||0);i++);if(yc[i]>(xc[i]||0)&&e--,s<0)qc.push(1),more=!0;else{for(xL=xc.length,yL=yc.length,i=0,s+=2,n=mathfloor(base/(yc[0]+1)),n>1&&(yc=multiply(yc,n,base),xc=multiply(xc,n,base),yL=yc.length,xL=xc.length),xi=yL,rem=xc.slice(0,yL),remL=rem.length;remL<yL;rem[remL++]=0);yz=yc.slice(),yz.unshift(0),yc0=yc[0],yc[1]>=base/2&&yc0++;do{if(n=0,cmp=compare(yc,rem,yL,remL),cmp<0){if(rem0=rem[0],yL!=remL&&(rem0=rem0*base+(rem[1]||0)),n=mathfloor(rem0/yc0),n>1)for(n>=base&&(n=base-1),prod=multiply(yc,n,base),prodL=prod.length,remL=rem.length;1==compare(prod,rem,prodL,remL);)n--,subtract(prod,yL<prodL?yz:yc,prodL,base),prodL=prod.length,cmp=1;else 0==n&&(cmp=n=1),prod=yc.slice(),prodL=prod.length;if(prodL<remL&&prod.unshift(0),subtract(rem,prod,remL,base),remL=rem.length,cmp==-1)for(;compare(yc,rem,yL,remL)<1;)n++,subtract(rem,yL<remL?yz:yc,remL,base),remL=rem.length}else 0===cmp&&(n++,rem=[0]);qc[i++]=n,rem[0]?rem[remL++]=xc[xi]||0:(rem=[xc[xi]],remL=1)}while((xi++<xL||null!=rem[0])&&s--);more=null!=rem[0],qc[0]||qc.shift()}if(base==BASE){for(i=1,s=qc[0];s>=10;s/=10,i++);round(q,dp+(q.e=i+e*LOG_BASE-1)+1,rm,more)}else q.e=e,q.r=+more;return q}}(),parseNumeric=function(){var basePrefix=/^(-?)0([xbo])(?=\w[\w.]*$)/i,dotAfter=/^([^.]+)\.$/,dotBefore=/^\.([^.]+)$/,isInfinityOrNaN=/^-?(Infinity|NaN)$/,whitespaceOrPlus=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(x,str,num,b){var base,s=num?str:str.replace(whitespaceOrPlus,"");if(isInfinityOrNaN.test(s))x.s=isNaN(s)?null:s<0?-1:1;else{if(!num&&(s=s.replace(basePrefix,function(m,p1,p2){return base="x"==(p2=p2.toLowerCase())?16:"b"==p2?2:8,b&&b!=base?m:p1}),b&&(base=b,s=s.replace(dotAfter,"$1").replace(dotBefore,"0.$1")),str!=s))return new BigNumber(s,base);ERRORS&&raise(id,"not a"+(b?" base "+b:"")+" number",str),x.s=null}x.c=x.e=null,id=0}}(),P.absoluteValue=P.abs=function(){var x=new BigNumber(this);return x.s<0&&(x.s=1),x},P.ceil=function(){return round(new BigNumber(this),this.e+1,2)},P.comparedTo=P.cmp=function(y,b){return id=1,compare(this,new BigNumber(y,b))},P.decimalPlaces=P.dp=function(){var n,v,c=this.c;if(!c)return null;if(n=((v=c.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,v=c[v])for(;v%10==0;v/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(y,b){return id=3,div(this,new BigNumber(y,b),DECIMAL_PLACES,ROUNDING_MODE)},P.dividedToIntegerBy=P.divToInt=function(y,b){return id=4,div(this,new BigNumber(y,b),0,1)},P.equals=P.eq=function(y,b){return id=5,0===compare(this,new BigNumber(y,b))},P.floor=function(){return round(new BigNumber(this),this.e+1,3)},P.greaterThan=P.gt=function(y,b){return id=6,compare(this,new BigNumber(y,b))>0},P.greaterThanOrEqualTo=P.gte=function(y,b){return id=7,1===(b=compare(this,new BigNumber(y,b)))||0===b},P.isFinite=function(){return!!this.c},P.isInteger=P.isInt=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.lessThan=P.lt=function(y,b){return id=8,compare(this,new BigNumber(y,b))<0},P.lessThanOrEqualTo=P.lte=function(y,b){return id=9,(b=compare(this,new BigNumber(y,b)))===-1||0===b},P.minus=P.sub=function(y,b){var i,j,t,xLTy,x=this,a=x.s;if(id=10,y=new BigNumber(y,b),b=y.s,!a||!b)return new BigNumber(NaN);if(a!=b)return y.s=-b,x.plus(y);var xe=x.e/LOG_BASE,ye=y.e/LOG_BASE,xc=x.c,yc=y.c;if(!xe||!ye){if(!xc||!yc)return xc?(y.s=-b,y):new BigNumber(yc?x:NaN);if(!xc[0]||!yc[0])return yc[0]?(y.s=-b,y):new BigNumber(xc[0]?x:3==ROUNDING_MODE?-0:0)}if(xe=bitFloor(xe),ye=bitFloor(ye),xc=xc.slice(),a=xe-ye){for((xLTy=a<0)?(a=-a,t=xc):(ye=xe,t=yc),t.reverse(),b=a;b--;t.push(0));t.reverse()}else for(j=(xLTy=(a=xc.length)<(b=yc.length))?a:b,a=b=0;b<j;b++)if(xc[b]!=yc[b]){xLTy=xc[b]<yc[b];break}if(xLTy&&(t=xc,xc=yc,yc=t,y.s=-y.s),b=(j=yc.length)-(i=xc.length),b>0)for(;b--;xc[i++]=0);for(b=BASE-1;j>a;){if(xc[--j]<yc[j]){for(i=j;i&&!xc[--i];xc[i]=b);--xc[i],xc[j]+=BASE}xc[j]-=yc[j]}for(;0==xc[0];xc.shift(),--ye);return xc[0]?normalise(y,xc,ye):(y.s=3==ROUNDING_MODE?-1:1,y.c=[y.e=0],y)},P.modulo=P.mod=function(y,b){var q,s,x=this;return id=11,y=new BigNumber(y,b),!x.c||!y.s||y.c&&!y.c[0]?new BigNumber(NaN):!y.c||x.c&&!x.c[0]?new BigNumber(x):(9==MODULO_MODE?(s=y.s,y.s=1,q=div(x,y,0,3),y.s=s,q.s*=s):q=div(x,y,0,MODULO_MODE),x.minus(q.times(y)))},P.negated=P.neg=function(){var x=new BigNumber(this);return x.s=-x.s||null,x},P.plus=P.add=function(y,b){var t,x=this,a=x.s;if(id=12,y=new BigNumber(y,b),b=y.s,!a||!b)return new BigNumber(NaN);if(a!=b)return y.s=-b,x.minus(y);var xe=x.e/LOG_BASE,ye=y.e/LOG_BASE,xc=x.c,yc=y.c;if(!xe||!ye){if(!xc||!yc)return new BigNumber(a/0);if(!xc[0]||!yc[0])return yc[0]?y:new BigNumber(xc[0]?x:0*a)}if(xe=bitFloor(xe),ye=bitFloor(ye),xc=xc.slice(),a=xe-ye){for(a>0?(ye=xe,t=yc):(a=-a,t=xc),t.reverse();a--;t.push(0));t.reverse()}for(a=xc.length,b=yc.length,a-b<0&&(t=yc,yc=xc,xc=t,b=a),a=0;b;)a=(xc[--b]=xc[b]+yc[b]+a)/BASE|0,xc[b]=BASE===xc[b]?0:xc[b]%BASE;return a&&(xc.unshift(a),++ye),normalise(y,xc,ye)},P.precision=P.sd=function(z){var n,v,x=this,c=x.c;if(null!=z&&z!==!!z&&1!==z&&0!==z&&(ERRORS&&raise(13,"argument"+notBool,z),z!=!!z&&(z=null)),!c)return null;if(v=c.length-1,n=v*LOG_BASE+1,v=c[v]){for(;v%10==0;v/=10,n--);for(v=c[0];v>=10;v/=10,n++);}return z&&x.e+1>n&&(n=x.e+1),n},P.round=function(dp,rm){var n=new BigNumber(this);return(null==dp||isValidInt(dp,0,MAX,15))&&round(n,~~dp+this.e+1,null!=rm&&isValidInt(rm,0,8,15,roundingMode)?0|rm:ROUNDING_MODE),n},P.shift=function(k){var n=this;return isValidInt(k,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER,16,"argument")?n.times("1e"+truncate(k)):new BigNumber(n.c&&n.c[0]&&(k<-MAX_SAFE_INTEGER||k>MAX_SAFE_INTEGER)?n.s*(k<0?0:1/0):n)},P.squareRoot=P.sqrt=function(){var m,n,r,rep,t,x=this,c=x.c,s=x.s,e=x.e,dp=DECIMAL_PLACES+4,half=new BigNumber("0.5");if(1!==s||!c||!c[0])return new BigNumber(!s||s<0&&(!c||c[0])?NaN:c?x:1/0);if(s=Math.sqrt(+x),0==s||s==1/0?(n=coeffToString(c),(n.length+e)%2==0&&(n+="0"),s=Math.sqrt(n),e=bitFloor((e+1)/2)-(e<0||e%2),s==1/0?n="1e"+e:(n=s.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new BigNumber(n)):r=new BigNumber(s+""),r.c[0])for(e=r.e,s=e+dp,s<3&&(s=0);;)if(t=r,r=half.times(t.plus(div(x,t,dp,1))),coeffToString(t.c).slice(0,s)===(n=coeffToString(r.c)).slice(0,s)){if(r.e<e&&--s,n=n.slice(s-3,s+1),"9999"!=n&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(round(r,r.e+DECIMAL_PLACES+2,1),m=!r.times(r).eq(x));break}if(!rep&&(round(t,t.e+DECIMAL_PLACES+2,0),t.times(t).eq(x))){r=t;break}dp+=4,s+=4,rep=1}return round(r,r.e+DECIMAL_PLACES+1,ROUNDING_MODE,m)},P.times=P.mul=function(y,b){var c,e,i,j,k,m,xcL,xlo,xhi,ycL,ylo,yhi,zc,base,sqrtBase,x=this,xc=x.c,yc=(id=17,y=new BigNumber(y,b)).c;if(!(xc&&yc&&xc[0]&&yc[0]))return!x.s||!y.s||xc&&!xc[0]&&!yc||yc&&!yc[0]&&!xc?y.c=y.e=y.s=null:(y.s*=x.s,xc&&yc?(y.c=[0],y.e=0):y.c=y.e=null),y;for(e=bitFloor(x.e/LOG_BASE)+bitFloor(y.e/LOG_BASE),y.s*=x.s,xcL=xc.length,ycL=yc.length,xcL<ycL&&(zc=xc,xc=yc,yc=zc,i=xcL,xcL=ycL,ycL=i),i=xcL+ycL,zc=[];i--;zc.push(0));for(base=BASE,sqrtBase=SQRT_BASE,i=ycL;--i>=0;){for(c=0,ylo=yc[i]%sqrtBase,yhi=yc[i]/sqrtBase|0,k=xcL,j=i+k;j>i;)xlo=xc[--k]%sqrtBase,xhi=xc[k]/sqrtBase|0,m=yhi*xlo+xhi*ylo,xlo=ylo*xlo+m%sqrtBase*sqrtBase+zc[j]+c,c=(xlo/base|0)+(m/sqrtBase|0)+yhi*xhi,zc[j--]=xlo%base;zc[j]=c}return c?++e:zc.shift(),normalise(y,zc,e)},P.toDigits=function(sd,rm){var n=new BigNumber(this);return sd=null!=sd&&isValidInt(sd,1,MAX,18,"precision")?0|sd:null,rm=null!=rm&&isValidInt(rm,0,8,18,roundingMode)?0|rm:ROUNDING_MODE,sd?round(n,sd,rm):n},P.toExponential=function(dp,rm){return format(this,null!=dp&&isValidInt(dp,0,MAX,19)?~~dp+1:null,rm,19)},P.toFixed=function(dp,rm){return format(this,null!=dp&&isValidInt(dp,0,MAX,20)?~~dp+this.e+1:null,rm,20)},P.toFormat=function(dp,rm){var str=format(this,null!=dp&&isValidInt(dp,0,MAX,21)?~~dp+this.e+1:null,rm,21);if(this.c){var i,arr=str.split("."),g1=+FORMAT.groupSize,g2=+FORMAT.secondaryGroupSize,groupSeparator=FORMAT.groupSeparator,intPart=arr[0],fractionPart=arr[1],isNeg=this.s<0,intDigits=isNeg?intPart.slice(1):intPart,len=intDigits.length;if(g2&&(i=g1,g1=g2,g2=i,len-=i),g1>0&&len>0){for(i=len%g1||g1,intPart=intDigits.substr(0,i);i<len;i+=g1)intPart+=groupSeparator+intDigits.substr(i,g1);g2>0&&(intPart+=groupSeparator+intDigits.slice(i)),isNeg&&(intPart="-"+intPart)}str=fractionPart?intPart+FORMAT.decimalSeparator+((g2=+FORMAT.fractionGroupSize)?fractionPart.replace(new RegExp("\\d{"+g2+"}\\B","g"),"$&"+FORMAT.fractionGroupSeparator):fractionPart):intPart}return str},P.toFraction=function(md){var arr,d0,d2,e,exp,n,n0,q,s,k=ERRORS,x=this,xc=x.c,d=new BigNumber(ONE),n1=d0=new BigNumber(ONE),d1=n0=new BigNumber(ONE);if(null!=md&&(ERRORS=!1,n=new BigNumber(md),ERRORS=k,(k=n.isInt())&&!n.lt(ONE)||(ERRORS&&raise(22,"max denominator "+(k?"out of range":"not an integer"),md),md=!k&&n.c&&round(n,n.e+1,1).gte(ONE)?n:null)),!xc)return x.toString();for(s=coeffToString(xc),e=d.e=s.length-x.e-1,d.c[0]=POWS_TEN[(exp=e%LOG_BASE)<0?LOG_BASE+exp:exp],md=!md||n.cmp(d)>0?e>0?d:n1:n,exp=MAX_EXP,MAX_EXP=1/0,n=new BigNumber(s),n0.c[0]=0;q=div(n,d,0,1),d2=d0.plus(q.times(d1)),1!=d2.cmp(md);)d0=d1,d1=d2,n1=n0.plus(q.times(d2=n1)),n0=d2,d=n.minus(q.times(d2=d)),n=d2;return d2=div(md.minus(d0),d1,0,1),n0=n0.plus(d2.times(n1)),d0=d0.plus(d2.times(d1)),n0.s=n1.s=x.s,e*=2,arr=div(n1,d1,e,ROUNDING_MODE).minus(x).abs().cmp(div(n0,d0,e,ROUNDING_MODE).minus(x).abs())<1?[n1.toString(),d1.toString()]:[n0.toString(),d0.toString()],MAX_EXP=exp,arr},P.toNumber=function(){return+this},P.toPower=P.pow=function(n,m){var k,y,z,i=mathfloor(n<0?-n:+n),x=this;if(null!=m&&(id=23,m=new BigNumber(m)),!isValidInt(n,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER,23,"exponent")&&(!isFinite(n)||i>MAX_SAFE_INTEGER&&(n/=0)||parseFloat(n)!=n&&!(n=NaN))||0==n)return k=Math.pow(+x,n),new BigNumber(m?k%m:k);for(m?n>1&&x.gt(ONE)&&x.isInt()&&m.gt(ONE)&&m.isInt()?x=x.mod(m):(z=m,m=null):POW_PRECISION&&(k=mathceil(POW_PRECISION/LOG_BASE+2)),y=new BigNumber(ONE);;){if(i%2){if(y=y.times(x),!y.c)break;k?y.c.length>k&&(y.c.length=k):m&&(y=y.mod(m))}if(i=mathfloor(i/2),!i)break;x=x.times(x),k?x.c&&x.c.length>k&&(x.c.length=k):m&&(x=x.mod(m))}return m?y:(n<0&&(y=ONE.div(y)),z?y.mod(z):k?round(y,POW_PRECISION,ROUNDING_MODE):y)},P.toPrecision=function(sd,rm){return format(this,null!=sd&&isValidInt(sd,1,MAX,24,"precision")?0|sd:null,rm,24)},P.toString=function(b){var str,n=this,s=n.s,e=n.e;return null===e?s?(str="Infinity",s<0&&(str="-"+str)):str="NaN":(str=coeffToString(n.c),str=null!=b&&isValidInt(b,2,64,25,"base")?convertBase(toFixedPoint(str,e),0|b,10,s):e<=TO_EXP_NEG||e>=TO_EXP_POS?toExponential(str,e):toFixedPoint(str,e),s<0&&n.c[0]&&(str="-"+str)),str},P.truncated=P.trunc=function(){return round(new BigNumber(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var str,n=this,e=n.e;return null===e?n.toString():(str=coeffToString(n.c),str=e<=TO_EXP_NEG||e>=TO_EXP_POS?toExponential(str,e):toFixedPoint(str,e),n.s<0?"-"+str:str)},null!=configObj&&BigNumber.config(configObj),BigNumber}function bitFloor(n){var i=0|n;return n>0||n===i?i:i-1}function coeffToString(a){for(var s,z,i=1,j=a.length,r=a[0]+"";i<j;){for(s=a[i++]+"",z=LOG_BASE-s.length;z--;s="0"+s);r+=s}for(j=r.length;48===r.charCodeAt(--j););return r.slice(0,j+1||1)}function compare(x,y){var a,b,xc=x.c,yc=y.c,i=x.s,j=y.s,k=x.e,l=y.e;if(!i||!j)return null;if(a=xc&&!xc[0],b=yc&&!yc[0],a||b)return a?b?0:-j:i;if(i!=j)return i;if(a=i<0,b=k==l,!xc||!yc)return b?0:!xc^a?1:-1;if(!b)return k>l^a?1:-1;for(j=(k=xc.length)<(l=yc.length)?k:l,i=0;i<j;i++)if(xc[i]!=yc[i])return xc[i]>yc[i]^a?1:-1;return k==l?0:k>l^a?1:-1}function intValidatorNoErrors(n,min,max){return(n=truncate(n))>=min&&n<=max}function isArray(obj){return"[object Array]"==Object.prototype.toString.call(obj)}function toBaseOut(str,baseIn,baseOut){for(var j,arrL,arr=[0],i=0,len=str.length;i<len;){for(arrL=arr.length;arrL--;arr[arrL]*=baseIn);for(arr[j=0]+=ALPHABET.indexOf(str.charAt(i++));j<arr.length;j++)arr[j]>baseOut-1&&(null==arr[j+1]&&(arr[j+1]=0),arr[j+1]+=arr[j]/baseOut|0,arr[j]%=baseOut)}return arr.reverse()}function toExponential(str,e){return(str.length>1?str.charAt(0)+"."+str.slice(1):str)+(e<0?"e":"e+")+e}function toFixedPoint(str,e){var len,z;if(e<0){for(z="0.";++e;z+="0");str=z+str}else if(len=str.length,++e>len){for(z="0",e-=len;--e;z+="0");str+=z}else e<len&&(str=str.slice(0,e)+"."+str.slice(e));return str}function truncate(n){return n=parseFloat(n),n<0?mathceil(n):mathfloor(n)}var BigNumber,parseNumeric,isNumeric=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,notBool=" not a boolean or binary digit",roundingMode="rounding mode",tooManyDigits="number type has more than 15 significant digits",ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;BigNumber=constructorFactory(),BigNumber.default=BigNumber.BigNumber=BigNumber,__WEBPACK_AMD_DEFINE_RESULT__=function(){return BigNumber}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this)},function(module,exports,__webpack_require__){"use strict";const Bignumber=__webpack_require__(3);exports.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},exports.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},exports.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},exports.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},exports.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},exports.SHIFT32=Math.pow(2,32),exports.SHIFT16=Math.pow(2,16),exports.MAX_SAFE_HIGH=2097151,exports.NEG_ONE=new Bignumber(-1),exports.TEN=new Bignumber(10),exports.TWO=new Bignumber(2),exports.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function toHex(n){return n<16?"0"+n.toString(16):n.toString(16)}const Bignumber=__webpack_require__(3),constants=__webpack_require__(4),SHIFT32=constants.SHIFT32,SHIFT16=constants.SHIFT16;exports.parseHalf=function(buf){var exp,mant,sign;return sign=128&buf[0]?-1:1,exp=(124&buf[0])>>2,mant=(3&buf[0])<<8|buf[1],exp?31===exp?sign*(mant?NaN:Infinity):sign*Math.pow(2,exp-25)*(1024+mant):5.960464477539063e-8*sign*mant},exports.arrayBufferToBignumber=function(buf){const len=buf.byteLength;let res="";for(let i=0;i<len;i++)res+=toHex(buf[i]);return new Bignumber(res,16)},exports.buildMap=(obj=>{const res=new Map,keys=Object.keys(obj),length=keys.length;for(let i=0;i<length;i++)res.set(keys[i],obj[keys[i]]);return res}),exports.buildInt32=((f,g)=>{return f*SHIFT16+g}),exports.buildInt64=((f1,f2,g1,g2)=>{const f=exports.buildInt32(f1,f2),g=exports.buildInt32(g1,g2);return f>2097151?new Bignumber(f).times(SHIFT32).plus(g):f*SHIFT32+g}),exports.writeHalf=function(buf,half){const u32=new Buffer(4);u32.writeFloatBE(half,0);const u=u32.readUInt32BE(0);if(0!==(8191&u))return!1;var s16=u>>16&32768;const exp=u>>23&255,mant=8388607&u;if(exp>=113&&exp<=142)s16+=(exp-112<<10)+(mant>>13);else{if(!(exp>=103&&exp<113))return!1;if(mant&(1<<126-exp)-1)return!1;s16+=mant+8388608>>126-exp}return buf.writeUInt16BE(s16,0),!0},exports.keySorter=function(a,b){var lenA=a[0].byteLength,lenB=b[0].byteLength;return lenA>lenB?1:lenB>lenA?-1:a[0].compare(b[0])},exports.isNegativeZero=(x=>{return 0===x&&1/x<0}),exports.nextPowerOf2=(n=>{let count=0;if(n&&!(n&n-1))return n;for(;0!==n;)n>>=1,count+=1;return 1<<count})}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){exports=module.exports,exports.raw=new Buffer("00","hex"),exports.base1=new Buffer("01","hex"),exports.base2=new Buffer("55","hex"),exports.base8=new Buffer("07","hex"),exports.base10=new Buffer("09","hex"),exports.protobuf=new Buffer("50","hex"),exports.cbor=new Buffer("51","hex"),exports.rlp=new Buffer("60","hex"),exports.multicodec=new Buffer("30","hex"),exports.multihash=new Buffer("31","hex"),exports.multiaddr=new Buffer("32","hex"),exports.multibase=new Buffer("33","hex"),exports.sha1=new Buffer("11","hex"),exports["sha2-256"]=new Buffer("12","hex"),exports["sha2-512"]=new Buffer("13","hex"),exports["sha3-224"]=new Buffer("17","hex"),exports["sha3-256"]=new Buffer("16","hex"),exports["sha3-384"]=new Buffer("15","hex"),exports["sha3-512"]=new Buffer("14","hex"),exports["shake-128"]=new Buffer("18","hex"),exports["shake-256"]=new Buffer("19","hex"),exports["keccak-224"]=new Buffer("1a","hex"),exports["keccak-256"]=new Buffer("1b","hex"),exports["keccak-384"]=new Buffer("1c","hex"),exports["keccak-512"]=new Buffer("1d","hex"),exports.blake2b=new Buffer("40","hex"),exports.blake2s=new Buffer("41","hex"),exports.ip4=new Buffer("04","hex"),exports.ip6=new Buffer("29","hex"),exports.tcp=new Buffer("06","hex"),exports.udp=new Buffer("0111","hex"),exports.dccp=new Buffer("21","hex"),exports.sctp=new Buffer("84","hex"),exports.udt=new Buffer("012d","hex"),exports.utp=new Buffer("012e","hex"),exports.ipfs=new Buffer("2a","hex"),exports.http=new Buffer("01e0","hex"),exports.https=new Buffer("01bb","hex"),exports.ws=new Buffer("01dd","hex"),exports.onion=new Buffer("01bc","hex"),exports["dag-pb"]=new Buffer("70","hex"),exports["dag-cbor"]=new Buffer("71","hex"),exports["eth-block"]=new Buffer("90","hex"),exports["eth-block-list"]=new Buffer("91","hex"),exports["eth-tx-trie"]=new Buffer("92","hex"),exports["eth-tx"]=new Buffer("93","hex"),exports["eth-tx-receipt-trie"]=new Buffer("94","hex"),exports["eth-tx-receipt"]=new Buffer("95","hex"),exports["eth-state-trie"]=new Buffer("96","hex"),exports["eth-account-snapshot"]=new Buffer("97","hex"),exports["eth-storage-trie"]=new Buffer("98","hex"),exports["bitcoin-block"]=new Buffer("b0","hex"),exports["bitcoin-tx"]=new Buffer("b1","hex"),exports["stellar-block"]=new Buffer("d0","hex"),exports["stellar-tx"]=new Buffer("d1","hex")}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function validate(multihash){if(!Buffer.isBuffer(multihash))throw new Error("multihash must be a Buffer");if(multihash.length<3)throw new Error("multihash too short. must be > 3 bytes.");if(multihash.length>129)throw new Error("multihash too long. must be < 129 bytes.");let code=multihash[0];if(!exports.isValidCode(code))throw new Error(`multihash unknown function code: 0x${code.toString(16)}`);if(multihash.slice(2).length!==multihash[1])throw new Error(`multihash length inconsistent: 0x${multihash.toString("hex")}`)}const bs58=__webpack_require__(32),cs=__webpack_require__(48);exports.toHexString=function(hash){if(!Buffer.isBuffer(hash))throw new Error("must be passed a buffer");return hash.toString("hex")},exports.fromHexString=function(hash){return new Buffer(hash,"hex")},exports.toB58String=function(hash){if(!Buffer.isBuffer(hash))throw new Error("must be passed a buffer");return bs58.encode(hash)},exports.fromB58String=function(hash){let encoded=hash;return Buffer.isBuffer(hash)&&(encoded=hash.toString()),new Buffer(bs58.decode(encoded))},exports.decode=function(buf){exports.validate(buf);const code=buf[0];return{code:code,name:cs.codes[code],length:buf[1],digest:buf.slice(2)}},exports.encode=function(digest,code,length){if(!digest||!code)throw new Error("multihash encode requires at least two args: digest, code");const hashfn=exports.coerceCode(code);
if(!Buffer.isBuffer(digest))throw new Error("digest should be a Buffer");if(null==length&&(length=digest.length),length&&digest.length!==length)throw new Error("digest length should be equal to specified length.");if(length>127)throw new Error("multihash does not yet support digest lengths greater than 127 bytes.");return Buffer.concat([new Buffer([hashfn,length]),digest])},exports.coerceCode=function(name){let code=name;if("string"==typeof name){if(!cs.names[name])throw new Error(`Unrecognized hash function named: ${name}`);code=cs.names[name]}if("number"!=typeof code)throw new Error(`Hash function code should be a number. Got: ${code}`);if(!cs.codes[code]&&!exports.isAppCode(code))throw new Error(`Unrecognized function code: ${code}`);return code},exports.isAppCode=function(code){return code>0&&code<16},exports.isValidCode=function(code){return!!exports.isAppCode(code)||!!cs.codes[code]},exports.validate=validate,exports.prefix=function(multihash){return validate(multihash),multihash.slice(0,2)}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function rest(func,start){return(0,_overRest3.default)(func,start,_identity2.default)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=rest;var _overRest2=__webpack_require__(38),_overRest3=_interopRequireDefault(_overRest2),_identity=__webpack_require__(39),_identity2=_interopRequireDefault(_identity);module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _setImmediate=__webpack_require__(24),_setImmediate2=_interopRequireDefault(_setImmediate);exports.default=_setImmediate2.default,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";(function(global,Buffer){const ieee754=__webpack_require__(13),Bignumber=__webpack_require__(3),parser=__webpack_require__(28),utils=__webpack_require__(5),c=__webpack_require__(4),Simple=__webpack_require__(11),Tagged=__webpack_require__(12),url=__webpack_require__(17);class Decoder{constructor(opts){opts=opts||{},!opts.size||opts.size<65536?opts.size=65536:opts.size=utils.nextPowerOf2(opts.size),this._heap=new ArrayBuffer(opts.size),this._heap8=new Uint8Array(this._heap),this._reset(),this._knownTags=Object.assign({0:val=>new Date(val),1:val=>new Date(1e3*val),2:val=>utils.arrayBufferToBignumber(val),3:val=>c.NEG_ONE.minus(utils.arrayBufferToBignumber(val)),4:v=>{return c.TEN.pow(v[0]).times(v[1])},5:v=>{return c.TWO.pow(v[0]).times(v[1])},32:val=>url.parse(val),35:val=>new RegExp(val)},opts.tags),this.parser=parser(global,{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)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var p=this._parents.pop();if(p.length>0)throw new Error(`Missing ${p.length} elements`);switch(p.type){case c.PARENT.TAG:this._push(this.createTag(p.ref[0],p.ref[1]));break;case c.PARENT.BYTE_STRING:this._push(this.createByteString(p.ref,p.length));break;case c.PARENT.UTF8_STRING:this._push(this.createUtf8String(p.ref,p.length));break;case c.PARENT.MAP:if(p.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(p.ref,p.length));break;case c.PARENT.OBJECT:if(p.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(p.ref,p.length));break;case c.PARENT.ARRAY:this._push(this.createArray(p.ref,p.length))}this._currentParent&&this._currentParent.type===c.PARENT.TAG&&this._dec()}_dec(){const p=this._currentParent;p.length<0||(p.length--,0===p.length&&this._closeParent())}_push(val,hasChildren){const p=this._currentParent;switch(p.values++,p.type){case c.PARENT.ARRAY:case c.PARENT.BYTE_STRING:case c.PARENT.UTF8_STRING:p.length>-1?this._ref[this._ref.length-p.length]=val:this._ref.push(val),this._dec();break;case c.PARENT.OBJECT:null!=p.tmpKey?(this._ref[p.tmpKey]=val,p.tmpKey=null,this._dec()):(p.tmpKey=val,"string"!=typeof p.tmpKey&&(p.type=c.PARENT.MAP,p.ref=utils.buildMap(p.ref)));break;case c.PARENT.MAP:null!=p.tmpKey?(this._ref.set(p.tmpKey,val),p.tmpKey=null,this._dec()):p.tmpKey=val;break;case c.PARENT.TAG:this._ref.push(val),hasChildren||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(obj,type,len){this._parents[this._depth]={type:type,length:len,ref:obj,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:c.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(tagNumber,value){const typ=this._knownTags[tagNumber];return typ?typ(value):new Tagged(tagNumber,value)}createMap(obj,len){return obj}createObject(obj,len){return obj}createArray(arr,len){return arr}createByteString(raw,len){return Buffer.concat(raw)}createByteStringFromHeap(start,end){return new Buffer(start===end?0:this._heap.slice(start,end))}createInt(val){return val}createInt32(f,g){return utils.buildInt32(f,g)}createInt64(f1,f2,g1,g2){return utils.buildInt64(f1,f2,g1,g2)}createFloat(val){return val}createFloatSingle(a,b,c,d){return ieee754.read([a,b,c,d],0,!1,23,4)}createFloatDouble(a,b,c,d,e,f,g,h){return ieee754.read([a,b,c,d,e,f,g,h],0,!1,52,8)}createInt32Neg(f,g){return-1-utils.buildInt32(f,g)}createInt64Neg(f1,f2,g1,g2){const f=utils.buildInt32(f1,f2),g=utils.buildInt32(g1,g2);return f>c.MAX_SAFE_HIGH?c.NEG_ONE.sub(new Bignumber(f).times(c.SHIFT32).plus(g)):-1-(f*c.SHIFT32+g)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-(1/0)}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(raw,len){return raw.join("")}createUtf8StringFromHeap(start,end){return start===end?"":new Buffer(this._heap.slice(start,end)).toString("utf8")}createSimpleUnassigned(val){return new Simple(val)}pushInt(val){this._push(this.createInt(val))}pushInt32(f,g){this._push(this.createInt32(f,g))}pushInt64(f1,f2,g1,g2){this._push(this.createInt64(f1,f2,g1,g2))}pushFloat(val){this._push(this.createFloat(val))}pushFloatSingle(a,b,c,d){this._push(this.createFloatSingle(a,b,c,d))}pushFloatDouble(a,b,c,d,e,f,g,h){this._push(this.createFloatDouble(a,b,c,d,e,f,g,h))}pushInt32Neg(f,g){this._push(this.createInt32Neg(f,g))}pushInt64Neg(f1,f2,g1,g2){this._push(this.createInt64Neg(f1,f2,g1,g2))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],c.PARENT.ARRAY,-1)}pushArrayStartFixed(len){this._createArrayStartFixed(len)}pushArrayStartFixed32(len1,len2){const len=utils.buildInt32(len1,len2);this._createArrayStartFixed(len)}pushArrayStartFixed64(len1,len2,len3,len4){const len=utils.buildInt64(len1,len2,len3,len4);this._createArrayStartFixed(len)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(len){this._createObjectStartFixed(len)}pushObjectStartFixed32(len1,len2){const len=utils.buildInt32(len1,len2);this._createObjectStartFixed(len)}pushObjectStartFixed64(len1,len2,len3,len4){const len=utils.buildInt64(len1,len2,len3,len4);this._createObjectStartFixed(len)}pushByteStringStart(){this._parents[this._depth]={type:c.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(start,end){this._push(this.createByteStringFromHeap(start,end))}pushUtf8StringStart(){this._parents[this._depth]={type:c.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(start,end){this._push(this.createUtf8StringFromHeap(start,end))}pushSimpleUnassigned(val){this._push(this.createSimpleUnassigned(val))}pushTagStart(tag){this._parents[this._depth]={type:c.PARENT.TAG,length:1,ref:[tag]}}pushTagStart4(f,g){this.pushTagStart(utils.buildInt32(f,g))}pushTagStart8(f1,f2,g1,g2){this.pushTagStart(utils.buildInt64(f1,f2,g1,g2))}pushTagUnassigned(tagNumber){this._push(this.createTag(tagNumber))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(len){return 0===len?void this._push(this.createObject({})):void this._createParent({},c.PARENT.OBJECT,len)}_createArrayStartFixed(len){return 0===len?void this._push(this.createArray([])):void this._createParent(new Array(len),c.PARENT.ARRAY,len)}_decode(input){if(0===input.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(input);const code=this.parser.parse(input.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(code>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}decodeFirst(input){return this._decode(input),this._res[0]}decodeAll(input){return this._decode(input),this._res}static decode(input,enc){"string"==typeof input&&(input=new Buffer(input,enc||"hex"));const dec=new Decoder({size:input.length});return dec.decodeFirst(input)}static decodeAll(input,enc){"string"==typeof input&&(input=new Buffer(input,enc||"hex"));const dec=new Decoder({size:input.length});return dec.decodeAll(input)}}Decoder.decodeFirst=Decoder.decode,module.exports=Decoder}).call(exports,__webpack_require__(2),__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";const constants=__webpack_require__(4),MT=constants.MT,SIMPLE=constants.SIMPLE,SYMS=constants.SYMS;class Simple{constructor(value){if("number"!=typeof value)throw new Error("Invalid Simple type: "+typeof value);if(value<0||value>255||(0|value)!==value)throw new Error("value must be a small positive integer: "+value);this.value=value}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(gen){return gen._pushInt(this.value,MT.SIMPLE_FLOAT)}static isSimple(obj){return obj instanceof Simple}static decode(val,hasParent){switch(null==hasParent&&(hasParent=!0),val){case SIMPLE.FALSE:return!1;case SIMPLE.TRUE:return!0;case SIMPLE.NULL:return hasParent?null:SYMS.NULL;case SIMPLE.UNDEFINED:return hasParent?void 0:SYMS.UNDEFINED;case-1:if(!hasParent)throw new Error("Invalid BREAK");return SYMS.BREAK;default:return new Simple(val)}}}module.exports=Simple},function(module,exports,__webpack_require__){"use strict";class Tagged{constructor(tag,value,err){if(this.tag=tag,this.value=value,this.err=err,"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)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(gen){return gen._pushTag(this.tag),gen.pushAny(this.value)}convert(converters){var er,f;if(f=null!=converters?converters[this.tag]:void 0,"function"!=typeof f&&(f=Tagged["_tag"+this.tag],"function"!=typeof f))return this;try{return f.call(Tagged,this.value)}catch(error){return er=error,this.err=er,this}}}module.exports=Tagged},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},function(module,exports){function isPromise(obj){return obj&&"function"==typeof obj.then}module.exports=isPromise},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function bufferToNumber(buf){return parseInt(buf.toString("hex"),16)}function numberToBuffer(num){let hexString=num.toString(16);return hexString.length%2===1&&(hexString="0"+hexString),new Buffer(hexString,"hex")}function varintBufferEncode(input){return new Buffer(varint.encode(bufferToNumber(input)))}function varintBufferDecode(input){return numberToBuffer(varint.decode(input))}const varint=__webpack_require__(18);module.exports={numberToBuffer:numberToBuffer,bufferToNumber:bufferToNumber,varintBufferEncode:varintBufferEncode,varintBufferDecode:varintBufferDecode}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";const baseTable=__webpack_require__(6),varintBufferEncode=__webpack_require__(15).varintBufferEncode,varintTable={};module.exports=varintTable;for(let encodingName in baseTable){let code=baseTable[encodingName];varintTable[encodingName]=varintBufferEncode(code)}},function(module,exports,__webpack_require__){"use strict";function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url;return u.parse(url,parseQueryString,slashesDenoteHost),u}function urlFormat(obj){return util.isString(obj)&&(obj=urlParse(obj)),obj instanceof Url?obj.format():Url.prototype.format.call(obj)}function urlResolve(source,relative){return urlParse(source,!1,!0).resolve(relative)}function urlResolveObject(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative}var punycode=__webpack_require__(57),util=__webpack_require__(64);exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(60);Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?"),splitter=queryIndex!==-1&&queryIndex<url.indexOf("#")?"?":"#",uSplit=url.split(splitter),slashRegex=/\\/g;uSplit[0]=uSplit[0].replace(slashRegex,"/"),url=uSplit.join(splitter);var rest=url;if(rest=rest.trim(),!slashesDenoteHost&&1===url.split("#").length){var simplePath=simplePathPattern.exec(rest);if(simplePath)return this.path=rest,this.href=rest,this.pathname=simplePath[1],simplePath[2]?(this.search=simplePath[2],parseQueryString?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):parseQueryString&&(this.search="",this.query={}),this}var proto=protocolPattern.exec(rest);if(proto){proto=proto[0];var lowerProto=proto.toLowerCase();this.protocol=lowerProto,rest=rest.substr(proto.length)}if(slashesDenoteHost||proto||rest.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===rest.substr(0,2);!slashes||proto&&hostlessProtocol[proto]||(rest=rest.substr(2),this.slashes=!0)}if(!hostlessProtocol[proto]&&(slashes||proto&&!slashedProtocol[proto])){for(var hostEnd=-1,i=0;i<hostEndingChars.length;i++){var hec=rest.indexOf(hostEndingChars[i]);hec!==-1&&(hostEnd===-1||hec<hostEnd)&&(hostEnd=hec)}var auth,atSign;atSign=hostEnd===-1?rest.lastIndexOf("@"):rest.lastIndexOf("@",hostEnd),atSign!==-1&&(auth=rest.slice(0,atSign),rest=rest.slice(atSign+1),this.auth=decodeURIComponent(auth)),hostEnd=-1;for(var i=0;i<nonHostChars.length;i++){var hec=rest.indexOf(nonHostChars[i]);hec!==-1&&(hostEnd===-1||hec<hostEnd)&&(hostEnd=hec)}hostEnd===-1&&(hostEnd=rest.length),this.host=rest.slice(0,hostEnd),rest=rest.slice(hostEnd),this.parseHost(),this.hostname=this.hostname||"";var ipv6Hostname="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ipv6Hostname)for(var hostparts=this.hostname.split(/\./),i=0,l=hostparts.length;i<l;i++){var part=hostparts[i];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;j<k;j++)newpart+=part.charCodeAt(j)>127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),ipv6Hostname||(this.hostname=punycode.toASCII(this.hostname));var p=this.port?":"+this.port:"",h=this.hostname||"";this.host=h+p,this.href+=this.host,ipv6Hostname&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==rest[0]&&(rest="/"+rest))}if(!unsafeProtocol[lowerProto])for(var i=0,l=autoEscape.length;i<l;i++){var ae=autoEscape[i];if(rest.indexOf(ae)!==-1){var esc=encodeURIComponent(ae);esc===ae&&(esc=escape(ae)),rest=rest.split(ae).join(esc)}}var hash=rest.indexOf("#");hash!==-1&&(this.hash=rest.substr(hash),rest=rest.slice(0,hash));var qm=rest.indexOf("?");if(qm!==-1?(this.search=rest.substr(qm),this.query=rest.substr(qm+1),parseQueryString&&(this.query=querystring.parse(this.query)),rest=rest.slice(0,qm)):parseQueryString&&(this.search="",this.query={}),rest&&(this.pathname=rest),slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var p=this.pathname||"",s=this.search||"";this.path=p+s}return this.href=this.format(),this},Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port)),this.query&&util.isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));var search=this.search||query&&"?"+query||"";return protocol&&":"!==protocol.substr(-1)&&(protocol+=":"),this.slashes||(!protocol||slashedProtocol[protocol])&&host!==!1?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host=""),hash&&"#"!==hash.charAt(0)&&(hash="#"+hash),search&&"?"!==search.charAt(0)&&(search="?"+search),pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)}),search=search.replace("#","%23"),protocol+host+pathname+search+hash},Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()},Url.prototype.resolveObject=function(relative){if(util.isString(relative)){var rel=new Url;rel.parse(relative,!1,!0),relative=rel}for(var result=new Url,tkeys=Object.keys(this),tk=0;tk<tkeys.length;tk++){var tkey=tkeys[tk];result[tkey]=this[tkey]}if(result.hash=relative.hash,""===relative.href)return result.href=result.format(),result;if(relative.slashes&&!relative.protocol){for(var rkeys=Object.keys(relative),rk=0;rk<rkeys.length;rk++){var rkey=rkeys[rk];"protocol"!==rkey&&(result[rkey]=relative[rkey])}return slashedProtocol[result.protocol]&&result.hostname&&!result.pathname&&(result.path=result.pathname="/"),result.href=result.format(),result}if(relative.protocol&&relative.protocol!==result.protocol){if(!slashedProtocol[relative.protocol]){for(var keys=Object.keys(relative),v=0;v<keys.length;v++){var k=keys[v];result[k]=relative[k]}return result.href=result.format(),result}if(result.protocol=relative.protocol,relative.host||hostlessProtocol[relative.protocol])result.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host=""),relative.hostname||(relative.hostname=""),""!==relPath[0]&&relPath.unshift(""),relPath.length<2&&relPath.unshift(""),result.pathname=relPath.join("/")}if(result.search=relative.search,result.query=relative.query,result.host=relative.host||"",result.auth=relative.auth,result.hostname=relative.hostname||relative.host,result.port=relative.port,result.pathname||result.search){var p=result.pathname||"",s=result.search||"";result.path=p+s}return result.slashes=result.slashes||relative.slashes,result.href=result.format(),result}var isSourceAbs=result.pathname&&"/"===result.pathname.charAt(0),isRelAbs=relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),mustEndAbs=isRelAbs||isSourceAbs||result.host&&relative.pathname,removeAllDots=mustEndAbs,srcPath=result.pathname&&result.pathname.split("/")||[],relPath=relative.pathname&&relative.pathname.split("/")||[],psychotic=result.protocol&&!slashedProtocol[result.protocol];if(psychotic&&(result.hostname="",result.port=null,result.host&&(""===srcPath[0]?srcPath[0]=result.host:srcPath.unshift(result.host)),result.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),relative.host=null),mustEndAbs=mustEndAbs&&(""===relPath[0]||""===srcPath[0])),isRelAbs)result.host=relative.host||""===relative.host?relative.host:result.host,result.hostname=relative.hostname||""===relative.hostname?relative.hostname:result.hostname,result.search=relative.search,result.query=relative.query,srcPath=relPath;else if(relPath.length)srcPath||(srcPath=[]),srcPath.pop(),srcPath=srcPath.concat(relPath),result.search=relative.search,result.query=relative.query;else if(!util.isNullOrUndefined(relative.search)){if(psychotic){result.hostname=result.host=srcPath.shift();var authInHost=!!(result.host&&result.host.indexOf("@")>0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."===last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=!!(result.host&&result.host.indexOf("@")>0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}},function(module,exports,__webpack_require__){module.exports={encode:__webpack_require__(66),decode:__webpack_require__(65),encodingLength:__webpack_require__(67)}},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function flattenObject(obj,delimiter){return delimiter||(delimiter="/"),0===Object.keys(obj).length?[]:traverse(obj).reduce(function(acc,x){return this.isLeaf&&acc.push({path:this.path.join(delimiter),value:x}),acc},[])}const util=__webpack_require__(20),traverse=__webpack_require__(63);exports=module.exports,exports.multicodec="dag-cbor",exports.resolve=((block,path,callback)=>{"function"==typeof path&&(callback=path,path=void 0),util.deserialize(block.data,(err,node)=>{if(err)return callback(err);if(!path||"/"===path)return callback(null,{value:node,remainderPath:""});const parts=path.split("/"),val=traverse(node).get(parts);if(val)return callback(null,{value:val,remainderPath:""});let value,len=parts.length;for(let i=0;i<len;i++){const partialPath=parts.shift();if(Array.isArray(node)&&!Buffer.isBuffer(node)&&(value=node[Number(partialPath)]),!node[partialPath])return value?(parts.unshift(partialPath),callback(null,{value:value,remainderPath:parts.join("/")})):callback(new Error("path not available at root"));value=node[partialPath],node=value}})}),exports.tree=((block,options,callback)=>{"function"==typeof options&&(callback=options,options=void 0),options||(options={}),util.deserialize(block.data,(err,node)=>{return err?callback(err):void callback(null,flattenObject(node))})})}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function tagCID(cid){return new cbor.Tagged(CID_CBOR_TAG,cid)}function replaceCIDbyTAG(dagNode){function transform(obj){if(!obj||Buffer.isBuffer(obj)||"string"==typeof obj)return obj;if(Array.isArray(obj))return obj.map(transform);const keys=Object.keys(obj);if(1===keys.length&&"/"===keys[0])return tagCID(obj["/"]);if(keys.length>0){let out={};return keys.forEach(key=>{"object"==typeof obj[key]?out[key]=transform(obj[key]):out[key]=obj[key]}),out}return obj}if(isCircular(dagNode))throw new Error("The object passed has circular references");return transform(dagNode)}const cbor=__webpack_require__(31),multihashing=__webpack_require__(51),CID=__webpack_require__(33),waterfall=__webpack_require__(25),setImmediate=__webpack_require__(9),isCircular=__webpack_require__(34),resolver=__webpack_require__(19),CID_CBOR_TAG=42,decoder=new cbor.Decoder({tags:{[CID_CBOR_TAG]:val=>({"/":val})}});exports=module.exports,exports.serialize=((dagNode,callback)=>{let serialized;try{const dagNodeTagged=replaceCIDbyTAG(dagNode);serialized=cbor.encode(dagNodeTagged)}catch(err){return setImmediate(()=>callback(err))}setImmediate(()=>callback(null,serialized))}),exports.deserialize=((data,callback)=>{let deserialized;try{deserialized=decoder.decodeFirst(data)}catch(err){return setImmediate(()=>callback(err))}setImmediate(()=>callback(null,deserialized))}),exports.cid=((dagNode,callback)=>{waterfall([cb=>exports.serialize(dagNode,cb),(serialized,cb)=>multihashing(serialized,"sha2-256",cb),(mh,cb)=>cb(null,new CID(1,resolver.multicodec,mh))],callback)})}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";exports.util=__webpack_require__(20),exports.resolver=__webpack_require__(19)},function(module,exports,__webpack_require__){"use strict";function once(fn){return function(){if(null!==fn){var callFn=fn;fn=null,callFn.apply(this,arguments)}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=once,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";function onlyOnce(fn){return function(){if(null===fn)throw new Error("Callback was already called.");var callFn=fn;fn=null,callFn.apply(this,arguments)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=onlyOnce,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";(function(setImmediate,process){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function fallback(fn){setTimeout(fn,0)}function wrap(defer){return(0,_rest2.default)(function(fn,args){defer(function(){fn.apply(null,args)})})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.hasNextTick=exports.hasSetImmediate=void 0,exports.fallback=fallback,exports.wrap=wrap;var _defer,_rest=__webpack_require__(8),_rest2=_interopRequireDefault(_rest),hasSetImmediate=exports.hasSetImmediate="function"==typeof setImmediate&&setImmediate,hasNextTick=exports.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;_defer=hasSetImmediate?setImmediate:hasNextTick?process.nextTick:fallback,exports.default=wrap(_defer)}).call(exports,__webpack_require__(62).setImmediate,__webpack_require__(1))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(tasks,callback){function nextTask(args){if(taskIndex===tasks.length)return callback.apply(null,[null].concat(args));var taskCallback=(0,_onlyOnce2.default)((0,_rest2.default)(function(err,args){return err?callback.apply(null,[err].concat(args)):void nextTask(args);
}));args.push(taskCallback);var task=tasks[taskIndex++];task.apply(null,args)}if(callback=(0,_once2.default)(callback||_noop2.default),!(0,_isArray2.default)(tasks))return callback(new Error("First argument to waterfall must be an array of functions"));if(!tasks.length)return callback();var taskIndex=0;nextTask([])};var _isArray=__webpack_require__(40),_isArray2=_interopRequireDefault(_isArray),_noop=__webpack_require__(41),_noop2=_interopRequireDefault(_noop),_once=__webpack_require__(22),_once2=_interopRequireDefault(_once),_rest=__webpack_require__(8),_rest2=_interopRequireDefault(_rest),_onlyOnce=__webpack_require__(23),_onlyOnce2=_interopRequireDefault(_onlyOnce);module.exports=exports.default},function(module,exports,__webpack_require__){(function(Buffer){module.exports=function(ALPHABET){function encode(source){if(0===source.length)return"";for(var digits=[0],i=0;i<source.length;++i){for(var j=0,carry=source[i];j<digits.length;++j)carry+=digits[j]<<8,digits[j]=carry%BASE,carry=carry/BASE|0;for(;carry>0;)digits.push(carry%BASE),carry=carry/BASE|0}for(var string="",k=0;0===source[k]&&k<source.length-1;++k)string+=ALPHABET[0];for(var q=digits.length-1;q>=0;--q)string+=ALPHABET[digits[q]];return string}function decodeUnsafe(string){if(0===string.length)return Buffer.allocUnsafe(0);for(var bytes=[0],i=0;i<string.length;i++){var value=ALPHABET_MAP[string[i]];if(void 0===value)return;for(var j=0,carry=value;j<bytes.length;++j)carry+=bytes[j]*BASE,bytes[j]=255&carry,carry>>=8;for(;carry>0;)bytes.push(255&carry),carry>>=8}for(var k=0;string[k]===LEADER&&k<string.length-1;++k)bytes.push(0);return Buffer.from(bytes.reverse())}function decode(string){var buffer=decodeUnsafe(string);if(buffer)return buffer;throw new Error("Non-base"+BASE+" character")}for(var ALPHABET_MAP={},BASE=ALPHABET.length,LEADER=ALPHABET.charAt(0),z=0;z<ALPHABET.length;z++){var x=ALPHABET.charAt(z);if(void 0!==ALPHABET_MAP[x])throw new TypeError(x+" is ambiguous");ALPHABET_MAP[x]=z}return{encode:encode,decodeUnsafe:decodeUnsafe,decode:decode}}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";function placeHoldersCount(b64){var len=b64.length;if(len%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===b64[len-2]?2:"="===b64[len-1]?1:0}function byteLength(b64){return 3*b64.length/4-placeHoldersCount(b64)}function toByteArray(b64){var i,j,l,tmp,placeHolders,arr,len=b64.length;placeHolders=placeHoldersCount(b64),arr=new Arr(3*len/4-placeHolders),l=placeHolders>0?len-4:len;var L=0;for(i=0,j=0;i<l;i+=4,j+=3)tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)],arr[L++]=tmp>>16&255,arr[L++]=tmp>>8&255,arr[L++]=255&tmp;return 2===placeHolders?(tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4,arr[L++]=255&tmp):1===placeHolders&&(tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2,arr[L++]=tmp>>8&255,arr[L++]=255&tmp),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[63&num]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i=start;i<end;i+=3)tmp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2],output.push(tripletToBase64(tmp));return output.join("")}function fromByteArray(uint8){for(var tmp,len=uint8.length,extraBytes=len%3,output="",parts=[],maxChunkLength=16383,i=0,len2=len-extraBytes;i<len2;i+=maxChunkLength)parts.push(encodeChunk(uint8,i,i+maxChunkLength>len2?len2:i+maxChunkLength));return 1===extraBytes?(tmp=uint8[len-1],output+=lookup[tmp>>2],output+=lookup[tmp<<4&63],output+="=="):2===extraBytes&&(tmp=(uint8[len-2]<<8)+uint8[len-1],output+=lookup[tmp>>10],output+=lookup[tmp>>4&63],output+=lookup[tmp<<2&63],output+="="),parts.push(output),parts.join("")}exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63},function(module,exports){module.exports=function decodeAsm(stdlib,foreign,buffer){"use asm";var heap=new stdlib.Uint8Array(buffer);var pushInt=foreign.pushInt;var pushInt32=foreign.pushInt32;var pushInt32Neg=foreign.pushInt32Neg;var pushInt64=foreign.pushInt64;var pushInt64Neg=foreign.pushInt64Neg;var pushFloat=foreign.pushFloat;var pushFloatSingle=foreign.pushFloatSingle;var pushFloatDouble=foreign.pushFloatDouble;var pushTrue=foreign.pushTrue;var pushFalse=foreign.pushFalse;var pushUndefined=foreign.pushUndefined;var pushNull=foreign.pushNull;var pushInfinity=foreign.pushInfinity;var pushInfinityNeg=foreign.pushInfinityNeg;var pushNaN=foreign.pushNaN;var pushNaNNeg=foreign.pushNaNNeg;var pushArrayStart=foreign.pushArrayStart;var pushArrayStartFixed=foreign.pushArrayStartFixed;var pushArrayStartFixed32=foreign.pushArrayStartFixed32;var pushArrayStartFixed64=foreign.pushArrayStartFixed64;var pushObjectStart=foreign.pushObjectStart;var pushObjectStartFixed=foreign.pushObjectStartFixed;var pushObjectStartFixed32=foreign.pushObjectStartFixed32;var pushObjectStartFixed64=foreign.pushObjectStartFixed64;var pushByteString=foreign.pushByteString;var pushByteStringStart=foreign.pushByteStringStart;var pushUtf8String=foreign.pushUtf8String;var pushUtf8StringStart=foreign.pushUtf8StringStart;var pushSimpleUnassigned=foreign.pushSimpleUnassigned;var pushTagStart=foreign.pushTagStart;var pushTagStart4=foreign.pushTagStart4;var pushTagStart8=foreign.pushTagStart8;var pushTagUnassigned=foreign.pushTagUnassigned;var pushBreak=foreign.pushBreak;var pow=stdlib.Math.pow;var offset=0;var inputLength=0;var code=0;function parse(input){input=input|0;offset=0;inputLength=input;while((offset|0)<(inputLength|0)){code=jumpTable[heap[offset]&255](heap[offset]|0)|0;if((code|0)>0){break}}return code|0}function checkOffset(n){n=n|0;if(((offset|0)+(n|0)|0)<(inputLength|0)){return 0}return 1}function readUInt16(n){n=n|0;return heap[n|0]<<8|heap[n+1|0]|0}function INT_P(octet){octet=octet|0;pushInt(octet|0);offset=offset+1|0;return 0}function UINT_P_8(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushInt(heap[offset+1|0]|0);offset=offset+2|0;return 0}function UINT_P_16(octet){octet=octet|0;if(checkOffset(2)|0){return 1}pushInt(readUInt16(offset+1|0)|0);offset=offset+3|0;return 0}function UINT_P_32(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushInt32(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0);offset=offset+5|0;return 0}function UINT_P_64(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushInt64(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0,readUInt16(offset+5|0)|0,readUInt16(offset+7|0)|0);offset=offset+9|0;return 0}function INT_N(octet){octet=octet|0;pushInt(-1-(octet-32|0)|0);offset=offset+1|0;return 0}function UINT_N_8(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushInt(-1-(heap[offset+1|0]|0)|0);offset=offset+2|0;return 0}function UINT_N_16(octet){octet=octet|0;var val=0;if(checkOffset(2)|0){return 1}val=readUInt16(offset+1|0)|0;pushInt(-1-(val|0)|0);offset=offset+3|0;return 0}function UINT_N_32(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushInt32Neg(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0);offset=offset+5|0;return 0}function UINT_N_64(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushInt64Neg(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0,readUInt16(offset+5|0)|0,readUInt16(offset+7|0)|0);offset=offset+9|0;return 0}function BYTE_STRING(octet){octet=octet|0;var start=0;var end=0;var step=0;step=octet-64|0;if(checkOffset(step|0)|0){return 1}start=offset+1|0;end=(offset+1|0)+(step|0)|0;pushByteString(start|0,end|0);offset=end|0;return 0}function BYTE_STRING_8(octet){octet=octet|0;var start=0;var end=0;var length=0;if(checkOffset(1)|0){return 1}length=heap[offset+1|0]|0;start=offset+2|0;end=(offset+2|0)+(length|0)|0;if(checkOffset(length+1|0)|0){return 1}pushByteString(start|0,end|0);offset=end|0;return 0}function BYTE_STRING_16(octet){octet=octet|0;var start=0;var end=0;var length=0;if(checkOffset(2)|0){return 1}length=readUInt16(offset+1|0)|0;start=offset+3|0;end=(offset+3|0)+(length|0)|0;if(checkOffset(length+2|0)|0){return 1}pushByteString(start|0,end|0);offset=end|0;return 0}function BYTE_STRING_32(octet){octet=octet|0;return 1}function BYTE_STRING_64(octet){octet=octet|0;return 1}function BYTE_STRING_BREAK(octet){octet=octet|0;pushByteStringStart();offset=offset+1|0;return 0}function UTF8_STRING(octet){octet=octet|0;var start=0;var end=0;var step=0;step=octet-96|0;if(checkOffset(step|0)|0){return 1}start=offset+1|0;end=(offset+1|0)+(step|0)|0;pushUtf8String(start|0,end|0);offset=end|0;return 0}function UTF8_STRING_8(octet){octet=octet|0;var start=0;var end=0;var length=0;if(checkOffset(1)|0){return 1}length=heap[offset+1|0]|0;start=offset+2|0;end=(offset+2|0)+(length|0)|0;if(checkOffset(length+1|0)|0){return 1}pushUtf8String(start|0,end|0);offset=end|0;return 0}function UTF8_STRING_16(octet){octet=octet|0;var start=0;var end=0;var length=0;if(checkOffset(2)|0){return 1}length=readUInt16(offset+1|0)|0;start=offset+3|0;end=(offset+3|0)+(length|0)|0;if(checkOffset(length+2|0)|0){return 1}pushUtf8String(start|0,end|0);offset=end|0;return 0}function UTF8_STRING_32(octet){octet=octet|0;return 1}function UTF8_STRING_64(octet){octet=octet|0;return 1}function UTF8_STRING_BREAK(octet){octet=octet|0;pushUtf8StringStart();offset=offset+1|0;return 0}function ARRAY(octet){octet=octet|0;pushArrayStartFixed(octet-128|0);offset=offset+1|0;return 0}function ARRAY_8(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushArrayStartFixed(heap[offset+1|0]|0);offset=offset+2|0;return 0}function ARRAY_16(octet){octet=octet|0;if(checkOffset(2)|0){return 1}pushArrayStartFixed(readUInt16(offset+1|0)|0);offset=offset+3|0;return 1}function ARRAY_32(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushArrayStartFixed32(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0);offset=offset+5|0;return 0}function ARRAY_64(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushArrayStartFixed64(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0,readUInt16(offset+5|0)|0,readUInt16(offset+7|0)|0);offset=offset+9|0;return 0}function ARRAY_BREAK(octet){octet=octet|0;pushArrayStart();offset=offset+1|0;return 0}function MAP(octet){octet=octet|0;var step=0;step=octet-160|0;if(checkOffset(step|0)|0){return 1}pushObjectStartFixed(step|0);offset=offset+1|0;return 0}function MAP_8(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushObjectStartFixed(heap[offset+1|0]|0);offset=offset+2|0;return 0}function MAP_16(octet){octet=octet|0;if(checkOffset(2)|0){return 1}pushObjectStartFixed(readUInt16(offset+1|0)|0);offset=offset+3|0;return 0}function MAP_32(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushObjectStartFixed32(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0);offset=offset+5|0;return 0}function MAP_64(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushObjectStartFixed64(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0,readUInt16(offset+5|0)|0,readUInt16(offset+7|0)|0);offset=offset+9|0;return 0}function MAP_BREAK(octet){octet=octet|0;pushObjectStart();offset=offset+1|0;return 0}function TAG_KNOWN(octet){octet=octet|0;pushTagStart(octet-192|0|0);offset=offset+1|0;return 0}function TAG_BIGNUM_POS(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_BIGNUM_NEG(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_FRAC(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_BIGNUM_FLOAT(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_UNASSIGNED(octet){octet=octet|0;pushTagStart(octet-192|0|0);offset=offset+1|0;return 0}function TAG_BASE64_URL(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_BASE64(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_BASE16(octet){octet=octet|0;pushTagStart(octet|0);offset=offset+1|0;return 0}function TAG_MORE_1(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushTagStart(heap[offset+1|0]|0);offset=offset+2|0;return 0}function TAG_MORE_2(octet){octet=octet|0;if(checkOffset(2)|0){return 1}pushTagStart(readUInt16(offset+1|0)|0);offset=offset+3|0;return 0}function TAG_MORE_4(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushTagStart4(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0);offset=offset+5|0;return 0}function TAG_MORE_8(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushTagStart8(readUInt16(offset+1|0)|0,readUInt16(offset+3|0)|0,readUInt16(offset+5|0)|0,readUInt16(offset+7|0)|0);offset=offset+9|0;return 0}function SIMPLE_UNASSIGNED(octet){octet=octet|0;pushSimpleUnassigned((octet|0)-224|0);offset=offset+1|0;return 0}function SIMPLE_FALSE(octet){octet=octet|0;pushFalse();offset=offset+1|0;return 0}function SIMPLE_TRUE(octet){octet=octet|0;pushTrue();offset=offset+1|0;return 0}function SIMPLE_NULL(octet){octet=octet|0;pushNull();offset=offset+1|0;return 0}function SIMPLE_UNDEFINED(octet){octet=octet|0;pushUndefined();offset=offset+1|0;return 0}function SIMPLE_BYTE(octet){octet=octet|0;if(checkOffset(1)|0){return 1}pushSimpleUnassigned(heap[offset+1|0]|0);offset=offset+2|0;return 0}function SIMPLE_FLOAT_HALF(octet){octet=octet|0;var f=0;var g=0;var sign=1;var exp=0;var mant=0;var r=0;if(checkOffset(2)|0){return 1}f=heap[offset+1|0]|0;g=heap[offset+2|0]|0;if((f|0)&128){sign=-1}exp=+(((f|0)&124)>>2);mant=+(((f|0)&3)<<8|g);if(+exp==0){pushFloat(+(+sign*+5.960464477539063e-8*+mant))}else if(+exp==31){if(+sign==1){if(+mant>0){pushNaN()}else{pushInfinity()}}else{if(+mant>0){pushNaNNeg()}else{pushInfinityNeg()}}}else{pushFloat(+(+sign*pow(+2,+(+exp-25))*+(1024+mant)))}offset=offset+3|0;return 0}function SIMPLE_FLOAT_SINGLE(octet){octet=octet|0;if(checkOffset(4)|0){return 1}pushFloatSingle(heap[offset+1|0]|0,heap[offset+2|0]|0,heap[offset+3|0]|0,heap[offset+4|0]|0);offset=offset+5|0;return 0}function SIMPLE_FLOAT_DOUBLE(octet){octet=octet|0;if(checkOffset(8)|0){return 1}pushFloatDouble(heap[offset+1|0]|0,heap[offset+2|0]|0,heap[offset+3|0]|0,heap[offset+4|0]|0,heap[offset+5|0]|0,heap[offset+6|0]|0,heap[offset+7|0]|0,heap[offset+8|0]|0);offset=offset+9|0;return 0}function ERROR(octet){octet=octet|0;return 1}function BREAK(octet){octet=octet|0;pushBreak();offset=offset+1|0;return 0}var jumpTable=[INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,INT_P,UINT_P_8,UINT_P_16,UINT_P_32,UINT_P_64,ERROR,ERROR,ERROR,ERROR,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,INT_N,UINT_N_8,UINT_N_16,UINT_N_32,UINT_N_64,ERROR,ERROR,ERROR,ERROR,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING,BYTE_STRING_8,BYTE_STRING_16,BYTE_STRING_32,BYTE_STRING_64,ERROR,ERROR,ERROR,BYTE_STRING_BREAK,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING,UTF8_STRING_8,UTF8_STRING_16,UTF8_STRING_32,UTF8_STRING_64,ERROR,ERROR,ERROR,UTF8_STRING_BREAK,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY,ARRAY_8,ARRAY_16,ARRAY_32,ARRAY_64,ERROR,ERROR,ERROR,ARRAY_BREAK,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP,MAP_8,MAP_16,MAP_32,MAP_64,ERROR,ERROR,ERROR,MAP_BREAK,TAG_KNOWN,TAG_KNOWN,TAG_KNOWN,TAG_KNOWN,TAG_KNOWN,TAG_KNOWN,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_UNASSIGNED,TAG_MORE_1,TAG_MORE_2,TAG_MORE_4,TAG_MORE_8,ERROR,ERROR,ERROR,ERROR,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_UNASSIGNED,SIMPLE_FALSE,SIMPLE_TRUE,SIMPLE_NULL,SIMPLE_UNDEFINED,SIMPLE_BYTE,SIMPLE_FLOAT_HALF,SIMPLE_FLOAT_SINGLE,SIMPLE_FLOAT_DOUBLE,ERROR,ERROR,ERROR,BREAK];return{parse:parse}}},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function collectObject(val){return(acc,key)=>{return acc?`${acc}, ${key}: ${val[key]}`:`${key}: ${val[key]}`}}const Decoder=__webpack_require__(10),utils=__webpack_require__(5);class Diagnose extends Decoder{createTag(tagNumber,value){return`${tagNumber}(${value})`}createInt(val){return super.createInt(val).toString()}createInt32(f,g){return super.createInt32(f,g).toString()}createInt64(f1,f2,g1,g2){return super.createInt64(f1,f2,g1,g2).toString()}createInt32Neg(f,g){return super.createInt32Neg(f,g).toString()}createInt64Neg(f1,f2,g1,g2){return super.createInt64Neg(f1,f2,g1,g2).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(val){const fl=super.createFloat(val);return utils.isNegativeZero(val)?"-0_1":`${fl}_1`}createFloatSingle(a,b,c,d){const fl=super.createFloatSingle(a,b,c,d);return`${fl}_2`}createFloatDouble(a,b,c,d,e,f,g,h){const fl=super.createFloatDouble(a,b,c,d,e,f,g,h);return`${fl}_3`}createByteString(raw,len){const val=raw.join(", ");return len===-1?`(_ ${val})`:`h'${val}`}createByteStringFromHeap(start,end){const val=new Buffer(super.createByteStringFromHeap(start,end)).toString("hex");return`h'${val}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(val){return`simple(${val})`}createArray(arr,len){const val=super.createArray(arr,len);return len===-1?`[_ ${val.join(", ")}]`:`[${val.join(", ")}]`}createMap(map,len){const val=super.createMap(map),list=Array.from(val.keys()).reduce(collectObject(val),"");return len===-1?`{_ ${list}}`:`{${list}}`}createObject(obj,len){const val=super.createObject(obj),map=Object.keys(val).reduce(collectObject(val),"");return len===-1?`{_ ${map}}`:`{${map}}`}createUtf8String(raw,len){const val=raw.join(", ");return len===-1?`(_ ${val})`:`"${val}"`}createUtf8StringFromHeap(start,end){const val=new Buffer(super.createUtf8StringFromHeap(start,end)).toString("utf8");return`"${val}"`}static diagnose(input,enc){"string"==typeof input&&(input=new Buffer(input,enc||"hex"));const dec=new Diagnose;return dec.decodeFirst(input)}}module.exports=Diagnose}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function toType(obj){return{}.toString.call(obj).slice(8,-1)}const url=__webpack_require__(17),Bignumber=__webpack_require__(3),utils=__webpack_require__(5),constants=__webpack_require__(4),MT=constants.MT,NUMBYTES=constants.NUMBYTES,SHIFT32=constants.SHIFT32,SYMS=constants.SYMS,TAG=constants.TAG,HALF=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.TWO,FLOAT=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.FOUR,DOUBLE=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.EIGHT,TRUE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.TRUE,FALSE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.FALSE,UNDEFINED=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.UNDEFINED,NULL=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.NULL,MAXINT_BN=new Bignumber("0x20000000000000"),BUF_NAN=new Buffer("f97e00","hex"),BUF_INF_NEG=new Buffer("f9fc00","hex"),BUF_INF_POS=new Buffer("f97c00","hex");class Encoder{constructor(options){options=options||{},this.streaming="function"==typeof options.stream,this.onData=options.stream,this.semanticTypes=[[url.Url,this._pushUrl],[Bignumber,this._pushBigNumber]];const addTypes=options.genTypes||[],len=addTypes.length;for(let i=0;i<len;i++)this.addSemanticType(addTypes[i][0],addTypes[i][1]);this._reset()}addSemanticType(type,fun){const len=this.semanticTypes.length;for(let i=0;i<len;i++){const typ=this.semanticTypes[i][0];if(typ===type){const old=this.semanticTypes[i][1];return this.semanticTypes[i][1]=fun,old}}return this.semanticTypes.push([type,fun]),null}push(val){return!val||(this.result[this.offset]=val,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=val.length,this.offset++,this.streaming&&this.onData(this.finalize()),!0)}pushWrite(val,method,len){return this.result[this.offset]=val,this.resultMethod[this.offset]=method,this.resultLength[this.offset]=len,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(val){return this.pushWrite(val,1,1)}_pushUInt16BE(val){return this.pushWrite(val,2,2)}_pushUInt32BE(val){return this.pushWrite(val,3,4)}_pushDoubleBE(val){return this.pushWrite(val,4,8)}_pushNaN(){return this.push(BUF_NAN)}_pushInfinity(obj){const half=obj<0?BUF_INF_NEG:BUF_INF_POS;return this.push(half)}_pushFloat(obj){const b2=new Buffer(2);if(utils.writeHalf(b2,obj)&&utils.parseHalf(b2)===obj)return this._pushUInt8(HALF)&&this.push(b2);const b4=new Buffer(4);return b4.writeFloatBE(obj,0),b4.readFloatBE(0)===obj?this._pushUInt8(FLOAT)&&this.push(b4):this._pushUInt8(DOUBLE)&&this._pushDoubleBE(obj)}_pushInt(obj,mt,orig){const m=mt<<5;return obj<24?this._pushUInt8(m|obj):obj<=255?this._pushUInt8(m|NUMBYTES.ONE)&&this._pushUInt8(obj):obj<=65535?this._pushUInt8(m|NUMBYTES.TWO)&&this._pushUInt16BE(obj):obj<=4294967295?this._pushUInt8(m|NUMBYTES.FOUR)&&this._pushUInt32BE(obj):obj<=Number.MAX_SAFE_INTEGER?this._pushUInt8(m|NUMBYTES.EIGHT)&&this._pushUInt32BE(Math.floor(obj/SHIFT32))&&this._pushUInt32BE(obj%SHIFT32):mt===MT.NEG_INT?this._pushFloat(orig):this._pushFloat(obj)}_pushIntNum(obj){return obj<0?this._pushInt(-obj-1,MT.NEG_INT,obj):this._pushInt(obj,MT.POS_INT)}_pushNumber(obj){switch(!1){case obj===obj:return this._pushNaN(obj);case isFinite(obj):return this._pushInfinity(obj);case obj%1!==0:return this._pushIntNum(obj);default:return this._pushFloat(obj)}}_pushString(obj){const len=Buffer.byteLength(obj,"utf8");return this._pushInt(len,MT.UTF8_STRING)&&this.pushWrite(obj,5,len)}_pushBoolean(obj){return this._pushUInt8(obj?TRUE:FALSE)}_pushUndefined(obj){return this._pushUInt8(UNDEFINED)}_pushArray(gen,obj){const len=obj.length;if(!gen._pushInt(len,MT.ARRAY))return!1;for(let j=0;j<len;j++)if(!gen.pushAny(obj[j]))return!1;return!0}_pushTag(tag){return this._pushInt(tag,MT.TAG)}_pushDate(gen,obj){return gen._pushTag(TAG.DATE_EPOCH)&&gen.pushAny(obj/1e3)}_pushBuffer(gen,obj){return gen._pushInt(obj.length,MT.BYTE_STRING)&&gen.push(obj)}_pushNoFilter(gen,obj){return gen._pushBuffer(gen,obj.slice())}_pushRegexp(gen,obj){return gen._pushTag(TAG.REGEXP)&&gen.pushAny(obj.source)}_pushSet(gen,obj){if(!gen._pushInt(obj.size,MT.ARRAY))return!1;for(let x of obj)if(!gen.pushAny(x))return!1;return!0}_pushUrl(gen,obj){return gen._pushTag(TAG.URI)&&gen.pushAny(obj.format())}_pushBigint(obj){let tag=TAG.POS_BIGINT;obj.isNegative()&&(obj=obj.negated().minus(1),tag=TAG.NEG_BIGINT);let str=obj.toString(16);str.length%2&&(str="0"+str);const buf=new Buffer(str,"hex");return this._pushTag(tag)&&this._pushBuffer(this,buf)}_pushBigNumber(gen,obj){if(obj.isNaN())return gen._pushNaN();if(!obj.isFinite())return gen._pushInfinity(obj.isNegative()?-(1/0):1/0);if(obj.isInteger())return gen._pushBigint(obj);if(!gen._pushTag(TAG.DECIMAL_FRAC)||!gen._pushInt(2,MT.ARRAY))return!1;const dec=obj.decimalPlaces(),slide=obj.mul(new Bignumber(10).pow(dec));return!!gen._pushIntNum(-dec)&&(slide.abs().lessThan(MAXINT_BN)?gen._pushIntNum(slide.toNumber()):gen._pushBigint(slide))}_pushMap(gen,obj){return!!gen._pushInt(obj.size,MT.MAP)&&this._pushRawMap(obj.size,Array.from(obj))}_pushObject(obj){if(!obj)return this._pushUInt8(NULL);for(var len=this.semanticTypes.length,i=0;i<len;i++)if(obj instanceof this.semanticTypes[i][0])return this.semanticTypes[i][1].call(obj,this,obj);var f=obj.encodeCBOR;if("function"==typeof f)return f.call(obj,this);var keys=Object.keys(obj),keyLength=keys.length;return!!this._pushInt(keyLength,MT.MAP)&&this._pushRawMap(keyLength,keys.map(k=>[k,obj[k]]))}_pushRawMap(len,map){map=map.map(function(a){return a[0]=Encoder.encode(a[0]),a}).sort(utils.keySorter);for(var j=0;j<len;j++){if(!this.push(map[j][0]))return!1;if(!this.pushAny(map[j][1]))return!1}return!0}write(obj){this.pushAny(obj)}pushAny(obj){var typ=toType(obj);switch(typ){case"Number":return this._pushNumber(obj);case"String":return this._pushString(obj);case"Boolean":return this._pushBoolean(obj);case"Object":return this._pushObject(obj);case"Array":return this._pushArray(this,obj);case"Uint8Array":return this._pushBuffer(this,obj);case"Null":return this._pushUInt8(NULL);case"Undefined":return this._pushUndefined(obj);case"Map":return this._pushMap(this,obj);case"Set":return this._pushSet(this,obj);case"Date":return this._pushDate(this,obj);case"RegExp":return this._pushRegexp(this,obj);case"Symbol":switch(obj){case SYMS.NULL:return this._pushObject(null);case SYMS.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+obj.toString())}default:throw new Error("Unknown type: "+typeof obj+", "+(obj?obj.toString():""))}}finalize(){if(0===this.offset)return null;for(var result=this.result,resultLength=this.resultLength,resultMethod=this.resultMethod,offset=this.offset,size=0,i=0;i<offset;i++)size+=resultLength[i];var res=Buffer.allocUnsafe(size),index=0,length=0;for(i=0;i<offset;i++){switch(length=resultLength[i],resultMethod[i]){case 0:result[i].copy(res,index);break;case 1:res.writeUInt8(result[i],index,!0);break;case 2:res.writeUInt16BE(result[i],index,!0);break;case 3:res.writeUInt32BE(result[i],index,!0);break;case 4:res.writeDoubleBE(result[i],index,!0);break;case 5:res.write(result[i],index,length,"utf8");break;default:throw new Error("unkown method")}index+=length}var tmp=res;return this._reset(),tmp}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(o){const enc=new Encoder;return enc.pushAny(o),enc.finalize()}}module.exports=Encoder}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";exports.Diagnose=__webpack_require__(29),exports.Decoder=__webpack_require__(10),exports.Encoder=__webpack_require__(30),exports.Simple=__webpack_require__(11),exports.Tagged=__webpack_require__(12),exports.decodeAll=exports.Decoder.decodeAll,exports.decodeFirst=exports.Decoder.decodeFirst,exports.diagnose=exports.Diagnose.diagnose,exports.encode=exports.Encoder.encode,exports.decode=exports.Decoder.decode,exports.leveldb={decode:exports.Decoder.decodeAll,encode:exports.Encoder.encode,buffer:!0,name:"cbor"}},function(module,exports,__webpack_require__){var basex=__webpack_require__(26),ALPHABET="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";module.exports=basex(ALPHABET)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){const mh=__webpack_require__(7),multibase=__webpack_require__(45),multicodec=__webpack_require__(46),codecs=__webpack_require__(6),codecVarints=__webpack_require__(16),multihash=__webpack_require__(7);class CID{constructor(version,codec,multihash){if("string"==typeof version)if(multibase.isEncoded(version)){const cid=multibase.decode(version);this.version=parseInt(cid.slice(0,1).toString("hex"),16),this.codec=multicodec.getCodec(cid.slice(1)),this.multihash=multicodec.rmPrefix(cid.slice(1))}else this.codec="dag-pb",this.multihash=mh.fromB58String(version),this.version=0;else if(Buffer.isBuffer(version)){const firstByte=version.slice(0,1),v=parseInt(firstByte.toString("hex"),16);if(0===v||1===v){const cid=version;this.version=v,this.codec=multicodec.getCodec(cid.slice(1)),this.multihash=multicodec.rmPrefix(cid.slice(1))}else this.codec="dag-pb",this.multihash=version,this.version=0}else if("number"==typeof version){if("string"!=typeof codec)throw new Error("codec must be string");if(0!==version&&1!==version)throw new Error("version must be a number equal to 0 or 1");mh.validate(multihash),this.codec=codec,this.version=version,this.multihash=multihash}}get buffer(){switch(this.version){case 0:return this.multihash;case 1:return Buffer.concat([Buffer("01","hex"),Buffer(codecVarints[this.codec]),this.multihash]);default:throw new Error("unsupported version")}}get prefix(){return Buffer.concat([new Buffer(`0${this.version}`,"hex"),codecVarints[this.codec],multihash.prefix(this.multihash)])}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");return new CID(0,this.codec,this.multihash)}toV1(){return new CID(1,this.codec,this.multihash)}toBaseEncodedString(base){switch(base=base||"base58btc",this.version){case 0:if("base58btc"!==base)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");return mh.toB58String(this.multihash);case 1:return multibase.encode(base,this.buffer).toString();default:throw new Error("Unsupported version")}}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(other){return this.codec===other.codec&&this.version===other.version&&this.multihash.equals(other.multihash)}}CID.codecs=codecs,CID.isCID=(other=>{return"CID"===other.constructor.name}),module.exports=CID}).call(exports,__webpack_require__(0).Buffer)},function(module,exports){function isCircular(obj){return new CircularChecker(obj).isCircular()}function CircularChecker(obj){this.obj=obj}module.exports=isCircular,CircularChecker.prototype.isCircular=function(obj,seen){if(obj=obj||this.obj,seen=seen||[],!(obj instanceof Object))throw new TypeError('"obj" must be an object (or inherit from it)');var self=this;seen.push(obj);for(var key in obj){var val=obj[key];if(val instanceof Object&&(~seen.indexOf(val)||self.isCircular(val,seen.slice())))return!0}return!1}},function(module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},function(module,exports,__webpack_require__){(function(process,global){!function(){"use strict";function Keccak(bits,padding,outputBits){this.blocks=[],this.s=[],this.padding=padding,this.outputBits=outputBits,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(bits<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=outputBits>>5,this.extraBytes=(31&outputBits)>>3;for(var i=0;i<50;++i)this.s[i]=0}var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=global);for(var COMMON_JS=!root.JS_SHA3_NO_COMMON_JS&&"object"==typeof module&&module.exports,HEX_CHARS="0123456789abcdef".split(""),SHAKE_PADDING=[31,7936,2031616,520093696],KECCAK_PADDING=[1,256,65536,16777216],PADDING=[6,1536,393216,100663296],SHIFT=[0,8,16,24],RC=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],BITS=[224,256,384,512],SHAKE_BITS=[128,256],OUTPUT_TYPES=["hex","buffer","arrayBuffer","array"],createOutputMethod=function(bits,padding,outputType){
return function(message){return new Keccak(bits,padding,bits).update(message)[outputType]()}},createShakeOutputMethod=function(bits,padding,outputType){return function(message,outputBits){return new Keccak(bits,padding,outputBits).update(message)[outputType]()}},createMethod=function(bits,padding){var method=createOutputMethod(bits,padding,"hex");method.create=function(){return new Keccak(bits,padding,bits)},method.update=function(message){return method.create().update(message)};for(var i=0;i<OUTPUT_TYPES.length;++i){var type=OUTPUT_TYPES[i];method[type]=createOutputMethod(bits,padding,type)}return method},createShakeMethod=function(bits,padding){var method=createShakeOutputMethod(bits,padding,"hex");method.create=function(outputBits){return new Keccak(bits,padding,outputBits)},method.update=function(message,outputBits){return method.create(outputBits).update(message)};for(var i=0;i<OUTPUT_TYPES.length;++i){var type=OUTPUT_TYPES[i];method[type]=createShakeOutputMethod(bits,padding,type)}return method},algorithms=[{name:"keccak",padding:KECCAK_PADDING,bits:BITS,createMethod:createMethod},{name:"sha3",padding:PADDING,bits:BITS,createMethod:createMethod},{name:"shake",padding:SHAKE_PADDING,bits:SHAKE_BITS,createMethod:createShakeMethod}],methods={},methodNames=[],i=0;i<algorithms.length;++i)for(var algorithm=algorithms[i],bits=algorithm.bits,j=0;j<bits.length;++j){var methodName=algorithm.name+"_"+bits[j];methodNames.push(methodName),methods[methodName]=algorithm.createMethod(bits[j],algorithm.padding)}Keccak.prototype.update=function(message){var notString="string"!=typeof message;notString&&message.constructor===ArrayBuffer&&(message=new Uint8Array(message));for(var i,code,length=message.length,blocks=this.blocks,byteCount=this.byteCount,blockCount=this.blockCount,index=0,s=this.s;index<length;){if(this.reset)for(this.reset=!1,blocks[0]=this.block,i=1;i<blockCount+1;++i)blocks[i]=0;if(notString)for(i=this.start;index<length&&i<byteCount;++index)blocks[i>>2]|=message[index]<<SHIFT[3&i++];else for(i=this.start;index<length&&i<byteCount;++index)code=message.charCodeAt(index),code<128?blocks[i>>2]|=code<<SHIFT[3&i++]:code<2048?(blocks[i>>2]|=(192|code>>6)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]):code<55296||code>=57344?(blocks[i>>2]|=(224|code>>12)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]):(code=65536+((1023&code)<<10|1023&message.charCodeAt(++index)),blocks[i>>2]|=(240|code>>18)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>12&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]);if(this.lastByteIndex=i,i>=byteCount){for(this.start=i-byteCount,this.block=blocks[blockCount],i=0;i<blockCount;++i)s[i]^=blocks[i];f(s),this.reset=!0}else this.start=i}return this},Keccak.prototype.finalize=function(){var blocks=this.blocks,i=this.lastByteIndex,blockCount=this.blockCount,s=this.s;if(blocks[i>>2]|=this.padding[3&i],this.lastByteIndex===this.byteCount)for(blocks[0]=blocks[blockCount],i=1;i<blockCount+1;++i)blocks[i]=0;for(blocks[blockCount-1]|=2147483648,i=0;i<blockCount;++i)s[i]^=blocks[i];f(s)},Keccak.prototype.toString=Keccak.prototype.hex=function(){this.finalize();for(var block,blockCount=this.blockCount,s=this.s,outputBlocks=this.outputBlocks,extraBytes=this.extraBytes,i=0,j=0,hex="";j<outputBlocks;){for(i=0;i<blockCount&&j<outputBlocks;++i,++j)block=s[i],hex+=HEX_CHARS[block>>4&15]+HEX_CHARS[15&block]+HEX_CHARS[block>>12&15]+HEX_CHARS[block>>8&15]+HEX_CHARS[block>>20&15]+HEX_CHARS[block>>16&15]+HEX_CHARS[block>>28&15]+HEX_CHARS[block>>24&15];j%blockCount===0&&(f(s),i=0)}return extraBytes&&(block=s[i],extraBytes>0&&(hex+=HEX_CHARS[block>>4&15]+HEX_CHARS[15&block]),extraBytes>1&&(hex+=HEX_CHARS[block>>12&15]+HEX_CHARS[block>>8&15]),extraBytes>2&&(hex+=HEX_CHARS[block>>20&15]+HEX_CHARS[block>>16&15])),hex},Keccak.prototype.arrayBuffer=function(){this.finalize();var buffer,blockCount=this.blockCount,s=this.s,outputBlocks=this.outputBlocks,extraBytes=this.extraBytes,i=0,j=0,bytes=this.outputBits>>3;buffer=extraBytes?new ArrayBuffer(outputBlocks+1<<2):new ArrayBuffer(bytes);for(var array=new Uint32Array(buffer);j<outputBlocks;){for(i=0;i<blockCount&&j<outputBlocks;++i,++j)array[j]=s[i];j%blockCount===0&&f(s)}return extraBytes&&(array[i]=s[i],buffer=buffer.slice(0,bytes)),buffer},Keccak.prototype.buffer=Keccak.prototype.arrayBuffer,Keccak.prototype.digest=Keccak.prototype.array=function(){this.finalize();for(var offset,block,blockCount=this.blockCount,s=this.s,outputBlocks=this.outputBlocks,extraBytes=this.extraBytes,i=0,j=0,array=[];j<outputBlocks;){for(i=0;i<blockCount&&j<outputBlocks;++i,++j)offset=j<<2,block=s[i],array[offset]=255&block,array[offset+1]=block>>8&255,array[offset+2]=block>>16&255,array[offset+3]=block>>24&255;j%blockCount===0&&f(s)}return extraBytes&&(offset=j<<2,block=s[i],extraBytes>0&&(array[offset]=255&block),extraBytes>1&&(array[offset+1]=block>>8&255),extraBytes>2&&(array[offset+2]=block>>16&255)),array};var f=function(s){var h,l,n,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27,b28,b29,b30,b31,b32,b33,b34,b35,b36,b37,b38,b39,b40,b41,b42,b43,b44,b45,b46,b47,b48,b49;for(n=0;n<48;n+=2)c0=s[0]^s[10]^s[20]^s[30]^s[40],c1=s[1]^s[11]^s[21]^s[31]^s[41],c2=s[2]^s[12]^s[22]^s[32]^s[42],c3=s[3]^s[13]^s[23]^s[33]^s[43],c4=s[4]^s[14]^s[24]^s[34]^s[44],c5=s[5]^s[15]^s[25]^s[35]^s[45],c6=s[6]^s[16]^s[26]^s[36]^s[46],c7=s[7]^s[17]^s[27]^s[37]^s[47],c8=s[8]^s[18]^s[28]^s[38]^s[48],c9=s[9]^s[19]^s[29]^s[39]^s[49],h=c8^(c2<<1|c3>>>31),l=c9^(c3<<1|c2>>>31),s[0]^=h,s[1]^=l,s[10]^=h,s[11]^=l,s[20]^=h,s[21]^=l,s[30]^=h,s[31]^=l,s[40]^=h,s[41]^=l,h=c0^(c4<<1|c5>>>31),l=c1^(c5<<1|c4>>>31),s[2]^=h,s[3]^=l,s[12]^=h,s[13]^=l,s[22]^=h,s[23]^=l,s[32]^=h,s[33]^=l,s[42]^=h,s[43]^=l,h=c2^(c6<<1|c7>>>31),l=c3^(c7<<1|c6>>>31),s[4]^=h,s[5]^=l,s[14]^=h,s[15]^=l,s[24]^=h,s[25]^=l,s[34]^=h,s[35]^=l,s[44]^=h,s[45]^=l,h=c4^(c8<<1|c9>>>31),l=c5^(c9<<1|c8>>>31),s[6]^=h,s[7]^=l,s[16]^=h,s[17]^=l,s[26]^=h,s[27]^=l,s[36]^=h,s[37]^=l,s[46]^=h,s[47]^=l,h=c6^(c0<<1|c1>>>31),l=c7^(c1<<1|c0>>>31),s[8]^=h,s[9]^=l,s[18]^=h,s[19]^=l,s[28]^=h,s[29]^=l,s[38]^=h,s[39]^=l,s[48]^=h,s[49]^=l,b0=s[0],b1=s[1],b32=s[11]<<4|s[10]>>>28,b33=s[10]<<4|s[11]>>>28,b14=s[20]<<3|s[21]>>>29,b15=s[21]<<3|s[20]>>>29,b46=s[31]<<9|s[30]>>>23,b47=s[30]<<9|s[31]>>>23,b28=s[40]<<18|s[41]>>>14,b29=s[41]<<18|s[40]>>>14,b20=s[2]<<1|s[3]>>>31,b21=s[3]<<1|s[2]>>>31,b2=s[13]<<12|s[12]>>>20,b3=s[12]<<12|s[13]>>>20,b34=s[22]<<10|s[23]>>>22,b35=s[23]<<10|s[22]>>>22,b16=s[33]<<13|s[32]>>>19,b17=s[32]<<13|s[33]>>>19,b48=s[42]<<2|s[43]>>>30,b49=s[43]<<2|s[42]>>>30,b40=s[5]<<30|s[4]>>>2,b41=s[4]<<30|s[5]>>>2,b22=s[14]<<6|s[15]>>>26,b23=s[15]<<6|s[14]>>>26,b4=s[25]<<11|s[24]>>>21,b5=s[24]<<11|s[25]>>>21,b36=s[34]<<15|s[35]>>>17,b37=s[35]<<15|s[34]>>>17,b18=s[45]<<29|s[44]>>>3,b19=s[44]<<29|s[45]>>>3,b10=s[6]<<28|s[7]>>>4,b11=s[7]<<28|s[6]>>>4,b42=s[17]<<23|s[16]>>>9,b43=s[16]<<23|s[17]>>>9,b24=s[26]<<25|s[27]>>>7,b25=s[27]<<25|s[26]>>>7,b6=s[36]<<21|s[37]>>>11,b7=s[37]<<21|s[36]>>>11,b38=s[47]<<24|s[46]>>>8,b39=s[46]<<24|s[47]>>>8,b30=s[8]<<27|s[9]>>>5,b31=s[9]<<27|s[8]>>>5,b12=s[18]<<20|s[19]>>>12,b13=s[19]<<20|s[18]>>>12,b44=s[29]<<7|s[28]>>>25,b45=s[28]<<7|s[29]>>>25,b26=s[38]<<8|s[39]>>>24,b27=s[39]<<8|s[38]>>>24,b8=s[48]<<14|s[49]>>>18,b9=s[49]<<14|s[48]>>>18,s[0]=b0^~b2&b4,s[1]=b1^~b3&b5,s[10]=b10^~b12&b14,s[11]=b11^~b13&b15,s[20]=b20^~b22&b24,s[21]=b21^~b23&b25,s[30]=b30^~b32&b34,s[31]=b31^~b33&b35,s[40]=b40^~b42&b44,s[41]=b41^~b43&b45,s[2]=b2^~b4&b6,s[3]=b3^~b5&b7,s[12]=b12^~b14&b16,s[13]=b13^~b15&b17,s[22]=b22^~b24&b26,s[23]=b23^~b25&b27,s[32]=b32^~b34&b36,s[33]=b33^~b35&b37,s[42]=b42^~b44&b46,s[43]=b43^~b45&b47,s[4]=b4^~b6&b8,s[5]=b5^~b7&b9,s[14]=b14^~b16&b18,s[15]=b15^~b17&b19,s[24]=b24^~b26&b28,s[25]=b25^~b27&b29,s[34]=b34^~b36&b38,s[35]=b35^~b37&b39,s[44]=b44^~b46&b48,s[45]=b45^~b47&b49,s[6]=b6^~b8&b0,s[7]=b7^~b9&b1,s[16]=b16^~b18&b10,s[17]=b17^~b19&b11,s[26]=b26^~b28&b20,s[27]=b27^~b29&b21,s[36]=b36^~b38&b30,s[37]=b37^~b39&b31,s[46]=b46^~b48&b40,s[47]=b47^~b49&b41,s[8]=b8^~b0&b2,s[9]=b9^~b1&b3,s[18]=b18^~b10&b12,s[19]=b19^~b11&b13,s[28]=b28^~b20&b22,s[29]=b29^~b21&b23,s[38]=b38^~b30&b32,s[39]=b39^~b31&b33,s[48]=b48^~b40&b42,s[49]=b49^~b41&b43,s[0]^=RC[n],s[1]^=RC[n+1]};if(COMMON_JS)module.exports=methods;else for(var i=0;i<methodNames.length;++i)root[methodNames[i]]=methods[methodNames[i]]}()}).call(exports,__webpack_require__(1),__webpack_require__(2))},function(module,exports){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}module.exports=apply},function(module,exports,__webpack_require__){function overRest(func,start,transform){return start=nativeMax(void 0===start?func.length-1:start,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];index=-1;for(var otherArgs=Array(start+1);++index<start;)otherArgs[index]=args[index];return otherArgs[start]=transform(array),apply(func,this,otherArgs)}}var apply=__webpack_require__(37),nativeMax=Math.max;module.exports=overRest},function(module,exports){function identity(value){return value}module.exports=identity},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports){function noop(){}module.exports=noop},function(module,exports,__webpack_require__){(function(Buffer){module.exports=function(ALPHABET){function encode(source){if(0===source.length)return"";for(var digits=[0],i=0;i<source.length;++i){for(var j=0,carry=source[i];j<digits.length;++j)carry+=digits[j]<<8,digits[j]=carry%BASE,carry=carry/BASE|0;for(;carry>0;)digits.push(carry%BASE),carry=carry/BASE|0}for(var string="",k=0;0===source[k]&&k<source.length-1;++k)string+=ALPHABET[0];for(var q=digits.length-1;q>=0;--q)string+=ALPHABET[digits[q]];return string}function decodeUnsafe(string){if(0===string.length)return Buffer.allocUnsafe(0);for(var bytes=[0],i=0;i<string.length;i++){var value=ALPHABET_MAP[string[i]];if(void 0===value)return;for(var j=0,carry=value;j<bytes.length;++j)carry+=bytes[j]*BASE,bytes[j]=255&carry,carry>>=8;for(;carry>0;)bytes.push(255&carry),carry>>=8}for(var k=0;string[k]===LEADER&&k<string.length-1;++k)bytes.push(0);return Buffer.from(bytes.reverse())}function decode(string){var buffer=decodeUnsafe(string);if(buffer)return buffer;throw new Error("Non-base"+BASE+" character")}for(var ALPHABET_MAP={},BASE=ALPHABET.length,LEADER=ALPHABET.charAt(0),z=0;z<ALPHABET.length;z++)ALPHABET_MAP[ALPHABET.charAt(z)]=z;return{encode:encode,decodeUnsafe:decodeUnsafe,decode:decode}}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";class Base{constructor(name,code,implementation,alphabet){this.name=name,this.code=code,this.alphabet=alphabet,implementation&&alphabet&&(this.engine=implementation(alphabet))}encode(stringOrBuffer){return this.engine.encode(stringOrBuffer)}decode(stringOrBuffer){return this.engine.decode(stringOrBuffer)}isImplemented(){return this.engine}}module.exports=Base},function(module,exports,__webpack_require__){"use strict";const Base=__webpack_require__(43),baseX=__webpack_require__(42),constants=[["base1","1","","1"],["base2","0",baseX,"01"],["base8","7",baseX,"01234567"],["base10","9",baseX,"0123456789"],["base16","f",baseX,"0123456789abcdef"],["base32hex","v",baseX,"0123456789abcdefghijklmnopqrstuv"],["base32","b",baseX,"abcdefghijklmnopqrstuvwxyz234567"],["base32z","h",baseX,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",baseX,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",baseX,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",baseX,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64url","u",baseX,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"]],names=constants.reduce((prev,tupple)=>{return prev[tupple[0]]=new Base(tupple[0],tupple[1],tupple[2],tupple[3]),prev},{}),codes=constants.reduce((prev,tupple)=>{return prev[tupple[1]]=names[tupple[0]],prev},{});module.exports={names:names,codes:codes}},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function multibase(nameOrCode,buf){if(!buf)throw new Error("requires an encoded buffer");const base=getBase(nameOrCode),codeBuf=new Buffer(base.code),name=base.name;return validEncode(name,buf),Buffer.concat([codeBuf,buf])}function encode(nameOrCode,buf){const base=getBase(nameOrCode),name=base.name;return multibase(name,new Buffer(base.encode(buf)))}function decode(bufOrString){Buffer.isBuffer(bufOrString)&&(bufOrString=bufOrString.toString());const code=bufOrString.substring(0,1);bufOrString=bufOrString.substring(1,bufOrString.length),"string"==typeof bufOrString&&(bufOrString=new Buffer(bufOrString));const base=getBase(code),decodeObject={base:base.name,data:new Buffer(base.decode(bufOrString.toString()))};return decodeObject.data}function isEncoded(bufOrString){Buffer.isBuffer(bufOrString)&&(bufOrString=bufOrString.toString());const code=bufOrString.substring(0,1);try{const base=getBase(code);return base.name}catch(err){return!1}}function validEncode(name,buf){const base=getBase(name);base.decode(buf.toString())}function getBase(nameOrCode){let base;if(constants.names[nameOrCode])base=constants.names[nameOrCode];else{if(!constants.codes[nameOrCode])throw errNotSupported;base=constants.codes[nameOrCode]}if(!base.isImplemented())throw new Error("Base "+nameOrCode+" is not implemented yet");return base}const constants=__webpack_require__(44);exports=module.exports=multibase,exports.encode=encode,exports.decode=decode,exports.isEncoded=isEncoded;const errNotSupported=new Error("Unsupported encoding")}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){const varint=__webpack_require__(18),codecNameToCodeVarint=__webpack_require__(16),codeToCodecName=__webpack_require__(47),util=__webpack_require__(15);exports=module.exports,exports.addPrefix=((multicodecStrOrCode,data)=>{let prefix;if(Buffer.isBuffer(multicodecStrOrCode))prefix=util.varintBufferEncode(multicodecStrOrCode);else{if(!codecNameToCodeVarint[multicodecStrOrCode])throw new Error("multicodec not recognized");prefix=codecNameToCodeVarint[multicodecStrOrCode]}return Buffer.concat([prefix,data])}),exports.rmPrefix=(data=>{return varint.decode(data),data.slice(varint.decode.bytes)}),exports.getCodec=(prefixedData=>{const code=util.varintBufferDecode(prefixedData),codecName=codeToCodecName[code.toString("hex")];return codecName})}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";const baseTable=__webpack_require__(6),nameTable={};module.exports=nameTable;for(let encodingName in baseTable){let code=baseTable[encodingName];nameTable[code.toString("hex")]=encodingName}},function(module,exports,__webpack_require__){"use strict";exports.names={sha1:17,"sha2-256":18,"sha2-512":19,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,murmur3:34,blake2b:64,blake2s:65},exports.codes={17:"sha1",18:"sha2-256",19:"sha2-512",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3",64:"blake2b",65:"blake2s"},exports.defaultLengths={17:20,18:32,19:64,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,64:64,65:32}},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function getWebCrypto(){let globalContext;if("undefined"!=typeof window)globalContext=window;else{if("undefined"==typeof self)return;globalContext=self}return globalContext.crypto?globalContext.crypto.subtle||globalContext.crypto.webkitSubtle:globalContext.msCrypto?globalContext.msCrypto.subtle:void 0}function webCryptoHash(type){if(!webCrypto)throw new Error("Please use a browser with webcrypto support");return(data,callback)=>{const res=webCrypto.digest({name:type},data);return"function"!=typeof res.then?(res.onerror=(()=>{callback(`Error hashing data using ${type}`)}),void(res.oncomplete=(e=>{callback(null,e.target.result)}))):void nodeify(res.then(raw=>new Buffer(new Uint8Array(raw))),callback)}}function sha1(buf,callback){webCryptoHash("SHA-1")(buf,callback)}function sha2256(buf,callback){webCryptoHash("SHA-256")(buf,callback)}function sha2512(buf,callback){webCryptoHash("SHA-512")(buf,callback)}const nodeify=__webpack_require__(55),webCrypto=getWebCrypto();module.exports={sha1:sha1,sha2256:sha2256,sha2512:sha2512}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){const sha3=__webpack_require__(36),murmur3=__webpack_require__(53).x86.hash32,toCallback=__webpack_require__(52),sha=__webpack_require__(49),toBuf=(doWork,other)=>input=>{return new Buffer(doWork(input,other),"hex")},fromString=(doWork,other)=>_input=>{const input=Buffer.isBuffer(_input)?_input.toString():_input;return doWork(input,other)},to32BitBuf=(doWork,other)=>input=>{let number=doWork(input,other);const bytes=new Array(4);for(let i=0;i<4;i++)bytes[i]=255&number,number>>>=8;return new Buffer(bytes)};module.exports={sha1:sha.sha1,sha2256:sha.sha2256,sha2512:sha.sha2512,sha3512:toCallback(toBuf(sha3.sha3_512)),sha3384:toCallback(toBuf(sha3.sha3_384)),sha3256:toCallback(toBuf(sha3.sha3_256)),sha3224:toCallback(toBuf(sha3.sha3_224)),shake128:toCallback(toBuf(sha3.shake_128,256)),shake256:toCallback(toBuf(sha3.shake_256,512)),keccak224:toCallback(toBuf(sha3.keccak_224)),keccak256:toCallback(toBuf(sha3.keccak_256)),keccak384:toCallback(toBuf(sha3.keccak_384)),keccak512:toCallback(toBuf(sha3.keccak_512)),murmur3:toCallback(to32BitBuf(fromString(murmur3)))}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function Multihashing(buf,func,length,callback){if("function"==typeof length&&(callback=length,length=void 0),!callback)throw new Error("Missing callback");Multihashing.digest(buf,func,length,(err,digest)=>{return err?callback(err):void callback(null,multihash.encode(digest,func,length))})}const multihash=__webpack_require__(7),crypto=__webpack_require__(50);module.exports=Multihashing,Multihashing.Buffer=Buffer,Multihashing.multihash=multihash,Multihashing.digest=function(buf,func,length,callback){if("function"==typeof length&&(callback=length,length=void 0),!callback)throw new Error("Missing callback");let cb=callback;length&&(cb=((err,digest)=>{return err?callback(err):void callback(null,digest.slice(0,length))}));let hash;try{hash=Multihashing.createHash(func)}catch(err){return cb(err)}hash(buf,cb)},Multihashing.createHash=function(func){if(func=multihash.coerceCode(func),!Multihashing.functions[func])throw new Error("multihash function "+func+" not yet supported");return Multihashing.functions[func]},Multihashing.functions={17:crypto.sha1,18:crypto.sha2256,19:crypto.sha2512,20:crypto.sha3512,21:crypto.sha3384,22:crypto.sha3256,23:crypto.sha3224,24:crypto.shake128,25:crypto.shake256,26:crypto.keccak224,27:crypto.keccak256,28:crypto.keccak384,29:crypto.keccak512,34:crypto.murmur3}}).call(exports,__webpack_require__(0).Buffer)},function(module,exports,__webpack_require__){"use strict";const setImmediate=__webpack_require__(9);module.exports=function(doWork){return function(input,callback){const done=(err,res)=>setImmediate(()=>{callback(err,res)});let res;try{res=doWork(input)}catch(err){return void done(err)}done(null,res)}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(54)},function(module,exports,__webpack_require__){!function(root,undefined){"use strict";function _x86Multiply(m,n){return(65535&m)*n+(((m>>>16)*n&65535)<<16)}function _x86Rotl(m,n){return m<<n|m>>>32-n}function _x86Fmix(h){return h^=h>>>16,h=_x86Multiply(h,2246822507),h^=h>>>13,h=_x86Multiply(h,3266489909),h^=h>>>16}function _x64Add(m,n){m=[m[0]>>>16,65535&m[0],m[1]>>>16,65535&m[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];var o=[0,0,0,0];return o[3]+=m[3]+n[3],o[2]+=o[3]>>>16,o[3]&=65535,o[2]+=m[2]+n[2],o[1]+=o[2]>>>16,o[2]&=65535,o[1]+=m[1]+n[1],o[0]+=o[1]>>>16,o[1]&=65535,o[0]+=m[0]+n[0],o[0]&=65535,[o[0]<<16|o[1],o[2]<<16|o[3]]}function _x64Multiply(m,n){m=[m[0]>>>16,65535&m[0],m[1]>>>16,65535&m[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];var o=[0,0,0,0];return o[3]+=m[3]*n[3],o[2]+=o[3]>>>16,o[3]&=65535,o[2]+=m[2]*n[3],o[1]+=o[2]>>>16,o[2]&=65535,o[2]+=m[3]*n[2],o[1]+=o[2]>>>16,o[2]&=65535,o[1]+=m[1]*n[3],o[0]+=o[1]>>>16,o[1]&=65535,o[1]+=m[2]*n[2],o[0]+=o[1]>>>16,o[1]&=65535,o[1]+=m[3]*n[1],o[0]+=o[1]>>>16,o[1]&=65535,o[0]+=m[0]*n[3]+m[1]*n[2]+m[2]*n[1]+m[3]*n[0],o[0]&=65535,[o[0]<<16|o[1],o[2]<<16|o[3]]}function _x64Rotl(m,n){return n%=64,32===n?[m[1],m[0]]:n<32?[m[0]<<n|m[1]>>>32-n,m[1]<<n|m[0]>>>32-n]:(n-=32,[m[1]<<n|m[0]>>>32-n,m[0]<<n|m[1]>>>32-n])}function _x64LeftShift(m,n){return n%=64,0===n?m:n<32?[m[0]<<n|m[1]>>>32-n,m[1]<<n]:[m[1]<<n-32,0]}function _x64Xor(m,n){return[m[0]^n[0],m[1]^n[1]]}function _x64Fmix(h){return h=_x64Xor(h,[0,h[0]>>>1]),h=_x64Multiply(h,[4283543511,3981806797]),h=_x64Xor(h,[0,h[0]>>>1]),h=_x64Multiply(h,[3301882366,444984403]),h=_x64Xor(h,[0,h[0]>>>1])}var library={version:"3.0.1",x86:{},x64:{}};library.x86.hash32=function(key,seed){key=key||"",seed=seed||0;for(var remainder=key.length%4,bytes=key.length-remainder,h1=seed,k1=0,c1=3432918353,c2=461845907,i=0;i<bytes;i+=4)k1=255&key.charCodeAt(i)|(255&key.charCodeAt(i+1))<<8|(255&key.charCodeAt(i+2))<<16|(255&key.charCodeAt(i+3))<<24,k1=_x86Multiply(k1,c1),k1=_x86Rotl(k1,15),k1=_x86Multiply(k1,c2),h1^=k1,h1=_x86Rotl(h1,13),h1=_x86Multiply(h1,5)+3864292196;switch(k1=0,remainder){case 3:k1^=(255&key.charCodeAt(i+2))<<16;case 2:k1^=(255&key.charCodeAt(i+1))<<8;case 1:k1^=255&key.charCodeAt(i),k1=_x86Multiply(k1,c1),k1=_x86Rotl(k1,15),k1=_x86Multiply(k1,c2),h1^=k1}return h1^=key.length,h1=_x86Fmix(h1),h1>>>0},library.x86.hash128=function(key,seed){key=key||"",seed=seed||0;for(var remainder=key.length%16,bytes=key.length-remainder,h1=seed,h2=seed,h3=seed,h4=seed,k1=0,k2=0,k3=0,k4=0,c1=597399067,c2=2869860233,c3=951274213,c4=2716044179,i=0;i<bytes;i+=16)k1=255&key.charCodeAt(i)|(255&key.charCodeAt(i+1))<<8|(255&key.charCodeAt(i+2))<<16|(255&key.charCodeAt(i+3))<<24,k2=255&key.charCodeAt(i+4)|(255&key.charCodeAt(i+5))<<8|(255&key.charCodeAt(i+6))<<16|(255&key.charCodeAt(i+7))<<24,k3=255&key.charCodeAt(i+8)|(255&key.charCodeAt(i+9))<<8|(255&key.charCodeAt(i+10))<<16|(255&key.charCodeAt(i+11))<<24,k4=255&key.charCodeAt(i+12)|(255&key.charCodeAt(i+13))<<8|(255&key.charCodeAt(i+14))<<16|(255&key.charCodeAt(i+15))<<24,k1=_x86Multiply(k1,c1),k1=_x86Rotl(k1,15),k1=_x86Multiply(k1,c2),h1^=k1,h1=_x86Rotl(h1,19),h1+=h2,h1=_x86Multiply(h1,5)+1444728091,k2=_x86Multiply(k2,c2),k2=_x86Rotl(k2,16),k2=_x86Multiply(k2,c3),h2^=k2,h2=_x86Rotl(h2,17),h2+=h3,h2=_x86Multiply(h2,5)+197830471,k3=_x86Multiply(k3,c3),k3=_x86Rotl(k3,17),k3=_x86Multiply(k3,c4),h3^=k3,h3=_x86Rotl(h3,15),h3+=h4,h3=_x86Multiply(h3,5)+2530024501,k4=_x86Multiply(k4,c4),k4=_x86Rotl(k4,18),k4=_x86Multiply(k4,c1),h4^=k4,h4=_x86Rotl(h4,13),h4+=h1,h4=_x86Multiply(h4,5)+850148119;switch(k1=0,k2=0,k3=0,k4=0,remainder){case 15:k4^=key.charCodeAt(i+14)<<16;case 14:k4^=key.charCodeAt(i+13)<<8;case 13:k4^=key.charCodeAt(i+12),k4=_x86Multiply(k4,c4),k4=_x86Rotl(k4,18),k4=_x86Multiply(k4,c1),h4^=k4;case 12:k3^=key.charCodeAt(i+11)<<24;case 11:k3^=key.charCodeAt(i+10)<<16;case 10:k3^=key.charCodeAt(i+9)<<8;case 9:k3^=key.charCodeAt(i+8),k3=_x86Multiply(k3,c3),k3=_x86Rotl(k3,17),k3=_x86Multiply(k3,c4),h3^=k3;case 8:k2^=key.charCodeAt(i+7)<<24;case 7:k2^=key.charCodeAt(i+6)<<16;case 6:k2^=key.charCodeAt(i+5)<<8;case 5:k2^=key.charCodeAt(i+4),k2=_x86Multiply(k2,c2),k2=_x86Rotl(k2,16),k2=_x86Multiply(k2,c3),h2^=k2;case 4:k1^=key.charCodeAt(i+3)<<24;case 3:k1^=key.charCodeAt(i+2)<<16;case 2:k1^=key.charCodeAt(i+1)<<8;case 1:k1^=key.charCodeAt(i),k1=_x86Multiply(k1,c1),k1=_x86Rotl(k1,15),k1=_x86Multiply(k1,c2),h1^=k1}return h1^=key.length,h2^=key.length,h3^=key.length,h4^=key.length,h1+=h2,h1+=h3,h1+=h4,h2+=h1,h3+=h1,h4+=h1,h1=_x86Fmix(h1),h2=_x86Fmix(h2),h3=_x86Fmix(h3),h4=_x86Fmix(h4),h1+=h2,h1+=h3,h1+=h4,h2+=h1,h3+=h1,h4+=h1,("00000000"+(h1>>>0).toString(16)).slice(-8)+("00000000"+(h2>>>0).toString(16)).slice(-8)+("00000000"+(h3>>>0).toString(16)).slice(-8)+("00000000"+(h4>>>0).toString(16)).slice(-8)},library.x64.hash128=function(key,seed){key=key||"",seed=seed||0;for(var remainder=key.length%16,bytes=key.length-remainder,h1=[0,seed],h2=[0,seed],k1=[0,0],k2=[0,0],c1=[2277735313,289559509],c2=[1291169091,658871167],i=0;i<bytes;i+=16)k1=[255&key.charCodeAt(i+4)|(255&key.charCodeAt(i+5))<<8|(255&key.charCodeAt(i+6))<<16|(255&key.charCodeAt(i+7))<<24,255&key.charCodeAt(i)|(255&key.charCodeAt(i+1))<<8|(255&key.charCodeAt(i+2))<<16|(255&key.charCodeAt(i+3))<<24],k2=[255&key.charCodeAt(i+12)|(255&key.charCodeAt(i+13))<<8|(255&key.charCodeAt(i+14))<<16|(255&key.charCodeAt(i+15))<<24,255&key.charCodeAt(i+8)|(255&key.charCodeAt(i+9))<<8|(255&key.charCodeAt(i+10))<<16|(255&key.charCodeAt(i+11))<<24],k1=_x64Multiply(k1,c1),k1=_x64Rotl(k1,31),k1=_x64Multiply(k1,c2),h1=_x64Xor(h1,k1),h1=_x64Rotl(h1,27),h1=_x64Add(h1,h2),h1=_x64Add(_x64Multiply(h1,[0,5]),[0,1390208809]),k2=_x64Multiply(k2,c2),k2=_x64Rotl(k2,33),k2=_x64Multiply(k2,c1),h2=_x64Xor(h2,k2),h2=_x64Rotl(h2,31),h2=_x64Add(h2,h1),h2=_x64Add(_x64Multiply(h2,[0,5]),[0,944331445]);switch(k1=[0,0],k2=[0,0],remainder){case 15:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+14)],48));case 14:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+13)],40));case 13:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+12)],32));case 12:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+11)],24));case 11:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+10)],16));case 10:k2=_x64Xor(k2,_x64LeftShift([0,key.charCodeAt(i+9)],8));case 9:k2=_x64Xor(k2,[0,key.charCodeAt(i+8)]),k2=_x64Multiply(k2,c2),k2=_x64Rotl(k2,33),k2=_x64Multiply(k2,c1),h2=_x64Xor(h2,k2);case 8:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+7)],56));case 7:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+6)],48));case 6:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+5)],40));case 5:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+4)],32));case 4:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+3)],24));case 3:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+2)],16));case 2:k1=_x64Xor(k1,_x64LeftShift([0,key.charCodeAt(i+1)],8));case 1:k1=_x64Xor(k1,[0,key.charCodeAt(i)]),k1=_x64Multiply(k1,c1),k1=_x64Rotl(k1,31),k1=_x64Multiply(k1,c2),h1=_x64Xor(h1,k1)}return h1=_x64Xor(h1,[0,key.length]),h2=_x64Xor(h2,[0,key.length]),h1=_x64Add(h1,h2),h2=_x64Add(h2,h1),h1=_x64Fmix(h1),h2=_x64Fmix(h2),h1=_x64Add(h1,h2),h2=_x64Add(h2,h1),("00000000"+(h1[0]>>>0).toString(16)).slice(-8)+("00000000"+(h1[1]>>>0).toString(16)).slice(-8)+("00000000"+(h2[0]>>>0).toString(16)).slice(-8)+("00000000"+(h2[1]>>>0).toString(16)).slice(-8)},"undefined"!=typeof module&&module.exports&&(exports=module.exports=library),exports.murmurHash3=library}(this)},function(module,exports,__webpack_require__){(function(process){function nodeify(promise,cb){return"function"!=typeof cb?promise:promise.then(function(res){nextTick(function(){cb(null,res)})},function(err){nextTick(function(){cb(err)})})}function nodeifyThis(cb){return nodeify(this,cb)}function extend(prom){if(prom&&isPromise(prom)){prom.nodeify=nodeifyThis;var then=prom.then;return prom.then=function(){return extend(then.apply(this,arguments))},prom}"function"==typeof prom?prom.prototype.nodeify=nodeifyThis:Promise.prototype.nodeify=nodeifyThis}function NodeifyPromise(fn){return this instanceof NodeifyPromise?(Promise.call(this,fn),void extend(this)):new NodeifyPromise(fn)}var nextTick,Promise=__webpack_require__(56),isPromise=__webpack_require__(14);nextTick="function"==typeof setImediate?setImediate:"object"==typeof process&&process&&process.nextTick?process.nextTick:function(cb){setTimeout(cb,0)},module.exports=nodeify,nodeify.extend=extend,nodeify.Promise=NodeifyPromise,NodeifyPromise.prototype=Object.create(Promise.prototype),NodeifyPromise.prototype.constructor=NodeifyPromise}).call(exports,__webpack_require__(1))},function(module,exports,__webpack_require__){(function(process){function Promise(fn){function next(skipTimeout){waiting.length?(running=!0,waiting.shift()(skipTimeout||!1)):running=!1}function then(cb,eb){return new Promise(function(resolver){function done(skipTimeout){function timeoutDone(){var val;try{val=callback(value)}catch(ex){return resolver.reject(ex),next()}resolver.fulfill(val),next(!0)}var callback=isFulfilled?cb:eb;"function"==typeof callback?skipTimeout?timeoutDone():nextTick(timeoutDone):isFulfilled?(resolver.fulfill(value),next(skipTimeout)):(resolver.reject(value),next(skipTimeout))}waiting.push(done),isResolved&&!running&&next()})}if(!(this instanceof Promise))return"function"==typeof fn?new Promise(fn):defer();var value,isResolved=!1,isFulfilled=!1,waiting=[],running=!1;this.then=then,function(){function fulfill(val){isResolved||(isPromise(val)?val.then(fulfill,reject):(isResolved=isFulfilled=!0,value=val,next()))}function reject(err){isResolved||(isResolved=!0,isFulfilled=!1,value=err,next())}for(var resolver={fulfill:fulfill,reject:reject},i=0;i<extensions.length;i++)extensions[i](this,resolver);if("function"==typeof fn)try{fn(resolver)}catch(ex){resolver.reject(ex)}}()}function defer(){var resolver,promise=new Promise(function(res){resolver=res});return{resolver:resolver,promise:promise}}var nextTick,isPromise=__webpack_require__(14);nextTick="function"==typeof setImediate?setImediate:"object"==typeof process&&process&&process.nextTick?process.nextTick:function(cb){setTimeout(cb,0)};var extensions=[];module.exports=Promise,Promise.use=function(extension){extensions.push(extension)}}).call(exports,__webpack_require__(1))},function(module,exports,__webpack_require__){(function(module,global){var __WEBPACK_AMD_DEFINE_RESULT__;!function(root){function error(type){throw new RangeError(errors[type])}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}function mapDomain(string,fn){var parts=string.split("@"),result="";parts.length>1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;counter<length;)value=string.charCodeAt(counter++),value>=55296&&value<=56319&&counter<length?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);return output}function ucs2encode(array){return map(array,function(value){var output="";return value>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return codePoint-48<10?codePoint-22:codePoint-65<26?codePoint-65:codePoint-97<26?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;
for(basic=input.lastIndexOf(delimiter),basic<0&&(basic=0),j=0;j<basic;++j)input.charCodeAt(j)>=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;index<inputLength;){for(oldi=i,w=1,k=base;index>=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(digit<t);k+=base)baseMinusT=base-t,w>floor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;j<inputLength;++j)currentValue=input[j],currentValue<128&&output.push(stringFromCharCode(currentValue));for(handledCPCount=basicLength=output.length,basicLength&&output.push(delimiter);handledCPCount<inputLength;){for(m=maxInt,j=0;j<inputLength;++j)currentValue=input[j],currentValue>=n&&currentValue<m&&(m=currentValue);for(handledCPCountPlusOne=handledCPCount+1,m-n>floor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;j<inputLength;++j)if(currentValue=input[j],currentValue<n&&++delta>maxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(q<t);k+=base)qMinusT=q-t,baseMinusT=base-t,output.push(stringFromCharCode(digitToBasic(t+qMinusT%baseMinusT,0))),q=floor(qMinusT/baseMinusT);output.push(stringFromCharCode(digitToBasic(q,0))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength),delta=0,++handledCPCount}++delta,++n}return output.join("")}function toUnicode(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}function toASCII(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})}var freeGlobal=("object"==typeof exports&&exports&&!exports.nodeType&&exports,"object"==typeof module&&module&&!module.nodeType&&module,"object"==typeof global&&global);freeGlobal.global!==freeGlobal&&freeGlobal.window!==freeGlobal&&freeGlobal.self!==freeGlobal||(root=freeGlobal);var punycode,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;punycode={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},__WEBPACK_AMD_DEFINE_RESULT__=function(){return punycode}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this)}).call(exports,__webpack_require__(68)(module),__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;i<len;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}},function(module,exports,__webpack_require__){"use strict";function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i<xs.length;i++)res.push(f(xs[i],i));return res}var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return isArray(obj[k])?map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)},objectKeys=Object.keys||function(obj){var res=[];for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&res.push(key);return res}},function(module,exports,__webpack_require__){"use strict";exports.decode=exports.parse=__webpack_require__(58),exports.encode=exports.stringify=__webpack_require__(59)},function(module,exports,__webpack_require__){(function(global,process){!function(global,undefined){"use strict";function setImmediate(callback){"function"!=typeof callback&&(callback=new Function(""+callback));for(var args=new Array(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];var task={callback:callback,args:args};return tasksByHandle[nextHandle]=task,registerImmediate(nextHandle),nextHandle++}function clearImmediate(handle){delete tasksByHandle[handle]}function run(task){var callback=task.callback,args=task.args;switch(args.length){case 0:callback();break;case 1:callback(args[0]);break;case 2:callback(args[0],args[1]);break;case 3:callback(args[0],args[1],args[2]);break;default:callback.apply(undefined,args)}}function runIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{var task=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{run(task)}finally{clearImmediate(handle),currentlyRunningATask=!1}}}}function installNextTickImplementation(){registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}}function canUsePostMessage(){if(global.postMessage&&!global.importScripts){var postMessageIsAsynchronous=!0,oldOnMessage=global.onmessage;return global.onmessage=function(){postMessageIsAsynchronous=!1},global.postMessage("","*"),global.onmessage=oldOnMessage,postMessageIsAsynchronous}}function installPostMessageImplementation(){var messagePrefix="setImmediate$"+Math.random()+"$",onGlobalMessage=function(event){event.source===global&&"string"==typeof event.data&&0===event.data.indexOf(messagePrefix)&&runIfPresent(+event.data.slice(messagePrefix.length))};global.addEventListener?global.addEventListener("message",onGlobalMessage,!1):global.attachEvent("onmessage",onGlobalMessage),registerImmediate=function(handle){global.postMessage(messagePrefix+handle,"*")}}function installMessageChannelImplementation(){var channel=new MessageChannel;channel.port1.onmessage=function(event){var handle=event.data;runIfPresent(handle)},registerImmediate=function(handle){channel.port2.postMessage(handle)}}function installReadyStateChangeImplementation(){var html=doc.documentElement;registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}}function installSetTimeoutImplementation(){registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}}if(!global.setImmediate){var registerImmediate,nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);attachTo=attachTo&&attachTo.setTimeout?attachTo:global,"[object process]"==={}.toString.call(global.process)?installNextTickImplementation():canUsePostMessage()?installPostMessageImplementation():global.MessageChannel?installMessageChannelImplementation():doc&&"onreadystatechange"in doc.createElement("script")?installReadyStateChangeImplementation():installSetTimeoutImplementation(),attachTo.setImmediate=setImmediate,attachTo.clearImmediate=clearImmediate}}("undefined"==typeof self?"undefined"==typeof global?this:global:self)}).call(exports,__webpack_require__(2),__webpack_require__(1))},function(module,exports,__webpack_require__){function Timeout(id,clearFn){this._id=id,this._clearFn=clearFn}var apply=Function.prototype.apply;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout)},exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval)},exports.clearTimeout=exports.clearInterval=function(timeout){timeout&&timeout.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(window,this._id)},exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId),item._idleTimeout=msecs},exports.unenroll=function(item){clearTimeout(item._idleTimeoutId),item._idleTimeout=-1},exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;msecs>=0&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))},__webpack_require__(61),exports.setImmediate=setImmediate,exports.clearImmediate=clearImmediate},function(module,exports){function Traverse(obj){this.value=obj}function walk(root,cb,immutable){var path=[],parents=[],alive=!0;return function walker(node_){function updateState(){if("object"==typeof state.node&&null!==state.node){state.keys&&state.node_===state.node||(state.keys=objectKeys(state.node)),state.isLeaf=0==state.keys.length;for(var i=0;i<parents.length;i++)if(parents[i].node_===node_){state.circular=parents[i];break}}else state.isLeaf=!0,state.keys=null;state.notLeaf=!state.isLeaf,state.notRoot=!state.isRoot}var node=immutable?copy(node_):node_,modifiers={},keepGoing=!0,state={node:node,node_:node_,path:[].concat(path),parent:parents[parents.length-1],parents:parents,key:path.slice(-1)[0],isRoot:0===path.length,level:path.length,circular:null,update:function(x,stopHere){state.isRoot||(state.parent.node[state.key]=x),state.node=x,stopHere&&(keepGoing=!1)},delete:function(stopHere){delete state.parent.node[state.key],stopHere&&(keepGoing=!1)},remove:function(stopHere){isArray(state.parent.node)?state.parent.node.splice(state.key,1):delete state.parent.node[state.key],stopHere&&(keepGoing=!1)},keys:null,before:function(f){modifiers.before=f},after:function(f){modifiers.after=f},pre:function(f){modifiers.pre=f},post:function(f){modifiers.post=f},stop:function(){alive=!1},block:function(){keepGoing=!1}};if(!alive)return state;updateState();var ret=cb.call(state,state.node);return void 0!==ret&&state.update&&state.update(ret),modifiers.before&&modifiers.before.call(state,state.node),keepGoing?("object"!=typeof state.node||null===state.node||state.circular||(parents.push(state),updateState(),forEach(state.keys,function(key,i){path.push(key),modifiers.pre&&modifiers.pre.call(state,state.node[key],key);var child=walker(state.node[key]);immutable&&hasOwnProperty.call(state.node,key)&&(state.node[key]=child.node),child.isLast=i==state.keys.length-1,child.isFirst=0==i,modifiers.post&&modifiers.post.call(state,child),path.pop()}),parents.pop()),modifiers.after&&modifiers.after.call(state,state.node),state):state}(root).node}function copy(src){if("object"==typeof src&&null!==src){var dst;if(isArray(src))dst=[];else if(isDate(src))dst=new Date(src.getTime?src.getTime():src);else if(isRegExp(src))dst=new RegExp(src);else if(isError(src))dst={message:src.message};else if(isBoolean(src))dst=new Boolean(src);else if(isNumber(src))dst=new Number(src);else if(isString(src))dst=new String(src);else if(Object.create&&Object.getPrototypeOf)dst=Object.create(Object.getPrototypeOf(src));else if(src.constructor===Object)dst={};else{var proto=src.constructor&&src.constructor.prototype||src.__proto__||{},T=function(){};T.prototype=proto,dst=new T}return forEach(objectKeys(src),function(key){dst[key]=src[key]}),dst}return src}function toS(obj){return Object.prototype.toString.call(obj)}function isDate(obj){return"[object Date]"===toS(obj)}function isRegExp(obj){return"[object RegExp]"===toS(obj)}function isError(obj){return"[object Error]"===toS(obj)}function isBoolean(obj){return"[object Boolean]"===toS(obj)}function isNumber(obj){return"[object Number]"===toS(obj)}function isString(obj){return"[object String]"===toS(obj)}var traverse=module.exports=function(obj){return new Traverse(obj)};Traverse.prototype.get=function(ps){for(var node=this.value,i=0;i<ps.length;i++){var key=ps[i];if(!node||!hasOwnProperty.call(node,key)){node=void 0;break}node=node[key]}return node},Traverse.prototype.has=function(ps){for(var node=this.value,i=0;i<ps.length;i++){var key=ps[i];if(!node||!hasOwnProperty.call(node,key))return!1;node=node[key]}return!0},Traverse.prototype.set=function(ps,value){for(var node=this.value,i=0;i<ps.length-1;i++){var key=ps[i];hasOwnProperty.call(node,key)||(node[key]={}),node=node[key]}return node[ps[i]]=value,value},Traverse.prototype.map=function(cb){return walk(this.value,cb,!0)},Traverse.prototype.forEach=function(cb){return this.value=walk(this.value,cb,!1),this.value},Traverse.prototype.reduce=function(cb,init){var skip=1===arguments.length,acc=skip?this.value:init;return this.forEach(function(x){this.isRoot&&skip||(acc=cb.call(this,acc,x))}),acc},Traverse.prototype.paths=function(){var acc=[];return this.forEach(function(x){acc.push(this.path)}),acc},Traverse.prototype.nodes=function(){var acc=[];return this.forEach(function(x){acc.push(this.node)}),acc},Traverse.prototype.clone=function(){var parents=[],nodes=[];return function clone(src){for(var i=0;i<parents.length;i++)if(parents[i]===src)return nodes[i];if("object"==typeof src&&null!==src){var dst=copy(src);return parents.push(src),nodes.push(dst),forEach(objectKeys(src),function(key){dst[key]=clone(src[key])}),parents.pop(),nodes.pop(),dst}return src}(this.value)};var objectKeys=Object.keys||function(obj){var res=[];for(var key in obj)res.push(key);return res},isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)},forEach=function(xs,fn){if(xs.forEach)return xs.forEach(fn);for(var i=0;i<xs.length;i++)fn(xs[i],i,xs)};forEach(objectKeys(Traverse.prototype),function(key){traverse[key]=function(obj){var args=[].slice.call(arguments,1),t=new Traverse(obj);return t[key].apply(t,args)}});var hasOwnProperty=Object.hasOwnProperty||function(obj,key){return key in obj}},function(module,exports,__webpack_require__){"use strict";module.exports={isString:function(arg){return"string"==typeof arg},isObject:function(arg){return"object"==typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},function(module,exports){function read(buf,offset){var b,res=0,offset=offset||0,shift=0,counter=offset,l=buf.length;do{if(counter>=l)throw read.bytes=0,new RangeError("Could not decode varint");b=buf[counter++],res+=shift<28?(b&REST)<<shift:(b&REST)*Math.pow(2,shift),shift+=7}while(b>=MSB);return read.bytes=counter-offset,res}module.exports=read;var MSB=128,REST=127},function(module,exports){function encode(num,out,offset){out=out||[],offset=offset||0;for(var oldOffset=offset;num>=INT;)out[offset++]=255&num|MSB,num/=128;for(;num&MSBALL;)out[offset++]=255&num|MSB,num>>>=7;return out[offset]=0|num,encode.bytes=offset-oldOffset+1,out}module.exports=encode;var MSB=128,REST=127,MSBALL=~REST,INT=Math.pow(2,31)},function(module,exports){var N1=Math.pow(2,7),N2=Math.pow(2,14),N3=Math.pow(2,21),N4=Math.pow(2,28),N5=Math.pow(2,35),N6=Math.pow(2,42),N7=Math.pow(2,49),N8=Math.pow(2,56),N9=Math.pow(2,63);module.exports=function(value){return value<N1?1:value<N2?2:value<N3?3:value<N4?4:value<N5?5:value<N6?6:value<N7?7:value<N8?8:value<N9?9:10}},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(21)}]);