diff --git a/asset-manifest.json b/asset-manifest.json index 684dfb1..0b4efd5 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "./static/css/main.6de02ded.css", - "main.js": "./static/js/main.5a458c9d.js", + "main.js": "./static/js/main.cf3838da.js", "static/js/689.1ef883c6.chunk.js": "./static/js/689.1ef883c6.chunk.js", "static/js/820.cbe001b3.chunk.js": "./static/js/820.cbe001b3.chunk.js", "static/js/589.bdebad1c.chunk.js": "./static/js/589.bdebad1c.chunk.js", @@ -46,7 +46,7 @@ "static/media/logo.svg": "./static/media/logo.df3020d415494c326a8626b5e291c1b3.svg", "static/media/refreshIcon.svg": "./static/media/refreshIcon.2cefe3dc34c2d8e2bf081517ce2a0fd9.svg", "main.6de02ded.css.map": "./static/css/main.6de02ded.css.map", - "main.5a458c9d.js.map": "./static/js/main.5a458c9d.js.map", + "main.cf3838da.js.map": "./static/js/main.cf3838da.js.map", "689.1ef883c6.chunk.js.map": "./static/js/689.1ef883c6.chunk.js.map", "820.cbe001b3.chunk.js.map": "./static/js/820.cbe001b3.chunk.js.map", "589.bdebad1c.chunk.js.map": "./static/js/589.bdebad1c.chunk.js.map", @@ -83,6 +83,6 @@ }, "entrypoints": [ "static/css/main.6de02ded.css", - "static/js/main.5a458c9d.js" + "static/js/main.cf3838da.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 697e33b..5b7fd20 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -D8X Risk
\ No newline at end of file +D8X Risk
\ No newline at end of file diff --git a/static/js/main.5a458c9d.js b/static/js/main.cf3838da.js similarity index 53% rename from static/js/main.5a458c9d.js rename to static/js/main.cf3838da.js index cd3ad34..2161ec7 100644 --- a/static/js/main.5a458c9d.js +++ b/static/js/main.cf3838da.js @@ -1,3 +1,3 @@ -/*! For license information please see main.5a458c9d.js.LICENSE.txt */ -!function(){var e={4213:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=4213,e.exports=t},83361:function(e,t,n){"use strict";n.d(t,{Z:function(){return ae}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(w,--g):0,m--,10===b&&(m=1,y--),b}function C(){return b=g2||P(b)>3?"":" "}function Z(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,E()+(t<6&&32==S()&&32==C()))}function R(e){for(;C();)switch(b){case e:return g;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:C()}return g}function j(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+A(t,g-1)+"*"+i(47===e?e:C())}function B(e){for(;!P(S());)C();return A(e,g)}var F="-ms-",N="-moz-",L="-webkit-",D="comm",U="rule",z="decl",q="@keyframes";function H(e,t){for(var n="",r=p(e),a=0;a0&&d(N)-v&&h(b>32?Y(N+";",r,n,v-1):Y(s(N," ","")+";",r,n,v-2),p);break;case 59:N+=";";default:if(h(F=G(N,t,n,y,m,a,f,M,_=[],R=[],v),o),123===P)if(0===m)K(N,t,F,F,_,o,v,f,R);else switch(99===g&&110===c(N,3)?100:g){case 100:case 108:case 109:case 115:K(e,F,F,r&&h(G(e,F,F,0,0,a,f,M,a,_=[],v),R),a,R,v,f,r?_:R);break;default:K(N,F,F,F,[""],R,0,f,R)}}y=m=b=0,x=A=1,M=N="",v=u;break;case 58:v=1+d(N),b=w;default:if(x<1)if(123==P)--x;else if(125==P&&0==x++&&125==k())continue;switch(N+=i(P),P*x){case 38:A=m>0?1:(N+="\f",-1);break;case 44:f[y++]=(d(N)-1)*A,A=1;break;case 64:45===S()&&(N+=I(C())),g=S(),m=v=d(M=N+=B(E())),P++;break;case 45:45===w&&2==d(N)&&(x=0)}}return o}function G(e,t,n,r,i,o,l,c,d,h,y){for(var m=i-1,v=0===i?o:[""],g=p(v),b=0,w=0,T=0;b0?v[k]+" "+C:s(C,/&\f/g,v[k])))&&(d[T++]=S);return x(e,t,n,0===i?U:c,d,h,y)}function Q(e,t,n){return x(e,t,n,D,i(b),f(e,2,-2),0)}function Y(e,t,n,r){return x(e,t,n,z,f(e,0,r),f(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,a=0;r=a,a=S(),38===r&&12===a&&(t[n]=1),!P(a);)C();return A(e,g)},X=function(e,t){return _(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=J(g-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=C());return e}(M(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var a=[],i=X(t,a),o=n.props,u=0,s=0;u6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+N+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?ne(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return s(e,":",":"+L)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===c(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return L+e+F+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+F+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+F+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+F+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ne(e.value,e.length);break;case q:return H([T(e,{value:s(e.value,"@","@"+L)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([T(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([T(e,{props:[s(t,/:(plac\w+)/,":"+L+"input-$1")]}),T(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[s(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||re;var i,o,u={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s;return{name:l,styles:a,next:d}}},82561:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return o}});var a=n(72791),i=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,o=i||function(e){return e()};i||a.useLayoutEffect},82056:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="abi/5.7.0"},65054:function(e,t,n){"use strict";n.d(t,{R:function(){return B},$:function(){return F}});var r=n(15671),a=n(43144),i=n(49716),o=n(30520),u=n(39502),s=n(82056),l=n(73198),c=n(60136),f=n(29388),d=n(97419),p=function(e){(0,c.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"address","address",e,!1)}return(0,a.Z)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=(0,d.getAddress)(t)}catch(n){this._throwError(n.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return(0,d.getAddress)((0,i.hexZeroPad)(e.readValue().toHexString(),20))}}]),n}(l.XI),h=function(e){(0,c.Z)(n,e);var t=(0,f.Z)(n);function n(e){var a;return(0,r.Z)(this,n),(a=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,a}return(0,a.Z)(n,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),n}(l.XI),y=new u.Logger(s.i);function m(e,t,n){var r=null;if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){var a={};r=t.map((function(e){var t=e.localName;return t||y.throwError("cannot encode object for signature with missing names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),a[t]&&y.throwError("cannot encode object for signature with duplicate names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),a[t]=!0,n[t]}))}else y.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&y.throwArgumentError("types/value length mismatch","tuple",n);var i=new l.QV(e.wordSize),o=new l.QV(e.wordSize),s=[];t.forEach((function(e,t){var n=r[t];if(e.dynamic){var a=o.length;e.encode(o,n);var u=i.writeUpdatableValue();s.push((function(e){u(e+a)}))}else e.encode(i,n)})),s.forEach((function(e){e(i.length)}));var c=e.appendWriter(i);return c+=e.appendWriter(o)}function v(e,t){var n=[],r=e.subReader(0);t.forEach((function(t){var a=null;if(t.dynamic){var i=e.readValue(),o=r.subReader(i.toNumber());try{a=t.decode(o)}catch(s){if(s.code===u.Logger.errors.BUFFER_OVERRUN)throw s;(a=s).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(s){if(s.code===u.Logger.errors.BUFFER_OVERRUN)throw s;(a=s).baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&n.push(a)}));var a=t.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach((function(e,t){var r=e.localName;if(r&&1===a[r]&&("length"===r&&(r="_length"),null==n[r])){var i=n[t];i instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:function(){throw i}}):n[r]=i}}));for(var i=function(){var e=n[o];e instanceof Error&&Object.defineProperty(n,o,{enumerable:!0,get:function(){throw e}})},o=0;o=0?a:"")+"]",s=-1===a||e.dynamic;return(o=t.call(this,"array",u,i,s)).coder=e,o.length=a,o}return(0,a.Z)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;ne._data.length&&y.throwError("insufficient data length",u.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r256||r%8!==0)&&Z.throwArgumentError("invalid "+n[1]+" bit length","param",e),new P(r/8,"int"===n[1],e.name)}if(n=e.type.match(R)){var a=parseInt(n[1]);return(0===a||a>32)&&Z.throwArgumentError("invalid bytes length","param",e),new C(a,e.name)}return Z.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new l.Ej(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new l.QV(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(O._R.from(e))}));return new I(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&Z.throwError("types/values length mismatch",u.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(O._R.from(e))})),a=new I(r,"_"),i=this._getWriter();return a.encode(i,t),i.data}},{key:"decode",value:function(e,t,n){var r=this,a=e.map((function(e){return r._getCoder(O._R.from(e))}));return new I(a,"_").decode(this._getReader((0,i.arrayify)(t),n))}}]),e}(),F=new B},73198:function(e,t,n){"use strict";n.d(t,{BR:function(){return f},Ej:function(){return h},QV:function(){return p},XI:function(){return d}});var r=n(15671),a=n(43144),i=n(49716),o=n(2257),u=n(30520),s=n(39502),l=n(82056),c=new s.Logger(l.i);function f(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var a in r){var i=n.slice();i.push(a);try{e(i,r[a])}catch(o){t.push({path:i,error:o})}}}([],e),t}var d=function(){function e(t,n,a,i){(0,r.Z)(this,e),this.name=t,this.type=n,this.localName=a,this.dynamic=i}return(0,a.Z)(e,[{key:"_throwError",value:function(e,t){c.throwArgumentError(e,this.localName,t)}}]),e}(),p=function(){function e(t){(0,r.Z)(this,e),(0,u.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,i.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,i.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,i.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,i.arrayify)(o.O$.from(e));return t.length>this.wordSize&&c.throwError("value out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,i.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),h=function(){function e(t,n,a,o){(0,r.Z)(this,e),(0,u.defineReadOnly)(this,"_data",(0,i.arrayify)(t)),(0,u.defineReadOnly)(this,"wordSize",n||32),(0,u.defineReadOnly)(this,"_coerceFunc",a),(0,u.defineReadOnly)(this,"allowLoose",o),this._offset=0}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:c.throwError("data out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return o.O$.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}()},33165:function(e,t,n){"use strict";n.d(t,{HY:function(){return x},IC:function(){return M},QV:function(){return T},Xg:function(){return E},YW:function(){return A},_R:function(){return b},pc:function(){return v}});var r=n(60136),a=n(29388),i=n(15671),o=n(43144),u=n(2257),s=n(30520),l=n(39502),c=n(82056),f=new l.Logger(c.i),d={},p={calldata:!0,memory:!0,storage:!0},h={calldata:!0,memory:!0};function y(e,t){if("bytes"===e||"string"===e){if(p[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&h[t])return!0;return(p[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function m(e,t){for(var n in t)(0,s.defineReadOnly)(e,n,t[n])}var v=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),g=new RegExp(/^(.*)\[([0-9]*)\]$/),b=function(){function e(t,n){(0,i.Z)(this,e),t!==d&&f.throwError("use fromString",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),m(this,n);var r=this.type.match(g);m(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,o.Z)(e,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==v.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+")"):n+=this.type,e!==v.sighash&&(!0===this.indexed&&(n+=" indexed"),e===v.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"===typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(d,{name:t.name||null,type:_(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return r=function(e,t){var n=e;function r(t){f.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,u=0;u2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=u.O$.from(n[1]),n[0]):e}function C(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function S(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}var E=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===v.sighash&&f.throwError("cannot format a constructor for sighash",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);var t=S(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?u.O$.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=k(e,t)).match(Z);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=w(r[2].trim(),!1),C(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(x),A=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ",e!==v.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);var t=S(e),r={type:e.type,name:O(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(b.fromObject):[],outputs:e.outputs?e.outputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?u.O$.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=k(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);var a=r[0].match(Z);if(a||f.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&O(t.name),t.inputs=w(a[2],!1),C(a[3].trim(),t),r.length>1){var i=r[1].match(Z);""==i[1].trim()&&""==i[3].trim()||f.throwArgumentError("unexpected tokens","value",e),t.outputs=w(i[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(E);function P(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||f.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var M=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:O(e.name),inputs:e.inputs?e.inputs.map(b.fromObject):[]};return P(new n(d,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(Z);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&O(t.name),t.inputs=w(r[2],!1),P(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(x);function _(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var I=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function O(e){return e&&e.match(I)||f.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var Z=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},18334:function(e,t,n){"use strict";n.r(t),n.d(t,{AbiCoder:function(){return a.R},ConstructorFragment:function(){return r.Xg},ErrorFragment:function(){return r.IC},EventFragment:function(){return r.QV},FormatTypes:function(){return r.pc},Fragment:function(){return r.HY},FunctionFragment:function(){return r.YW},Indexed:function(){return i.Hk},Interface:function(){return i.vU},LogDescription:function(){return i.CC},ParamType:function(){return r._R},TransactionDescription:function(){return i.vk},checkResultErrors:function(){return o.BR},defaultAbiCoder:function(){return a.$}});var r=n(33165),a=n(65054),i=n(17303),o=n(73198)},17303:function(e,t,n){"use strict";n.d(t,{CC:function(){return g},Hk:function(){return x},vU:function(){return C},vk:function(){return b}});var r=n(43144),a=n(15671),i=n(60136),o=n(29388),u=n(97419),s=n(2257),l=n(49716),c=n(51583),f=n(88062),d=n(30520),p=n(65054),h=n(33165),y=n(39502),m=n(82056),v=new y.Logger(m.i),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),b=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),w=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),x=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(d.Description),T={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function k(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var C=function(){function e(t){var n=this;(0,a.Z)(this,e);var r=[];r="string"===typeof t?JSON.parse(t):t,(0,d.defineReadOnly)(this,"fragments",r.map((function(e){return h.HY.from(e)})).filter((function(e){return null!=e}))),(0,d.defineReadOnly)(this,"_abiCoder",(0,d.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,d.defineReadOnly)(this,"functions",{}),(0,d.defineReadOnly)(this,"errors",{}),(0,d.defineReadOnly)(this,"events",{}),(0,d.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void v.warn("duplicate definition - constructor"):void(0,d.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;case"error":t=n.errors;break;default:return}var r=e.format();t[r]?v.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,d.defineReadOnly)(this,"deploy",h.Xg.from({payable:!1,type:"constructor"})),(0,d.defineReadOnly)(this,"_isInterface",!0)}return(0,r.Z)(e,[{key:"format",value:function(e){e||(e=h.pc.full),e===h.pc.sighash&&v.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===h.pc.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,l.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];v.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?v.throwArgumentError("no matching function","name",n):r.length>1&&v.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var a=this.functions[h.YW.fromString(e).format()];return a||v.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if((0,l.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];v.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?v.throwArgumentError("no matching event","name",r):a.length>1&&v.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}var i=this.events[h.QV.fromString(e).format()];return i||v.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if((0,l.isHexString)(e)){var t=(0,d.getStatic)(this.constructor,"getSighash");for(var n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}v.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?v.throwArgumentError("no matching error","name",r):a.length>1&&v.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}var i=this.errors[h.YW.fromString(e).format()];return i||v.throwArgumentError("no matching error","signature",e),i}},{key:"getSighash",value:function(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(n){throw t}}return(0,d.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),(0,d.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"===typeof e&&(e=this.getError(e));var n=(0,l.arrayify)(t);return(0,l.hexlify)(n.slice(0,4))!==this.getSighash(e)&&v.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,l.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"===typeof e&&(e=this.getError(e)),(0,l.hexlify)((0,l.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=(0,l.arrayify)(t);return(0,l.hexlify)(n.slice(0,4))!==this.getSighash(e)&&v.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,l.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,l.hexlify)((0,l.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=(0,l.arrayify)(t),r=null,a="",i=null,o=null,u=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(f){}break;case 4:var s=(0,l.hexlify)(n.slice(0,4)),c=T[s];if(c)i=this._abiCoder.decode(c.inputs,n.slice(4)),o=c.name,u=c.signature,c.reason&&(r=i[0]),"Error"===o?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(i[0])):"Panic"===o&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(i[0]));else try{var f=this.getError(s);i=this._abiCoder.decode(f.inputs,n.slice(4)),o=f.name,u=f.format()}catch(f){}}return v.throwError("call revert exception"+a,y.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,l.hexlify)(t),errorArgs:i,errorName:o,errorSignature:u,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,l.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&v.throwError("too many arguments for "+e.format(),y.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var a=function(e,t){return"string"===e.type?(0,c.id)(t):"bytes"===e.type?(0,f.keccak256)((0,l.hexlify)(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=s.O$.from(t).toHexString()),"address"===e.type&&n._abiCoder.encode(["address"],[t]),(0,l.hexZeroPad)((0,l.hexlify)(t),32))};for(t.forEach((function(t,n){var i=e.inputs[n];i.indexed?null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?v.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map((function(e){return a(i,e)}))):r.push(a(i,t)):null!=t&&v.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e));var r=[],a=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&v.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var u=t[o];if(e.indexed)if("string"===e.type)r.push((0,c.id)(u));else if("bytes"===e.type)r.push((0,f.keccak256)(u));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[u]))}else a.push(e),i.push(u)})),{data:this._abiCoder.encode(a,i),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"===typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);(0,l.isHexString)(n[0],32)&&n[0].toLowerCase()===r||v.throwError("fragment/topic mismatch",y.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var a=[],i=[],o=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(h._R.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(a.push(e),o.push(!1)):(i.push(e),o.push(!1))}));var u=null!=n?this._abiCoder.decode(a,(0,l.concat)(n)):null,s=this._abiCoder.decode(i,t,!0),c=[],f=0,d=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==u)c[t]=new x({_isIndexed:!0,hash:null});else if(o[t])c[t]=new x({_isIndexed:!0,hash:u[d++]});else try{c[t]=u[d++]}catch(r){c[t]=r}else try{c[t]=s[f++]}catch(r){c[t]=r}if(e.name&&null==c[e.name]){var n=c[t];n instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:function(){throw k("property ".concat(JSON.stringify(e.name)),n)}}):c[e.name]=n}}));for(var p=function(e){var t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:function(){throw k("index ".concat(e),t)}})},m=0;m=0)throw e;return d.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",c.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&d.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,(0,l.resolveProperties)(n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||d.throwError("missing provider",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),m=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(e,a){var i;return(0,u.Z)(this,n),i=t.call(this),(0,l.defineReadOnly)((0,r.Z)(i),"address",e),(0,l.defineReadOnly)((0,r.Z)(i),"provider",a||null),i}return(0,s.Z)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){d.throwError(e,c.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new n(this.address,e)}}]),n}(y)},97419:function(e,t,n){"use strict";n.r(t),n.d(t,{getAddress:function(){return y},getContractAddress:function(){return g},getCreate2Address:function(){return b},getIcapAddress:function(){return v},isAddress:function(){return m}});var r=n(49716),a=n(2257),i=n(88062),o=n(17986),u=new(n(39502).Logger)("address/5.7.0");function s(e){(0,r.isHexString)(e,20)||u.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),a=0;a<40;a++)n[a]=t[a].charCodeAt(0);for(var o=(0,r.arrayify)((0,i.keccak256)(n)),s=0;s<40;s+=2)o[s>>1]>>4>=8&&(t[s]=t[s].toUpperCase()),(15&o[s>>1])>=8&&(t[s+1]=t[s+1].toUpperCase());return"0x"+t.join("")}for(var l={},c=0;c<10;c++)l[String(c)]=String(c);for(var f=0;f<26;f++)l[String.fromCharCode(65+f)]=String(10+f);var d,p=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));function h(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return l[e]})).join("");t.length>=p;){var n=t.substring(0,p);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function y(e){var t=null;if("string"!==typeof e&&u.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=s(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&u.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==h(e)&&u.throwArgumentError("bad icap checksum","address",e),t=(0,a.g$)(e.substring(4));t.length<40;)t="0"+t;t=s("0x"+t)}else u.throwArgumentError("invalid address","address",e);return t}function m(e){try{return y(e),!0}catch(t){}return!1}function v(e){for(var t=(0,a.t2)(y(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+h("XE00"+t)+t}function g(e){var t=null;try{t=y(e.from)}catch(s){u.throwArgumentError("missing from address","transaction",e)}var n=(0,r.stripZeros)((0,r.arrayify)(a.O$.from(e.nonce).toHexString()));return y((0,r.hexDataSlice)((0,i.keccak256)((0,o.encode)([t,n])),12))}function b(e,t,n){return 32!==(0,r.hexDataLength)(t)&&u.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.hexDataLength)(n)&&u.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),y((0,r.hexDataSlice)((0,i.keccak256)((0,r.concat)(["0xff",y(e),t,n])),12))}},87354:function(e,t,n){"use strict";n.d(t,{J:function(){return a},c:function(){return i}});var r=n(49716);function a(e){e=atob(e);for(var t=[],n=0;n0;)n.push(a%this.base),a=a/this.base|0}for(var u="",s=0;0===t[s]&&s=0;--l)u+=this.alphabet[n[l]];return u}},{key:"decode",value:function(e){if("string"!==typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;a>0;)t.push(255&a),a>>=8}for(var u=0;e[u]===this._leader&&u0&&(10===arguments[0]?y||(y=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",s.Logger.errors.UNEXPECTED_ARGUMENT,{})),b(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(d,v(t)):t.match(/^-?[0-9]+$/)?new e(d,v(new c(t))):f.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&w("underflow","BigNumber.from",t),(t>=p||t<=-p)&&w("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"===typeof n)return e.from(n.toString());if((0,u.isBytes)(n))return e.from((0,u.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"===typeof r)return e.from(r)}else{var a=n._hex;if(null==a&&"BigNumber"===n.type&&(a=n.hex),"string"===typeof a&&((0,u.isHexString)(a)||"-"===a[0]&&(0,u.isHexString)(a.substring(1))))return e.from(a)}return f.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function v(e){if("string"!==typeof e)return v(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&f.throwArgumentError("invalid hex","value",e),"0x00"===(e=v(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function g(e){return m.from(v(e))}function b(e){var t=m.from(e).toHexString();return"-"===t[0]?new c("-"+t.substring(3),16):new c(t.substring(2),16)}function w(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),f.throwError(e,s.Logger.errors.NUMERIC_FAULT,r)}function x(e){return new c(e,36).toString(16)}function T(e){return new c(e,16).toString(36)}},49716:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayify:function(){return l},concat:function(){return c},hexConcat:function(){return g},hexDataLength:function(){return m},hexDataSlice:function(){return v},hexStripZeros:function(){return w},hexValue:function(){return b},hexZeroPad:function(){return x},hexlify:function(){return y},isBytes:function(){return s},isBytesLike:function(){return o},isHexString:function(){return p},joinSignature:function(){return k},splitSignature:function(){return T},stripZeros:function(){return f},zeroPad:function(){return d}});var r=new(n(39502).Logger)("bytes/5.7.0");function a(e){return!!e.toHexString}function i(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return p(e)&&!(e.length%2)||s(e)}function u(e){return"number"===typeof e&&e==e&&e%1===0}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!u(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),i(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),p(e)){var o=e.substring(2);o.length%2&&("left"===t.hexPad?o="0"+o:"right"===t.hexPad?o+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var u=[],l=0;lt&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),i(n)}function p(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}var h="0123456789abcdef";function y(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=h[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){for(var i="0x",o=0;o>4]+h[15&u]}return i}return r.throwArgumentError("invalid hexlify value","value",e)}function m(e){if("string"!==typeof e)e=y(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function v(e,t,n){return"string"!==typeof e?e=y(e):(!p(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function g(e){var t="0x";return e.forEach((function(e){t+=y(e).substring(2)})),t}function b(e){var t=w(y(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!==typeof e&&(e=y(e)),p(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function T(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){var n=l(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=y(n.slice(0,32)),t.s=y(n.slice(32,64))):65===n.length?(t.r=y(n.slice(0,32)),t.s=y(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=y(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var a=d(l(t._vs),32);t._vs=y(a);var i=a[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;var u=y(a);null==t.s?t.s=u:t.s!==u&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var s=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==s&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=x(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=x(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var c=l(t.s);c[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(c[0]|=128);var f=y(c);t._vs&&(p(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=x(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function k(e){return y(c([(e=T(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},75422:function(e,t,n){"use strict";n.d(t,{Bz:function(){return u},_Y:function(){return i},fh:function(){return o},tL:function(){return a}});var r=n(2257),a=r.O$.from(-1),i=r.O$.from(0),o=r.O$.from(1),u=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},84867:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r="0x0000000000000000000000000000000000000000000000000000000000000000"},49366:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="hash/5.7.0"},51583:function(e,t,n){"use strict";n.d(t,{id:function(){return i}});var r=n(88062),a=n(83374);function i(e){return(0,r.keccak256)((0,a.Y0)(e))}},81049:function(e,t,n){"use strict";n.r(t),n.d(t,{_TypedDataEncoder:function(){return o.E},dnsEncode:function(){return a.Kn},ensNormalize:function(){return a.w3},hashMessage:function(){return i.r},id:function(){return r.id},isValidName:function(){return a.r1},messagePrefix:function(){return i.B},namehash:function(){return a.VM}});var r=n(51583),a=n(95235),i=n(2273),o=n(35992)},2273:function(e,t,n){"use strict";n.d(t,{B:function(){return o},r:function(){return u}});var r=n(49716),a=n(88062),i=n(83374),o="\x19Ethereum Signed Message:\n";function u(e){return"string"===typeof e&&(e=(0,i.Y0)(e)),(0,a.keccak256)((0,r.concat)([(0,i.Y0)(o),(0,i.Y0)(String(e.length)),e]))}},95235:function(e,t,n){"use strict";n.d(t,{Kn:function(){return N},w3:function(){return j},r1:function(){return B},VM:function(){return F}});var r=n(49716),a=n(83374),i=n(88062),o=n(39502),u=n(49366),s=n(93433),l=n(37762);function c(e,t){null==t&&(t=1);var n=[],r=n.forEach;return function e(t,a){r.call(t,(function(t){a>0&&Array.isArray(t)?e(t,a-1):n.push(t)}))}(e,t),n}function f(e){return function(e){var t=0;return function(){return e[t++]}}(function(e){var t=0;function n(){return e[t++]<<8|e[t++]}for(var r=n(),a=1,i=[0,1],o=1;o>--l&1}for(var d=Math.pow(2,31),p=d>>>1,h=p>>1,y=d-1,m=0,v=0;v<31;v++)m=m<<1|f();for(var g=[],b=0,w=d;;){for(var x=Math.floor(((m-b+1)*a-1)/w),T=0,k=r;k-T>1;){var C=T+k>>>1;x>>1|f(),S=S<<1^p,E=(E^p)<<1|p|1;b=S,w=1+E-S}var A=r-4;return g.map((function(t){switch(t-A){case 3:return A+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return A+256+(e[s++]<<8|e[s++]);case 1:return A+e[s++];default:return t-1}}))}(e))}function d(e){return 1&e?~e>>1:e>>1}function p(e,t){for(var n=Array(e),r=0,a=-1;r>=1),check:2==i}}()}(b),C=45,S=95;function E(e){return(0,a.XL)(e)}function A(e){return e.filter((function(e){return 65039!=e}))}function P(e){var t,n=(0,l.Z)(e.split("."));try{for(n.s();!(t=n.n()).done;){var r=t.value,a=E(r);try{for(var i=a.lastIndexOf(S)-1;i>=0;i--)if(a[i]!==S)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every((function(e){return e<128}))&&a[2]===C&&a[3]===C)throw new Error("invalid label extension")}catch(o){throw new Error('Invalid label "'.concat(r,'": ').concat(o.message))}}}catch(o){n.e(o)}finally{n.f()}return e}function M(e){return P(function(e,t){var n=E(e).reverse(),r=[];for(;n.length;){var a=_(n);if(a)r.push.apply(r,(0,s.Z)(t(a)));else{var i=n.pop();if(w.has(i))r.push(i);else if(!x.has(i)){var o=T[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));r.push.apply(r,(0,s.Z)(o))}}}return P((u=String.fromCodePoint.apply(String,r),u.normalize("NFC")));var u}(e,A))}function _(e,t){var n,r,a,i=k,o=[],u=e.length;t&&(t.length=0);for(var l=function(){var l=e[--u];if(!(i=null===(n=i.branches.find((function(e){return e.set.has(l)})))||void 0===n?void 0:n.node))return"break";if(i.save)a=l;else if(i.check&&l===a)return"break";o.push(l),i.fe0f&&(o.push(65039),u>0&&65039==e[u-1]&&u--),i.valid&&(r=o.slice(),2==i.valid&&r.splice(1,1),t&&t.push.apply(t,(0,s.Z)(e.slice(u).reverse())),e.length=u)};u;){if("break"===l())break}return r}var I=new o.Logger(u.i),O=new Uint8Array(32);function Z(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function R(e){var t=(0,a.Y0)(M(e)),n=[];if(0===e.length)return n;for(var r=0,i=0;i=t.length)throw new Error("invalid ENS name; empty component");return n.push(Z(t.slice(r))),n}function j(e){return R(e).map((function(e){return(0,a.ZN)(e)})).join(".")}function B(e){try{return 0!==R(e).length}catch(t){}return!1}function F(e){"string"!==typeof e&&I.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=O,n=R(e);n.length;)t=(0,i.keccak256)((0,r.concat)([t,(0,i.keccak256)(n.pop())]));return(0,r.hexlify)(t)}function N(e){return(0,r.hexlify)((0,r.concat)(R(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}O.fill(0)},35992:function(e,t,n){"use strict";n.d(t,{E:function(){return M}});var r=n(74165),a=n(15671),i=n(43144),o=n(97419),u=n(2257),s=n(49716),l=n(88062),c=n(30520),f=n(39502),d=n(49366),p=n(51583),h=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}s((r=r.apply(e,t||[])).next())}))},y=new f.Logger(d.i),m=new Uint8Array(32);m.fill(0);var v=u.O$.from(-1),g=u.O$.from(0),b=u.O$.from(1),w=u.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var x=(0,s.hexZeroPad)(b.toHexString(),32),T=(0,s.hexZeroPad)(g.toHexString(),32),k={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},C=["name","version","chainId","verifyingContract","salt"];function S(e){return function(t){return"string"!==typeof t&&y.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var E={name:S("name"),version:S("version"),chainId:function(e){try{return u.O$.from(e).toString()}catch(t){}return y.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,o.getAddress)(e).toLowerCase()}catch(t){}return y.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,s.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,s.hexlify)(t)}catch(n){}return y.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function A(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!==0||r>256||t[2]&&t[2]!==String(r))&&y.throwArgumentError("invalid numeric width","type",e);var a=w.mask(n?r-1:r),i=n?a.add(b).mul(v):g;return function(t){var n=u.O$.from(t);return(n.lt(i)||n.gt(a))&&y.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,s.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var c=e.match(/^bytes(\d+)$/);if(c){var f=parseInt(c[1]);return(0===f||f>32||c[1]!==String(f))&&y.throwArgumentError("invalid bytes width","type",e),function(t){return(0,s.arrayify)(t).length!==f&&y.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,s.arrayify)(e),n=t.length%32;return n?(0,s.hexConcat)([t,m.slice(n)]):(0,s.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,o.getAddress)(e),32)};case"bool":return function(e){return e?x:T};case"bytes":return function(e){return(0,l.keccak256)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function P(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var M=function(){function e(t){(0,a.Z)(this,e),(0,c.defineReadOnly)(this,"types",Object.freeze((0,c.deepCopy)(t))),(0,c.defineReadOnly)(this,"_encoderCache",{}),(0,c.defineReadOnly)(this,"_types",{});var n={},r={},i={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],i[e]={}}));var o=function(e){var a={};t[e].forEach((function(i){a[i.name]&&y.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(e)),"types",t),a[i.name]=!0;var o=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===e&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),A(o)||(r[o]||y.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),r[o].push(e),n[e][o]=!0)}))};for(var u in t)o(u);var s=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var l in 0===s.length?y.throwArgumentError("missing primary type","types",t):s.length>1&&y.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,c.defineReadOnly)(this,"primaryType",s[0]),function e(a,o){o[a]&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),o[a]=!0,Object.keys(n[a]).forEach((function(t){r[t]&&(e(t,o),Object.keys(o).forEach((function(e){i[e][t]=!0})))})),delete o[a]}(this.primaryType,{}),i){var f=Object.keys(i[l]);f.sort(),this._types[l]=P(l,t[l])+f.map((function(e){return P(e,t[e])})).join("")}}return(0,i.Z)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=A(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var a=r[1],i=this.getEncoder(a),o=parseInt(r[3]);return function(e){o>=0&&e.length!==o&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(i);return t._types[a]&&(n=n.map(l.keccak256)),(0,l.keccak256)((0,s.hexConcat)(n))}}var u=this.types[e];if(u){var c=(0,p.id)(this._types[e]);return function(e){var n=u.map((function(n){var r=n.name,a=n.type,i=t.getEncoder(a)(e[r]);return t._types[a]?(0,l.keccak256)(i):i}));return n.unshift(c),(0,s.hexConcat)(n)}}return y.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||y.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,l.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(A(e))return n(e,t);var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],o=parseInt(a[3]);return o>=0&&t.length!==o&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(i,e,n)}))}var u=this.types[e];return u?u.reduce((function(e,a){var i=a.name,o=a.type;return e[i]=r._visit(o,t[i],n),e}),{}):y.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var a=k[r];a||y.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:a})}return n.sort((function(e,t){return C.indexOf(e.name)-C.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return(0,s.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return(0,l.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,a,i){return h(this,void 0,void 0,(0,r.Z)().mark((function o(){var u,l,f;return(0,r.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,c.shallowCopy)(t),u={},t.verifyingContract&&!(0,s.isHexString)(t.verifyingContract,20)&&(u[t.verifyingContract]="0x"),(l=e.from(n)).visit(a,(function(e,t){return"address"!==e||(0,s.isHexString)(t,20)||(u[t]="0x"),t})),o.t0=(0,r.Z)().keys(u);case 6:if((o.t1=o.t0()).done){o.next=13;break}return f=o.t1.value,o.next=10,i(f);case 10:u[f]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&u[t.verifyingContract]&&(t.verifyingContract=u[t.verifyingContract]),a=l.visit(a,(function(e,t){return"address"===e&&u[t]?u[t]:t})),o.abrupt("return",{domain:t,value:a});case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var a={},i=[];C.forEach((function(e){var n=t[e];null!=n&&(a[e]=E[e](n),i.push({name:e,type:k[e]}))}));var o=e.from(n),l=(0,c.shallowCopy)(n);return l.EIP712Domain?y.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):l.EIP712Domain=i,o.encode(r),{types:l,domain:a,primaryType:o.primaryType,message:o.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return u.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&y.throwArgumentError("invalid string","value",t),t}return y.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},15148:function(e,t,n){"use strict";n.r(t),n.d(t,{HDNode:function(){return j},defaultPath:function(){return R},entropyToMnemonic:function(){return N},getAccountPath:function(){return D},isValidMnemonic:function(){return L},mnemonicToEntropy:function(){return F},mnemonicToSeed:function(){return B}});var r=n(15671),a=n(43144),i=n(3482),o=n(49716),u=n(2257),s=n(83374),l=n(72522),c=n(30520),f=n(78865),d=n(39598),p=n(24667),h=n(25452),y=n(60136),m=n(29388),v=n(51583),g=n(39502),b=new g.Logger("wordlists/5.7.0"),w=function(){function e(t){(0,r.Z)(this,e),b.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,c.defineReadOnly)(this,"locale",t)}return(0,a.Z)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return(0,v.id)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}(),x=null;function T(e){if(null==x&&(x="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==w.check(e)))throw x=null,new Error("BIP39 Wordlist for en (English) FAILED")}var k=new(function(e){(0,y.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,"en")}return(0,a.Z)(n,[{key:"getWord",value:function(e){return T(this),x[e]}},{key:"getWordIndex",value:function(e){return T(this),x.indexOf(e)}}]),n}(w));w.register(k);var C={en:k},S=new g.Logger("hdnode/5.7.0"),E=u.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),A=(0,s.Y0)("Bitcoin seed"),P=2147483648;function M(e){return(1<=256)throw new Error("Depth too large!");return I((0,o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,o.hexlify)(this.depth),this.parentFingerprint,(0,o.hexZeroPad)((0,o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,o.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(Z,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(t&~P));var r=new Uint8Array(37);if(t&P){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,o.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)r[33+(a>>3)]=t>>24-a&255;var i=(0,o.arrayify)((0,d.Gy)(p.p.sha512,this.chainCode,r)),s=i.slice(0,32),l=i.slice(32),c=null,h=null;this.privateKey?c=_(u.O$.from(s).add(this.privateKey).mod(E)):h=new f.SigningKey((0,o.hexlify)(s))._addPoint(this.publicKey);var y=n,m=this.mnemonic;return m&&(y=Object.freeze({phrase:m.phrase,path:n,locale:m.locale||"en"})),new e(Z,c,h,this.fingerprint,_(l),t,this.depth+1,y)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r=P)throw new Error("invalid path index - "+a);n=n._derive(P+i)}else{if(!a.match(/^[0-9]+$/))throw new Error("invalid path component - "+a);var o=parseInt(a);if(o>=P)throw new Error("invalid path index - "+a);n=n._derive(o)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=(0,o.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var a=(0,o.arrayify)((0,d.Gy)(p.p.sha512,A,r));return new e(Z,_(a.slice(0,32)),null,"0x00000000",_(a.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=N(F(t,r=O(r)),r),e._fromSeed(B(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=i.Base58.decode(t);82===n.length&&I(n.slice(0,78))===t||S.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],a=(0,o.hexlify)(n.slice(5,9)),u=parseInt((0,o.hexlify)(n.slice(9,13)).substring(2),16),s=(0,o.hexlify)(n.slice(13,45)),l=n.slice(45,78);switch((0,o.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(Z,null,(0,o.hexlify)(l),a,s,u,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new e(Z,(0,o.hexlify)(l.slice(1)),null,a,s,u,r,null)}return S.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function B(e,t){t||(t="");var n=(0,s.Y0)("mnemonic"+t,s.Uj.NFKD);return(0,l.n)((0,s.Y0)(e,s.Uj.NFKD),n,2048,64,"sha512")}function F(e,t){t=O(t),S.checkNormalize();var n=t.split(e);if(n.length%3!==0)throw new Error("invalid mnemonic");for(var r=(0,o.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var l=32*n.length/3,c=M(n.length/3);if(((0,o.arrayify)((0,d.JQ)(r.slice(0,l/8)))[0]&c)!==(r[r.length-1]&c))throw new Error("invalid checksum");return(0,o.hexlify)(r.slice(0,l/8))}function N(e,t){if(t=O(t),(e=(0,o.arrayify)(e)).length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,a=0;a8?(n[n.length-1]<<=8,n[n.length-1]|=e[a],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[a]>>8-r,n.push(e[a]&(1<<8-r)-1),r+=3);var i=e.length/4,u=(0,o.arrayify)((0,d.JQ)(e))[0]&M(i);return n[n.length-1]<<=i,n[n.length-1]|=u>>8-i,t.join(n.map((function(e){return t.getWord(e)})))}function L(e,t){try{return F(e,t),!0}catch(n){}return!1}function D(e){return("number"!==typeof e||e<0||e>=P||e%1)&&S.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},95382:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="json-wallets/5.7.0"},31529:function(e,t,n){"use strict";n.r(t),n.d(t,{decryptCrowdsale:function(){return w},decryptJsonWallet:function(){return S},decryptJsonWalletSync:function(){return E},decryptKeystore:function(){return C.pe},decryptKeystoreSync:function(){return C.hb},encryptKeystore:function(){return C.HI},getJsonWalletAddress:function(){return k},isCrowdsaleWallet:function(){return x},isKeystoreWallet:function(){return T}});var r=n(15671),a=n(43144),i=n(60136),o=n(29388),u=n(30468),s=n.n(u),l=n(97419),c=n(49716),f=n(88062),d=n(72522),p=n(83374),h=n(30520),y=n(39502),m=n(95382),v=n(58661),g=new y.Logger(m.i),b=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(h.Description);function w(e,t){var n=JSON.parse(e);t=(0,v.Ij)(t);var r=(0,l.getAddress)((0,v.gx)(n,"ethaddr")),a=(0,v.p3)((0,v.gx)(n,"encseed"));a&&a.length%16===0||g.throwArgumentError("invalid encseed","json",e);for(var i=(0,c.arrayify)((0,d.n)(t,t,2e3,32,"sha256")).slice(0,16),o=a.slice(0,16),u=a.slice(16),h=new(s().ModeOfOperation.cbc)(i,o),y=s().padding.pkcs7.strip((0,c.arrayify)(h.decrypt(u))),m="",w=0;wu[n]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r>4],n+=p[15&t[i]];a.push(e+"=Uint8Array(0x"+n+")")}else a.push(e+"="+JSON.stringify(t))}catch(l){a.push(e+"="+JSON.stringify(r[e].toString()))}})),a.push("code=".concat(n)),a.push("version=".concat(this.version));var i=t,u="";switch(n){case f.NUMERIC_FAULT:u="NUMERIC_FAULT";var s=t;switch(s){case"overflow":case"underflow":case"division-by-zero":u+="-"+s;break;case"negative-power":case"negative-width":u+="-unsupported";break;case"unbound-bitwise-result":u+="-unbound-result"}break;case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:u=n}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),a.length&&(t+=" ("+a.join(", ")+")");var l=new Error(t);return l.reason=i,l.code=n,Object.keys(r).forEach((function(e){l[e]=r[e]})),l}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})}},{key:"checkSafeUint53",value:function(t,n){"number"===typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",tn&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return l||(l=new e("logger/5.7.0")),l}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),i){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!t,i=!!n}},{key:"setLogLevel",value:function(t){var n=u[t.toLowerCase()];null!=n?s=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();h.errors=f,h.levels=c},72522:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(49716),a=n(39598);function i(e,t,n,i,o){var u;e=(0,r.arrayify)(e),t=(0,r.arrayify)(t);var s,l,c=1,f=new Uint8Array(i),d=new Uint8Array(t.length+4);d.set(t);for(var p=1;p<=c;p++){d[t.length]=p>>24&255,d[t.length+1]=p>>16&255,d[t.length+2]=p>>8&255,d[t.length+3]=255&p;var h=(0,r.arrayify)((0,a.Gy)(o,e,d));u||(u=h.length,l=new Uint8Array(u),s=i-((c=Math.ceil(i/u))-1)*u),l.set(h);for(var y=1;y1024||e%1||e!=e)&&i.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return u.getRandomValues(t),(0,r.arrayify)(t)}u&&u.getRandomValues||(i.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return i.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},22282:function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,{y:function(){return r}})},17986:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return d},encode:function(){return l}});var r=n(49716),a=n(39502),i=new a.Logger("rlp/5.7.0");function o(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function u(e,t,n){for(var r=0,a=0;at+1+r&&i.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:o}}function f(e,t){if(0===e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&i.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});var o=u(e,t+1,n);return t+1+n+o>e.length&&i.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),c(e,t,t+1+n,n+o)}if(e[t]>=192){var s=e[t]-192;return t+1+s>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),c(e,t,t+1,s)}if(e[t]>=184){var l=e[t]-183;t+1+l>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});var f=u(e,t+1,l);return t+1+l+f>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l+f,result:(0,r.hexlify)(e.slice(t+1+l,t+1+l+f))}}if(e[t]>=128){var d=e[t]-128;return t+1+d>e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+d,result:(0,r.hexlify)(e.slice(t+1,t+1+d))}}return{consumed:1,result:(0,r.hexlify)(e[t])}}function d(e){var t=(0,r.arrayify)(e),n=f(t,0);return n.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),n.result}},86620:function(e,t,n){"use strict";n.r(t),n.d(t,{SupportedAlgorithm:function(){return a.p},computeHmac:function(){return r.Gy},ripemd160:function(){return r.bP},sha256:function(){return r.JQ},sha512:function(){return r.o}});var r=n(39598),a=n(24667)},39598:function(e,t,n){"use strict";n.d(t,{Gy:function(){return d},bP:function(){return l},JQ:function(){return c},o:function(){return f}});var r=n(33125),a=n.n(r),i=n(49716),o=n(24667),u=n(39502),s=new u.Logger("sha2/5.7.0");function l(e){return"0x"+a().ripemd160().update((0,i.arrayify)(e)).digest("hex")}function c(e){return"0x"+a().sha256().update((0,i.arrayify)(e)).digest("hex")}function f(e){return"0x"+a().sha512().update((0,i.arrayify)(e)).digest("hex")}function d(e,t,n){return o.p[e]||s.throwError("unsupported algorithm "+e,u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+a().hmac(a()[e],(0,i.arrayify)(t)).update((0,i.arrayify)(n)).digest("hex")}},24667:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},78865:function(e,t,n){"use strict";n.r(t),n.d(t,{SigningKey:function(){return Y},computePublicKey:function(){return X},recoverPublicKey:function(){return J}});var r=n(15671),a=n(43144),i=n(80518),o=n.n(i),u=n(33125),s=n.n(u);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function l(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}},e(n,n.exports),n.exports}var c=f;function f(e,t){if(!e)throw new Error(t||"Assertion failed")}f.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var d=l((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}})),p=l((function(e,t){var n=t;n.assert=c,n.toArray=d.toArray,n.zero2=d.zero2,n.toHex=d.toHex,n.encode=d.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var a=1<(a>>1)-1?(a>>1)-s:s,i.isubn(u)):u=0,r[o]=u,i.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,u,s=e.andln(3)+a&3,l=t.andln(3)+i&3;3===s&&(s=-1),3===l&&(l=-1),o=0===(1&s)?0:3!==(r=e.andln(7)+a&7)&&5!==r||2!==l?s:-s,n[0].push(o),u=0===(1&l)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==s?l:-l,n[1].push(u),2*a===o+1&&(a=1-a),2*i===u+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(o())(e,"hex","le")}})),h=p.getNAF,y=p.getJSF,m=p.assert;function v(e,t){this.type=e,this.p=new(o())(t.p,16),this.red=t.prime?o().red(t.prime):o().mont(this.p),this.zero=new(o())(0).toRed(this.red),this.one=new(o())(1).toRed(this.red),this.two=new(o())(2).toRed(this.red),this.n=t.n&&new(o())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=v;function b(e,t){this.curve=e,this.type=t,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(e,t){m(e.precomputed);var n=e._getDoubles(),r=h(t,1,this._bitLength),a=(1<=i;s--)o=(o<<1)+r[s];u.push(o)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=a;f>0;f--){for(i=0;i=0;u--){for(var s=0;u>=0&&0===i[u];u--)s++;if(u>=0&&s++,o=o.dblp(s),u<0)break;var l=i[u];m(0!==l),o="affine"===e.type?l>0?o.mixedAdd(a[l-1>>1]):o.mixedAdd(a[-l-1>>1].neg()):l>0?o.add(a[l-1>>1]):o.add(a[-l-1>>1].neg())}return"affine"===e.type?o.toP():o},v.prototype._wnafMulAdd=function(e,t,n,r,a){var i,o,u,s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,f=0;for(i=0;i=1;i-=2){var p=i-1,m=i;if(1===s[p]&&1===s[m]){var v=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(v[1]=t[p].add(t[m]),v[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(v[1]=t[p].toJ().mixedAdd(t[m]),v[2]=t[p].add(t[m].neg())):(v[1]=t[p].toJ().mixedAdd(t[m]),v[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=y(n[p],n[m]);for(f=Math.max(b[0].length,f),c[p]=new Array(f),c[m]=new Array(f),o=0;o=0;i--){for(var C=0;i>=0;){var S=!0;for(o=0;o=0&&C++,T=T.dblp(C),i<0)break;for(o=0;o0?u=l[o][E-1>>1]:E<0&&(u=l[o][-E-1>>1].neg()),T="affine"===u.type?T.mixedAdd(u):T.add(u))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},b.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a=0&&(i=t,u=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),u=u.neg()),[{a:r,b:a},{a:i,b:u}]},T.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),u=i.mul(r.a),s=a.mul(n.b),l=i.mul(r.b);return{k1:e.sub(o).sub(u),k2:s.add(l).neg()}},T.prototype.pointFromX=function(e,t){(e=new(o())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},T.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},T.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},C.prototype.isInfinity=function(){return this.inf},C.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},C.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},C.prototype.getX=function(){return this.x.fromRed()},C.prototype.getY=function(){return this.y.fromRed()},C.prototype.mul=function(e){return e=new(o())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},C.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},C.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},C.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},C.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},C.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},w(S,g.BasePoint),T.prototype.jpoint=function(e,t,n){return new S(this,e,t,n)},S.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},S.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},S.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),u=r.redSub(a),s=i.redSub(o);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=u.redSqr(),c=l.redMul(u),f=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(f).redISub(f),p=s.redMul(f.redISub(d)).redISub(i.redMul(c)),h=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(d,p,h)},S.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),u=a.redSub(i);if(0===o.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),l=s.redMul(o),c=n.redMul(s),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(a.redMul(l)),p=this.z.redMul(o);return this.curve.jpoint(f,d,p)},S.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},S.prototype.inspect=function(){return this.isInfinity()?"":""},S.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var E=l((function(e,t){var n=t;n.base=g,n.short=k,n.mont=null,n.edwards=null})),A=l((function(e,t){var n,r=t,a=p.assert;function i(e){"short"===e.type?this.curve=new E.short(e):"edwards"===e.type?this.curve=new E.edwards(e):this.curve=new E.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(u){n=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function P(e){if(!(this instanceof P))return new P(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=d.toArray(e.entropy,e.entropyEnc||"hex"),n=d.toArray(e.nonce,e.nonceEnc||"hex"),r=d.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var M=P;P.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},P.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=d.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length"};var Z=p.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(Z(e.r&&e.s,"Signature without r or s"),this.r=new(o())(e.r,16),this.s=new(o())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var j=R;function B(){this.place=0}function F(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function N(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=p.toArray(e,t);var n=new B;if(48!==e[n.place++])return!1;var r=F(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=F(e,n);if(!1===a)return!1;var i=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=F(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var s=e.slice(n.place,u+n.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(o())(i),this.s=new(o())(s),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=N(t),n=N(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];L(r,t.length),(r=r.concat(t)).push(2),L(r,n.length);var a=r.concat(n),i=[48];return L(i,a.length),i=i.concat(a),p.encode(i,e)};var D=function(){throw new Error("unsupported")},U=p.assert;function z(e){if(!(this instanceof z))return new z(e);"string"===typeof e&&(U(Object.prototype.hasOwnProperty.call(A,e),"Unknown curve "+e),e=A[e]),e instanceof A.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var q=z;z.prototype.keyPair=function(e){return new O(this,e)},z.prototype.keyFromPrivate=function(e,t){return O.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return O.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={});for(var t=new M({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||D(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(o())(2));;){var a=new(o())(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},z.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,n,r){"object"===typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(o())(e,16));for(var a=this.n.byteLength(),i=t.getPrivate().toArray("be",a),u=e.toArray("be",a),s=new M({hash:this.hash,entropy:i,nonce:u,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new(o())(1)),c=0;;c++){var f=r.k?r.k(c):new(o())(s.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(l)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var y=f.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return r.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new j({r:h,s:y,recoveryParam:m})}}}}}},z.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(o())(e,16)),n=this.keyFromPublic(n,r);var a=(t=new j(t,"hex")).r,i=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var u,s=i.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(a).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(l,n.getPublic(),c)).isInfinity()&&u.eqXToP(a):!(u=this.g.mulAdd(l,n.getPublic(),c)).isInfinity()&&0===u.getX().umod(this.n).cmp(a)},z.prototype.recoverPubKey=function(e,t,n,r){U((3&n)===n,"The recovery param is more than two bits"),t=new j(t,r);var a=this.n,i=new(o())(e),u=t.r,s=t.s,l=1&n,c=n>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");u=c?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var f=t.r.invm(a),d=a.sub(i).mul(f).umod(a),p=s.mul(f).umod(a);return this.g.mulAdd(d,u,p)},z.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new j(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var H=l((function(e,t){var n=t;n.version="6.5.4",n.utils=p,n.rand=function(){throw new Error("unsupported")},n.curve=E,n.curves=A,n.ec=q,n.eddsa=null})).ec,W=n(49716),V=n(30520),K=new(n(39502).Logger)("signing-key/5.7.0"),G=null;function Q(){return G||(G=new H("secp256k1")),G}var Y=function(){function e(t){(0,r.Z)(this,e),(0,V.defineReadOnly)(this,"curve","secp256k1"),(0,V.defineReadOnly)(this,"privateKey",(0,W.hexlify)(t)),32!==(0,W.hexDataLength)(this.privateKey)&&K.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=Q().keyFromPrivate((0,W.arrayify)(this.privateKey));(0,V.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,V.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,V.defineReadOnly)(this,"_isSigningKey",!0)}return(0,a.Z)(e,[{key:"_addPoint",value:function(e){var t=Q().keyFromPublic((0,W.arrayify)(this.publicKey)),n=Q().keyFromPublic((0,W.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=Q().keyFromPrivate((0,W.arrayify)(this.privateKey)),n=(0,W.arrayify)(e);32!==n.length&&K.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return(0,W.splitSignature)({recoveryParam:r.recoveryParam,r:(0,W.hexZeroPad)("0x"+r.r.toString(16),32),s:(0,W.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=Q().keyFromPrivate((0,W.arrayify)(this.privateKey)),n=Q().keyFromPublic((0,W.arrayify)(X(e)));return(0,W.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function J(e,t){var n=(0,W.splitSignature)(t),r={r:(0,W.arrayify)(n.r),s:(0,W.arrayify)(n.s)};return"0x"+Q().recoverPubKey((0,W.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function X(e,t){var n=(0,W.arrayify)(e);if(32===n.length){var r=new Y(n);return t?"0x"+Q().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?(0,W.hexlify)(n):"0x"+Q().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+Q().keyFromPublic(n).getPublic(!0,"hex"):(0,W.hexlify)(n):K.throwArgumentError("invalid public or private key","key","[REDACTED]")}},84530:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return m},pack:function(){return y},sha256:function(){return v}});var r=n(2257),a=n(49716),i=n(88062),o=n(39598),u=n(83374),s=n(39502),l=new RegExp("^bytes([0-9]+)$"),c=new RegExp("^(u?int)([0-9]*)$"),f=new RegExp("^(.*)\\[([0-9]*)\\]$"),d="0000000000000000000000000000000000000000000000000000000000000000",p=new s.Logger("solidity/5.7.0");function h(e,t,n){switch(e){case"address":return n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t);case"string":return(0,u.Y0)(t);case"bytes":return(0,a.arrayify)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t)}var i=e.match(c);if(i){var o=parseInt(i[2]||"256");return(i[2]&&String(o)!==i[2]||o%8!==0||0===o||o>256)&&p.throwArgumentError("invalid number type","type",e),n&&(o=256),t=r.O$.from(t).toTwos(o),(0,a.zeroPad)(t,o/8)}if(i=e.match(l)){var s=parseInt(i[1]);return(String(s)!==i[1]||0===s||s>32)&&p.throwArgumentError("invalid bytes type","type",e),(0,a.arrayify)(t).byteLength!==s&&p.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,a.arrayify)((t+d).substring(0,66)):t}if((i=e.match(f))&&Array.isArray(t)){var y=i[1];parseInt(i[2]||String(t.length))!=t.length&&p.throwArgumentError("invalid array length for ".concat(e),"value",t);var m=[];return t.forEach((function(e){m.push(h(y,e,!0))})),(0,a.concat)(m)}return p.throwArgumentError("invalid type","type",e)}function y(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(h(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}function m(e,t){return(0,i.keccak256)(y(e,t))}function v(e,t){return(0,o.JQ)(y(e,t))}},23902:function(e,t,n){"use strict";n.r(t),n.d(t,{UnicodeNormalizationForm:function(){return i.Uj},Utf8ErrorFuncs:function(){return i.te},Utf8ErrorReason:function(){return i.Uw},_toEscapedUtf8String:function(){return i.U$},formatBytes32String:function(){return o},nameprep:function(){return g},parseBytes32String:function(){return u},toUtf8Bytes:function(){return i.Y0},toUtf8CodePoints:function(){return i.XL},toUtf8String:function(){return i.ZN}});var r=n(84867),a=n(49716),i=n(83374);function o(e){var t=(0,i.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,r.R]).slice(0,32))}function u(e){var t=(0,a.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return(0,i.ZN)(t.slice(0,n))}function s(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var a=e.split(":");n+=parseInt(a[0],16),r[n]=t(a[1])})),r}function l(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function c(e,t){for(var n=0,r=0;r=(n+=a.l)&&e<=n+a.h&&(e-n)%(a.d||1)===0){if(a.e&&-1!==a.e.indexOf(e-n))continue;return a}}return null}var f=l("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),d="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),p=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],h=s("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),y=s("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),m=s("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],n=0;n=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=c(e,p);if(t)return[e+t.s];var n=h[e];if(n)return n;var r=y[e];return r?[e+r[0]]:m[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=(0,i.XL)((0,i.uu)(n),i.Uj.NFKC)).forEach((function(e){if(c(e,v))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(c(e,f))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var r=(0,i.uu)(n);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");return r}},83374:function(e,t,n){"use strict";n.d(t,{Uj:function(){return r},te:function(){return s},Uw:function(){return a},U$:function(){return d},uu:function(){return p},Y0:function(){return c},XL:function(){return y},ZN:function(){return h}});var r,a,i=n(49716),o=new(n(39502).Logger)("strings/5.7.0");function u(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){for(var o=0,u=t+1;u>6===2;u++)o++;return o}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));var s=Object.freeze({error:function(e,t,n,r,a){return o.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:u,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),u(e,t,n))}});function l(e,t){null==t&&(t=s.error),e=(0,i.arrayify)(e);for(var n=[],r=0;r>7!==0){var u=null,l=null;if(192===(224&o))u=1,l=127;else if(224===(240&o))u=2,l=2047;else{if(240!==(248&o)){r+=t(128===(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,r-1,e,n);continue}u=3,l=65535}if(r-1+u>=e.length)r+=t(a.OVERRUN,r-1,e,n);else{for(var c=o&(1<<8-u-1)-1,f=0;f1114111?r+=t(a.OUT_OF_RANGE,r-1-u,e,n,c):c>=55296&&c<=57343?r+=t(a.UTF16_SURROGATE,r-1-u,e,n,c):c<=l?r+=t(a.OVERLONG,r-1-u,e,n,c):n.push(c))}}else n.push(o)}return n}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(o.checkNormalize(),e=e.normalize(t));for(var n=[],a=0;a>6|192),n.push(63&u|128);else if(55296==(64512&u)){a++;var s=e.charCodeAt(a);if(a>=e.length||56320!==(64512&s))throw new Error("invalid utf-8 string");var l=65536+((1023&u)<<10)+(1023&s);n.push(l>>18|240),n.push(l>>12&63|128),n.push(l>>6&63|128),n.push(63&l|128)}else n.push(u>>12|224),n.push(u>>6&63|128),n.push(63&u|128)}return(0,i.arrayify)(n)}function f(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e,t){return'"'+l(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))})).join("")+'"'}function p(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function h(e,t){return p(l(e,t))}function y(e){return l(c(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current))}},25452:function(e,t,n){"use strict";n.r(t),n.d(t,{TransactionTypes:function(){return r},accessListify:function(){return T},computeAddress:function(){return g},parse:function(){return P},recoverAddress:function(){return b},serialize:function(){return E}});var r,a=n(97419),i=n(2257),o=n(49716),u=n(75422),s=n(88062),l=n(30520),c=n(17986),f=n(78865),d=n(39502),p=new d.Logger("transactions/5.7.0");function h(e){return"0x"===e?null:(0,a.getAddress)(e)}function y(e){return"0x"===e?u._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var m=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],v={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function g(e){var t=(0,f.computePublicKey)(e);return(0,a.getAddress)((0,o.hexDataSlice)((0,s.keccak256)((0,o.hexDataSlice)(t,1)),12))}function b(e,t){return g((0,f.recoverPublicKey)((0,o.arrayify)(e),t))}function w(e,t){var n=(0,o.stripZeros)(i.O$.from(e).toHexString());return n.length>32&&p.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function x(e,t){return{address:(0,a.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==(0,o.hexDataLength)(t)&&p.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function T(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&p.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),x(e[0],e[1])):x(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return x(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function k(e){return T(e).map((function(e){return[e.address,e.storageKeys]}))}function C(e,t){if(null!=e.gasPrice){var n=i.O$.from(e.gasPrice),r=i.O$.from(e.maxFeePerGas||0);n.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var u=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(e.maxFeePerGas||0,"maxFeePerGas"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var s=(0,o.splitSignature)(t);u.push(w(s.recoveryParam,"recoveryParam")),u.push((0,o.stripZeros)(s.r)),u.push((0,o.stripZeros)(s.s))}return(0,o.hexConcat)(["0x02",c.encode(u)])}function S(e,t){var n=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.gasPrice||0,"gasPrice"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var r=(0,o.splitSignature)(t);n.push(w(r.recoveryParam,"recoveryParam")),n.push((0,o.stripZeros)(r.r)),n.push((0,o.stripZeros)(r.s))}return(0,o.hexConcat)(["0x01",c.encode(n)])}function E(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&p.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,l.checkProperties)(e,v);var n=[];m.forEach((function(t){var r=e[t.name]||[],a={};t.numeric&&(a.hexPad="left"),r=(0,o.arrayify)((0,o.hexlify)(r,a)),t.length&&r.length!==t.length&&r.length>0&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=(0,o.stripZeros)(r)).length>t.maxLength&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push((0,o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!==typeof(r=e.chainId)&&p.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push((0,o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return c.encode(n);var a=(0,o.splitSignature)(t),i=27+a.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),i+=2*r+8,a.v>28&&a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push((0,o.hexlify)(i)),n.push((0,o.stripZeros)((0,o.arrayify)(a.r))),n.push((0,o.stripZeros)((0,o.arrayify)(a.s))),c.encode(n)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return C(e,t)}return p.throwError("unsupported transaction type: ".concat(e.type),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function A(e,t,n){try{var r=y(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(i){p.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.hexZeroPad)(t[1],32),e.s=(0,o.hexZeroPad)(t[2],32);try{var a=(0,s.keccak256)(n(e));e.from=b(a,{r:e.r,s:e.s,recoveryParam:e.v})}catch(i){}}function P(e){var t=(0,o.arrayify)(e);if(t[0]>127)return function(e){var t=c.decode(e);9!==t.length&&6!==t.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:h(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.O$.from(t[6]).toNumber()}catch(l){return n}if(n.r=(0,o.hexZeroPad)(t[7],32),n.s=(0,o.hexZeroPad)(t[8],32),i.O$.from(n.r).isZero()&&i.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,a=t.slice(0,6);0!==n.chainId&&(a.push((0,o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var u=(0,s.keccak256)(c.encode(a));try{n.from=b(u,{r:(0,o.hexlify)(n.r),s:(0,o.hexlify)(n.s),recoveryParam:r})}catch(l){}n.hash=(0,s.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=c.decode(e.slice(1));8!==t.length&&11!==t.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.hexlify)(e));var n={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:h(t[4]),value:y(t[5]),data:t[6],accessList:T(t[7])};return 8===t.length||(n.hash=(0,s.keccak256)(e),A(n,t.slice(8),S)),n}(t);case 2:return function(e){var t=c.decode(e.slice(1));9!==t.length&&12!==t.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.hexlify)(e));var n=y(t[2]),r=y(t[3]),a={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:y(t[4]),to:h(t[5]),value:y(t[6]),data:t[7],accessList:T(t[8])};return 9===t.length||(a.hash=(0,s.keccak256)(e),A(a,t.slice(9),C)),a}(t)}return p.throwError("unsupported transaction type: ".concat(t[0]),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},19601:function(e,t,n){"use strict";n.r(t),n.d(t,{commify:function(){return C},formatEther:function(){return A},formatUnits:function(){return S},parseEther:function(){return P},parseUnits:function(){return E}});var r=n(15671),a=n(43144),i=n(49716),o=n(39502),u=n(86945),s=n(2257),l=new o.Logger(u.i),c={},f=s.O$.from(0),d=s.O$.from(-1);function p(e,t,n,r){var a={fault:t,operation:n};return void 0!==r&&(a.value=r),l.throwError(e,o.Logger.errors.NUMERIC_FAULT,a)}for(var h="0";h.length<256;)h+=h;function y(e){if("number"!==typeof e)try{e=s.O$.from(e).toNumber()}catch(t){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):l.throwArgumentError("invalid decimal size","decimals",e)}function m(e,t){null==t&&(t=0);var n=y(t),r=(e=s.O$.from(e)).lt(f);r&&(e=e.mul(d));for(var a=e.mod(n).toString();a.length2&&l.throwArgumentError("too many decimal points","value",e);var i=a[0],o=a[1];for(i||(i="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>n.length-1&&p("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length80&&l.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new e(c,n,r,a)}}]),e}(),b=function(){function e(t,n,a,i){(0,r.Z)(this,e),t!==c&&l.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.Z)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&l.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(w.toFormat(n.format))),n}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(w.toFormat(n.format))),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(t<0||t>80||t%1)&&l.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+h.substring(0,t),this.format),a=x.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(a).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&l.throwArgumentError("invalid byte width","width",e);var t=s.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||(0,s.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(m(t,n),g.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=g.from(n),a=v(t,r.decimals);!r.signed&&a.lt(f)&&p("unsigned value cannot be negative","overflow","value",t);var o=null;r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=(0,i.hexZeroPad)(o,r.width/8));var u=m(a,r.decimals);return new e(c,o,u,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=g.from(n);if((0,i.arrayify)(t).length>r.width/8)throw new Error("overflow");var a=s.O$.from(t);r.signed&&(a=a.fromTwos(r.width));var o=a.toTwos((r.signed?0:1)+r.width).toHexString(),u=m(a,r.decimals);return new e(c,o,u,r)}},{key:"from",value:function(t,n){if("string"===typeof t)return e.fromString(t,n);if((0,i.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(r){if(r.code!==o.Logger.errors.INVALID_ARGUMENT)throw r}return l.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),w=b.from(1),x=b.from("0.5"),T=new o.Logger("units/5.7.0"),k=["wei","kwei","mwei","gwei","szabo","finney","ether"];function C(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&T.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var a="";for(2===t.length&&(a="."+(t[1]||"0"));a.length>2&&"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(var i=[];n.length;){if(n.length<=3){i.unshift(n);break}var o=n.length-3;i.unshift(n.substring(o)),n=n.substring(0,o)}return r+i.join(",")+a}function S(e,t){if("string"===typeof t){var n=k.indexOf(t);-1!==n&&(t=3*n)}return m(e,null!=t?t:18)}function E(e,t){if("string"!==typeof e&&T.throwArgumentError("value must be a string","value",e),"string"===typeof t){var n=k.indexOf(t);-1!==n&&(t=3*n)}return v(e,null!=t?t:18)}function A(e){return S(e,18)}function P(e){return E(e,18)}},22876:function(e,t,n){"use strict";n.r(t),n.d(t,{Wallet:function(){return E},verifyMessage:function(){return A},verifyTypedData:function(){return P}});var r=n(74165),a=n(15671),i=n(43144),o=n(97326),u=n(60136),s=n(29388),l=n(97419),c=n(69745),f=n(68408),d=n(49716),p=n(2273),h=n(35992),y=n(15148),m=n(88062),v=n(30520),g=n(15244),b=n(78865),w=n(13463),x=n(31529),T=n(25452),k=n(39502),C=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}s((r=r.apply(e,t||[])).next())}))},S=new k.Logger("wallet/5.7.0");var E=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(e,r){var i,u;if((0,a.Z)(this,n),i=t.call(this),null!=(u=e)&&(0,d.isHexString)(u.privateKey,32)&&null!=u.address){var s=new b.SigningKey(e.privateKey);if((0,v.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return s})),(0,v.defineReadOnly)((0,o.Z)(i),"address",(0,T.computeAddress)(i.publicKey)),i.address!==(0,l.getAddress)(e.address)&&S.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var f=e.mnemonic;(0,v.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return{phrase:f.phrase,path:f.path||y.defaultPath,locale:f.locale||"en"}}));var p=i.mnemonic,h=y.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);(0,T.computeAddress)(h.privateKey)!==i.address&&S.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,v.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null}))}else{if(b.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&S.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,v.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return e}));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var m=new b.SigningKey(e);(0,v.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return m}))}(0,v.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null})),(0,v.defineReadOnly)((0,o.Z)(i),"address",(0,T.computeAddress)(i.publicKey))}return r&&!c.zt.isProvider(r)&&S.throwArgumentError("invalid provider","provider",r),(0,v.defineReadOnly)((0,o.Z)(i),"provider",r||null),i}return(0,i.Z)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return(0,v.resolveProperties)(e).then((function(n){null!=n.from&&((0,l.getAddress)(n.from)!==t.address&&S.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest((0,m.keccak256)((0,T.serialize)(n)));return(0,T.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return C(this,void 0,void 0,(0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.joinSignature)(this._signingKey().signDigest((0,p.r)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return C(this,void 0,void 0,(0,r.Z)().mark((function a(){var i,o=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.E.resolveNames(e,t,n,(function(e){return null==o.provider&&S.throwError("cannot resolve ENS names without a provider",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}));case 2:return i=r.sent,r.abrupt("return",(0,d.joinSignature)(this._signingKey().signDigest(h.E.hash(i.domain,t,i.value))));case 4:case"end":return r.stop()}}),a,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!==typeof t||n||(n=t,t={}),n&&"function"!==typeof n)throw new Error("invalid callback");return t||(t={}),(0,w.HI)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=(0,g.O)(16);e||(e={}),e.extraEntropy&&(t=(0,d.arrayify)((0,d.hexDataSlice)((0,m.keccak256)((0,d.concat)([t,e.extraEntropy])),0,16)));var r=(0,y.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return(0,x.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n((0,x.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=y.defaultPath),new n(y.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(f.E);function A(e,t){return(0,T.recoverAddress)((0,p.r)(e),t)}function P(e,t,n,r){return(0,T.recoverAddress)(h.E.hash(e,t,n),r)}},65889:function(e,t,n){"use strict";n.r(t),n.d(t,{_fetchData:function(){return y},fetchJson:function(){return m},poll:function(){return v}});var r=n(74165),a=n(87354),i=n(49716),o=n(30520),u=n(83374),s=n(39502),l=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}s((r=r.apply(e,t||[])).next())}))};function c(e,t){return l(this,void 0,void 0,(0,r.Z)().mark((function n(){var a,o,u,s,l;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),a={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(a.mode="cors",a.cache="no-cache",a.credentials="same-origin",a.redirect="follow",a.referrer="client"),null!=t.fetchOptions&&((o=t.fetchOptions).mode&&(a.mode=o.mode),o.cache&&(a.cache=o.cache),o.credentials&&(a.credentials=o.credentials),o.redirect&&(a.redirect=o.redirect),o.referrer&&(a.referrer=o.referrer)),n.next=7,fetch(e,a);case 7:return u=n.sent,n.next=10,u.arrayBuffer();case 10:return s=n.sent,l={},u.headers.forEach?u.headers.forEach((function(e,t){l[t.toLowerCase()]=e})):u.headers.keys().forEach((function(e){l[e.toLowerCase()]=u.headers.get(e)})),n.abrupt("return",{headers:l,statusCode:u.status,statusMessage:u.statusText,body:(0,i.arrayify)(new Uint8Array(s))});case 14:case"end":return n.stop()}}),n)})))}var f=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}s((r=r.apply(e,t||[])).next())}))},d=new s.Logger("web/5.7.1");function p(e){return new Promise((function(t){setTimeout(t,e)}))}function h(e,t){if(null==e)return null;if("string"===typeof e)return e;if((0,i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,u.ZN)(e)}catch(n){}return(0,i.hexlify)(e)}return e}function y(e,t,n){var i="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(i>0&&i%1===0,"invalid connection throttle limit","connection.throttleLimit",i);var l="object"===typeof e?e.throttleCallback:null,y="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(y>0&&y%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",y);var m="object"===typeof e&&!!e.errorPassThrough,v={},g=null,b={method:"GET"},w=!1,x=12e4;if("string"===typeof e)g=e;else if("object"===typeof e){if(null!=e&&null!=e.url||d.throwArgumentError("missing URL","connection.url",e),g=e.url,"number"===typeof e.timeout&&e.timeout>0&&(x=e.timeout),e.headers)for(var T in e.headers)v[T.toLowerCase()]={key:T,value:String(e.headers[T])},["if-none-match","if-modified-since"].indexOf(T.toLowerCase())>=0&&(w=!0);if(b.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==g.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",s.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:g,user:e.user,password:"[REDACTED]"});var k=e.user+":"+e.password;v.authorization={key:"Authorization",value:"Basic "+(0,a.c)((0,u.Y0)(k))}}null!=e.skipFetchSetup&&(b.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(b.fetchOptions=(0,o.shallowCopy)(e.fetchOptions))}var C,S=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),E=g?g.match(S):null;if(E)try{var A={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]||"text/plain"},body:E[2]?(0,a.J)(E[3]):(C=E[3],(0,u.Y0)(C.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},P=A.body;return n&&(P=n(A.body,A)),Promise.resolve(P)}catch(O){d.throwError("processing response error",s.Logger.errors.SERVER_ERROR,{body:h(E[1],E[2]),error:O,requestBody:null,requestMethod:"GET",url:g})}t&&(b.method="POST",b.body=t,null==v["content-type"]&&(v["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==v["content-length"]&&(v["content-length"]={key:"Content-Length",value:String(t.length)}));var M={};Object.keys(v).forEach((function(e){var t=v[e];M[t.key]=t.value})),b.headers=M;var _=function(){var e=null;return{promise:new Promise((function(t,n){x&&(e=setTimeout((function(){null!=e&&(e=null,n(d.makeError("timeout",s.Logger.errors.TIMEOUT,{requestBody:h(b.body,M["content-type"]),requestMethod:b.method,timeout:x,url:g})))}),x))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),I=function(){return f(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,a,o,u,f,v,x,T,k,C;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t=300)&&(_.cancel(),d.throwError("bad response",s.Logger.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:h(x,a.headers?a.headers["content-type"]:null),requestBody:h(b.body,M["content-type"]),requestMethod:b.method,url:g})),!n){e.next=60;break}return e.prev=37,e.next=40,n(x,a);case 40:return T=e.sent,_.cancel(),e.abrupt("return",T);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&tu)return void(o()&&r(new Error("retry limit reached")));var l=t.interval*parseInt(String(Math.random()*Math.pow(2,s)));lt.ceiling&&(l=t.ceiling),setTimeout(a,l)}return null}),(function(e){o()&&r(e)}))}()}))}},85172:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var a=r(n(45649)),i=n(80184),o=(0,a.default)((0,i.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.Z=o},95678:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var a=r(n(45649)),i=n(80184),o=(0,a.default)((0,i.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.Z=o},85266:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return a},createChainedFunction:function(){return i},createSvgIcon:function(){return ue},debounce:function(){return se},deprecatedPropType:function(){return le},isMuiElement:function(){return ce},ownerDocument:function(){return de},ownerWindow:function(){return pe},requirePropFactory:function(){return he},setRef:function(){return ye},unstable_ClassNameGenerator:function(){return Ee},unstable_useEnhancedEffect:function(){return me},unstable_useId:function(){return we},unsupportedProp:function(){return xe},useControlled:function(){return Te},useEventCallback:function(){return ke},useForkRef:function(){return Ce},useIsFocusVisible:function(){return Se}});var r=n(55902),a=n(31122).Z;var i=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"light")?{main:E[200],light:E[50],dark:E[400]}:{main:E[700],light:E[400],dark:E[800]}}(n),f=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:k[200],light:k[50],dark:k[400]}:{main:k[500],light:k[300],dark:k[700]}}(n),d=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:C[500],light:C[300],dark:C[700]}:{main:C[700],light:C[400],dark:C[800]}}(n),y=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:A[400],light:A[300],dark:A[700]}:{main:A[700],light:A[500],dark:A[900]}}(n),m=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:P[400],light:P[300],dark:P[700]}:{main:P[800],light:P[500],dark:P[900]}}(n),v=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:S[400],light:S[300],dark:S[700]}:{main:"#ed6c02",light:S[500],dark:S[900]}}(n);function g(e){return(0,w.mi)(e,I.text.primary)>=a?I.text.primary:_.text.primary}var b=function(e){var t=e.color,n=e.name,r=e.mainShade,a=void 0===r?500:r,i=e.lightShade,s=void 0===i?300:i,l=e.darkShade,c=void 0===l?700:l;if(!(t=(0,o.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,p.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,p.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return O(t,"light",s,u),O(t,"dark",c,u),t.contrastText||(t.contrastText=g(t.main)),t},Z={dark:I,light:_};return(0,h.Z)((0,o.Z)({common:(0,o.Z)({},x),mode:n,primary:b({color:c,name:"primary"}),secondary:b({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:v,name:"warning"}),info:b({color:y,name:"info"}),success:b({color:m,name:"success"}),grey:T,contrastThreshold:a,getContrastText:g,augmentColor:b,tonalOffset:u},Z[n]),s)}var R=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var j={textTransform:"uppercase"},B='"Roboto", "Helvetica", "Arial", sans-serif';function F(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?B:r,i=n.fontSize,u=void 0===i?14:i,s=n.fontWeightLight,c=void 0===s?300:s,f=n.fontWeightRegular,d=void 0===f?400:f,p=n.fontWeightMedium,y=void 0===p?500:p,m=n.fontWeightBold,v=void 0===m?700:m,g=n.htmlFontSize,b=void 0===g?16:g,w=n.allVariants,x=n.pxToRem,T=(0,l.Z)(n,R);var k=u/14,C=x||function(e){return"".concat(e/b*k,"rem")},S=function(e,t,n,r,i){return(0,o.Z)({fontFamily:a,fontWeight:e,fontSize:C(t),lineHeight:n},a===B?{letterSpacing:"".concat((u=r/t,Math.round(1e5*u)/1e5),"em")}:{},i,w);var u},E={h1:S(c,96,1.167,-1.5),h2:S(c,60,1.2,-.5),h3:S(d,48,1.167,0),h4:S(d,34,1.235,.25),h5:S(d,24,1.334,0),h6:S(y,20,1.6,.15),subtitle1:S(d,16,1.75,.15),subtitle2:S(y,14,1.57,.1),body1:S(d,16,1.5,.15),body2:S(d,14,1.43,.15),button:S(y,14,1.75,.4,j),caption:S(d,12,1.66,.4),overline:S(d,12,2.66,1,j),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,h.Z)((0,o.Z)({htmlFontSize:b,pxToRem:C,fontFamily:a,fontSize:u,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:y,fontWeightBold:v},E),T,{clone:!1})}function N(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var L=["none",N(0,2,1,-1,0,1,1,0,0,1,3,0),N(0,3,1,-2,0,2,2,0,0,1,5,0),N(0,3,3,-2,0,3,4,0,0,1,8,0),N(0,2,4,-1,0,4,5,0,0,1,10,0),N(0,3,5,-1,0,5,8,0,0,1,14,0),N(0,3,5,-1,0,6,10,0,0,1,18,0),N(0,4,5,-2,0,7,10,1,0,2,16,1),N(0,5,5,-3,0,8,10,1,0,3,14,2),N(0,5,6,-3,0,9,12,1,0,3,16,2),N(0,6,6,-3,0,10,14,1,0,4,18,3),N(0,6,7,-4,0,11,15,1,0,4,20,3),N(0,7,8,-4,0,12,17,2,0,5,22,4),N(0,7,8,-4,0,13,19,2,0,5,24,4),N(0,7,9,-4,0,14,21,2,0,5,26,4),N(0,8,9,-5,0,15,22,2,0,6,28,5),N(0,8,10,-5,0,16,24,2,0,6,30,5),N(0,8,11,-5,0,17,26,2,0,6,32,5),N(0,9,11,-5,0,18,28,2,0,7,34,6),N(0,9,12,-6,0,19,29,2,0,7,36,6),N(0,10,13,-6,0,20,31,3,0,8,38,7),N(0,10,13,-6,0,21,33,3,0,8,40,7),N(0,10,14,-6,0,22,35,3,0,8,42,7),N(0,11,14,-7,0,23,36,3,0,9,44,8),N(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],U={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},z={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function q(e){return"".concat(Math.round(e),"ms")}function H(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function W(e){var t=(0,o.Z)({},U,e.easing),n=(0,o.Z)({},z,e.duration);return(0,o.Z)({getAutoHeightDuration:H,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.duration,i=void 0===a?n.standard:a,o=r.easing,u=void 0===o?t.easeInOut:o,s=r.delay,c=void 0===s?0:s;(0,l.Z)(r,D);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof i?i:q(i)," ").concat(u," ").concat("string"===typeof c?c:q(c))})).join(",")}},e,{easing:t,duration:n})}var V={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},K=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,a=void 0===r?{}:r,i=e.transitions,u=void 0===i?{}:i,s=e.typography,c=void 0===s?{}:s,f=(0,l.Z)(e,K);if(e.vars)throw new Error((0,p.Z)(18));var d=Z(a),g=(0,y.Z)(e),w=(0,h.Z)(g,{mixins:b(g.breakpoints,n),palette:d,shadows:L.slice(),typography:F(d,c),transitions:W(u),zIndex:(0,o.Z)({},V)});w=(0,h.Z)(w,f);for(var x=arguments.length,T=new Array(x>1?x-1:0),k=1;k1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,a=arguments.length,i=new Array(a),o=0;o96?d:p},y=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;l(t,n,r);(0,f.L)((function(){return function(e,t,n){l(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}(t,n,r)}));return null},v=function e(t,n){var i,o,u=t.__emotion_real===t,l=u&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var f=y(t,n,u),d=f||h(l),p=!d("as");return function(){var v=arguments,g=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&g.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)g.push.apply(g,v);else{0,g.push(v[0][0]);for(var b=v.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function u(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},94860:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},Fq:function(){return l},_j:function(){return c},mi:function(){return s}});var r=n(46189);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var a,o=e.substring(t+1,e.length-1);if("color"===n){if(a=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,r.Z)(10,a))}else o=o.split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:a}}function o(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function u(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,u=r*Math.min(a,1-a),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-u*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),o({type:l,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,o(e)}function c(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function f(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return o(e)}},44046:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},x9:function(){return g}});var r=n(93433),a=n(29439),i=n(63366),o=n(87462),u=n(45783),s=n(85080),l=n(31122),c=["variant"];function f(e){return 0===e.length}function d(e){var t=e.variant,n=(0,i.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?f(r)?e[t]:(0,l.Z)(e[t]):"".concat(f(r)?t:(0,l.Z)(t)).concat((0,l.Z)(e[t].toString()))})),r}var p=n(60104),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];var y=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},m=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=d(e.props);r[t]=e.style})),r},v=function(e,t,n,r){var a,i,o=e.ownerState,u=void 0===o?{}:o,s=[],l=null==n||null==(a=n.components)||null==(i=a[r])?void 0:i.variants;return l&&l.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){u[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[d(n.props)])})),s};function g(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var b=(0,s.Z)();function w(e){var t,n=e.defaultTheme,r=e.theme,a=e.themeId;return t=r,0===Object.keys(t).length?n:r[a]||r}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,s=void 0===n?b:n,l=e.rootShouldForwardProp,c=void 0===l?g:l,f=e.slotShouldForwardProp,d=void 0===f?g:f,x=function(e){return(0,p.Z)((0,o.Z)({},e,{theme:w((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))};return x.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var l=n.name,f=n.slot,p=n.skipVariantsResolver,b=n.skipSx,T=n.overridesResolver,k=(0,i.Z)(n,h),C=void 0!==p?p:f&&"Root"!==f||!1,S=b||!1;var E=g;"Root"===f?E=c:f?E=d:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);var A=(0,u.ZP)(e,(0,o.Z)({shouldForwardProp:E,label:undefined},k)),P=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),c=1;c0){var h=new Array(p).fill("");(d=[].concat((0,r.Z)(n),(0,r.Z)(h))).raw=[].concat((0,r.Z)(n.raw),(0,r.Z)(h))}else"function"===typeof n&&n.__emotion_real!==n&&(d=function(e){return n((0,o.Z)({},e,{theme:w((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))});var g=A.apply(void 0,[d].concat((0,r.Z)(f)));return e.muiName&&(g.muiName=e.muiName),g};return A.withConfig&&(P.withConfig=A.withConfig),P}}},85080:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),a=n(63366),i=n(82466),o=n(4942),u=["values","unit","step"],s=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,o.Z)({},t.key,t.val))}),{})};var l={borderRadius:4},c=n(45682);var f=n(60104),d=n(87416),p=["breakpoints","palette","spacing","shape"];var h=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.palette,h=void 0===o?{}:o,y=e.spacing,m=e.shape,v=void 0===m?{}:m,g=(0,a.Z)(e,p),b=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,o=void 0===i?"px":i,l=e.step,c=void 0===l?5:l,f=(0,a.Z)(e,u),d=s(n),p=Object.keys(d);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function y(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(o,")")}function m(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(o,")")}return(0,r.Z)({keys:p,values:d,up:h,down:y,between:m,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?T-1:0),C=1;C2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=(0,r.Z)(t,2),a=n[0],i=n[1],o=u[a],c=s[i]||"";return Array.isArray(c)?c.map((function(e){return o+e})):[o+c]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(f,d);function h(e,t,n,r){var a,o=null!=(a=(0,i.DW)(e,t,!1))?a:n;return"number"===typeof o?function(e){return"string"===typeof e?e:o*e}:Array.isArray(o)?function(e){return"string"===typeof e?e:o[e]}:"function"===typeof o?o:function(){}}function y(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function v(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(c(n),r),o=e[n];return(0,a.k9)(e,o,i)}function g(e,t){var n=y(e.theme);return Object.keys(e).map((function(r){return v(e,t,r,n)})).reduce(o.Z,{})}function b(e){return g(e,f)}function w(e){return g(e,d)}function x(e){return g(e,p)}b.propTypes={},b.filterProps=f,w.propTypes={},w.filterProps=d,x.propTypes={},x.filterProps=p},18529:function(e,t,n){"use strict";n.d(t,{DW:function(){return o},Jq:function(){return u}});var r=n(4942),a=n(31122),i=n(51184);function o(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function u(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||a:o(e,n)||a,t&&(r=t(r,a,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,s=void 0===n?e.prop:n,l=e.themeKey,c=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=o(e.theme,l)||{};return(0,i.k9)(e,n,(function(e){var n=u(f,c,e);return e===n&&"string"===typeof e&&(n=u(f,c,"".concat(t).concat("default"===e?"":(0,a.Z)(e)),e)),!1===s?n:(0,r.Z)({},s,n)}))};return f.propTypes={},f.filterProps=[t],f}},87416:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(45682),a=n(18529),i=n(98247);var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:i;return(0,a.Z)(e)}},67078:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(35735);var a=n(30418);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,o=e.themeId,u=(0,a.Z)(i);o&&(u=u[o]||u);var s=function(e){var t=e.theme,n=e.name,a=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,a):a}({theme:u,name:n,props:t});return s}},69120:function(e,t,n){"use strict";var r=n(72791),a=n(29886);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=r.useContext(a.T);return n&&(e=n,0!==Object.keys(e).length)?n:t}},55902:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},31122:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(46189);function a(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94419:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(a){r[a]=e[a].reduce((function(e,r){if(r){var a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},82466:function(e,t,n){"use strict";n.d(t,{P:function(){return a},Z:function(){return o}});var r=n(87462);function a(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e){if(!a(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=i(e[n])})),t}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},u=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e&&a(e[r])?u[r]=o(e[r],t[r],n):n.clone?u[r]=a(t[r])?i(t[r]):t[r]:u[r]=t[r])})),u}},46189:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",i=a[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},75878:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(21217);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",a={};return t.forEach((function(t){a[t]=(0,r.Z)(e,t,n)})),a}},35735:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87462);function a(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var o=e[i]||{},u=t[i];n[i]={},u&&Object.keys(u)?o&&Object.keys(o)?(n[i]=(0,r.Z)({},u),Object.keys(o).forEach((function(e){n[i][e]=a(o[e],u[e])}))):n[i]=u:n[i]=o}else void 0===n[i]&&(n[i]=e[i])})),n}},62971:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},62876:function(e,t,n){"use strict";var r=n(72791),a="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=a},97054:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72791),a=n(62876);function i(e){var t=r.useRef(e);return(0,a.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},6117:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72791),a=n(62971);function i(){for(var e=arguments.length,t=new Array(e),n=0;n>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},60946:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){var a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},69029:function(e,t,n){var r=n(10153),a=n(31448);function i(e){this.mode=a.BYTE,this.data=new Uint8Array(r(e))}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},64583:function(e,t,n){var r=n(77248).getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},85802:function(e,t,n){var r=n(77248),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;r.getBCHDigit(i)-a>=0;)i^=1335<=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},97055:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,r=3,a=40,i=10;function o(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,a=0,i=0,o=null,u=null,s=0;s=5&&(r+=n+(a-5)),o=c,a=1),(c=e.get(l,s))===u?i++:(i>=5&&(r+=n+(i-5)),u=c,i=1)}a>=5&&(r+=n+(a-5)),i>=5&&(r+=n+(i-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,n=0,a=0;a=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(u,o),u>=10&&(1488===i||93===i)&&n++}return n*a},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},44189:function(e,t,n){var r=n(31448);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},78532:function(e,t,n){var r=n(24753);t.mul=function(e,t){for(var n=new Uint8Array(e.length+t.length-1),a=0;a=0;){for(var a=n[0],i=0;i>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(i-15+r,8,a,!0),r<8?e.set(8,i-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(i-8,8,1,!0)}function v(e,t,n){var a=new i;n.forEach((function(t){a.put(t.mode.bit,4),a.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(a)}));var o=8*(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!==0;)a.putBit(0);for(var u=(o-a.getLengthInBits())/8,s=0;s=0&&u<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===u||6===u)||u>=2&&u<=4&&l>=2&&l<=4?e.set(i+u,o+l,!0,!0):e.set(i+u,o+l,!1,!0))}(b,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,a,i=e.size,o=d.getEncodedBits(t),u=0;u<18;u++)n=Math.floor(u/3),r=u%3+i-8-3,a=1===(o>>u&1),e.set(n,r,a,!0),e.set(r,n,a,!0)}(b,t),function(e,t){for(var n=e.size,r=-1,a=n-1,i=7,o=0,u=n-1;u>0;u-=2)for(6===u&&u--;;){for(var s=0;s<2;s++)if(!e.isReserved(a,u-s)){var l=!1;o>>i&1)),e.set(a,u-s,l),-1===--i&&(o++,i=7)}if((a+=r)<0||n<=a){a-=r,r=-r;break}}}(b,h),isNaN(a)&&(a=l.getBestMask(b,m.bind(null,b,n))),l.applyMask(a,b),m(b,n,a),{modules:b,version:t,errorCorrectionLevel:n,maskPattern:a,segments:i}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var n,i,o=a.M;return"undefined"!==typeof t&&(o=a.from(t.errorCorrectionLevel,a.M),n=d.from(t.version),i=l.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),g(e,n,o,i)}},45388:function(e,t,n){var r=n(78532);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=new Uint8Array(e.length+this.degree);t.set(e);var n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){var i=new Uint8Array(this.degree);return i.set(n,a),i}return n},e.exports=a},45806:function(e,t){var n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(a,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+r+"$"),o=new RegExp("^"+n+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return u.test(e)}},49643:function(e,t,n){var r=n(31448),a=n(44189),i=n(15441),o=n(69029),u=n(80496),s=n(45806),l=n(77248),c=n(90951);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){for(var r,a=[];null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){var t,n,a=d(s.NUMERIC,r.NUMERIC,e),i=d(s.ALPHANUMERIC,r.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=d(s.BYTE,r.BYTE,e),n=d(s.KANJI,r.KANJI,e)):(t=d(s.BYTE_KANJI,r.BYTE,e),n=[]),a.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return u.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function y(e,t){var n,s=r.getBestModeForData(e);if((n=r.from(t,s))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},77248:function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},76947:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},98354:function(e,t,n){var r=n(77248),a=n(65191),i=n(61212),o=n(31448),u=n(76947),s=r.getBCHDigit(7973);function l(e,t){return o.getCharCountIndicator(e,t)+4}function c(e,t){var n=0;return e.forEach((function(e){var r=l(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return u.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!u.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=o.BYTE);var i=8*(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t));if(n===o.MIXED)return i;var s=i-l(n,e);switch(n){case o.NUMERIC:return Math.floor(s/10*3);case o.ALPHANUMERIC:return Math.floor(s/11*2);case o.KANJI:return Math.floor(s/13);case o.BYTE:default:return Math.floor(s/8)}},t.getBestVersionForData=function(e,n){var r,a=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(c(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!u.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-s>=0;)t^=7973<':"",f="0&&l>0&&e[s-1]||(r+=o?i("M",l+n,.5+c+n):i("m",a,0),a=0,o=!1),l+1',d='viewBox="0 0 '+l+" "+l+'"',p=''+c+f+"\n";return"function"===typeof n&&n(null,p),p}},92719:function(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var a=n.modules.size,i=n.modules.data,o=t.getScale(a,r),u=Math.floor((a+2*r.margin)*o),s=r.margin*o,l=[r.color.light,r.color.dark],c=0;c=s&&f>=s&&c255)return!1;return!0}function a(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,n,r,a){null==r&&null==a||(e=e.slice?e.slice(r,a):Array.prototype.slice.call(e,r,a)),t.set(e,n)}var u={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},s=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],n=0;n>4]+e[15&a])}return n.join("")}}}(),l={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],T=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],C=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],n=0;n>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var o,u=0,s=a;s>16&255]<<24^f[o>>8&255]<<16^f[255&o]<<8^f[o>>24&255]^c[u]<<24,u+=1,8!=a)for(t=1;t>8&255]<<8^f[o>>16&255]<<16^f[o>>24&255]<<24;for(t=a/2+1;t>2,p=s%4,this._Ke[d][p]=i[t],this._Kd[e-d][p]=i[t++],s++}for(var d=1;d>24&255]^T[o>>16&255]^k[o>>8&255]^C[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=S(e),a=0;a<4;a++)r[a]^=this._Ke[0][a];for(var o=1;o>24&255]^h[r[(a+1)%4]>>16&255]^y[r[(a+2)%4]>>8&255]^m[255&r[(a+3)%4]]^this._Ke[o][a];r=n.slice()}var u,s=i(16);for(a=0;a<4;a++)u=this._Ke[t][a],s[4*a]=255&(f[r[a]>>24&255]^u>>24),s[4*a+1]=255&(f[r[(a+1)%4]>>16&255]^u>>16),s[4*a+2]=255&(f[r[(a+2)%4]>>8&255]^u>>8),s[4*a+3]=255&(f[255&r[(a+3)%4]]^u);return s},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=S(e),a=0;a<4;a++)r[a]^=this._Kd[0][a];for(var o=1;o>24&255]^g[r[(a+3)%4]>>16&255]^b[r[(a+2)%4]>>8&255]^w[255&r[(a+1)%4]]^this._Kd[o][a];r=n.slice()}var u,s=i(16);for(a=0;a<4;a++)u=this._Kd[t][a],s[4*a]=255&(d[r[a]>>24&255]^u>>24),s[4*a+1]=255&(d[r[(a+3)%4]>>16&255]^u>>16),s[4*a+2]=255&(d[r[(a+2)%4]>>8&255]^u>>8),s[4*a+3]=255&(d[255&r[(a+1)%4]]^u);return s};var A=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};A.prototype.encrypt=function(e){if((e=a(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r=0;--t)this._counter[t]=e%256,e>>=8},I.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},I.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var O=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof I||(n=new I(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};O.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r0?o-4:o;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,u=0,l=r-a;ul?l:u+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var a,i,o=[],u=t;u>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},31360:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r<32;r++){var a=t.charAt(r);if(void 0!==n[a])throw new TypeError(a+" is ambiguous");n[a]=r}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var u=(e=r).lastIndexOf("1");if(-1===u)return"No separator character for "+e;if(0===u)return"Missing prefix for "+e;var s=e.slice(0,u),l=e.slice(u+1);if(l.length<6)return"Data too short";var c=o(s);if("string"===typeof c)return c;for(var f=[],d=0;d=l.length||f.push(h)}return 1!==c?"Invalid checksum for "+e:{prefix:s,words:f}}function s(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,u.push(a>>i&o);if(r)i>0&&u.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"===typeof a)throw new Error(a);for(var u=e+"1",s=0;s>5!==0)throw new Error("Non 5-bit word");a=i(a)^l,u+=t.charAt(l)}for(s=0;s<6;++s)a=i(a);for(a^=1,s=0;s<6;++s){u+=t.charAt(a>>5*(5-s)&31)}return u},toWordsUnsafe:function(e){var t=s(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=s(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=s(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=s(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},80518:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(46601).Buffer}catch(P){}function u(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function s(e,t,n){var r=u(e,n);return n-1>=t&&(r|=u(e,n-1)<<4),r}function l(e,t,n,a){for(var i=0,o=0,u=Math.min(e.length,n),s=t;s=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=s(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,u=Math.min(i,i-o)+n,s=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(P){i.prototype.inspect=f}else i.prototype.inspect=f;function f(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?d[6-s.length]+s+n:s+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=p[e],c=h[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(c).toString(e);n=(f=f.idivn(c)).isZero()?y+n:d[l-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function y(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,u=67108863&o,s=o/67108864|0;n.words[0]=u;for(var l=1;l>>26,f=67108863&s,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;c+=(o=(a=0|e.words[h])*(i=0|t.words[p])+f)/67108864|0,f=67108863&o}n.words[l]=0|f,s=0|c}return 0!==s?n.words[l]=0|s:n.length--,n._strip()}i.prototype.toArrayLike=function(e,t,n){this._strip();var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,a=0,i=0;a>8&255),n>16&255),6===i?(n>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===i?(n>=0&&(e[n--]=o>>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],h=8191&p,y=p>>>13,m=0|o[2],v=8191&m,g=m>>>13,b=0|o[3],w=8191&b,x=b>>>13,T=0|o[4],k=8191&T,C=T>>>13,S=0|o[5],E=8191&S,A=S>>>13,P=0|o[6],M=8191&P,_=P>>>13,I=0|o[7],O=8191&I,Z=I>>>13,R=0|o[8],j=8191&R,B=R>>>13,F=0|o[9],N=8191&F,L=F>>>13,D=0|u[0],U=8191&D,z=D>>>13,q=0|u[1],H=8191&q,W=q>>>13,V=0|u[2],K=8191&V,G=V>>>13,Q=0|u[3],Y=8191&Q,J=Q>>>13,X=0|u[4],$=8191&X,ee=X>>>13,te=0|u[5],ne=8191&te,re=te>>>13,ae=0|u[6],ie=8191&ae,oe=ae>>>13,ue=0|u[7],se=8191&ue,le=ue>>>13,ce=0|u[8],fe=8191&ce,de=ce>>>13,pe=0|u[9],he=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(f,U))|0)+((8191&(a=(a=Math.imul(f,z))+Math.imul(d,U)|0))<<13)|0;l=((i=Math.imul(d,z))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,U),a=(a=Math.imul(h,z))+Math.imul(y,U)|0,i=Math.imul(y,z);var ve=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(a=(a=a+Math.imul(f,W)|0)+Math.imul(d,H)|0))<<13)|0;l=((i=i+Math.imul(d,W)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,U),a=(a=Math.imul(v,z))+Math.imul(g,U)|0,i=Math.imul(g,z),r=r+Math.imul(h,H)|0,a=(a=a+Math.imul(h,W)|0)+Math.imul(y,H)|0,i=i+Math.imul(y,W)|0;var ge=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(a=(a=a+Math.imul(f,G)|0)+Math.imul(d,K)|0))<<13)|0;l=((i=i+Math.imul(d,G)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,U),a=(a=Math.imul(w,z))+Math.imul(x,U)|0,i=Math.imul(x,z),r=r+Math.imul(v,H)|0,a=(a=a+Math.imul(v,W)|0)+Math.imul(g,H)|0,i=i+Math.imul(g,W)|0,r=r+Math.imul(h,K)|0,a=(a=a+Math.imul(h,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0;var be=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(a=(a=a+Math.imul(f,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((i=i+Math.imul(d,J)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,U),a=(a=Math.imul(k,z))+Math.imul(C,U)|0,i=Math.imul(C,z),r=r+Math.imul(w,H)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(x,H)|0,i=i+Math.imul(x,W)|0,r=r+Math.imul(v,K)|0,a=(a=a+Math.imul(v,G)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,G)|0,r=r+Math.imul(h,Y)|0,a=(a=a+Math.imul(h,J)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,J)|0;var we=(l+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((i=i+Math.imul(d,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,U),a=(a=Math.imul(E,z))+Math.imul(A,U)|0,i=Math.imul(A,z),r=r+Math.imul(k,H)|0,a=(a=a+Math.imul(k,W)|0)+Math.imul(C,H)|0,i=i+Math.imul(C,W)|0,r=r+Math.imul(w,K)|0,a=(a=a+Math.imul(w,G)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,G)|0,r=r+Math.imul(v,Y)|0,a=(a=a+Math.imul(v,J)|0)+Math.imul(g,Y)|0,i=i+Math.imul(g,J)|0,r=r+Math.imul(h,$)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(y,$)|0,i=i+Math.imul(y,ee)|0;var xe=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((i=i+Math.imul(d,re)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,U),a=(a=Math.imul(M,z))+Math.imul(_,U)|0,i=Math.imul(_,z),r=r+Math.imul(E,H)|0,a=(a=a+Math.imul(E,W)|0)+Math.imul(A,H)|0,i=i+Math.imul(A,W)|0,r=r+Math.imul(k,K)|0,a=(a=a+Math.imul(k,G)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,r=r+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,J)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,J)|0,r=r+Math.imul(v,$)|0,a=(a=a+Math.imul(v,ee)|0)+Math.imul(g,$)|0,i=i+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(y,ne)|0,i=i+Math.imul(y,re)|0;var Te=(l+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(d,ie)|0))<<13)|0;l=((i=i+Math.imul(d,oe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(O,U),a=(a=Math.imul(O,z))+Math.imul(Z,U)|0,i=Math.imul(Z,z),r=r+Math.imul(M,H)|0,a=(a=a+Math.imul(M,W)|0)+Math.imul(_,H)|0,i=i+Math.imul(_,W)|0,r=r+Math.imul(E,K)|0,a=(a=a+Math.imul(E,G)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,G)|0,r=r+Math.imul(k,Y)|0,a=(a=a+Math.imul(k,J)|0)+Math.imul(C,Y)|0,i=i+Math.imul(C,J)|0,r=r+Math.imul(w,$)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(v,ne)|0,a=(a=a+Math.imul(v,re)|0)+Math.imul(g,ne)|0,i=i+Math.imul(g,re)|0,r=r+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0;var ke=(l+(r=r+Math.imul(f,se)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(d,se)|0))<<13)|0;l=((i=i+Math.imul(d,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,U),a=(a=Math.imul(j,z))+Math.imul(B,U)|0,i=Math.imul(B,z),r=r+Math.imul(O,H)|0,a=(a=a+Math.imul(O,W)|0)+Math.imul(Z,H)|0,i=i+Math.imul(Z,W)|0,r=r+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,r=r+Math.imul(E,Y)|0,a=(a=a+Math.imul(E,J)|0)+Math.imul(A,Y)|0,i=i+Math.imul(A,J)|0,r=r+Math.imul(k,$)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,a=(a=a+Math.imul(w,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(v,ie)|0,a=(a=a+Math.imul(v,oe)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,oe)|0,r=r+Math.imul(h,se)|0,a=(a=a+Math.imul(h,le)|0)+Math.imul(y,se)|0,i=i+Math.imul(y,le)|0;var Ce=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((i=i+Math.imul(d,de)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,U),a=(a=Math.imul(N,z))+Math.imul(L,U)|0,i=Math.imul(L,z),r=r+Math.imul(j,H)|0,a=(a=a+Math.imul(j,W)|0)+Math.imul(B,H)|0,i=i+Math.imul(B,W)|0,r=r+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(Z,K)|0,i=i+Math.imul(Z,G)|0,r=r+Math.imul(M,Y)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,J)|0,r=r+Math.imul(E,$)|0,a=(a=a+Math.imul(E,ee)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,ee)|0,r=r+Math.imul(k,ne)|0,a=(a=a+Math.imul(k,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,oe)|0,r=r+Math.imul(v,se)|0,a=(a=a+Math.imul(v,le)|0)+Math.imul(g,se)|0,i=i+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,a=(a=a+Math.imul(h,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0;var Se=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(a=(a=a+Math.imul(f,ye)|0)+Math.imul(d,he)|0))<<13)|0;l=((i=i+Math.imul(d,ye)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,H),a=(a=Math.imul(N,W))+Math.imul(L,H)|0,i=Math.imul(L,W),r=r+Math.imul(j,K)|0,a=(a=a+Math.imul(j,G)|0)+Math.imul(B,K)|0,i=i+Math.imul(B,G)|0,r=r+Math.imul(O,Y)|0,a=(a=a+Math.imul(O,J)|0)+Math.imul(Z,Y)|0,i=i+Math.imul(Z,J)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(_,$)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(E,ne)|0,a=(a=a+Math.imul(E,re)|0)+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,r=r+Math.imul(k,ie)|0,a=(a=a+Math.imul(k,oe)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(w,se)|0,a=(a=a+Math.imul(w,le)|0)+Math.imul(x,se)|0,i=i+Math.imul(x,le)|0,r=r+Math.imul(v,fe)|0,a=(a=a+Math.imul(v,de)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,ye)|0)+Math.imul(y,he)|0))<<13)|0;l=((i=i+Math.imul(y,ye)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,K),a=(a=Math.imul(N,G))+Math.imul(L,K)|0,i=Math.imul(L,G),r=r+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,J)|0)+Math.imul(B,Y)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(O,$)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(Z,$)|0,i=i+Math.imul(Z,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(_,ne)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(E,ie)|0,a=(a=a+Math.imul(E,oe)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,oe)|0,r=r+Math.imul(k,se)|0,a=(a=a+Math.imul(k,le)|0)+Math.imul(C,se)|0,i=i+Math.imul(C,le)|0,r=r+Math.imul(w,fe)|0,a=(a=a+Math.imul(w,de)|0)+Math.imul(x,fe)|0,i=i+Math.imul(x,de)|0;var Ae=(l+(r=r+Math.imul(v,he)|0)|0)+((8191&(a=(a=a+Math.imul(v,ye)|0)+Math.imul(g,he)|0))<<13)|0;l=((i=i+Math.imul(g,ye)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,Y),a=(a=Math.imul(N,J))+Math.imul(L,Y)|0,i=Math.imul(L,J),r=r+Math.imul(j,$)|0,a=(a=a+Math.imul(j,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(O,ne)|0,a=(a=a+Math.imul(O,re)|0)+Math.imul(Z,ne)|0,i=i+Math.imul(Z,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,oe)|0,r=r+Math.imul(E,se)|0,a=(a=a+Math.imul(E,le)|0)+Math.imul(A,se)|0,i=i+Math.imul(A,le)|0,r=r+Math.imul(k,fe)|0,a=(a=a+Math.imul(k,de)|0)+Math.imul(C,fe)|0,i=i+Math.imul(C,de)|0;var Pe=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(a=(a=a+Math.imul(w,ye)|0)+Math.imul(x,he)|0))<<13)|0;l=((i=i+Math.imul(x,ye)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(N,$),a=(a=Math.imul(N,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(j,ne)|0,a=(a=a+Math.imul(j,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(Z,ie)|0,i=i+Math.imul(Z,oe)|0,r=r+Math.imul(M,se)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(_,se)|0,i=i+Math.imul(_,le)|0,r=r+Math.imul(E,fe)|0,a=(a=a+Math.imul(E,de)|0)+Math.imul(A,fe)|0,i=i+Math.imul(A,de)|0;var Me=(l+(r=r+Math.imul(k,he)|0)|0)+((8191&(a=(a=a+Math.imul(k,ye)|0)+Math.imul(C,he)|0))<<13)|0;l=((i=i+Math.imul(C,ye)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,ne),a=(a=Math.imul(N,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(j,ie)|0,a=(a=a+Math.imul(j,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(O,se)|0,a=(a=a+Math.imul(O,le)|0)+Math.imul(Z,se)|0,i=i+Math.imul(Z,le)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,de)|0;var _e=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(a=(a=a+Math.imul(E,ye)|0)+Math.imul(A,he)|0))<<13)|0;l=((i=i+Math.imul(A,ye)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,ie),a=(a=Math.imul(N,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(j,se)|0,a=(a=a+Math.imul(j,le)|0)+Math.imul(B,se)|0,i=i+Math.imul(B,le)|0,r=r+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(Z,fe)|0,i=i+Math.imul(Z,de)|0;var Ie=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(a=(a=a+Math.imul(M,ye)|0)+Math.imul(_,he)|0))<<13)|0;l=((i=i+Math.imul(_,ye)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(N,se),a=(a=Math.imul(N,le))+Math.imul(L,se)|0,i=Math.imul(L,le),r=r+Math.imul(j,fe)|0,a=(a=a+Math.imul(j,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Oe=(l+(r=r+Math.imul(O,he)|0)|0)+((8191&(a=(a=a+Math.imul(O,ye)|0)+Math.imul(Z,he)|0))<<13)|0;l=((i=i+Math.imul(Z,ye)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(N,fe),a=(a=Math.imul(N,de))+Math.imul(L,fe)|0,i=Math.imul(L,de);var Ze=(l+(r=r+Math.imul(j,he)|0)|0)+((8191&(a=(a=a+Math.imul(j,ye)|0)+Math.imul(B,he)|0))<<13)|0;l=((i=i+Math.imul(B,ye)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863;var Re=(l+(r=Math.imul(N,he))|0)+((8191&(a=(a=Math.imul(N,ye))+Math.imul(L,he)|0))<<13)|0;return l=((i=Math.imul(L,ye))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,s[0]=me,s[1]=ve,s[2]=ge,s[3]=be,s[4]=we,s[5]=xe,s[6]=Te,s[7]=ke,s[8]=Ce,s[9]=Se,s[10]=Ee,s[11]=Ae,s[12]=Pe,s[13]=Me,s[14]=_e,s[15]=Ie,s[16]=Oe,s[17]=Ze,s[18]=Re,0!==l&&(s[19]=l,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=u,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function g(e,t,n){return v(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(m=y),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?y(this,e,t):n<1024?v(this,e,t):g(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},b.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,n+=i/67108864|0,n+=o>>>26,this.words[a]=67108863&o}return 0!==n&&(this.words[a]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),u=67108863^67108863>>>i<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=a);l--){var f=0|this.words[l];this.words[l]=c<<26-i|f>>>i,c=f&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===u)return this._strip();for(r(-1===u),u=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!==(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var u,s=r.length-a.length;if("mod"!==t){(u=new i(null)).length=s+1,u.words=new Array(u.length);for(var l=0;l=0;f--){var d=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(a,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);u&&(u.words[f]=d)}return u&&u._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(u=this.neg().divmod(e,t),"mod"!==t&&(a=u.div.neg()),"div"!==t&&(o=u.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(u=this.divmod(e.neg(),t),"mod"!==t&&(a=u.div.neg()),{div:a,mod:u.mod}):0!==(this.negative&e.negative)?(u=this.neg().divmod(e.neg(),t),"div"!==t&&(o=u.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:u.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,u},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(n*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*n;this.words[a]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),u=new i(0),s=new i(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0===(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(c),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var h=0,y=1;0===(n.words[0]&y)&&h<26;++h,y<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(f)),u.iushrn(1),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(u),o.isub(s)):(n.isub(t),u.isub(a),s.isub(o))}return{a:u,b:s,gcd:n.iushln(l)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),u=new i(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(u)):(n.isub(t),u.isub(o))}return(a=0===t.cmpn(1)?o:u).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,u&=67108863,this.words[o]=u}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function T(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"===typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},a(T,x),T.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},T.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new T;else if("p224"===e)t=new k;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var u=new i(1).toRed(this),s=u.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(s);)c.redIAdd(s);for(var f=this.pow(c,a),d=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(u);){for(var y=p,m=0;0!==y.cmp(u);m++)y=y.redSqr();r(m=0;r--){for(var l=t.words[r],c=s-1;c>=0;c--){var f=l>>c&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4===++u||0===r&&0===c)&&(a=this.mul(a,n[o]),u=0,o=0)):u=0}s=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new A(e)},a(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},19778:function(e,t,n){"use strict";var r=n(56690).default,a=n(89728).default,i=n(66115).default,o=n(61655).default,u=n(26389).default,s=n(2009),l=n(84038),c="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},t.INSPECT_MAX_BYTES=50;var f=2147483647;function d(e){if(e>f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return m(e)}return h(e,t,n)}function h(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|w(e,t),r=d(n),a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return v(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return g(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return g(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var a=function(e){if(p.isBuffer(e)){var t=0|b(e.length),n=d(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?d(0):v(e);if("Buffer"===e.type&&Array.isArray(e.data))return v(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function y(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function m(e){return y(e),d(e<0?0:0|b(e))}function v(e){for(var t=e.length<0?0:0|b(e.length),n=d(t),r=0;r=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function w(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:J(e).length;t=(""+t).toLowerCase(),a=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return Z(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,a){var i,o=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,u/=2,s/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;iu&&(n=u-s),i=n;i>=0;i--){for(var f=!0,d=0;da&&(r=a):r=a;var i,o=t.length;for(r>o/2&&(r=o/2),i=0;i>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:i>223?3:i>191?2:1;if(a+u<=n){var s=void 0,l=void 0,c=void 0,f=void 0;switch(u){case 1:i<128&&(o=i);break;case 2:128===(192&(s=e[a+1]))&&(f=(31&i)<<6|63&s)>127&&(o=f);break;case 3:s=e[a+1],l=e[a+2],128===(192&s)&&128===(192&l)&&(f=(15&i)<<12|(63&s)<<6|63&l)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:s=e[a+1],l=e[a+2],c=e[a+3],128===(192&s)&&128===(192&l)&&128===(192&c)&&(f=(15&i)<<18|(63&s)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,u=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=u}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rr.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(r,a)):Uint8Array.prototype.set.call(r,i,a);else{if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},p.byteLength=w,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},c&&(p.prototype[c]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,a){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),u=Math.min(i,o),s=this.slice(r,a),l=e.slice(t,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function Z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a){K(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function D(e,t,n,r,a){K(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function U(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,a){return t=+t,n>>>=0,a||U(e,0,n,4),l.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,a){return t=+t,n>>>=0,a||U(e,0,n,8),l.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],a=1,i=0;++i>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(a)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<>>=0,t||F(e,4,this.length),l.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),l.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),l.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),l.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var i=0,o=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var i=n-1,o=1,u=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/o>>0)-u&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function K(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(u," and < 2").concat(u," ** ").concat(8*(i+1)).concat(u):">= -(2".concat(u," ** ").concat(8*(i+1)-1).concat(u,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(u):">= ".concat(t).concat(u," and <= ").concat(n).concat(u),new H.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Q(t,e.length-(n+1))}(r,a,i)}function G(e,t){if("number"!==typeof e)throw new H.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,n){if(Math.floor(e)!==e)throw G(e,n),new H.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}W("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),W("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),W("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?a=V(String(n)):"bigint"===typeof n&&(a=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(a=V(a)),a+="n"),r+=" It must be ".concat(t,". Received ").concat(a)}),RangeError);var Y=/[^+/0-9A-Za-z-_]/g;function J(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,n,r){var a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}();function re(e){return"undefined"===typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},28182:function(e,t,n){"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tf)&&(i[s]=f,p.push(s,f),a[s]=u));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},10153:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},73580:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.dnsEncode=t.parseBytes32String=void 0;var o=n(18334);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return o.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return o.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return o.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return o.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return o.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return o.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return o.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return o.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return o.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}});var u=n(97419);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return u.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return u.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return u.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return u.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return u.isAddress}});var s=i(n(21800));t.base64=s;var l=n(3482);Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return l.Base58}});var c=n(49716);Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return c.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return c.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return c.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return c.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return c.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return c.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return c.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return c.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return c.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return c.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return c.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return c.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return c.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return c.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return c.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return c.stripZeros}});var f=n(81049);Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return f._TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return f.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return f.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return f.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return f.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return f.namehash}});var d=n(15148);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return d.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return d.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return d.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return d.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return d.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return d.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return d.mnemonicToSeed}});var p=n(31529);Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return p.getJsonWalletAddress}});var h=n(88062);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return h.keccak256}});var y=n(39502);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return y.Logger}});var m=n(86620);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return m.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return m.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return m.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return m.sha512}});var v=n(84530);Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return v.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return v.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return v.sha256}});var g=n(53770);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return g.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return g.shuffled}});var b=n(30520);Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return b.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return b.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return b.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return b.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return b.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return b.shallowCopy}});var w=i(n(17986));t.RLP=w;var x=n(78865);Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return x.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return x.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return x.SigningKey}});var T=n(23902);Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return T.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return T.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return T.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return T._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return T.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return T.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return T.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return T.Utf8ErrorFuncs}});var k=n(25452);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return k.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return k.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return k.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return k.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return k.TransactionTypes}});var C=n(19601);Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return C.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return C.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return C.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return C.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return C.parseUnits}});var S=n(22876);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return S.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return S.verifyTypedData}});var E=n(65889);Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return E._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return E.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return E.poll}});var A=n(86620);Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return A.SupportedAlgorithm}});var P=n(23902);Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return P.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return P.Utf8ErrorReason}})},97143:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var u=new a(r,i||e,o),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},u.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},79046:function(e,t,n){"use strict";var r=n(72325),a=n(12534);function i(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),a=0;a>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,u){var s=0,l=t;return s+=(l=l+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,u){return t+r+i+u>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,u,s,l){var c=0,f=t;return c+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,u,s,l){return t+r+i+u+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},62110:function(e,t,n){"use strict";var r=n(48309),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?o:u[e.$$typeof]||a}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var u=s(t),y=s(n),m=0;m>1,c=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=l}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,u,s,l=8*i-a-1,c=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=c?(u=0,o=c):o+f>=1?(u=(t*s-1)*Math.pow(2,a),o+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&u,p+=h,u/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*y}},12534:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},27898:function(e,t,n){var r;!function(){"use strict";var a="input is invalid type",i="object"===typeof window,o=i?window:{};o.JS_SHA3_NO_WINDOW&&(i=!1);var u=!i&&"object"===typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?o=n.g:u&&(o=self);var s=!o.JS_SHA3_NO_COMMON_JS&&e.exports,l=n.amdO,c=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[0,8,16,24],h=[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],y=[224,256,384,512],m=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!c||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var b=function(e,t,n){return function(r){return new R(e,t,e).update(r)[n]()}},w=function(e,t,n){return function(r,a){return new R(e,t,a).update(r)[n]()}},x=function(e,t,n){return function(t,r,a,i){return E["cshake"+e].update(t,r,a,i)[n]()}},T=function(e,t,n){return function(t,r,a,i){return E["kmac"+e].update(t,r,a,i)[n]()}},k=function(e,t,n,r){for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function j(e,t,n){R.call(this,e,t,n)}R.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,u=this.byteCount,s=e.length,l=this.blockCount,f=0,d=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=r-u,this.block=o[l],r=0;r>=8);n>0;)a.unshift(n),n=255&(e>>=8),++r;return t?a.push(r):a.unshift(r),this.update(a),a.length},R.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o=57344?r+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},R.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+f[15&e]+f[e>>12&15]+f[e>>8&15]+f[e>>20&15]+f[e>>16&15]+f[e>>28&15]+f[e>>24&15];o%t===0&&(B(n),i=0)}return a&&(e=n[i],u+=f[e>>4&15]+f[15&e],a>1&&(u+=f[e>>12&15]+f[e>>8&15]),a>2&&(u+=f[e>>20&15]+f[e>>16&15])),u},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,a=this.extraBytes,i=0,o=0,u=this.outputBits>>3;e=a?new ArrayBuffer(r+1<<2):new ArrayBuffer(u);for(var s=new Uint32Array(e);o>8&255,s[e+2]=t>>16&255,s[e+3]=t>>24&255;u%n===0&&B(r)}return i&&(e=u<<2,t=r[o],s[e]=255&t,i>1&&(s[e+1]=t>>8&255),i>2&&(s[e+2]=t>>16&255)),s},j.prototype=new R,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var B=function(e){var t,n,r,a,i,o,u,s,l,c,f,d,p,y,m,v,g,b,w,x,T,k,C,S,E,A,P,M,_,I,O,Z,R,j,B,F,N,L,D,U,z,q,H,W,V,K,G,Q,Y,J,X,$,ee,te,ne,re,ae,ie,oe,ue,se,le,ce;for(r=0;r<48;r+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|u>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=a^(s<<1|l>>>31),n=i^(l<<1|s>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(c<<1|f>>>31),n=u^(f<<1|c>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=s^(d<<1|p>>>31),n=l^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=c^(a<<1|i>>>31),n=f^(i<<1|a>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,y=e[0],m=e[1],K=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,_=e[21]<<3|e[20]>>>29,ue=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,Q=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,F=e[14]<<6|e[15]>>>26,N=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,Z=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,T=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,P=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,C=e[49]<<14|e[48]>>>18,e[0]=y^~v&b,e[1]=m^~g&w,e[10]=S^~A&M,e[11]=E^~P&_,e[20]=j^~F&L,e[21]=B^~N&D,e[30]=W^~K&Q,e[31]=V^~G&Y,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=v^~b&x,e[3]=g^~w&T,e[12]=A^~M&I,e[13]=P^~_&O,e[22]=F^~L&U,e[23]=N^~D&z,e[32]=K^~Q&J,e[33]=G^~Y&X,e[42]=re^~ie&ue,e[43]=ae^~oe&se,e[4]=b^~x&k,e[5]=w^~T&C,e[14]=M^~I&Z,e[15]=_^~O&R,e[24]=L^~U&q,e[25]=D^~z&H,e[34]=Q^~J&$,e[35]=Y^~X&ee,e[44]=ie^~ue&le,e[45]=oe^~se&ce,e[6]=x^~k&y,e[7]=T^~C&m,e[16]=I^~Z&S,e[17]=O^~R&E,e[26]=U^~q&j,e[27]=z^~H&B,e[36]=J^~$&W,e[37]=X^~ee&V,e[46]=ue^~le&te,e[47]=se^~ce&ne,e[8]=k^~y&v,e[9]=C^~m&g,e[18]=Z^~S&A,e[19]=R^~E&P,e[28]=q^~j&F,e[29]=H^~B&N,e[38]=$^~W&K,e[39]=ee^~V&G,e[48]=le^~te&re,e[49]=ce^~ne&ae,e[0]^=h[r],e[1]^=h[r+1]};if(s)e.exports=E;else{for(P=0;P1)for(var n=1;n