diff --git a/asset-manifest.json b/asset-manifest.json index a32759a..69e5f6f 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,12 +1,12 @@ { "files": { "main.css": "./static/css/main.a4364d00.chunk.css", - "main.js": "./static/js/main.ad35f17f.chunk.js", + "main.js": "./static/js/main.5e7bb1a2.chunk.js", "runtime-main.js": "./static/js/runtime-main.fdc41b22.js", "static/css/2.46a5c8fb.chunk.css": "./static/css/2.46a5c8fb.chunk.css", - "static/js/2.ad42eca4.chunk.js": "./static/js/2.ad42eca4.chunk.js", + "static/js/2.bd0e41e5.chunk.js": "./static/js/2.bd0e41e5.chunk.js", "index.html": "./index.html", - "static/js/2.ad42eca4.chunk.js.LICENSE.txt": "./static/js/2.ad42eca4.chunk.js.LICENSE.txt", + "static/js/2.bd0e41e5.chunk.js.LICENSE.txt": "./static/js/2.bd0e41e5.chunk.js.LICENSE.txt", "static/media/big_unicorn.be45c251.png": "./static/media/big_unicorn.be45c251.png", "static/media/blue-loader.249140da.svg": "./static/media/blue-loader.249140da.svg", "static/media/dropdown.fef18eeb.svg": "./static/media/dropdown.fef18eeb.svg", @@ -22,8 +22,8 @@ "entrypoints": [ "static/js/runtime-main.fdc41b22.js", "static/css/2.46a5c8fb.chunk.css", - "static/js/2.ad42eca4.chunk.js", + "static/js/2.bd0e41e5.chunk.js", "static/css/main.a4364d00.chunk.css", - "static/js/main.ad35f17f.chunk.js" + "static/js/main.5e7bb1a2.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 7426a73..aeb48ef 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Ubeswap Interface
\ No newline at end of file +Ubeswap Interface
\ No newline at end of file diff --git a/static/js/2.ad42eca4.chunk.js b/static/js/2.bd0e41e5.chunk.js similarity index 99% rename from static/js/2.ad42eca4.chunk.js rename to static/js/2.bd0e41e5.chunk.js index 956c406..fcf197d 100644 --- a/static/js/2.ad42eca4.chunk.js +++ b/static/js/2.bd0e41e5.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2.ad42eca4.chunk.js.LICENSE.txt */ -(this["webpackJsonp@ubeswap/interface"]=this["webpackJsonp@ubeswap/interface"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(1870)},function(e,t,n){"use strict";e.exports=n(1071)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(148);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),o=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return O()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=f;var l={};function p(){}function h(){}function b(){}var y={};u(y,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(T([])));v&&v!==t&&n.call(v,o)&&(y=v);var g=b.prototype=p.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(i,o,s,c){var u=d(e[i],e,o);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==Object(r.a)(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){a("next",e,s,c)}),(function(e){a("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return a("throw",e,s,c)}))}c(u.arg)}var i;this._invoke=function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return fe})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return ie})),n.d(t,"e",(function(){return we})),n.d(t,"f",(function(){return se})),n.d(t,"g",(function(){return ye})),n.d(t,"h",(function(){return _e})),n.d(t,"i",(function(){return Oe})),n.d(t,"j",(function(){return ce})),n.d(t,"k",(function(){return be})),n.d(t,"l",(function(){return Ee})),n.d(t,"m",(function(){return c})),n.d(t,"n",(function(){return le})),n.d(t,"o",(function(){return pe})),n.d(t,"p",(function(){return de})),n.d(t,"q",(function(){return ue})),n.d(t,"r",(function(){return J}));var r=n(27),a=n.n(r);n.d(t,"d",(function(){return a.a}));var i,o,s,c,u,f=n(40),d=n(1001),l=n.n(d),p=n(661),h=n.n(p),b=n(527),y=n.n(b),m=n(38),v=n(259);n(176),n(267),n(205),n(1002);!function(e){e[e.MAINNET=42220]="MAINNET",e[e.ALFAJORES=44787]="ALFAJORES",e[e.BAKLAVA=62320]="BAKLAVA"}(s||(s={})),function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(c||(c={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(u||(u={}));var g,x=a.a.BigInt(1e3),w=a.a.BigInt(0),_=a.a.BigInt(1),k=a.a.BigInt(2),E=a.a.BigInt(3),S=a.a.BigInt(5),T=a.a.BigInt(10),O=a.a.BigInt(100),M=a.a.BigInt(997),A=a.a.BigInt(1e3);!function(e){e.uint8="uint8",e.uint256="uint256"}(g||(g={}));var C=((i={})[g.uint8]=a.a.BigInt("0xff"),i[g.uint256]=a.a.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),i);(o={})[s.ALFAJORES]={name:"Alfajores",fornoURL:"https://alfajores-forno.celo-testnet.org",blockscoutURL:"https://alfajores-blockscout.celo-testnet.org"},o[s.BAKLAVA]={name:"Baklava",fornoURL:"https://baklava-forno.celo-testnet.org",blockscoutURL:"https://baklava-blockscout.celo-testnet.org"},o[s.MAINNET]={name:"Mainnet",fornoURL:"https://forno.celo.org",blockscoutURL:"https://explorer.celo.org"};function j(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function z(e,t){a.a.greaterThanOrEqual(e,w)||Object(f.a)(!1),a.a.lessThanOrEqual(e,C[t])||Object(f.a)(!1)}function q(e){try{return Object(m.getAddress)(e)}catch(t){Object(f.a)(!1)}}function W(e){return e instanceof a.a?e:"bigint"===typeof e?a.a.BigInt(e.toString()):a.a.BigInt(e)}function G(e){z(e,g.uint256);var t,n=w;if(a.a.greaterThan(e,E))for(n=e,t=a.a.add(a.a.divide(e,k),_);a.a.lessThan(t,n);)n=t,t=a.a.divide(a.a.add(a.a.divide(e,t),t),k);else a.a.notEqual(e,w)&&(n=_);return n}function K(e,t,n,r){if(n>0||Object(f.a)(!1),e.length<=n||Object(f.a)(!1),0===e.length)return e.push(t),null;var a=e.length===n;if(a&&r(e[e.length-1],t)<=0)return t;for(var i=0,o=e.length;i>>1;r(e[s],t)<=0?i=s+1:o=s}return e.splice(i,0,t),a?e.pop():null}var $,Y,J=function(e){if(!Object.values(s).includes(e))throw new Error("Unknown Celo chain ID: "+e);return e};var Z,X,Q,ee,te=y()(l.a),ne=y()(h.a),re=(($={})[u.ROUND_DOWN]=te.ROUND_DOWN,$[u.ROUND_HALF_UP]=te.ROUND_HALF_UP,$[u.ROUND_UP]=te.ROUND_UP,$),ae=((Y={})[u.ROUND_DOWN]=0,Y[u.ROUND_HALF_UP]=1,Y[u.ROUND_UP]=3,Y),ie=function(){function e(e,t){void 0===t&&(t=_),this.numerator=W(e),this.denominator=W(t)}var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var n=t instanceof e?t:new e(W(t));return a.a.equal(this.denominator,n.denominator)?new e(a.a.add(this.numerator,n.numerator),this.denominator):new e(a.a.add(a.a.multiply(this.numerator,n.denominator),a.a.multiply(n.numerator,this.denominator)),a.a.multiply(this.denominator,n.denominator))},t.subtract=function(t){var n=t instanceof e?t:new e(W(t));return a.a.equal(this.denominator,n.denominator)?new e(a.a.subtract(this.numerator,n.numerator),this.denominator):new e(a.a.subtract(a.a.multiply(this.numerator,n.denominator),a.a.multiply(n.numerator,this.denominator)),a.a.multiply(this.denominator,n.denominator))},t.lessThan=function(t){var n=t instanceof e?t:new e(W(t));return a.a.lessThan(a.a.multiply(this.numerator,n.denominator),a.a.multiply(n.numerator,this.denominator))},t.equalTo=function(t){var n=t instanceof e?t:new e(W(t));return a.a.equal(a.a.multiply(this.numerator,n.denominator),a.a.multiply(n.numerator,this.denominator))},t.greaterThan=function(t){var n=t instanceof e?t:new e(W(t));return a.a.greaterThan(a.a.multiply(this.numerator,n.denominator),a.a.multiply(n.numerator,this.denominator))},t.multiply=function(t){var n=t instanceof e?t:new e(W(t));return new e(a.a.multiply(this.numerator,n.numerator),a.a.multiply(this.denominator,n.denominator))},t.divide=function(t){var n=t instanceof e?t:new e(W(t));return new e(a.a.multiply(this.numerator,n.denominator),a.a.multiply(this.denominator,n.numerator))},t.toSignificant=function(e,t,n){void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=u.ROUND_HALF_UP),Number.isInteger(e)||Object(f.a)(!1),e>0||Object(f.a)(!1),te.set({precision:e+1,rounding:re[n]});var r=new te(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return r.toFormat(r.decimalPlaces(),t)},t.toFixed=function(e,t,n){return void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=u.ROUND_HALF_UP),Number.isInteger(e)||Object(f.a)(!1),e>=0||Object(f.a)(!1),ne.DP=e,ne.RM=ae[n],new ne(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},P(e,[{key:"quotient",get:function(){return a.a.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(a.a.remainder(this.numerator,this.denominator),this.denominator)}}]),e}(),oe=new ie(O),se=function(e){function t(){return e.apply(this,arguments)||this}N(t,e);var n=t.prototype;return n.toSignificant=function(e,t,n){return void 0===e&&(e=5),this.multiply(oe).toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=2),this.multiply(oe).toFixed(e,t,n)},t}(ie),ce=function(){function e(e,t,n,r,i){z(a.a.BigInt(n),g.uint8),this.decimals=n,this.symbol=r,this.name=i,this.chainId=e,this.address=q(t)}var t=e.prototype;return t.equals=function(e){return this===e||this.chainId===e.chainId&&this.address===e.address},t.sortsBefore=function(e){return this.chainId!==e.chainId&&Object(f.a)(!1),this.address===e.address&&Object(f.a)(!1),this.address.toLowerCase()0||Object(f.a)(!1),e.every((function(t){return t.chainId===e[0].chainId}))||Object(f.a)(!1),t instanceof ce&&e[0].involvesToken(t)||Object(f.a)(!1),"undefined"===typeof n||n instanceof ce&&e[e.length-1].involvesToken(n)||Object(f.a)(!1);for(var r,a=[t instanceof ce?t:fe[e[0].chainId]],i=H(e.entries());!(r=i()).done;){var o=r.value,s=o[0],c=o[1],u=a[s];u.equals(c.token0)||u.equals(c.token1)||Object(f.a)(!1);var d=u.equals(c.token0)?c.token1:c.token0;a.push(d)}this.pairs=e,this.path=a,this.midPrice=ye.fromRoute(this),this.input=t,this.output=null!=n?n:a[a.length-1]}return P(e,[{key:"chainId",get:function(){return this.pairs[0].chainId}}]),e}();function ke(e,t){var n=function(e,t){return ue(e.inputAmount.currency,t.inputAmount.currency)||Object(f.a)(!1),ue(e.outputAmount.currency,t.outputAmount.currency)||Object(f.a)(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?0:e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}(e,t);return 0!==n?n:e.priceImpact.lessThan(t.priceImpact)?-1:e.priceImpact.greaterThan(t.priceImpact)?1:e.route.path.length-t.route.path.length}var Ee=function(){function e(e,t,n){var r=new Array(e.path.length),a=new Array(e.pairs.length);if(n===c.EXACT_INPUT){ue(t.currency,e.input)||Object(f.a)(!1),r[0]=t;for(var i=0;i0;d--){var l=e.pairs[d-1].getInputAmount(r[d]),p=l[0],h=l[1];r[d-1]=p,a[d-1]=h}}this.route=e,this.tradeType=n,this.inputAmount=n===c.EXACT_INPUT?t:r[0],this.outputAmount=n===c.EXACT_OUTPUT?t:r[r.length-1],this.executionPrice=new ye(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.raw,this.outputAmount.raw),this.nextMidPrice=ye.fromRoute(new _e(a,e.input)),this.priceImpact=function(e,t,n){var r=e.raw.multiply(t.raw),a=r.subtract(n.raw).divide(r);return new se(a.numerator,a.denominator)}(e.midPrice,this.inputAmount,this.outputAmount)}e.exactIn=function(t,n){return new e(t,n,c.EXACT_INPUT)},e.exactOut=function(t,n){return new e(t,n,c.EXACT_OUTPUT)};var t=e.prototype;return t.minimumAmountOut=function(e){if(e.lessThan(w)&&Object(f.a)(!1),this.tradeType===c.EXACT_OUTPUT)return this.outputAmount;var t=new ie(_).add(e).invert().multiply(this.outputAmount.raw).quotient;return new be(this.outputAmount.token,t)},t.maximumAmountIn=function(e){if(e.lessThan(w)&&Object(f.a)(!1),this.tradeType===c.EXACT_INPUT)return this.inputAmount;var t=new ie(_).add(e).multiply(this.inputAmount.raw).quotient;return new be(this.inputAmount.token,t)},e.bestTradeExactIn=function(t,n,r,a,i,o,s){var u=void 0===a?{}:a,d=u.maxNumResults,l=void 0===d?3:d,p=u.maxHops,h=void 0===p?3:p;void 0===i&&(i=[]),void 0===o&&(o=n),void 0===s&&(s=[]),t.length>0||Object(f.a)(!1),h>0||Object(f.a)(!1),o===n||i.length>0||Object(f.a)(!1),void 0===(n instanceof be?n.token.chainId:r instanceof ce?r.chainId:void 0)&&Object(f.a)(!1);for(var b=n,y=r,m=0;m1&&t.length>1){var x=t.slice(0,m).concat(t.slice(m+1,t.length));e.bestTradeExactIn(x,g,r,{maxNumResults:l,maxHops:h-1},[].concat(i,[v]),o,s)}}}return s},e.bestTradeExactOut=function(t,n,r,a,i,o,s){var u=void 0===a?{}:a,d=u.maxNumResults,l=void 0===d?3:d,p=u.maxHops,h=void 0===p?3:p;void 0===i&&(i=[]),void 0===o&&(o=r),void 0===s&&(s=[]),t.length>0||Object(f.a)(!1),h>0||Object(f.a)(!1),o===r||i.length>0||Object(f.a)(!1),void 0===(r instanceof be?r.token.chainId:n instanceof ce?n.chainId:void 0)&&Object(f.a)(!1);for(var b=r,y=n,m=0;m1&&t.length>1){var x=t.slice(0,m).concat(t.slice(m+1,t.length));e.bestTradeExactOut(x,n,g,{maxNumResults:l,maxHops:h-1},[v].concat(i),o,s)}}}return s},e}();var Se;(function(e,t){e(t={exports:{}},t.exports)})((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(j){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),o=new M(r||[]);return i._invoke=function(e,t,n){var r=d;return function(a,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw i;return C()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=f(e,t,n);if("normal"===c.type){if(r=n.done?h:l,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,o),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=u;var d="suspendedStart",l="suspendedYield",p="executing",h="completed",b={};function y(){}function m(){}function v(){}var g={};g[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==n&&r.call(w,i)&&(g=w);var _=v.prototype=y.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(a,i,o,s){var c=f(e[a],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return b;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var a=f(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}})),(Se={})[s.MAINNET]={"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A":9};function Te(e){return"0x"+e.raw.toString(16)}var Oe=function(){function e(){}return e.swapCallParameters=function(e,t){!("ttl"in t)||t.ttl>0||Object(f.a)(!1);var n,r,a,i=q(t.recipient),o=Te(e.maximumAmountIn(t.allowedSlippage)),s=Te(e.minimumAmountOut(t.allowedSlippage)),u=e.route.path.map((function(e){return e.address})),d="ttl"in t?"0x"+(Math.floor((new Date).getTime()/1e3)+t.ttl).toString(16):"0x"+t.deadline.toString(16),l=Boolean(t.feeOnTransfer);switch(e.tradeType){case c.EXACT_INPUT:n=l?"swapExactTokensForTokensSupportingFeeOnTransferTokens":"swapExactTokensForTokens",r=[o,s,u,i,d],a="0x0";break;case c.EXACT_OUTPUT:l&&Object(f.a)(!1),n="swapTokensForExactTokens",r=[s,o,u,i,d],a="0x0"}return{methodName:n,args:r,value:a}},e}()},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return Ue})),n.d(t,"StyleSheetConsumer",(function(){return ae})),n.d(t,"StyleSheetContext",(function(){return re})),n.d(t,"StyleSheetManager",(function(){return fe})),n.d(t,"ThemeConsumer",(function(){return Pe})),n.d(t,"ThemeContext",(function(){return je})),n.d(t,"ThemeProvider",(function(){return Ie})),n.d(t,"__PRIVATE__",(function(){return ze})),n.d(t,"createGlobalStyle",(function(){return Be})),n.d(t,"css",(function(){return xe})),n.d(t,"isStyledComponent",(function(){return x})),n.d(t,"keyframes",(function(){return Fe})),n.d(t,"useTheme",(function(){return He})),n.d(t,"version",(function(){return _})),n.d(t,"withTheme",(function(){return Ve}));var r=n(403),a=n(1),i=n.n(a),o=n(1003),s=n.n(o),c=n(507),u=n(508),f=n(676),d=n(139),l=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&T(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i=C&&(C=t+1),M.set(e,t),A.set(t,e)},N="style["+w+'][data-styled-version="5.3.5"]',R=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,a=n.split(","),i=0,o=a.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.5");var o=B();return o&&r.setAttribute("nonce",o),n.insertBefore(r,i),r},U=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return(K(t%52)+n).replace(G,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return Y(5381,e)};function Z(e){for(var t=0;t>>0);if(!t.hasNameForId(r,o)){var s=n(i,"."+o,void 0,r);t.insertRules(r,o,s)}a.push(o),this.staticRulesId=o}else{for(var c=this.rules.length,u=Y(this.baseHash,n.hash),f="",d=0;d>>0);if(!t.hasNameForId(r,b)){var y=n(f,"."+b,void 0,r);t.insertRules(r,b,y)}a.push(b)}}return a.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,a,i=void 0===e?m:e,o=i.options,s=void 0===o?m:o,u=i.plugins,f=void 0===u?y:u,d=new c.a(s),l=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,o,s,c,u,f,d){switch(n){case 1:if(0===f&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){l.push(e)})),h=function(e,r,i){return 0===r&&-1!==te.indexOf(i[n.length])||i.match(a)?e:"."+t};function b(e,i,o,s){void 0===s&&(s="&");var c=e.replace(ee,""),u=i&&o?o+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),d(o||!i?"":i,u)}return d.use([].concat(f,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,h))},p,function(e){if(-2===e){var t=l;return l=[],t}}])),b.hash=f.length?f.reduce((function(e,t){return t.name||T(15),Y(e,t.name)}),5381).toString():"",b}var re=i.a.createContext(),ae=re.Consumer,ie=i.a.createContext(),oe=(ie.Consumer,new W),se=ne();function ce(){return Object(a.useContext)(re)||oe}function ue(){return Object(a.useContext)(ie)||se}function fe(e){var t=Object(a.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ce(),c=Object(a.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(a.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(a.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(re.Provider,{value:c},i.a.createElement(ie.Provider,{value:u},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return T(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),le=/([A-Z])/,pe=/([A-Z])/g,he=/^ms-/,be=function(e){return"-"+e.toLowerCase()};function ye(e){return le.test(e)?e.replace(pe,be).replace(he,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ee(e){return e.replace(_e,"-").replace(ke,"")}var Se=function(e){return $(J(e)>>>0)};function Te(e){return"string"==typeof e&&!0}var Oe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Me=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ae(e,t,n){var r=e[n];Oe(t)&&Oe(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(a[n]=e[n]);return a}(t,["componentId"]),i=r&&r+"-"+(Te(e)?e:Ee(g(e)));return Re(e,p({},a,{attrs:_,componentId:i}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ce({},e.defaultProps,t):t}}),E.toString=function(){return"."+E.styledComponentId},o&&l()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var De=function(e){return function e(t,n,a){if(void 0===a&&(a=m),!Object(r.isValidElementType)(n))return T(1,String(n));var i=function(){return t(n,a,xe.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},a,{},r))},i.attrs=function(r){return e(t,n,p({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},i}(Re,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){De[e]=De(e)}));var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?T(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return T(2);var n=((t={})[w]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[i.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?T(2):i.a.createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return T(3)},e}(),Ve=function(e){var t=i.a.forwardRef((function(t,n){var r=Object(a.useContext)(je),o=e.defaultProps,s=we(t,r,o);return i.a.createElement(e,p({},t,{theme:s,ref:n}))}));return l()(t,e),t.displayName="WithTheme("+g(e)+")",t},He=function(){return Object(a.useContext)(je)},ze={StyleSheet:W,masterSheet:oe};t.default=De}.call(this,n(53))},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"isBytesLike",(function(){return o})),n.d(t,"isBytes",(function(){return c})),n.d(t,"arrayify",(function(){return u})),n.d(t,"concat",(function(){return f})),n.d(t,"stripZeros",(function(){return d})),n.d(t,"zeroPad",(function(){return l})),n.d(t,"isHexString",(function(){return p})),n.d(t,"hexlify",(function(){return b})),n.d(t,"hexDataLength",(function(){return y})),n.d(t,"hexDataSlice",(function(){return m})),n.d(t,"hexConcat",(function(){return v})),n.d(t,"hexValue",(function(){return g})),n.d(t,"hexStripZeros",(function(){return x})),n.d(t,"hexZeroPad",(function(){return w})),n.d(t,"splitSignature",(function(){return _})),n.d(t,"joinSignature",(function(){return k}));var r=new(n(13).Logger)("bytes/5.6.1");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)||c(e)}function s(e){return"number"===typeof e&&e==e&&e%1===0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function u(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 s=[],u=0;ut&&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 b(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(c(e)){for(var i="0x",o=0;o>4]+h[15&s]}return i}return r.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!==typeof e)e=b(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,n){return"string"!==typeof e?e=b(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 v(e){var t="0x";return e.forEach((function(e){t+=b(e).substring(2)})),t}function g(e){var t=x(b(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function x(e){"string"!==typeof e&&(e=b(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 _(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){var n=u(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=b(n.slice(0,32)),t.s=b(n.slice(32,64))):65===n.length?(t.r=b(n.slice(0,32)),t.s=b(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=b(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=l(u(t._vs),32);t._vs=b(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 s=b(a);null==t.s?t.s=s:t.s!==s&&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 c=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==c&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=w(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=w(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var f=u(t.s);f[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var d=b(f);t._vs&&(p(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=d:t._vs!==d&&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 b(f([(e=_(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return a})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return l})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return b})),n.d(t,"__spread",(function(){return y})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return g})),n.d(t,"__asyncDelegator",(function(){return x})),n.d(t,"__asyncValues",(function(){return w})),n.d(t,"__makeTemplateObject",(function(){return _})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(r){f(i[0][3],r)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ns[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(u){a.push(e+"="+JSON.stringify(r[e].toString()))}})),a.push("code=".concat(n)),a.push("version=".concat(this.version));var i=t,s="";switch(n){case d.NUMERIC_FAULT:s="NUMERIC_FAULT";var c=t;switch(c){case"overflow":case"underflow":case"division-by-zero":s+="-"+c;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case d.CALL_EXCEPTION:case d.INSUFFICIENT_FUNDS:case d.MISSING_NEW:case d.NONCE_EXPIRED:case d.REPLACEMENT_UNDERPRICED:case d.TRANSACTION_REPLACED:case d.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(t+=" ("+a.join(", ")+")");var u=new Error(t);return u.reason=i,u.code=n,Object.keys(r).forEach((function(e){u[e]=r[e]})),u}},{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"),l&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}},{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 u||(u=new e("logger/5.6.0")),u}},{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=s[t.toLowerCase()];null!=n?c=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();h.errors=d,h.levels=f},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.useContractKit=t.useCelo=t.Screens=void 0,a(n(95),t),a(n(1451),t),a(n(788),t);var i=n(797);Object.defineProperty(t,"Screens",{enumerable:!0,get:function(){return i.defaultScreens}}),a(n(418),t);var o=n(159);Object.defineProperty(t,"useCelo",{enumerable:!0,get:function(){return o.useCelo}}),Object.defineProperty(t,"useContractKit",{enumerable:!0,get:function(){return o.useContractKit}})},function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f}));var r=n(1),a=n.n(r),i=n(240);function o(){return o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=[];return Object.keys(e).forEach((function(r){if(!t.length||t.includes(r)){var a=e[r];n.push.apply(n,Object(s.a)(a.accounts))}})),n}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return Object.keys(e).forEach((function(r){if(!t.length||t.includes(r)){var a=e[r];n.push.apply(n,Object(s.a)(j(a.accounts)))}})),n}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return Object.keys(e).forEach((function(r){if(!t.length||t.includes(r)){var a=e[r];n.push.apply(n,Object(s.a)(R(r,a)))}})),n}function R(e,t){return e.includes(":")?[e]:t.chains||[]}var D=function(e){return null===e||void 0===e?void 0:e.split(":")},L=function(e){var t=e&&D(e);if(t)return t[3]},B=function(e){var t=e&&D(e);if(t)return t[2]+":"+t[3]},F=function(e){var t=e&&D(e);if(t)return t.pop()},U=function(e,t){return["".concat(e.domain," wants you to sign in with your Ethereum account:"),F(t),"",e.statement,"","URI: ".concat(e.aud),"Version: ".concat(e.version),"Chain ID: ".concat(L(t)),"Nonce: ".concat(e.nonce),"Issued At: ".concat(e.iat),e.resources&&e.resources.length>0?"Resources:\n".concat(e.resources.map((function(e){return"- ".concat(e)})).join("\n")):void 0].filter((function(e){return null!=e})).join("\n")},V="base10",H="base16",z="base64pad",q="utf8",W=0,G=1;function K(){var e=p.generateKeyPair();return{privateKey:Object(h.toString)(e.secretKey,H),publicKey:Object(h.toString)(e.publicKey,H)}}function $(){var e=Object(d.randomBytes)(32);return Object(h.toString)(e,H)}function Y(e,t){var n=p.sharedKey(Object(h.fromString)(e,H),Object(h.fromString)(t,H)),r=new f.HKDF(l.SHA256,n).expand(32);return Object(h.toString)(r,H)}function J(e){var t=Object(l.hash)(Object(h.fromString)(e,H));return Object(h.toString)(t,H)}function Z(e){var t=Object(l.hash)(Object(h.fromString)(e,q));return Object(h.toString)(t,H)}function X(e){return Object(h.fromString)("".concat(e),V)}function Q(e){return Number(Object(h.toString)(e,V))}function ee(e){var t=X(typeof e.type<"u"?e.type:W);if(Q(t)===G&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");var n=typeof e.senderPublicKey<"u"?Object(h.fromString)(e.senderPublicKey,H):void 0,r=typeof e.iv<"u"?Object(h.fromString)(e.iv,H):Object(d.randomBytes)(12);return ne({type:t,sealed:new u.ChaCha20Poly1305(Object(h.fromString)(e.symKey,H)).seal(r,Object(h.fromString)(e.message,q)),iv:r,senderPublicKey:n})}function te(e){var t=new u.ChaCha20Poly1305(Object(h.fromString)(e.symKey,H)),n=re(e.encoded),r=n.sealed,a=n.iv,i=t.open(a,r);if(null===i)throw new Error("Failed to decrypt");return Object(h.toString)(i,q)}function ne(e){if(Q(e.type)===G){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Object(h.toString)(Object(h.concat)([e.type,e.senderPublicKey,e.iv,e.sealed]),z)}return Object(h.toString)(Object(h.concat)([e.type,e.iv,e.sealed]),z)}function re(e){var t=Object(h.fromString)(e,z),n=t.slice(0,1);if(Q(n)===G){var r=t.slice(1,33),a=t.slice(33,45);return{type:n,sealed:t.slice(45),iv:a,senderPublicKey:r}}var i=t.slice(1,13);return{type:n,sealed:t.slice(13),iv:i}}function ae(e,t){var n=re(e);return ie({type:Q(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?Object(h.toString)(n.senderPublicKey,H):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}function ie(e){var t=(null===e||void 0===e?void 0:e.type)||W;if(t===G){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function oe(e){return e.type===G&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var se=Object.defineProperty,ce=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,de=function(e,t,n){return t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},le=function(e,t){for(var n in t||(t={}))ue.call(t,n)&&de(e,n,t[n]);if(ce){var r,a=Object(o.a)(ce(t));try{for(a.s();!(r=a.n()).done;){n=r.value;fe.call(t,n)&&de(e,n,t[n])}}catch(i){a.e(i)}finally{a.f()}}return e},pe="ReactNative",he={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},be=" ",ye=":",me="/",ve=2,ge=1e3,xe="js";function we(){return typeof e<"u"&&typeof e.versions<"u"&&typeof e.versions.node<"u"}function _e(){return!Object(m.getDocument)()&&!!Object(m.getNavigator)()&&navigator.product===pe}function ke(){return!we()&&!!Object(m.getNavigator)()}function Ee(){return _e()?he.reactNative:we()?he.node:ke()?he.browser:he.unknown}function Se(e,t){var n=g.parse(e);return n=le(le({},n),t),e=g.stringify(n)}function Te(){return Object(v.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Oe(e,t){var n,r=Ee(),a={protocol:e,version:t,env:r};return"browser"===r&&(a.host=(null==(n=Object(m.getLocation)())?void 0:n.host)||"unknown"),a}function Me(){var e=Object(b.a)();if(null===e)return"unknown";var t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function Ae(){var e,t=Ee();return t===he.browser?[t,(null==(e=Object(m.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}function Ce(e,t,n){var r=Me(),a=Ae();return[[e,t].join("-"),[xe,n].join("-"),r,a].join("/")}function je(e){var t=e.protocol,n=e.version,r=e.relayUrl,a=e.sdkVersion,i=e.auth,o=e.projectId,s=e.useOnCloseEvent,c=r.split("?"),u={auth:i,ua:Ce(t,n,a),projectId:o,useOnCloseEvent:s||void 0},f=Se(c[1]||"",u);return c[0]+"?"+f}function Pe(e){var t=(e.match(/^[^:]+(?=:\/\/)/gi)||[])[0],n=typeof t<"u"?e.split("://")[1]:e;return[t="wss"===t?"https":"http",n].join("://")}function Ie(e,t,n){if(!e[t]||typeof e[t]!==n)throw new Error('Missing or invalid "'.concat(t,'" param'))}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve;return Le(e.split(me),t)}function Re(e){return Ne(e).join(be)}function De(e,t){return e.filter((function(e){return t.includes(e)})).length===e.length}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve;return e.slice(Math.max(e.length-t,0))}function Be(e){return Object.fromEntries(e.entries())}function Fe(e){return new Map(Object.entries(e))}function Ue(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r])})),n}var Ve=function(e){return e};function He(e){return e.trim().replace(/^\w/,(function(e){return e.toUpperCase()}))}function ze(e){return e.split(be).map((function(e){return He(e)})).join(be)}function qe(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.FIVE_MINUTES,a=arguments.length>1?arguments[1]:void 0,i=Object(y.toMiliseconds)(r||y.FIVE_MINUTES);return{resolve:function(t){n&&e&&(clearTimeout(n),e(t))},reject:function(e){n&&t&&(clearTimeout(n),t(e))},done:function(){return new Promise((function(r,o){n=setTimeout((function(){o(new Error(a))}),i),e=r,t=o}))}}}function We(e,t,n){return new Promise(function(){var r=Object(i.a)(Object(a.a)().mark((function r(i,o){var s,c;return Object(a.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=setTimeout((function(){return o(new Error(n))}),t),r.prev=1,r.next=4,e;case 4:c=r.sent,i(c),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),o(r.t0);case 11:clearTimeout(s);case 12:case"end":return r.stop()}}),r,null,[[1,8]])})));return function(e,t){return r.apply(this,arguments)}}())}function Ge(e,t){if("string"==typeof t&&t.startsWith("".concat(e,":")))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(t)}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(t)}throw new Error("Unknown expirer target type: ".concat(e))}function Ke(e){return Ge("topic",e)}function $e(e){return Ge("id",e)}function Ye(e){var t=e.split(":"),n=Object(c.a)(t,2),r=n[0],a=n[1],i={id:void 0,topic:void 0};if("topic"===r&&"string"==typeof a)i.topic=a;else{if("id"!==r||!Number.isInteger(Number(a)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(r,":").concat(a));i.id=Number(a)}return i}function Je(e,t){return Object(y.fromMiliseconds)((t||Date.now())+Object(y.toMiliseconds)(e))}function Ze(e){return Date.now()>=Object(y.toMiliseconds)(e)}function Xe(e,t){return"".concat(e).concat(t?":".concat(t):"")}function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(s.a)(new Set([].concat(Object(s.a)(e),Object(s.a)(t))))}function et(e){return tt.apply(this,arguments)}function tt(){return(tt=Object(i.a)(Object(a.a)().mark((function e(t){var n,i,o,s,c,u,f;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.id,i=t.topic,o=t.wcDeepLink,e.prev=1,o){e.next=4;break}return e.abrupt("return");case 4:if(s="string"==typeof o?JSON.parse(o):o,"string"==typeof(c=null===s||void 0===s?void 0:s.href)){e.next=8;break}return e.abrupt("return");case 8:if(c.endsWith("/")&&(c=c.slice(0,-1)),u="".concat(c,"/wc?requestId=").concat(n,"&sessionTopic=").concat(i),(f=Ee())!==he.browser){e.next=14;break}window.open(u,"_self","noreferrer noopener"),e.next=18;break;case 14:if(e.t0=f===he.reactNative&&typeof(null==r?void 0:r.Linking)<"u",!e.t0){e.next=18;break}return e.next=18,r.Linking.openURL(u);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),console.error(e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})))).apply(this,arguments)}var nt="irn";function rt(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:nt}}function at(e){var t=x.RELAY_JSONRPC[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: ".concat(e));return t}var it=Object.defineProperty,ot=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,ut=function(e,t,n){return t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={},r="relay"+t;return Object.keys(e).forEach((function(t){if(t.startsWith(r)){var a=t.replace(r,""),i=e[t];n[a]=i}})),n}function dt(e){var t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),a=e.substring(t+1,n).split("@"),i=typeof n<"u"?e.substring(n):"",o=g.parse(i);return{protocol:r,topic:lt(a[0]),version:parseInt(a[1],10),symKey:o.symKey,relay:ft(o)}}function lt(e){return e.startsWith("//")?e.substring(2):e}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n="relay",r={};return Object.keys(e).forEach((function(a){var i=n+t+a;e[a]&&(r[i]=e[a])})),r}function ht(e){return"".concat(e.protocol,":").concat(e.topic,"@").concat(e.version,"?")+g.stringify(function(e,t){for(var n in t||(t={}))st.call(t,n)&&ut(e,n,t[n]);if(ot){var r,a=Object(o.a)(ot(t));try{for(a.s();!(r=a.n()).done;)n=r.value,ct.call(t,n)&&ut(e,n,t[n])}catch(i){a.e(i)}finally{a.f()}}return e}({symKey:e.symKey},pt(e.relay)))}var bt=Object.defineProperty,yt=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,wt=function(e,t,n){return t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},_t=function(e,t){for(var n in t||(t={}))gt.call(t,n)&&wt(e,n,t[n]);if(vt){var r,a=Object(o.a)(vt(t));try{for(a.s();!(r=a.n()).done;){n=r.value;xt.call(t,n)&&wt(e,n,t[n])}}catch(i){a.e(i)}finally{a.f()}}return e},kt=function(e,t){return yt(e,mt(t))};function Et(e){var t=[];return e.forEach((function(e){var n=e.split(":"),r=Object(c.a)(n,2),a=r[0],i=r[1];t.push("".concat(a,":").concat(i))})),t}function St(e){var t=[];return Object.values(e).forEach((function(e){t.push.apply(t,Object(s.a)(Et(e.accounts)))})),t}function Tt(e,t){var n=[];return Object.values(e).forEach((function(e){Et(e.accounts).includes(t)&&n.push.apply(n,Object(s.a)(e.methods))})),n}function Ot(e,t){var n=[];return Object.values(e).forEach((function(e){Et(e.accounts).includes(t)&&n.push.apply(n,Object(s.a)(e.events))})),n}function Mt(e,t){var n=rn(e,t);if(n)throw new Error(n.message);for(var r={},a=0,i=Object.entries(e);a"u"}function Ut(e,t){return!(!t||!Ft(e))||"string"==typeof e&&!!e.trim().length}function Vt(e,t){return!(!t||!Ft(e))||"number"==typeof e&&!isNaN(e)}function Ht(e,t){var n=t.requiredNamespaces,r=Object.keys(e.namespaces),a=Object.keys(n),i=!0;return!!De(a,r)&&(r.forEach((function(t){var r=e.namespaces[t],a=r.accounts,o=r.methods,s=r.events,c=Et(a),u=n[t];(!De(R(t,u),c)||!De(u.methods,o)||!De(u.events,s))&&(i=!1)})),i)}function zt(e){return!(!Ut(e,!1)||!e.includes(":"))&&2===e.split(":").length}function qt(e){if(Ut(e,!1)&&e.includes(":")){var t=e.split(":");if(3===t.length){var n=t[0]+":"+t[1];return!!t[2]&&zt(n)}}return!1}function Wt(e){if(Ut(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function Gt(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}function Kt(e){return null===e||void 0===e?void 0:e.topic}function $t(e,t){var n=null;return Ut(null===e||void 0===e?void 0:e.publicKey,!1)||(n=Rt("MISSING_OR_INVALID","".concat(t," controller public key should be a string"))),n}function Yt(e){var t=!0;return Lt(e)?e.length&&(t=e.every((function(e){return Ut(e,!1)}))):t=!1,t}function Jt(e,t,n){var r=null;return Lt(t)?t.forEach((function(t){r||(!zt(t)||!t.includes(e))&&(r=Dt("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(t,' should be a string and conform to "namespace:chainId" format')))})):r=Dt("UNSUPPORTED_CHAINS","".concat(n,", chains ").concat(t,' should be an array of strings conforming to "namespace:chainId" format')),r}function Zt(e,t){var n=null;return Object.entries(e).forEach((function(e){var r=Object(c.a)(e,2),a=r[0],i=r[1];if(!n){var o=Jt(a,R(a,i),"".concat(t," requiredNamespace"));o&&(n=o)}})),n}function Xt(e,t){var n=null;return Lt(e)?e.forEach((function(e){n||qt(e)||(n=Dt("UNSUPPORTED_ACCOUNTS","".concat(t,", account ").concat(e,' should be a string and conform to "namespace:chainId:address" format')))})):n=Dt("UNSUPPORTED_ACCOUNTS","".concat(t,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}function Qt(e,t){var n=null;return Object.values(e).forEach((function(e){if(!n){var r=Xt(null===e||void 0===e?void 0:e.accounts,"".concat(t," namespace"));r&&(n=r)}})),n}function en(e,t){var n=null;return Yt(null===e||void 0===e?void 0:e.methods)?Yt(null===e||void 0===e?void 0:e.events)||(n=Dt("UNSUPPORTED_EVENTS","".concat(t,", events should be an array of strings or empty array for no events"))):n=Dt("UNSUPPORTED_METHODS","".concat(t,", methods should be an array of strings or empty array for no methods")),n}function tn(e,t){var n=null;return Object.values(e).forEach((function(e){if(!n){var r=en(e,"".concat(t,", namespace"));r&&(n=r)}})),n}function nn(e,t,n){var r=null;if(e&&Bt(e)){var a=tn(e,t);a&&(r=a);var i=Zt(e,t);i&&(r=i)}else r=Rt("MISSING_OR_INVALID","".concat(t,", ").concat(n," should be an object with data"));return r}function rn(e,t){var n=null;if(e&&Bt(e)){var r=tn(e,t);r&&(n=r);var a=Qt(e,t);a&&(n=a)}else n=Rt("MISSING_OR_INVALID","".concat(t,", namespaces should be an object with data"));return n}function an(e){return Ut(e.protocol,!0)}function on(e,t){var n=!1;return t&&!e?n=!0:e&&Lt(e)&&e.length&&e.forEach((function(e){n=an(e)})),n}function sn(e){return"number"==typeof e}function cn(e){return typeof e<"u"&&null!==typeof e}function un(e){return!(!e||"object"!=typeof e||!e.code||!Vt(e.code,!1)||!e.message||!Ut(e.message,!1))}function fn(e){return!(Ft(e)||!Ut(e.method,!1))}function dn(e){return!(Ft(e)||Ft(e.result)&&Ft(e.error)||!Vt(e.id,!1)||!Ut(e.jsonrpc,!1))}function ln(e){return!(Ft(e)||!Ut(e.name,!1))}function pn(e,t){return!(!zt(t)||!St(e).includes(t))}function hn(e,t,n){return!!Ut(n,!1)&&Tt(e,t).includes(n)}function bn(e,t,n){return!!Ut(n,!1)&&Ot(e,t).includes(n)}function yn(e,t,n){var r=null,a=function(e){var t={};return Object.keys(e).forEach((function(n){var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((function(r){t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),i=function(e){var t={};return Object.keys(e).forEach((function(n){if(n.includes(":"))t[n]=e[n];else{var r=Et(e[n].accounts);null===r||void 0===r||r.forEach((function(r){t[r]={accounts:e[n].accounts.filter((function(e){return e.includes("".concat(r,":"))})),methods:e[n].methods,events:e[n].events}}))}})),t}(t),o=Object.keys(a),s=Object.keys(i),c=mn(Object.keys(e)),u=mn(Object.keys(t)),f=c.filter((function(e){return!u.includes(e)}));return f.length&&(r=Rt("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n Required: ").concat(f.toString(),"\n Received: ").concat(Object.keys(t).toString()))),De(o,s)||(r=Rt("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n Required: ").concat(o.toString(),"\n Approved: ").concat(s.toString()))),Object.keys(t).forEach((function(e){if(e.includes(":")&&!r){var a=Et(t[e].accounts);a.includes(e)||(r=Rt("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(e,"\n Required: ").concat(e,"\n Approved: ").concat(a.toString())))}})),o.forEach((function(e){r||(De(a[e].methods,i[e].methods)?De(a[e].events,i[e].events)||(r=Rt("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(e))):r=Rt("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(e)))})),r}function mn(e){return Object(s.a)(new Set(e.map((function(e){return e.includes(":")?e.split(":")[0]:e}))))}function vn(e,t){return Vt(e,!1)&&e<=t.max&&e>=t.min}}.call(this,n(53),n(52))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(51),a=n(497),i=n(216);function o(e){var t=Object(a.a)();return function(){var n,a=Object(r.a)(e);if(t){var o=Object(r.a)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return Object(i.a)(this,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(21);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function b(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 C(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(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),n=+n,isNaN(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=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){var i,o=1,s=e.length,c=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,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var f=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var d=!0,l=0;la&&(r=a):r=a;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:u>223?3:u>191?2:1;if(a+d<=n)switch(d){case 1:u<128&&(f=u);break;case 2:128===(192&(i=e[a+1]))&&(c=(31&u)<<6|63&i)>127&&(f=c);break;case 3:i=e[a+1],o=e[a+2],128===(192&i)&&128===(192&o)&&(c=(15&u)<<12|(63&i)<<6|63&o)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,d=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),a+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");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),s=Math.min(i,o),u=this.slice(r,a),f=e.slice(t,n),d=0;da)&&(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 g(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function M(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 I(e,t,n,r,a,i){if(!c.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 N(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function D(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 L(e,t,n,r,i){return i||D(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||D(e,0,n,8),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(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},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);I(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);I(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){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("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&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 H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n(52))},function(e,t,n){"use strict";n.d(t,"c",(function(){return p.a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};Object.create;Object.create;var a="Invariant Violation",i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(n){void 0===n&&(n=a);var r=e.call(this,"number"===typeof n?a+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=a,o(r,t.prototype),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function c(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],f=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=f){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(c||(c={}));var l=n(399),p=n(197),h="__",b=[h,h].join("DEV");var y=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(l.a,b,{value:"production"!==Object(p.a)((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),l.a[b]}}(),m=n(664);n(674).a,Object(m.a)(),__DEV__?c("boolean"===typeof y,y):c("boolean"===typeof y,36)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(401);var a=n(494),i=n(263);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(a.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(7),a=n(193),i=n(355),o=n(60),s=n(298),c=n(141),u=n(238),f=function(e){function t(n,r,a){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=i.a;break;case 1:if(!n){o.destination=i.a;break}if("object"===typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new d(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new d(o,n,r,a)}return o}return r.__extends(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var a=new t(e,n,r);return a.syncErrorThrowable=!1,a},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(o.a),d=function(e){function t(t,n,r,o){var s,c=e.call(this)||this;c._parentSubscriber=t;var u=c;return Object(a.a)(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==i.a&&(u=Object.create(n),Object(a.a)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=r,c._complete=o,c}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(u.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(u.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw n;Object(u.a)(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return c.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(u.a)(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(f)},function(e,t,n){var r=n(79).default,a=n(33).default,i=n(34).default,o=n(697).default,s=n(62).default,c=n(65).default,u=n(251).default;e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32,n=Math.abs,f=Math.max,d=Math.floor,l=function(e){s(u,e);var t=c(u);function u(e,n){var r;if(a(this,u),(r=t.call(this,e)).sign=n,e>u.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return o(r)}return i(u,[{key:"toDebugString",value:function(){var e,t=["BigInt["],n=r(this);try{for(n.s();!(e=n.n()).done;){var a=e.value;t.push((a?(a>>>0).toString(16):a)+", ")}}catch(i){n.e(i)}finally{n.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36this.length&&(n=this.length);for(var r=32767&e,a=e>>>15,i=0,o=t,s=0;s>>15,l=u.__imul(f,r),p=u.__imul(f,a),h=u.__imul(d,r),b=o+l+i;i=b>>>30,b&=1073741823,i+=(b+=((32767&p)<<15)+((32767&h)<<15))>>>30,o=u.__imul(d,a)+(p>>>15)+(h>>>15),this.__setDigit(s,1073741823&b)}if(0!=i||0!==o)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r=0,a=0;a>>15,this.__setHalfDigit(t+a,32767&i)}return r}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){t>>=1;for(var a=this.__digit(t),i=32767&a,o=0;o>>1;o++){var s=e.__digit(o),c=(a>>>15)-(32767&s)-r;r=1&c>>>15,this.__setDigit(t+o,(32767&c)<<15|32767&i),r=1&(i=(32767&(a=this.__digit(t+o+1)))-(s>>>15)-r)>>>15}var u=e.__digit(o),f=(a>>>15)-(32767&u)-r;if(r=1&f>>>15,this.__setDigit(t+o,(32767&f)<<15|32767&i),t+o+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(i=(32767&(a=this.__digit(t+o+1)))-(u>>>15)-r)>>>15,this.__setDigit(t+e.length,1073709056&a|32767&i))}else{t>>=1;for(var d=0;d>>15)-(p>>>15)-(r=1&h>>>15);r=1&b>>>15,this.__setDigit(t+d,(32767&b)<<15|32767&h)}var y=this.__digit(t+d),m=e.__digit(d),v=(32767&y)-(32767&m)-r;r=1&v>>>15;var g=0;0==(1&n)&&(r=1&(g=(y>>>15)-(m>>>15)-r)>>>15),this.__setDigit(t+d,(32767&g)<<15|32767&v)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t=this.__digit(0)>>>e,n=this.length-1,r=0;r>>e}this.__setDigit(n,t)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 32767&this[e>>>1]>>>15*(1&e)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n),a=1&e?32767&r|t<<15:1073709056&r|32767&t;this.__setDigit(n,a)}}],[{key:"BigInt",value:function(e){var t=Number.isFinite;if("number"==typeof e){if(0===e)return u.__zero();if(u.__isOneDigitInt(e))return 0>e?u.__oneDigit(-e,!0):u.__oneDigit(e,!1);if(!t(e)||d(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return u.__fromDouble(e)}if("string"==typeof e){var n=u.__fromString(e);if(null===n)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return n}if("boolean"==typeof e)return!0===e?u.__oneDigit(1,!1):u.__zero();if("object"==typeof e){if(e.constructor===u)return e;var r=u.__toPrimitive(e);return u.BigInt(r)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),a=u.__clz30(r),i=30*t-a;if(1024>>=12;var l=f-12,p=12<=f?0:s<<20+f,h=20+f;for(0>>30-l,p=s<>>30-h,h-=30;var b=u.__decideRounding(e,h,c,s);if((1===b||0===b&&1==(1&p))&&0===(p=p+1>>>0)&&0!=++d>>>20&&(d=0,1023<++o))return e.sign?-1/0:1/0;var y=e.sign?-2147483648:0;return o=o+1023<<20,u.__kBitConversionInts[1]=y|o|d,u.__kBitConversionInts[0]=p,u.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?u.__absoluteSubOne(e).__trim():u.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return u.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?u.unaryMinus(e):e;if(1=u.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(0|n/30),a=new u(r,e.sign&&0!=(1&n));a.__initializeDigits();var i=1<>=1;0!==n;n>>=1)s=u.multiply(s,s),0!=(1&n)&&(o=null===o?s:u.multiply(o,s));return o}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new u(n,e.sign!==t.sign);r.__initializeDigits();for(var a=0;au.__absoluteCompare(e,t))return u.__zero();var n,r=e.sign!==t.sign,a=t.__unsignedDigit(0);if(1===t.length&&32767>=a){if(1===a)return r===e.sign?e:u.unaryMinus(e);n=u.__absoluteDivSmall(e,a,null)}else n=u.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>u.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(1===t.length&&32767>=n){if(1===n)return u.__zero();var r=u.__absoluteModSmall(e,n);return 0===r?u.__zero():u.__oneDigit(r,e.sign)}var a=u.__absoluteDivLarge(e,t,!1,!0);return a.sign=e.sign,a.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?u.__absoluteAdd(e,t,n):0<=u.__absoluteCompare(e,t)?u.__absoluteSub(e,t,n):u.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=u.__absoluteCompare(e,t)?u.__absoluteSub(e,t,n):u.__absoluteSub(t,e,!n):u.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?u.__rightShiftByAbsolute(e,t):u.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?u.__leftShiftByAbsolute(e,t):u.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>u.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=u.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0(e=d(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return u.__zero();if(e>=u.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length(e=d(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return u.__zero();if(t.sign){if(e>u.__kMaxLengthBits)throw new RangeError("BigInt too big");return u.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=u.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length>>r)return t}return u.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=u.__toPrimitive(e),t=u.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=u.__toNumeric(e),t=u.__toNumeric(t),u.__isBigInt(e)&&u.__isBigInt(t))return u.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return u.__compare(e,t,0)}},{key:"LE",value:function(e,t){return u.__compare(e,t,1)}},{key:"GT",value:function(e,t){return u.__compare(e,t,2)}},{key:"GE",value:function(e,t){return u.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(u.__isBigInt(e))return u.__isBigInt(t)?u.equal(e,t):u.EQ(t,e);if("number"==typeof e){if(u.__isBigInt(t))return u.__equalToNumber(t,e);if("object"!=typeof t)return e==t;t=u.__toPrimitive(t)}else if("string"==typeof e){if(u.__isBigInt(t))return null!==(e=u.__fromString(e))&&u.equal(e,t);if("object"!=typeof t)return e==t;t=u.__toPrimitive(t)}else if("boolean"==typeof e){if(u.__isBigInt(t))return u.__equalToNumber(t,+e);if("object"!=typeof t)return e==t;t=u.__toPrimitive(t)}else if("symbol"==typeof e){if(u.__isBigInt(t))return!1;if("object"!=typeof t)return e==t;t=u.__toPrimitive(t)}else{if("object"!=typeof e)return e==t;if("object"==typeof t&&t.constructor!==u)return e==t;e=u.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!u.EQ(e,t)}},{key:"__zero",value:function(){return new u(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new u(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0t)a=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),a=29}var i=1<>>20)-1023,r=1+(0|n/30),a=new u(r,0>e),i=1048575&u.__kBitConversionInts[1]|1048576,o=u.__kBitConversionInts[0],s=20,c=n%30,f=0;if(20>c){var d=s-c;f=d+32,t=i>>>d,i=i<<32-d|o>>>d,o<<=32-d}else if(20===c)f=32,t=i,i=o,o=0;else{var l=c-s;f=32-l,t=i<>>32-l,i=o<>>2,i=i<<30|o>>>2,o<<=30):t=0,a.__setDigit(p,t);return a.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,a=0;if(a===r)return u.__zero();for(var i=e.charCodeAt(a);u.__isWhitespace(i);){if(++a===r)return u.__zero();i=e.charCodeAt(a)}if(43===i){if(++a===r)return null;i=e.charCodeAt(a),n=1}else if(45===i){if(++a===r)return null;i=e.charCodeAt(a),n=-1}if(0===t){if(t=10,48===i){if(++a===r)return u.__zero();if(88===(i=e.charCodeAt(a))||120===i){if(t=16,++a===r)return null;i=e.charCodeAt(a)}else if(79===i||111===i){if(t=8,++a===r)return null;i=e.charCodeAt(a)}else if(66===i||98===i){if(t=2,++a===r)return null;i=e.charCodeAt(a)}}}else if(16===t&&48===i){if(++a===r)return u.__zero();if(88===(i=e.charCodeAt(a))||120===i){if(++a===r)return null;i=e.charCodeAt(a)}}if(0!=n&&10!==t)return null;for(;48===i;){if(++a===r)return u.__zero();i=e.charCodeAt(a)}var o=r-a,s=u.__kMaxBitsPerChar[t],c=u.__kBitsPerCharTableMultiplier-1;if(o>1073741824/s)return null;var f=new u(0|(29+(s*o+c>>>u.__kBitsPerCharTableShift))/30,!1),d=10>t?t:10,l=10>=u.__kBitsPerCharTableShift;var p=[],h=[],b=!1;do{for(var y=0,m=0;;){var v=void 0;if(i-48>>>0>>0>>0>>0>>u.__kBitsPerCharTableShift)/30;f.__inplaceMultiplyAdd(_,w,S)}while(!g)}if(a!==r){if(!u.__isWhitespace(i))return null;for(a++;a>>c-(i-=30))}if(0!==a){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,a)}for(;r>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),i=t-1,o=e.__digit(n-1),s=0|(30*n-u.__clz30(o)+a-1)/a;if(e.sign&&s++,268435456>>y,l=30-y;l>=a;)c[f--]=u.__kConversionChars[d&i],d>>>=a,l-=a}var m=(d|o<>>a-l;0!==d;)c[f--]=u.__kConversionChars[d&i],d>>>=a;if(e.sign&&(c[f--]="-"),-1!=f)throw new Error("implementation bug");return c.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var a=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(a="-"+a),a}var i,o,s=30*r-u.__clz30(e.__digit(r-1)),c=u.__kMaxBitsPerChar[t]-1,f=s*u.__kBitsPerCharTableMultiplier,d=1+(f=0|(f+=c-1)/c)>>1,l=u.exponentiate(u.__oneDigit(t,!1),u.__oneDigit(d,!1)),p=l.__unsignedDigit(0);if(1===l.length&&32767>=p){(i=new u(e.length,!1)).__initializeDigits();for(var h=0,b=2*e.length-1;0<=b;b--){var y=h<<15|e.__halfDigit(b);i.__setHalfDigit(b,0|y/p),h=0|y%p}o=h.toString(t)}else{var m=u.__absoluteDivLarge(e,l,!0,!0);i=m.quotient;var v=m.remainder.__trim();o=u.__toStringGeneric(v,t,!0)}i.__trim();for(var g=u.__toStringGeneric(i,t,!0);o.lengthr?u.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,t){if(u.__isOneDigitInt(t)){var r=e.sign,a=0>t;if(r!==a)return u.__unequalSign(r);if(0===e.length){if(a)throw new Error("implementation bug");return 0===t?0:-1}if(1i?u.__absoluteGreater(r):ot)return u.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;u.__kBitConversionDouble[0]=t;var r=2047&u.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var a=r-1023;if(0>a)return u.__absoluteGreater(n);var i=e.length,o=e.__digit(i-1),s=u.__clz30(o),c=30*i-s,f=a+1;if(cf)return u.__absoluteGreater(n);var d=1048576|1048575&u.__kBitConversionInts[1],l=u.__kBitConversionInts[0],p=20,h=29-s;if(h!==(0|(c-1)%30))throw new Error("implementation bug");var b,y=0;if(20>h){var m=p-h;y=m+32,b=d>>>m,d=d<<32-m|l>>>m,l<<=32-m}else if(20===h)y=32,b=d,d=l,l=0;else{var v=h-p;y=32-v,b=d<>>32-v,d=l<>>=0)>(b>>>=0))return u.__absoluteGreater(n);if(o>>2,d=d<<30|l>>>2,l<<=30):b=0;var x=e.__unsignedDigit(g);if(x>b)return u.__absoluteGreater(n);if(xt&&e.__unsignedDigit(0)===n(t):0===u.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){return 0===t?0>e:1===t?0>=e:2===t?0t;case 3:return e>=t}if(u.__isBigInt(e)&&"string"==typeof t)return null!==(t=u.__fromString(t))&&u.__comparisonResultToBool(u.__compareToBigInt(e,t),n);if("string"==typeof e&&u.__isBigInt(t))return null!==(e=u.__fromString(e))&&u.__comparisonResultToBool(u.__compareToBigInt(e,t),n);if(e=u.__toNumeric(e),t=u.__toNumeric(t),u.__isBigInt(e)){if(u.__isBigInt(t))return u.__comparisonResultToBool(u.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return u.__comparisonResultToBool(u.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(u.__isBigInt(t))return u.__comparisonResultToBool(u.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?et:3===n?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length>>30,a.__setDigit(o,1073741823&s)}for(;o>>30,a.__setDigit(o,1073741823&c)}return o>>30,r.__setDigit(i,1073741823&o)}for(;i>>30,r.__setDigit(i,1073741823&s)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new u(r,t):n.sign=t;for(var a=1,i=0;i>>30,n.__setDigit(i,1073741823&o)}return 0!=a&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n=e.length,r=new u(t=t||n,!1),a=1,i=0;i>>30,r.__setDigit(i,1073741823&o)}if(0!=a)throw new Error("implementation bug");for(var s=n;s2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,a=t.length,i=a;if(r2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,a=t.length,i=a;r2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,a=t.length,i=a;if(r2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,a=t.length,i=a;if(rr?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var a,i=32767&t,o=t>>>15,s=0,c=0,f=0;f>>15,h=u.__imul(l,i),b=u.__imul(l,o),y=u.__imul(p,i);s=(a+=c+h+s)>>>30,a&=1073741823,s+=(a+=((32767&b)<<15)+((32767&y)<<15))>>>30,c=u.__imul(p,o)+(b>>>15)+(y>>>15),n.__setDigit(r,1073741823&a)}for(;0!=s||0!==c;r++){var m=n.__digit(r);m+=s+c,c=0,s=m>>>30,n.__setDigit(r,1073741823&m)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,a){for(var i=n,o=0,s=0;s>>15,t),l=f+((32767&d)<<15)+o+i;i=l>>>30,o=d>>>15,a.__setDigit(s,1073741823&l)}if(a.length>r)for(a.__setDigit(r++,i+o);r2&&void 0!==arguments[2]?arguments[2]:null;null===n&&(n=new u(e.length,!1));for(var r,a=0,i=2*e.length-1;0<=i;i-=2){var o=0|(r=(a<<15|e.__halfDigit(i))>>>0)/t,s=0|(r=((a=0|r%t)<<15|e.__halfDigit(i-1))>>>0)/t;a=0|r%t,n.__setDigit(i>>>1,o<<15|s)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<15|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var a=t.__halfDigitLength(),i=t.length,o=e.__halfDigitLength()-a,s=null;n&&(s=new u(o+2>>>1,!1)).__initializeDigits();var c=new u(a+2>>>1,!1);c.__initializeDigits();var f=u.__clz15(t.__halfDigit(a-1));0>>0;d=0|m/p;for(var v=0|m%p,g=t.__halfDigit(a-2),x=l.__halfDigit(b+a-2);u.__imul(d,g)>>>0>(v<<16|x)>>>0&&(d--,!(32767<(v+=p))););}u.__internalMultiplyAdd(t,d,0,i,c);var w=l.__inplaceSub(c,b,a+1);0!==w&&(w=l.__inplaceAdd(t,b,a),l.__setHalfDigit(b+a,32767&l.__halfDigit(b+a)+w),d--),n&&(1&b?h=d<<15:s.__setDigit(b>>>1,h|d))}if(r)return l.__inplaceRightShift(f),n?{quotient:s,remainder:l}:l;if(n)return s;throw new Error("unreachable")}},{key:"__clz15",value:function(e){return u.__clz30(e)-15}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,a=new u(r+n,!1);if(0===t){for(var i=0;i>>30-t}return 0n)throw new RangeError("BigInt too big");var r=0|n/30,a=n%30,i=e.length,o=0!==a&&0!=e.__digit(i-1)>>>30-a,s=i+r+(o?1:0),c=new u(s,e.sign);if(0===a){for(var f=0;f>>30-a}if(o)c.__setDigit(i+r,d);else if(0!==d)throw new Error("implementation bug")}return c.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,a=u.__toShiftAmount(t);if(0>a)return u.__rightShiftByMaximum(r);var i=0|a/30,o=a%30,s=n-i;if(0>=s)return u.__rightShiftByMaximum(r);var c=!1;if(r)if(0!=(e.__digit(i)&(1<>>o,h=n-i-1,b=0;b>>o}d.__setDigit(h,p)}return c&&(d=u.__absoluteAddOne(d,!0,d)),d.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?u.__oneDigit(1,!0):u.__zero()}},{key:"__toShiftAmount",value:function(e){if(1u.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if("object"!=typeof e)return e;if(e.constructor===u)return e;if("undefined"!=typeof Symbol&&"symbol"==typeof Symbol.toPrimitive){var n=e[Symbol.toPrimitive];if(n){var r=n(t);if("object"!=typeof r)return r;throw new TypeError("Cannot convert object to primitive value")}}var a=e.valueOf;if(a){var i=a.call(e);if("object"!=typeof i)return i}var o=e.toString;if(o){var s=o.call(e);if("object"!=typeof s)return s}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return u.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"==typeof e&&null!==e&&e.constructor===u}},{key:"__truncateToNBits",value:function(e,t){for(var n=0|(e+29)/30,r=new u(n,t.sign),a=n-1,i=0;i>>s}return r.__setDigit(a,o),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,a=0|(e+29)/30,i=new u(a,n),o=0,s=a-1,c=0,f=r(s,t.length);o>>30,i.__setDigit(o,1073741823&d)}for(;o>>b)-c,l&=y-1}return i.__setDigit(s,l),i.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0>>=1,e*=e;return n}},{key:"__isOneDigitInt",value:function(e){return(1073741823&e)===e}}]),u}(u(Array));return l.__kMaxLength=33554432,l.__kMaxLengthBits=l.__kMaxLength<<5,l.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],l.__kBitsPerCharTableShift=5,l.__kBitsPerCharTableMultiplier=1<>>0)/t)},l.__imul=e||function(e,t){return 0|e*t},l}()},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:l(e)?2:p(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function f(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function l(e){return H&&e instanceof Map}function p(e){return z&&e instanceof Set}function h(e){return e.o||e.t}function b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=J(e);delete t[K];for(var n=Y(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&o(e,(function(e,t){return y(t,!0)}),!0)),e}function m(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(e){var t=Z[e];return t||r(18,e),t}function x(e,t){Z[e]||(Z[e]=t)}function w(){return U}function _(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){E(e),e.p.forEach(T),e.p=null}function E(e){e===U&&(U=e.l)}function S(e){return U={p:[],l:U,h:e,m:!0,_:0}}function T(e){var t=e[K];0===t.i||1===t.i?t.j():t.O=!0}function O(e,t){t._=t.p.length;var n=t.p[0],a=void 0!==e&&e!==n;return t.h.g||g("ES5").S(t,e,a),a?(n[K].P&&(k(t),r(4)),i(e)&&(e=M(t,e),t.l||C(t,e)),t.u&&g("Patches").M(n[K].t,e,t.u,t.s)):e=M(t,n,[]),k(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function M(e,t,n){if(v(t))return t;var r=t[K];if(!r)return o(t,(function(a,i){return A(e,r,t,a,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=b(r.k):r.o;o(3===r.i?new Set(a):a,(function(t,i){return A(e,r,a,t,i,n)})),C(e,a,!1),n&&e.u&&g("Patches").R(r,n,e.u,e.s)}return r.o}function A(e,t,n,r,o,s){if(a(o)){var u=M(e,o,s&&t&&3!==t.i&&!c(t.D,r)?s.concat(r):void 0);if(f(n,r,u),!a(u))return;e.m=!1}if(i(o)&&!v(o)){if(!e.h.F&&e._<1)return;M(e,o),t&&t.A.l||C(e,o)}}function C(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&y(t,n)}function j(e,t){var n=e[K];return(n?h(n):e)[t]}function P(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function N(e){e.o||(e.o=b(e.t))}function R(e,t,n){var r=l(t)?g("MapSet").N(t,n):p(t)?g("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,i=X;n&&(a=[r],i=Q);var o=Proxy.revocable(a,i),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):g("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function D(e){return a(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[K],a=s(t);if(r){if(!r.P&&(r.i<4||!g("ES5").K(r)))return r.t;r.I=!0,n=L(t,a),r.I=!1}else n=L(t,a);return o(n,(function(t,a){r&&u(r.t,t)===a||f(n,t,e(a))})),3===a?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b(e)}function B(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return X.get(t,e)},set:function(t){var n=this[K];X.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var a=e[t][K];if(!a.P)switch(a.i){case 5:r(a)&&I(a);break;case 4:n(a)&&I(a)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),a=r.length-1;a>=0;a--){var i=r[a];if(i!==K){var o=t[i];if(void 0===o&&!c(t,i))return!0;var s=n[i],u=s&&s[K];if(u?u.t!==o:!d(s,o))return!0}}var f=!!t[K];return r.length!==Y(t).length+(f?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=g("Patches").$;return a(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce,re=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),ne);var ae=n(20);function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var oe="function"===typeof Symbol&&Symbol.observable||"@@observable",se=function(){return Math.random().toString(36).substring(7).split("").join(".")},ce={INIT:"@@redux/INIT"+se(),REPLACE:"@@redux/REPLACE"+se(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+se()}};function ue(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fe(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(ie(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(ie(1));return n(fe)(e,t)}if("function"!==typeof e)throw new Error(ie(2));var a=e,i=t,o=[],s=o,c=!1;function u(){s===o&&(s=o.slice())}function f(){if(c)throw new Error(ie(3));return i}function d(e){if("function"!==typeof e)throw new Error(ie(4));if(c)throw new Error(ie(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(ie(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),o=null}}}function l(e){if(!ue(e))throw new Error(ie(7));if("undefined"===typeof e.type)throw new Error(ie(8));if(c)throw new Error(ie(9));try{c=!0,i=a(i,e)}finally{c=!1}for(var t=o=s,n=0;n=0&&a<1?(s=i,c=o):a>=1&&a<2?(s=o,c=i):a>=2&&a<3?(c=i,f=o):a>=3&&a<4?(c=o,f=i):a>=4&&a<5?(s=o,f=i):a>=5&&a<6&&(s=i,f=o);var d=n-i/2;return r(s+d,c+d,f+d)}var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var l=/^#[a-fA-F0-9]{6}$/,p=/^#[a-fA-F0-9]{8}$/,h=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,y=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,m=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,v=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,g=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function x(e){if("string"!==typeof e)throw new s(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return d[t]?"#"+d[t]:e}(e);if(t.match(l))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(p)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(h))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var a=y.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=m.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var o=v.exec(t);if(o){var c="rgb("+f(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",u=y.exec(c);if(!u)throw new s(4,t,c);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var x=g.exec(t.substring(0,50));if(x){var w="rgb("+f(parseInt(""+x[1],10),parseInt(""+x[2],10)/100,parseInt(""+x[3],10)/100)+")",_=y.exec(w);if(!_)throw new s(4,t,w);return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10),alpha:parseFloat(""+x[4])>1?parseFloat(""+x[4])/100:parseFloat(""+x[4])}}throw new s(5)}function w(e){return function(e){var t,n=e.red/255,r=e.green/255,a=e.blue/255,i=Math.max(n,r,a),o=Math.min(n,r,a),s=(i+o)/2;if(i===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=i-o,u=s>.5?c/(2-i-o):c/(i+o);switch(i){case n:t=(r-a)/c+(r=1?T(e,t,n):"rgba("+f(e,t,n)+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?T(e.hue,e.saturation,e.lightness):"rgba("+f(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new s(2)}function A(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return _("#"+k(e)+k(t)+k(n));if("object"===typeof e&&void 0===t&&void 0===n)return _("#"+k(e.red)+k(e.green)+k(e.blue));throw new s(6)}function C(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var a=x(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?A(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?A(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new s(7)}function j(e){if("object"!==typeof e)throw new s(8);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&"number"===typeof e.alpha}(e))return C(e);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return A(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&"number"===typeof e.alpha}(e))return M(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return O(e);throw new s(8)}function P(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):P(e,t,r)}}function I(e){return P(e,e.length,[])}function N(e,t,n){return Math.max(e,Math.min(t,n))}function R(e,t){if("transparent"===t)return t;var n=w(t);return j(Object(r.a)({},n,{lightness:N(0,1,n.lightness-parseFloat(e))}))}var D=I(R);function L(e,t){if("transparent"===t)return t;var n=w(t);return j(Object(r.a)({},n,{lightness:N(0,1,n.lightness+parseFloat(e))}))}var B=I(L);function F(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var a=x(t),i=Object(r.a)({},a,{alpha:"number"===typeof a.alpha?a.alpha:1}),o=x(n),s=Object(r.a)({},o,{alpha:"number"===typeof o.alpha?o.alpha:1}),c=i.alpha-s.alpha,u=2*parseFloat(e)-1,f=((u*c===-1?u:u+c)/(1+u*c)+1)/2,d=1-f;return C({red:Math.floor(i.red*f+s.red*d),green:Math.floor(i.green*f+s.green*d),blue:Math.floor(i.blue*f+s.blue*d),alpha:i.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))})}var U=I(F);function V(e,t){return"transparent"===t?t:U(parseFloat(e),"rgb(0, 0, 0)",t)}var H=I(V);function z(e,t){if("transparent"===t)return t;var n=x(t),a="number"===typeof n.alpha?n.alpha:1;return C(Object(r.a)({},n,{alpha:N(0,1,+(100*a-100*parseFloat(e)).toFixed(2)/100)}))}var q=I(z)},function(e,t,n){(function(e){!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(1101).Buffer}catch(S){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"===typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?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-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=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=c(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,s=Math.min(i,i-o)+n,c=0,f=n;f1&&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},i.prototype.inspect=function(){return(this.red?""};var f=["","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"],d=[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],l=[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];function p(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,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var h=u-p|0;f+=(o=(a=0|e.words[h])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}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)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}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 u=d[e],p=l[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var b=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?b+n:f[u-b.length]+b+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)},i.prototype.toBuffer=function(e,t){return r("undefined"!==typeof o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){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"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=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,b=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],x=8191&g,w=g>>>13,_=0|o[4],k=8191&_,E=_>>>13,S=0|o[5],T=8191&S,O=S>>>13,M=0|o[6],A=8191&M,C=M>>>13,j=0|o[7],P=8191&j,I=j>>>13,N=0|o[8],R=8191&N,D=N>>>13,L=0|o[9],B=8191&L,F=L>>>13,U=0|s[0],V=8191&U,H=U>>>13,z=0|s[1],q=8191&z,W=z>>>13,G=0|s[2],K=8191&G,$=G>>>13,Y=0|s[3],J=8191&Y,Z=Y>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],he=8191&pe,be=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,V))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,V)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(h,V),a=(a=Math.imul(h,H))+Math.imul(b,V)|0,i=Math.imul(b,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,W)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,V),a=(a=Math.imul(m,H))+Math.imul(v,V)|0,i=Math.imul(v,H),r=r+Math.imul(h,q)|0,a=(a=a+Math.imul(h,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0;var ve=(u+(r=r+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,$)|0)+Math.imul(l,K)|0))<<13)|0;u=((i=i+Math.imul(l,$)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,V),a=(a=Math.imul(x,H))+Math.imul(w,V)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0,r=r+Math.imul(h,K)|0,a=(a=a+Math.imul(h,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0;var ge=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,Z)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(k,V),a=(a=Math.imul(k,H))+Math.imul(E,V)|0,i=Math.imul(E,H),r=r+Math.imul(x,q)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,r=r+Math.imul(m,K)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,r=r+Math.imul(h,J)|0,a=(a=a+Math.imul(h,Z)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Z)|0;var xe=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(T,V),a=(a=Math.imul(T,H))+Math.imul(O,V)|0,i=Math.imul(O,H),r=r+Math.imul(k,q)|0,a=(a=a+Math.imul(k,W)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,W)|0,r=r+Math.imul(x,K)|0,a=(a=a+Math.imul(x,$)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,$)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,Z)|0,r=r+Math.imul(h,Q)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,V),a=(a=Math.imul(A,H))+Math.imul(C,V)|0,i=Math.imul(C,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,W)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,W)|0,r=r+Math.imul(k,K)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,$)|0,r=r+Math.imul(x,J)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0;var _e=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,V),a=(a=Math.imul(P,H))+Math.imul(I,V)|0,i=Math.imul(I,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,W)|0,r=r+Math.imul(T,K)|0,a=(a=a+Math.imul(T,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,r=r+Math.imul(k,J)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,Z)|0,r=r+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0;var ke=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,V),a=(a=Math.imul(R,H))+Math.imul(D,V)|0,i=Math.imul(D,H),r=r+Math.imul(P,q)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,W)|0,r=r+Math.imul(A,K)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,$)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,Z)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(x,ne)|0,a=(a=a+Math.imul(x,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0;var Ee=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(B,V),a=(a=Math.imul(B,H))+Math.imul(F,V)|0,i=Math.imul(F,H),r=r+Math.imul(R,q)|0,a=(a=a+Math.imul(R,W)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,W)|0,r=r+Math.imul(P,K)|0,a=(a=a+Math.imul(P,$)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(k,ne)|0,a=(a=a+Math.imul(k,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(h,de)|0,a=(a=a+Math.imul(h,le)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,le)|0;var Se=(u+(r=r+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,be)|0)+Math.imul(l,he)|0))<<13)|0;u=((i=i+Math.imul(l,be)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,q),a=(a=Math.imul(B,W))+Math.imul(F,q)|0,i=Math.imul(F,W),r=r+Math.imul(R,K)|0,a=(a=a+Math.imul(R,$)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,$)|0,r=r+Math.imul(P,J)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(k,ie)|0,a=(a=a+Math.imul(k,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(x,ce)|0,a=(a=a+Math.imul(x,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Te=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,be)|0)+Math.imul(b,he)|0))<<13)|0;u=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,K),a=(a=Math.imul(B,$))+Math.imul(F,K)|0,i=Math.imul(F,$),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,Z)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,Z)|0,r=r+Math.imul(P,Q)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(k,ce)|0,a=(a=a+Math.imul(k,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(x,de)|0,a=(a=a+Math.imul(x,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Oe=(u+(r=r+Math.imul(m,he)|0)|0)+((8191&(a=(a=a+Math.imul(m,be)|0)+Math.imul(v,he)|0))<<13)|0;u=((i=i+Math.imul(v,be)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,J),a=(a=Math.imul(B,Z))+Math.imul(F,J)|0,i=Math.imul(F,Z),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,a=(a=a+Math.imul(P,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(k,de)|0,a=(a=a+Math.imul(k,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Me=(u+(r=r+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,be)|0)+Math.imul(w,he)|0))<<13)|0;u=((i=i+Math.imul(w,be)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,Q),a=(a=Math.imul(B,ee))+Math.imul(F,Q)|0,i=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(C,ce)|0,i=i+Math.imul(C,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Ae=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(a=(a=a+Math.imul(k,be)|0)+Math.imul(E,he)|0))<<13)|0;u=((i=i+Math.imul(E,be)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ne),a=(a=Math.imul(B,re))+Math.imul(F,ne)|0,i=Math.imul(F,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(P,ce)|0,a=(a=a+Math.imul(P,ue)|0)+Math.imul(I,ce)|0,i=i+Math.imul(I,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,le)|0;var Ce=(u+(r=r+Math.imul(T,he)|0)|0)+((8191&(a=(a=a+Math.imul(T,be)|0)+Math.imul(O,he)|0))<<13)|0;u=((i=i+Math.imul(O,be)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,ie),a=(a=Math.imul(B,oe))+Math.imul(F,ie)|0,i=Math.imul(F,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(P,de)|0,a=(a=a+Math.imul(P,le)|0)+Math.imul(I,de)|0,i=i+Math.imul(I,le)|0;var je=(u+(r=r+Math.imul(A,he)|0)|0)+((8191&(a=(a=a+Math.imul(A,be)|0)+Math.imul(C,he)|0))<<13)|0;u=((i=i+Math.imul(C,be)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ce),a=(a=Math.imul(B,ue))+Math.imul(F,ce)|0,i=Math.imul(F,ue),r=r+Math.imul(R,de)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Pe=(u+(r=r+Math.imul(P,he)|0)|0)+((8191&(a=(a=a+Math.imul(P,be)|0)+Math.imul(I,he)|0))<<13)|0;u=((i=i+Math.imul(I,be)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,de),a=(a=Math.imul(B,le))+Math.imul(F,de)|0,i=Math.imul(F,le);var Ie=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(a=(a=a+Math.imul(R,be)|0)+Math.imul(D,he)|0))<<13)|0;u=((i=i+Math.imul(D,be)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(u+(r=Math.imul(B,he))|0)+((8191&(a=(a=Math.imul(B,be))+Math.imul(F,he)|0))<<13)|0;return u=((i=Math.imul(F,be))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=xe,c[5]=we,c[6]=_e,c[7]=ke,c[8]=Ee,c[9]=Se,c[10]=Te,c[11]=Oe,c[12]=Me,c[13]=Ae,c[14]=Ce,c[15]=je,c[16]=Pe,c[17]=Ie,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function b(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(h=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?p(this,e,t):r<1024?function(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]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):b(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.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,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),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}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),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),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)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=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 s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||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?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.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.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},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.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},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),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0===(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,b=1;0===(n.words[0]&b)&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},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),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0===(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).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,s&=67108863,this.words[o]=s}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 k(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 m={k256:null,p224:null,p192:null,p25519:null};function v(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 g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(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 E(e){k.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)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.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},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.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},g.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(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new x;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.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")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.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)},k.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},k.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)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.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 s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(s);){for(var b=p,y=0;0!==b.cmp(s);y++)b=b.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},a(E,k),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.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)},E.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)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(100)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(348),a=n(26),i=n(298),o=n(355);var s=n(177),c=n(295),u=n(141),f=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof a.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new a.a(e,t,n):new a.a(o.a)}(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var a;a=n.subscribe((function(t){try{e(t)}catch(n){r(n),a&&a.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t>1]>>4>=8&&(t[c]=t[c].toUpperCase()),(15&o[c>>1])>=8&&(t[c+1]=t[c+1].toUpperCase());return"0x"+t.join("")}for(var u={},f=0;f<10;f++)u[String(f)]=String(f);for(var d=0;d<26;d++)u[String.fromCharCode(65+d)]=String(10+d);var l,p=Math.floor((l=9007199254740991,Math.log10?Math.log10(l):Math.log(l)/Math.LN10));function h(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return u[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 b(e){var t=null;if("string"!==typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.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)&&s.throwArgumentError("bad icap checksum","address",e),t=Object(a.c)(e.substring(4));t.length<40;)t="0"+t;t=c("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return b(e),!0}catch(t){}return!1}function m(e){for(var t=Object(a.b)(b(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+h("XE00"+t)+t}function v(e){var t=null;try{t=b(e.from)}catch(c){s.throwArgumentError("missing from address","transaction",e)}var n=Object(r.stripZeros)(Object(r.arrayify)(a.a.from(e.nonce).toHexString()));return b(Object(r.hexDataSlice)(Object(i.keccak256)(Object(o.encode)([t,n])),12))}function g(e,t,n){return 32!==Object(r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),b(Object(r.hexDataSlice)(Object(i.keccak256)(Object(r.concat)(["0xff",b(e),t,n])),12))}},function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"i",(function(){return y})),n.d(t,"k",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return g}));var r=n(666),a=n(166),i=n(129),o=n(2100),s=n(2099),c=Object.prototype.hasOwnProperty;function u(e,t){var n=e.__typename,r=e.id,a=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==a?{_id:a}:void 0),void 0===r&&(r=a),void 0!==r))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var f={dataIdFromObject:u,addTypename:!0,resultCaching:!0,canonizeResults:!1};function d(e){return Object(r.a)(f,e)}function l(e){var t=e.canonizeResults;return void 0===t?f.canonizeResults:t}function p(e,t){return Object(a.g)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var h=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(h);return t?t[0]:e}function y(e,t,n){return!!Object(i.a)(t)&&(g(t)?t.every((function(t){return y(e,t,n)})):e.selections.every((function(e){if(Object(a.e)(e)&&Object(o.c)(e,n)){var r=Object(a.i)(e);return c.call(t,r)&&(!e.selectionSet||y(e.selectionSet,t[r],n))}return!0})))}function m(e){return Object(i.a)(e)&&!Object(a.g)(e)&&!g(e)}function v(){return new s.a}var g=function(e){return Array.isArray(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r="Invariant failed";function a(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"t",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return l})),n.d(t,"s",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"l",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return x})),n.d(t,"n",(function(){return w})),n.d(t,"b",(function(){return _}));var r="1.12.1",a="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},i=Array.prototype,o=Object.prototype,s="undefined"!==typeof Symbol?Symbol.prototype:null,c=i.push,u=i.slice,f=o.toString,d=o.hasOwnProperty,l="undefined"!==typeof ArrayBuffer,p="undefined"!==typeof DataView,h=Array.isArray,b=Object.keys,y=Object.create,m=l&&ArrayBuffer.isView,v=isNaN,g=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=Math.pow(2,53)-1}).call(this,n(52))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},function(e,t){"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}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return _}));var r=n(8),a=n(9),i=n(983),o=n.n(i),s=n(6),c=n(13),u=n(496),f=o.a.BN,d=new c.Logger(u.a),l={},p=9007199254740991;function h(e){return null!=e&&(y.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||Object(s.isHexString)(e)||"bigint"===typeof e||Object(s.isBytes)(e))}var b=!1,y=function(){function e(t,n){Object(r.a)(this,e),t!==l&&d.throwError("cannot call constructor directly; use BigNumber.from",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}return Object(a.a)(e,[{key:"fromTwos",value:function(e){return v(g(this).fromTwos(e))}},{key:"toTwos",value:function(e){return v(g(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return v(g(this).add(g(e)))}},{key:"sub",value:function(e){return v(g(this).sub(g(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&x("division-by-zero","div"),v(g(this).div(g(t)))}},{key:"mul",value:function(e){return v(g(this).mul(g(e)))}},{key:"mod",value:function(e){var t=g(e);return t.isNeg()&&x("division-by-zero","mod"),v(g(this).umod(t))}},{key:"pow",value:function(e){var t=g(e);return t.isNeg()&&x("negative-power","pow"),v(g(this).pow(t))}},{key:"and",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","and"),v(g(this).and(t))}},{key:"or",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","or"),v(g(this).or(t))}},{key:"xor",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","xor"),v(g(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","mask"),v(g(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","shl"),v(g(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","shr"),v(g(this).shrn(e))}},{key:"eq",value:function(e){return g(this).eq(g(e))}},{key:"lt",value:function(e){return g(this).lt(g(e))}},{key:"lte",value:function(e){return g(this).lte(g(e))}},{key:"gt",value:function(e){return g(this).gt(g(e))}},{key:"gte",value:function(e){return g(this).gte(g(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return g(this).isZero()}},{key:"toNumber",value:function(){try{return g(this).toNumber()}catch(e){x("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return d.throwError("this platform does not support BigInt",c.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?b||(b=!0,d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",c.Logger.errors.UNEXPECTED_ARGUMENT,{}):d.throwError("BigNumber.toString does not accept parameters",c.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(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(l,m(t)):t.match(/^-?[0-9]+$/)?new e(l,m(new f(t))):d.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&x("underflow","BigNumber.from",t),(t>=p||t<=-p)&&x("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"===typeof n)return e.from(n.toString());if(Object(s.isBytes)(n))return e.from(Object(s.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&&(Object(s.isHexString)(a)||"-"===a[0]&&Object(s.isHexString)(a.substring(1))))return e.from(a)}return d.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function m(e){if("string"!==typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&d.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(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 v(e){return y.from(m(e))}function g(e){var t=y.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function x(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),d.throwError(e,c.Logger.errors.NUMERIC_FAULT,r)}function w(e){return new f(e,36).toString(16)}function _(e){return new f(e,16).toString(36)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);r.__exportStar(n(1763),t),r.__exportStar(n(1768),t),r.__exportStar(n(1769),t),r.__exportStar(n(881),t)},function(e,t,n){var r=n(1195),a=n(1196),i=n(532),o=n(1197);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(234).default;function a(){"use strict";e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(A){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),o=new T(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return M()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=d;var p={};function h(){}function b(){}function y(){}var m={};f(m,s,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(O([])));g&&g!==n&&i.call(g,s)&&(m=g);var x=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,o,s,c){var u=l(e[a],e,o);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){f.value=e,s(f)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(157),a=n(687),i=n(1170),o=n(113),s=n(36),c=function e(t,n){var r=[];return n.forEach((function(n){if("object"===typeof n.components){if("tuple"!==n.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var a="",i=n.type.indexOf("[");i>=0&&(a=n.type.substring(i));var o=e(t,n.components);Array.isArray(o)&&t?r.push("tuple("+o.join(",")+")"+a):t?r.push("("+o+")"):r.push("("+o.join(",")+")"+a)}else r.push(n.type)})),r},u=function(e){if(!a.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7?n+=e[r].toUpperCase():n+=e[r];return n},toHex:a.toHex,toBN:a.toBN,bytesToHex:a.bytesToHex,hexToBytes:a.hexToBytes,hexToNumberString:a.hexToNumberString,hexToNumber:a.hexToNumber,toDecimal:a.hexToNumber,numberToHex:a.numberToHex,fromDecimal:a.numberToHex,hexToUtf8:a.hexToUtf8,hexToString:a.hexToUtf8,toUtf8:a.hexToUtf8,stripHexPrefix:a.stripHexPrefix,utf8ToHex:a.utf8ToHex,stringToHex:a.utf8ToHex,fromUtf8:a.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:f,fromAscii:f,unitMap:r.unitMap,toWei:function(e,t){if(t=d(t),!a.isBN(e)&&"string"!==typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return a.isBN(e)?r.toWei(e,t):r.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=d(t),!a.isBN(e)&&"string"!==typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return a.isBN(e)?r.fromWei(e,t):r.fromWei(e,t).toString(10)},padLeft:a.leftPad,leftPad:a.leftPad,padRight:a.rightPad,rightPad:a.rightPad,toTwosComplement:a.toTwosComplement,isBloom:a.isBloom,isUserEthereumAddressInBloom:a.isUserEthereumAddressInBloom,isContractAddressInBloom:a.isContractAddressInBloom,isTopic:a.isTopic,isTopicInBloom:a.isTopicInBloom,isInBloom:a.isInBloom,compareBlockNumbers:function(e,t){if(e==t)return 0;if("genesis"!=e&&"earliest"!=e&&0!=e||"genesis"!=t&&"earliest"!=t&&0!=t){if("genesis"==e||"earliest"==e)return-1;if("genesis"==t||"earliest"==t)return 1;if("latest"==e)return"pending"==t?-1:1;if("latest"===t)return"pending"==e?1:-1;if("pending"==e)return 1;if("pending"==t)return-1;var n=new s(e),r=new s(t);return n.lt(r)?-1:n.eq(r)?0:1}return 0},toNumber:a.toNumber}},function(e,t,n){"use strict";n.r(t),n.d(t,"keccak256",(function(){return o}));var r=n(394),a=n.n(r),i=n(6);function o(e){return"0x"+a.a.keccak_256(Object(i.arrayify)(e))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return En})),n.d(t,"VERSION",(function(){return a.e})),n.d(t,"restArguments",(function(){return i})),n.d(t,"isObject",(function(){return o})),n.d(t,"isNull",(function(){return s})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return u})),n.d(t,"isElement",(function(){return f})),n.d(t,"isString",(function(){return l})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return h})),n.d(t,"isRegExp",(function(){return b})),n.d(t,"isError",(function(){return y})),n.d(t,"isSymbol",(function(){return m})),n.d(t,"isArrayBuffer",(function(){return v})),n.d(t,"isDataView",(function(){return T})),n.d(t,"isArray",(function(){return O})),n.d(t,"isFunction",(function(){return w})),n.d(t,"isArguments",(function(){return C})),n.d(t,"isFinite",(function(){return j})),n.d(t,"isNaN",(function(){return P})),n.d(t,"isTypedArray",(function(){return F})),n.d(t,"isEmpty",(function(){return z})),n.d(t,"isMatch",(function(){return q})),n.d(t,"isEqual",(function(){return J})),n.d(t,"isMap",(function(){return ie})),n.d(t,"isWeakMap",(function(){return oe})),n.d(t,"isSet",(function(){return se})),n.d(t,"isWeakSet",(function(){return ce})),n.d(t,"keys",(function(){return H})),n.d(t,"allKeys",(function(){return Z})),n.d(t,"values",(function(){return ue})),n.d(t,"pairs",(function(){return fe})),n.d(t,"invert",(function(){return de})),n.d(t,"functions",(function(){return le})),n.d(t,"methods",(function(){return le})),n.d(t,"extend",(function(){return he})),n.d(t,"extendOwn",(function(){return be})),n.d(t,"assign",(function(){return be})),n.d(t,"defaults",(function(){return ye})),n.d(t,"create",(function(){return ve})),n.d(t,"clone",(function(){return ge})),n.d(t,"tap",(function(){return xe})),n.d(t,"get",(function(){return Ee})),n.d(t,"has",(function(){return Se})),n.d(t,"mapObject",(function(){return Ie})),n.d(t,"identity",(function(){return Te})),n.d(t,"constant",(function(){return I})),n.d(t,"noop",(function(){return Ne})),n.d(t,"toPath",(function(){return we})),n.d(t,"property",(function(){return Me})),n.d(t,"propertyOf",(function(){return Re})),n.d(t,"matcher",(function(){return Oe})),n.d(t,"matches",(function(){return Oe})),n.d(t,"times",(function(){return De})),n.d(t,"random",(function(){return Le})),n.d(t,"now",(function(){return Be})),n.d(t,"escape",(function(){return Ve})),n.d(t,"unescape",(function(){return He})),n.d(t,"templateSettings",(function(){return ze})),n.d(t,"template",(function(){return Ye})),n.d(t,"result",(function(){return Je})),n.d(t,"uniqueId",(function(){return Xe})),n.d(t,"chain",(function(){return Qe})),n.d(t,"iteratee",(function(){return je})),n.d(t,"partial",(function(){return nt})),n.d(t,"bind",(function(){return rt})),n.d(t,"bindAll",(function(){return ot})),n.d(t,"memoize",(function(){return st})),n.d(t,"delay",(function(){return ct})),n.d(t,"defer",(function(){return ut})),n.d(t,"throttle",(function(){return ft})),n.d(t,"debounce",(function(){return dt})),n.d(t,"wrap",(function(){return lt})),n.d(t,"negate",(function(){return pt})),n.d(t,"compose",(function(){return ht})),n.d(t,"after",(function(){return bt})),n.d(t,"before",(function(){return yt})),n.d(t,"once",(function(){return mt})),n.d(t,"findKey",(function(){return vt})),n.d(t,"findIndex",(function(){return xt})),n.d(t,"findLastIndex",(function(){return wt})),n.d(t,"sortedIndex",(function(){return _t})),n.d(t,"indexOf",(function(){return Et})),n.d(t,"lastIndexOf",(function(){return St})),n.d(t,"find",(function(){return Tt})),n.d(t,"detect",(function(){return Tt})),n.d(t,"findWhere",(function(){return Ot})),n.d(t,"each",(function(){return Mt})),n.d(t,"forEach",(function(){return Mt})),n.d(t,"map",(function(){return At})),n.d(t,"collect",(function(){return At})),n.d(t,"reduce",(function(){return jt})),n.d(t,"foldl",(function(){return jt})),n.d(t,"inject",(function(){return jt})),n.d(t,"reduceRight",(function(){return Pt})),n.d(t,"foldr",(function(){return Pt})),n.d(t,"filter",(function(){return It})),n.d(t,"select",(function(){return It})),n.d(t,"reject",(function(){return Nt})),n.d(t,"every",(function(){return Rt})),n.d(t,"all",(function(){return Rt})),n.d(t,"some",(function(){return Dt})),n.d(t,"any",(function(){return Dt})),n.d(t,"contains",(function(){return Lt})),n.d(t,"includes",(function(){return Lt})),n.d(t,"include",(function(){return Lt})),n.d(t,"invoke",(function(){return Bt})),n.d(t,"pluck",(function(){return Ft})),n.d(t,"where",(function(){return Ut})),n.d(t,"max",(function(){return Vt})),n.d(t,"min",(function(){return Ht})),n.d(t,"shuffle",(function(){return qt})),n.d(t,"sample",(function(){return zt})),n.d(t,"sortBy",(function(){return Wt})),n.d(t,"groupBy",(function(){return Kt})),n.d(t,"indexBy",(function(){return $t})),n.d(t,"countBy",(function(){return Yt})),n.d(t,"partition",(function(){return Jt})),n.d(t,"toArray",(function(){return Xt})),n.d(t,"size",(function(){return Qt})),n.d(t,"pick",(function(){return tn})),n.d(t,"omit",(function(){return nn})),n.d(t,"first",(function(){return an})),n.d(t,"head",(function(){return an})),n.d(t,"take",(function(){return an})),n.d(t,"initial",(function(){return rn})),n.d(t,"last",(function(){return sn})),n.d(t,"rest",(function(){return on})),n.d(t,"tail",(function(){return on})),n.d(t,"drop",(function(){return on})),n.d(t,"compact",(function(){return cn})),n.d(t,"flatten",(function(){return un})),n.d(t,"without",(function(){return dn})),n.d(t,"uniq",(function(){return ln})),n.d(t,"unique",(function(){return ln})),n.d(t,"union",(function(){return pn})),n.d(t,"intersection",(function(){return hn})),n.d(t,"difference",(function(){return fn})),n.d(t,"unzip",(function(){return bn})),n.d(t,"transpose",(function(){return bn})),n.d(t,"zip",(function(){return yn})),n.d(t,"object",(function(){return mn})),n.d(t,"range",(function(){return vn})),n.d(t,"chunk",(function(){return gn})),n.d(t,"mixin",(function(){return wn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return a.e})),n.d(r,"restArguments",(function(){return i})),n.d(r,"isObject",(function(){return o})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return u})),n.d(r,"isElement",(function(){return f})),n.d(r,"isString",(function(){return l})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return h})),n.d(r,"isRegExp",(function(){return b})),n.d(r,"isError",(function(){return y})),n.d(r,"isSymbol",(function(){return m})),n.d(r,"isArrayBuffer",(function(){return v})),n.d(r,"isDataView",(function(){return T})),n.d(r,"isArray",(function(){return O})),n.d(r,"isFunction",(function(){return w})),n.d(r,"isArguments",(function(){return C})),n.d(r,"isFinite",(function(){return j})),n.d(r,"isNaN",(function(){return P})),n.d(r,"isTypedArray",(function(){return F})),n.d(r,"isEmpty",(function(){return z})),n.d(r,"isMatch",(function(){return q})),n.d(r,"isEqual",(function(){return J})),n.d(r,"isMap",(function(){return ie})),n.d(r,"isWeakMap",(function(){return oe})),n.d(r,"isSet",(function(){return se})),n.d(r,"isWeakSet",(function(){return ce})),n.d(r,"keys",(function(){return H})),n.d(r,"allKeys",(function(){return Z})),n.d(r,"values",(function(){return ue})),n.d(r,"pairs",(function(){return fe})),n.d(r,"invert",(function(){return de})),n.d(r,"functions",(function(){return le})),n.d(r,"methods",(function(){return le})),n.d(r,"extend",(function(){return he})),n.d(r,"extendOwn",(function(){return be})),n.d(r,"assign",(function(){return be})),n.d(r,"defaults",(function(){return ye})),n.d(r,"create",(function(){return ve})),n.d(r,"clone",(function(){return ge})),n.d(r,"tap",(function(){return xe})),n.d(r,"get",(function(){return Ee})),n.d(r,"has",(function(){return Se})),n.d(r,"mapObject",(function(){return Ie})),n.d(r,"identity",(function(){return Te})),n.d(r,"constant",(function(){return I})),n.d(r,"noop",(function(){return Ne})),n.d(r,"toPath",(function(){return we})),n.d(r,"property",(function(){return Me})),n.d(r,"propertyOf",(function(){return Re})),n.d(r,"matcher",(function(){return Oe})),n.d(r,"matches",(function(){return Oe})),n.d(r,"times",(function(){return De})),n.d(r,"random",(function(){return Le})),n.d(r,"now",(function(){return Be})),n.d(r,"escape",(function(){return Ve})),n.d(r,"unescape",(function(){return He})),n.d(r,"templateSettings",(function(){return ze})),n.d(r,"template",(function(){return Ye})),n.d(r,"result",(function(){return Je})),n.d(r,"uniqueId",(function(){return Xe})),n.d(r,"chain",(function(){return Qe})),n.d(r,"iteratee",(function(){return je})),n.d(r,"partial",(function(){return nt})),n.d(r,"bind",(function(){return rt})),n.d(r,"bindAll",(function(){return ot})),n.d(r,"memoize",(function(){return st})),n.d(r,"delay",(function(){return ct})),n.d(r,"defer",(function(){return ut})),n.d(r,"throttle",(function(){return ft})),n.d(r,"debounce",(function(){return dt})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return pt})),n.d(r,"compose",(function(){return ht})),n.d(r,"after",(function(){return bt})),n.d(r,"before",(function(){return yt})),n.d(r,"once",(function(){return mt})),n.d(r,"findKey",(function(){return vt})),n.d(r,"findIndex",(function(){return xt})),n.d(r,"findLastIndex",(function(){return wt})),n.d(r,"sortedIndex",(function(){return _t})),n.d(r,"indexOf",(function(){return Et})),n.d(r,"lastIndexOf",(function(){return St})),n.d(r,"find",(function(){return Tt})),n.d(r,"detect",(function(){return Tt})),n.d(r,"findWhere",(function(){return Ot})),n.d(r,"each",(function(){return Mt})),n.d(r,"forEach",(function(){return Mt})),n.d(r,"map",(function(){return At})),n.d(r,"collect",(function(){return At})),n.d(r,"reduce",(function(){return jt})),n.d(r,"foldl",(function(){return jt})),n.d(r,"inject",(function(){return jt})),n.d(r,"reduceRight",(function(){return Pt})),n.d(r,"foldr",(function(){return Pt})),n.d(r,"filter",(function(){return It})),n.d(r,"select",(function(){return It})),n.d(r,"reject",(function(){return Nt})),n.d(r,"every",(function(){return Rt})),n.d(r,"all",(function(){return Rt})),n.d(r,"some",(function(){return Dt})),n.d(r,"any",(function(){return Dt})),n.d(r,"contains",(function(){return Lt})),n.d(r,"includes",(function(){return Lt})),n.d(r,"include",(function(){return Lt})),n.d(r,"invoke",(function(){return Bt})),n.d(r,"pluck",(function(){return Ft})),n.d(r,"where",(function(){return Ut})),n.d(r,"max",(function(){return Vt})),n.d(r,"min",(function(){return Ht})),n.d(r,"shuffle",(function(){return qt})),n.d(r,"sample",(function(){return zt})),n.d(r,"sortBy",(function(){return Wt})),n.d(r,"groupBy",(function(){return Kt})),n.d(r,"indexBy",(function(){return $t})),n.d(r,"countBy",(function(){return Yt})),n.d(r,"partition",(function(){return Jt})),n.d(r,"toArray",(function(){return Xt})),n.d(r,"size",(function(){return Qt})),n.d(r,"pick",(function(){return tn})),n.d(r,"omit",(function(){return nn})),n.d(r,"first",(function(){return an})),n.d(r,"head",(function(){return an})),n.d(r,"take",(function(){return an})),n.d(r,"initial",(function(){return rn})),n.d(r,"last",(function(){return sn})),n.d(r,"rest",(function(){return on})),n.d(r,"tail",(function(){return on})),n.d(r,"drop",(function(){return on})),n.d(r,"compact",(function(){return cn})),n.d(r,"flatten",(function(){return un})),n.d(r,"without",(function(){return dn})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return pn})),n.d(r,"intersection",(function(){return hn})),n.d(r,"difference",(function(){return fn})),n.d(r,"unzip",(function(){return bn})),n.d(r,"transpose",(function(){return bn})),n.d(r,"zip",(function(){return yn})),n.d(r,"object",(function(){return mn})),n.d(r,"range",(function(){return vn})),n.d(r,"chunk",(function(){return gn})),n.d(r,"mixin",(function(){return wn})),n.d(r,"default",(function(){return _n}));var a=n(41);function i(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a=0&&n<=a.b}}function R(e){return function(t){return null==t?void 0:t[e]}}var D=R("byteLength"),L=N(D),B=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var F=a.r?function(e){return a.l?Object(a.l)(e)&&!T(e):L(e)&&B.test(a.t.call(e))}:I(!1),U=R("length");function V(e,t){t=function(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},Ve=Fe(Ue),He=Fe(de(Ue)),ze=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},qe=/(.)^/,We={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ge=/\\|'|\r|\n|\u2028|\u2029/g;function Ke(e){return"\\"+We[e]}var $e=/^\s*(\w|\$)+\s*$/;function Ye(e,t,n){!t&&n&&(t=n),t=ye({},t,W.templateSettings);var r=RegExp([(t.escape||qe).source,(t.interpolate||qe).source,(t.evaluate||qe).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,(function(t,n,r,o,s){return i+=e.slice(a,s).replace(Ge,Ke),a=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n";var o,s=t.variable;if(s){if(!$e.test(s))throw new Error(s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(s,"_",i)}catch(u){throw u.source=i,u}var c=function(e){return o.call(this,e,W)};return c.source="function("+s+"){\n"+i+"}",c}function Je(e,t,n){var r=(t=_e(t)).length;if(!r)return w(n)?n.call(e):n;for(var a=0;a1)it(s,t-1,n,r),a=r.length;else for(var c=0,u=s.length;ct?(r&&(clearTimeout(r),r=null),s=u,o=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(c,f)),o};return u.cancel=function(){clearTimeout(r),s=0,r=a=i=null},u}function dt(e,t,n){var r,a,o,s,c,u=function i(){var u=Be()-a;t>u?r=setTimeout(i,t-u):(r=null,n||(s=e.apply(c,o)),r||(o=c=null))},f=i((function(i){return c=this,o=i,a=Be(),r||(r=setTimeout(u,t),n&&(s=e.apply(c,o))),s}));return f.cancel=function(){clearTimeout(r),r=o=c=null},f}function lt(e,t){return nt(t,e)}function pt(e){return function(){return!e.apply(this,arguments)}}function ht(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function bt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function yt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var mt=nt(yt,2);function vt(e,t,n){t=Pe(t,n);for(var r,a=H(e),i=0,o=a.length;i0?0:a-1;i>=0&&i0?s=o>=0?o:Math.max(o+c,s):c=o>=0?Math.min(o+1,c):o+c+1;else if(n&&o&&c)return r[o=n(r,i)]===i?o:-1;if(i!==i)return(o=t(a.q.call(r,s,c),P))>=0?o+s:-1;for(o=e>0?s:c-1;o>=0&&o0?0:o-1;for(a||(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return t(e,Ae(n,a,4),r,i)}}var jt=Ct(1),Pt=Ct(-1);function It(e,t,n){var r=[];return t=Pe(t,n),Mt(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function Nt(e,t,n){return It(e,pt(Pe(t)),n)}function Rt(e,t,n){t=Pe(t,n);for(var r=!at(e)&&H(e),a=(r||e).length,i=0;i=0}var Bt=i((function(e,t,n){var r,a;return w(t)?a=t:(t=_e(t),r=t.slice(0,-1),t=t[t.length-1]),At(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=ke(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function Ft(e,t){return At(e,Me(t))}function Ut(e,t){return It(e,Oe(t))}function Vt(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=at(e)?e:ue(e)).length;si&&(i=r);else t=Pe(t,n),Mt(e,(function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)}));return i}function Ht(e,t,n){var r,a,i=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=at(e)?e:ue(e)).length;sr||void 0===n)return 1;if(n1&&(r=Ae(r,t[1])),t=Z(e)):(r=en,t=it(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a1&&(n=t[1])):(t=At(it(t,!1,!1),String),r=function(e,n){return!Lt(t,n)}),tn(e,r,n)}));function rn(e,t,n){return a.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function an(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:rn(e,e.length-t)}function on(e,t,n){return a.q.call(e,null==t||n?1:t)}function sn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:on(e,Math.max(0,e.length-t))}function cn(e){return It(e,Boolean)}function un(e,t){return it(e,t,!1)}var fn=i((function(e,t){return t=it(t,!0,!0),It(e,(function(e){return!Lt(t,e)}))})),dn=i((function(e,t){return fn(e,t)}));function ln(e,t,n,r){u(t)||(r=n,n=t,t=!1),null!=n&&(n=Pe(n,r));for(var a=[],i=[],o=0,s=U(e);o1)for(var n=1;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 c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=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-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=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=c(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,s=Math.min(i,i-o)+n,c=0,f=n;f1&&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")]=d}catch(M){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l=["","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?l[6-c.length]+c+n:c+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 u=p[e],f=h[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(f).toString(e);n=(d=d.idivn(f)).isZero()?b+n:l[u-b.length]+b+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 b(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,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var h=u-p|0;f+=(o=(a=0|e.words[h])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c: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,b=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],x=8191&g,w=g>>>13,_=0|o[4],k=8191&_,E=_>>>13,S=0|o[5],T=8191&S,O=S>>>13,M=0|o[6],A=8191&M,C=M>>>13,j=0|o[7],P=8191&j,I=j>>>13,N=0|o[8],R=8191&N,D=N>>>13,L=0|o[9],B=8191&L,F=L>>>13,U=0|s[0],V=8191&U,H=U>>>13,z=0|s[1],q=8191&z,W=z>>>13,G=0|s[2],K=8191&G,$=G>>>13,Y=0|s[3],J=8191&Y,Z=Y>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],he=8191&pe,be=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,V))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,V)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(h,V),a=(a=Math.imul(h,H))+Math.imul(b,V)|0,i=Math.imul(b,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,W)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,V),a=(a=Math.imul(m,H))+Math.imul(v,V)|0,i=Math.imul(v,H),r=r+Math.imul(h,q)|0,a=(a=a+Math.imul(h,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0;var ve=(u+(r=r+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,$)|0)+Math.imul(l,K)|0))<<13)|0;u=((i=i+Math.imul(l,$)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,V),a=(a=Math.imul(x,H))+Math.imul(w,V)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0,r=r+Math.imul(h,K)|0,a=(a=a+Math.imul(h,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0;var ge=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,Z)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(k,V),a=(a=Math.imul(k,H))+Math.imul(E,V)|0,i=Math.imul(E,H),r=r+Math.imul(x,q)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,r=r+Math.imul(m,K)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,r=r+Math.imul(h,J)|0,a=(a=a+Math.imul(h,Z)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Z)|0;var xe=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(T,V),a=(a=Math.imul(T,H))+Math.imul(O,V)|0,i=Math.imul(O,H),r=r+Math.imul(k,q)|0,a=(a=a+Math.imul(k,W)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,W)|0,r=r+Math.imul(x,K)|0,a=(a=a+Math.imul(x,$)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,$)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,Z)|0,r=r+Math.imul(h,Q)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,V),a=(a=Math.imul(A,H))+Math.imul(C,V)|0,i=Math.imul(C,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,W)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,W)|0,r=r+Math.imul(k,K)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,$)|0,r=r+Math.imul(x,J)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0;var _e=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,V),a=(a=Math.imul(P,H))+Math.imul(I,V)|0,i=Math.imul(I,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,W)|0,r=r+Math.imul(T,K)|0,a=(a=a+Math.imul(T,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,r=r+Math.imul(k,J)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,Z)|0,r=r+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0;var ke=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,V),a=(a=Math.imul(R,H))+Math.imul(D,V)|0,i=Math.imul(D,H),r=r+Math.imul(P,q)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,W)|0,r=r+Math.imul(A,K)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,$)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,Z)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(x,ne)|0,a=(a=a+Math.imul(x,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0;var Ee=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(B,V),a=(a=Math.imul(B,H))+Math.imul(F,V)|0,i=Math.imul(F,H),r=r+Math.imul(R,q)|0,a=(a=a+Math.imul(R,W)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,W)|0,r=r+Math.imul(P,K)|0,a=(a=a+Math.imul(P,$)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(k,ne)|0,a=(a=a+Math.imul(k,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(h,de)|0,a=(a=a+Math.imul(h,le)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,le)|0;var Se=(u+(r=r+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,be)|0)+Math.imul(l,he)|0))<<13)|0;u=((i=i+Math.imul(l,be)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,q),a=(a=Math.imul(B,W))+Math.imul(F,q)|0,i=Math.imul(F,W),r=r+Math.imul(R,K)|0,a=(a=a+Math.imul(R,$)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,$)|0,r=r+Math.imul(P,J)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(k,ie)|0,a=(a=a+Math.imul(k,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(x,ce)|0,a=(a=a+Math.imul(x,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Te=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,be)|0)+Math.imul(b,he)|0))<<13)|0;u=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,K),a=(a=Math.imul(B,$))+Math.imul(F,K)|0,i=Math.imul(F,$),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,Z)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,Z)|0,r=r+Math.imul(P,Q)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(k,ce)|0,a=(a=a+Math.imul(k,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(x,de)|0,a=(a=a+Math.imul(x,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Oe=(u+(r=r+Math.imul(m,he)|0)|0)+((8191&(a=(a=a+Math.imul(m,be)|0)+Math.imul(v,he)|0))<<13)|0;u=((i=i+Math.imul(v,be)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,J),a=(a=Math.imul(B,Z))+Math.imul(F,J)|0,i=Math.imul(F,Z),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,a=(a=a+Math.imul(P,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(k,de)|0,a=(a=a+Math.imul(k,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Me=(u+(r=r+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,be)|0)+Math.imul(w,he)|0))<<13)|0;u=((i=i+Math.imul(w,be)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,Q),a=(a=Math.imul(B,ee))+Math.imul(F,Q)|0,i=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(C,ce)|0,i=i+Math.imul(C,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Ae=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(a=(a=a+Math.imul(k,be)|0)+Math.imul(E,he)|0))<<13)|0;u=((i=i+Math.imul(E,be)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ne),a=(a=Math.imul(B,re))+Math.imul(F,ne)|0,i=Math.imul(F,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(P,ce)|0,a=(a=a+Math.imul(P,ue)|0)+Math.imul(I,ce)|0,i=i+Math.imul(I,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,le)|0;var Ce=(u+(r=r+Math.imul(T,he)|0)|0)+((8191&(a=(a=a+Math.imul(T,be)|0)+Math.imul(O,he)|0))<<13)|0;u=((i=i+Math.imul(O,be)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,ie),a=(a=Math.imul(B,oe))+Math.imul(F,ie)|0,i=Math.imul(F,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(P,de)|0,a=(a=a+Math.imul(P,le)|0)+Math.imul(I,de)|0,i=i+Math.imul(I,le)|0;var je=(u+(r=r+Math.imul(A,he)|0)|0)+((8191&(a=(a=a+Math.imul(A,be)|0)+Math.imul(C,he)|0))<<13)|0;u=((i=i+Math.imul(C,be)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ce),a=(a=Math.imul(B,ue))+Math.imul(F,ce)|0,i=Math.imul(F,ue),r=r+Math.imul(R,de)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Pe=(u+(r=r+Math.imul(P,he)|0)|0)+((8191&(a=(a=a+Math.imul(P,be)|0)+Math.imul(I,he)|0))<<13)|0;u=((i=i+Math.imul(I,be)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,de),a=(a=Math.imul(B,le))+Math.imul(F,de)|0,i=Math.imul(F,le);var Ie=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(a=(a=a+Math.imul(R,be)|0)+Math.imul(D,he)|0))<<13)|0;u=((i=i+Math.imul(D,be)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(u+(r=Math.imul(B,he))|0)+((8191&(a=(a=Math.imul(B,be))+Math.imul(F,he)|0))<<13)|0;return u=((i=Math.imul(F,be))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=xe,c[5]=we,c[6]=_e,c[7]=ke,c[8]=Ee,c[9]=Se,c[10]=Te,c[11]=Oe,c[12]=Me,c[13]=Ae,c[14]=Ce,c[15]=je,c[16]=Pe,c[17]=Ie,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function m(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]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(y=b),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?b(this,e,t):n<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},g.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),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),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)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=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 s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||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?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.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,s},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),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0===(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,b=1;0===(n.words[0]&b)&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},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),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0===(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).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,s&=67108863,this.words[o]=s}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 T(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 x={k256:null,p224:null,p192:null,p25519:null};function w(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 _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(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 O(e){T.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)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.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},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(_,w),_.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},_.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(x[e])return x[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return x[e]=t,t},T.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},T.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")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.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)},T.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},T.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)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.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 s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(s);){for(var b=p,y=0;0!==b.cmp(s);y++)b=b.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new O(e)},a(O,T),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.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)},O.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)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(100)(e))},function(e,t,n){var r=n(23),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(85),a=n(347),i=n(193),o=n(299),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,s=n._parentOrParents,u=n._ctorUnsubscribe,f=n._unsubscribe,d=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof e)s.remove(this);else if(null!==s)for(var l=0;l"),GTE:new g._Code(">="),LT:new g._Code("<"),LTE:new g._Code("<="),EQ:new g._Code("==="),NEQ:new g._Code("!=="),NOT:new g._Code("!"),OR:new g._Code("||"),AND:new g._Code("&&"),ADD:new g._Code("+")};var k=function(){function e(){m(this,e)}return v(e,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}]),e}(),E=function(e){b(n,e);var t=y(n);function n(e,r,a){var i;return m(this,n),(i=t.call(this)).varKind=e,i.name=r,i.rhs=a,i}return v(n,[{key:"render",value:function(e){var t=e.es5,n=e._n,r=t?x.varKinds.var:this.varKind,a=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(r," ").concat(this.name).concat(a,";")+n}},{key:"optimizeNames",value:function(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=$(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof g._CodeOrName?this.rhs.names:{}}}]),n}(k),S=function(e){b(n,e);var t=y(n);function n(e,r,a){var i;return m(this,n),(i=t.call(this)).lhs=e,i.rhs=r,i.sideEffects=a,i}return v(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}},{key:"optimizeNames",value:function(e,t){if(!(this.lhs instanceof g.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=$(this.rhs,e,t),this}},{key:"names",get:function(){return K(this.lhs instanceof g.Name?{}:h({},this.lhs.names),this.rhs)}}]),n}(k),T=function(e){b(n,e);var t=y(n);function n(e,r,a,i){var o;return m(this,n),(o=t.call(this,e,a,i)).op=r,o}return v(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}]),n}(S),O=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).label=e,r.names={},r}return v(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.label,":")+t}}]),n}(k),M=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).label=e,r.names={},r}return v(n,[{key:"render",value:function(e){var t=e._n,n=this.label?" ".concat(this.label):"";return"break".concat(n,";")+t}}]),n}(k),A=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).error=e,r}return v(n,[{key:"render",value:function(e){var t=e._n;return"throw ".concat(this.error,";")+t}},{key:"names",get:function(){return this.error.names}}]),n}(k),C=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).code=e,r}return v(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.code,";")+t}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(e,t){return this.code=$(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof g._CodeOrName?this.code.names:{}}}]),n}(k),j=function(e){b(n,e);var t=y(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return m(this,n),(e=t.call(this)).nodes=r,e}return v(n,[{key:"render",value:function(e){return this.nodes.reduce((function(t,n){return t+n.render(e)}),"")}},{key:"optimizeNodes",value:function(){for(var e=this.nodes,t=e.length;t--;){var n=e[t].optimizeNodes();Array.isArray(n)?e.splice.apply(e,[t,1].concat(p(n))):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}},{key:"optimizeNames",value:function(e,t){for(var n=this.nodes,r=n.length;r--;){var a=n[r];a.optimizeNames(e,t)||(Y(e,a.names),n.splice(r,1))}return n.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce((function(e,t){return G(e,t.names)}),{})}}]),n}(k),P=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(e){return"{"+e._n+d(l(n.prototype),"render",this).call(this,e)+"}"+e._n}}]),n}(j),I=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n)}(j),N=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n)}(P);N.kind="else";var R=function(e){b(n,e);var t=y(n);function n(e,r){var a;return m(this,n),(a=t.call(this,r)).condition=e,a}return v(n,[{key:"render",value:function(e){var t="if(".concat(this.condition,")")+d(l(n.prototype),"render",this).call(this,e);return this.else&&(t+="else "+this.else.render(e)),t}},{key:"optimizeNodes",value:function(){d(l(n.prototype),"optimizeNodes",this).call(this);var e=this.condition;if(!0===e)return this.nodes;var t=this.else;if(t){var r=t.optimizeNodes();t=this.else=Array.isArray(r)?new N(r):r}return t?!1===e?t instanceof n?t:t.nodes:this.nodes.length?this:new n(J(e),t instanceof n?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),d(l(n.prototype),"optimizeNames",this).call(this,e,t)||this.else)return this.condition=$(this.condition,e,t),this}},{key:"names",get:function(){var e=d(l(n.prototype),"names",this);return K(e,this.condition),this.else&&G(e,this.else.names),e}}]),n}(P);R.kind="if";var D=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n)}(P);D.kind="for";var L=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).iteration=e,r}return v(n,[{key:"render",value:function(e){return"for(".concat(this.iteration,")")+d(l(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(l(n.prototype),"optimizeNames",this).call(this,e,t))return this.iteration=$(this.iteration,e,t),this}},{key:"names",get:function(){return G(d(l(n.prototype),"names",this),this.iteration.names)}}]),n}(D),B=function(e){b(n,e);var t=y(n);function n(e,r,a,i){var o;return m(this,n),(o=t.call(this)).varKind=e,o.name=r,o.from=a,o.to=i,o}return v(n,[{key:"render",value:function(e){var t=e.es5?x.varKinds.var:this.varKind,r=this.name,a=this.from,i=this.to;return"for(".concat(t," ").concat(r,"=").concat(a,"; ").concat(r,"<").concat(i,"; ").concat(r,"++)")+d(l(n.prototype),"render",this).call(this,e)}},{key:"names",get:function(){var e=K(d(l(n.prototype),"names",this),this.from);return K(e,this.to)}}]),n}(D),F=function(e){b(n,e);var t=y(n);function n(e,r,a,i){var o;return m(this,n),(o=t.call(this)).loop=e,o.varKind=r,o.name=a,o.iterable=i,o}return v(n,[{key:"render",value:function(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+d(l(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(l(n.prototype),"optimizeNames",this).call(this,e,t))return this.iterable=$(this.iterable,e,t),this}},{key:"names",get:function(){return G(d(l(n.prototype),"names",this),this.iterable.names)}}]),n}(D),U=function(e){b(n,e);var t=y(n);function n(e,r,a){var i;return m(this,n),(i=t.call(this)).name=e,i.args=r,i.async=a,i}return v(n,[{key:"render",value:function(e){var t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+d(l(n.prototype),"render",this).call(this,e)}}]),n}(P);U.kind="func";var V=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(e){return"return "+d(l(n.prototype),"render",this).call(this,e)}}]),n}(j);V.kind="return";var H=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(e){var t="try"+d(l(n.prototype),"render",this).call(this,e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}},{key:"optimizeNodes",value:function(){var e,t;return d(l(n.prototype),"optimizeNodes",this).call(this),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}},{key:"optimizeNames",value:function(e,t){var r,a;return d(l(n.prototype),"optimizeNames",this).call(this,e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(a=this.finally)||void 0===a||a.optimizeNames(e,t),this}},{key:"names",get:function(){var e=d(l(n.prototype),"names",this);return this.catch&&G(e,this.catch.names),this.finally&&G(e,this.finally.names),e}}]),n}(P),z=function(e){b(n,e);var t=y(n);function n(e){var r;return m(this,n),(r=t.call(this)).error=e,r}return v(n,[{key:"render",value:function(e){return"catch(".concat(this.error,")")+d(l(n.prototype),"render",this).call(this,e)}}]),n}(P);z.kind="catch";var q=function(e){b(n,e);var t=y(n);function n(){return m(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(e){return"finally"+d(l(n.prototype),"render",this).call(this,e)}}]),n}(P);q.kind="finally";var W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e),this._values={},this._blockStarts=[],this._constants={},this.opts=h(h({},n),{},{_n:n.lines?"\n":""}),this._extScope=t,this._scope=new x.Scope({parent:t}),this._nodes=[new I]}return v(e,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(e){return this._scope.name(e)}},{key:"scopeName",value:function(e){return this._extScope.name(e)}},{key:"scopeValue",value:function(e,t){var n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}},{key:"getScopeValue",value:function(e,t){return this._extScope.getValue(e,t)}},{key:"scopeRefs",value:function(e){return this._extScope.scopeRefs(e,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(e,t,n,r){var a=this._scope.toName(t);return void 0!==n&&r&&(this._constants[a.str]=n),this._leafNode(new E(e,a,n)),a}},{key:"const",value:function(e,t,n){return this._def(x.varKinds.const,e,t,n)}},{key:"let",value:function(e,t,n){return this._def(x.varKinds.let,e,t,n)}},{key:"var",value:function(e,t,n){return this._def(x.varKinds.var,e,t,n)}},{key:"assign",value:function(e,t,n){return this._leafNode(new S(e,t,n))}},{key:"add",value:function(e,n){return this._leafNode(new T(e,t.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==g.nil&&this._leafNode(new C(e)),this}},{key:"object",value:function(){for(var e=["{"],t=arguments.length,n=new Array(t),r=0;r1&&e.push(","),e.push(s),(s!==c||this.opts.es5)&&(e.push(":"),(0,g.addCodeArg)(e,c))}return e.push("}"),new g._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new R(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(e){return this._elseNode(new R(e))}},{key:"else",value:function(){return this._elseNode(new N)}},{key:"endIf",value:function(){return this._endBlockNode(R,N)}},{key:"_for",value:function(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}},{key:"for",value:function(e,t){return this._for(new L(e),t)}},{key:"forRange",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?x.varKinds.var:x.varKinds.let,i=this._scope.toName(e);return this._for(new B(a,i,t,n),(function(){return r(i)}))}},{key:"forOf",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x.varKinds.const,s=this._scope.toName(e);if(this.opts.es5){var c=t instanceof g.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,g._)(r||(r=u(["",".length"])),c),(function(e){i.var(s,(0,g._)(a||(a=u(["","[","]"])),c,e)),n(s)}))}return this._for(new F("of",o,s,t),(function(){return n(s)}))}},{key:"forIn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?x.varKinds.var:x.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,g._)(i||(i=u(["Object.keys(",")"])),t),n);var a=this._scope.toName(e);return this._for(new F("in",r,a,t),(function(){return n(a)}))}},{key:"endFor",value:function(){return this._endBlockNode(D)}},{key:"label",value:function(e){return this._leafNode(new O(e))}},{key:"break",value:function(e){return this._leafNode(new M(e))}},{key:"return",value:function(e){var t=new V;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(V)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new H;if(this._blockNode(r),this.code(e),t){var a=this.name("e");this._currNode=r.catch=new z(a),t(a)}return n&&(this._currNode=r.finally=new q,this.code(n)),this._endBlockNode(z,q)}},{key:"throw",value:function(e){return this._leafNode(new A(e))}},{key:"block",value:function(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}},{key:"endBlock",value:function(e){var t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");var n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(n," vs ").concat(e," expected"));return this._nodes.length=t,this}},{key:"func",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.nil,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return this._blockNode(new U(e,t,n)),r&&this.code(r).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(U)}},{key:"optimize",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(e){return this._currNode.nodes.push(e),this}},{key:"_blockNode",value:function(e){this._currNode.nodes.push(e),this._nodes.push(e)}},{key:"_endBlockNode",value:function(e,t){var n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}},{key:"_elseNode",value:function(e){var t=this._currNode;if(!(t instanceof R))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var e=this._nodes;return e[e.length-1]},set:function(e){var t=this._nodes;t[t.length-1]=e}}]),e}();function G(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function K(e,t){return t instanceof g._CodeOrName?G(e,t.names):e}function $(e,t,n){return e instanceof g.Name?a(e):(r=e)instanceof g._Code&&r._items.some((function(e){return e instanceof g.Name&&1===t[e.str]&&void 0!==n[e.str]}))?new g._Code(e._items.reduce((function(e,t){return t instanceof g.Name&&(t=a(t)),t instanceof g._Code?e.push.apply(e,p(t._items)):e.push(t),e}),[])):e;var r;function a(e){var r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function Y(e,t){for(var n in t)e[n]=(e[n]||0)-(t[n]||0)}function J(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,g._)(o||(o=u(["!",""])),ee(e))}t.CodeGen=W,t.not=J;var Z=Q(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=l.bind(r);return a.listener=n,r.wrapFn=a,a}function h(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"===typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=a[e];if(void 0===c)return!1;if("function"===typeof c)i(c,this,t);else{var u=c.length,f=y(c,u);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.r(t),n.d(t,"TransactionTypes",(function(){return r})),n.d(t,"computeAddress",(function(){return v})),n.d(t,"recoverAddress",(function(){return g})),n.d(t,"accessListify",(function(){return _})),n.d(t,"serialize",(function(){return T})),n.d(t,"parse",(function(){return M}));var r,a=n(38),i=n(44),o=n(6),s=n(222),c=n(49),u=n(10),f=n(155),d=n(147),l=n(13),p=new l.Logger("transactions/5.6.2");function h(e){return"0x"===e?null:Object(a.getAddress)(e)}function b(e){return"0x"===e?s.h:i.a.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var y=[{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"}],m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){var t=Object(d.computePublicKey)(e);return Object(a.getAddress)(Object(o.hexDataSlice)(Object(c.keccak256)(Object(o.hexDataSlice)(t,1)),12))}function g(e,t){return v(Object(d.recoverPublicKey)(Object(o.arrayify)(e),t))}function x(e,t){var n=Object(o.stripZeros)(i.a.from(e).toHexString());return n.length>32&&p.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function w(e,t){return{address:Object(a.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==Object(o.hexDataLength)(t)&&p.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function _(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),w(e[0],e[1])):w(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 w(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function k(e){return _(e).map((function(e){return[e.address,e.storageKeys]}))}function E(e,t){if(null!=e.gasPrice){var n=i.a.from(e.gasPrice),r=i.a.from(e.maxFeePerGas||0);n.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var s=[x(e.chainId||0,"chainId"),x(e.nonce||0,"nonce"),x(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),x(e.maxFeePerGas||0,"maxFeePerGas"),x(e.gasLimit||0,"gasLimit"),null!=e.to?Object(a.getAddress)(e.to):"0x",x(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var c=Object(o.splitSignature)(t);s.push(x(c.recoveryParam,"recoveryParam")),s.push(Object(o.stripZeros)(c.r)),s.push(Object(o.stripZeros)(c.s))}return Object(o.hexConcat)(["0x02",f.encode(s)])}function S(e,t){var n=[x(e.chainId||0,"chainId"),x(e.nonce||0,"nonce"),x(e.gasPrice||0,"gasPrice"),x(e.gasLimit||0,"gasLimit"),null!=e.to?Object(a.getAddress)(e.to):"0x",x(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var r=Object(o.splitSignature)(t);n.push(x(r.recoveryParam,"recoveryParam")),n.push(Object(o.stripZeros)(r.r)),n.push(Object(o.stripZeros)(r.s))}return Object(o.hexConcat)(["0x01",f.encode(n)])}function T(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){Object(u.checkProperties)(e,m);var n=[];y.forEach((function(t){var r=e[t.name]||[],a={};t.numeric&&(a.hexPad="left"),r=Object(o.arrayify)(Object(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=Object(o.stripZeros)(r)).length>t.maxLength&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push(Object(o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!==typeof(r=e.chainId)&&p.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push(Object(o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return f.encode(n);var a=Object(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(Object(o.hexlify)(i)),n.push(Object(o.stripZeros)(Object(o.arrayify)(a.r))),n.push(Object(o.stripZeros)(Object(o.arrayify)(a.s))),f.encode(n)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return E(e,t)}return p.throwError("unsupported transaction type: ".concat(e.type),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function O(e,t,n){try{var r=b(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=Object(o.hexZeroPad)(t[1],32),e.s=Object(o.hexZeroPad)(t[2],32);try{var a=Object(c.keccak256)(n(e));e.from=g(a,{r:e.r,s:e.s,recoveryParam:e.v})}catch(i){}}function M(e){var t=Object(o.arrayify)(e);if(t[0]>127)return function(e){var t=f.decode(e);9!==t.length&&6!==t.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:b(t[0]).toNumber(),gasPrice:b(t[1]),gasLimit:b(t[2]),to:h(t[3]),value:b(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.a.from(t[6]).toNumber()}catch(u){return n}if(n.r=Object(o.hexZeroPad)(t[7],32),n.s=Object(o.hexZeroPad)(t[8],32),i.a.from(n.r).isZero()&&i.a.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(Object(o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var s=Object(c.keccak256)(f.encode(a));try{n.from=g(s,{r:Object(o.hexlify)(n.r),s:Object(o.hexlify)(n.s),recoveryParam:r})}catch(u){}n.hash=Object(c.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=f.decode(e.slice(1));8!==t.length&&11!==t.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",Object(o.hexlify)(e));var n={type:1,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),gasPrice:b(t[2]),gasLimit:b(t[3]),to:h(t[4]),value:b(t[5]),data:t[6],accessList:_(t[7])};return 8===t.length||(n.hash=Object(c.keccak256)(e),O(n,t.slice(8),S)),n}(t);case 2:return function(e){var t=f.decode(e.slice(1));9!==t.length&&12!==t.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",Object(o.hexlify)(e));var n=b(t[2]),r=b(t[3]),a={type:2,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:b(t[4]),to:h(t[5]),value:b(t[6]),data:t[7],accessList:_(t[8])};return 9===t.length||(a.hash=Object(c.keccak256)(e),O(a,t.slice(9),E)),a}(t)}return p.throwError("unsupported transaction type: ".concat(t[0]),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"addTrackers",(function(){return K})),n.d(r,"initialize",(function(){return $})),n.d(r,"ga",(function(){return Y})),n.d(r,"set",(function(){return J})),n.d(r,"send",(function(){return Z})),n.d(r,"pageview",(function(){return X})),n.d(r,"modalview",(function(){return Q})),n.d(r,"timing",(function(){return ee})),n.d(r,"event",(function(){return te})),n.d(r,"exception",(function(){return ne})),n.d(r,"plugin",(function(){return re})),n.d(r,"outboundLink",(function(){return ae})),n.d(r,"testModeAPI",(function(){return ie})),n.d(r,"default",(function(){return oe}));var a=n(1),i=n.n(a),o=n(16),s=n.n(o);function c(e){console.warn("[react-ga]",e)}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n0&&t+e.length!==n.length&&e.search(S)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}var O=!1;function M(e){console.info("[react-ga]",e)}var A=[],C={calls:A,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){return N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function R(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return(arguments.length>1?arguments[1]:void 0)&&(n=T(e)),t&&(n=k(n)),n}(e,F,H)}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(z.apply(void 0,t),B&&(M("called ga('arguments');"),M("with arguments: ".concat(JSON.stringify(t))))),window.ga}function J(e,t){e?"object"===N(e)?(0===Object.keys(e).length&&c("empty `fieldsObject` given to .set()"),W(t,"set",e),B&&(M("called ga('set', fieldsObject);"),M("with fieldsObject: ".concat(JSON.stringify(e))))):c("Expected `fieldsObject` arg to be an Object"):c("`fieldsObject` is required in .set()")}function Z(e,t){W(t,"send",e),B&&(M("called ga('send', fieldObject);"),M("with fieldObject: ".concat(JSON.stringify(e))),M("with trackers: ".concat(JSON.stringify(t))))}function X(e,t,n){if(e){var r=E(e);if(""!==r){var a={};if(n&&(a.title=n),W(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,a=e.label,i=arguments.length>1?arguments[1]:void 0;if(t&&n&&"number"===typeof r){var o={hitType:"timing",timingCategory:q(t),timingVar:q(n),timingValue:r};a&&(o.timingLabel=q(a)),Z(o,i)}else c("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,a=e.value,i=e.nonInteraction,o=e.transport,s=j(e,["category","action","label","value","nonInteraction","transport"]),u=arguments.length>1?arguments[1]:void 0;if(t&&n){var f={hitType:"event",eventCategory:q(t),eventAction:q(n)};r&&(f.eventLabel=q(r)),"undefined"!==typeof a&&("number"!==typeof a?c("Expected `args.value` arg to be a Number."):f.eventValue=a),"undefined"!==typeof i&&("boolean"!==typeof i?c("`args.nonInteraction` must be a boolean."):f.nonInteraction=i),"undefined"!==typeof o&&("string"!==typeof o?c("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(o)&&c("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),f.transport=o)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){f[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){f[e]=s[e]})),Z(f,u)}else c("args.category AND args.action are required in event()")}function ne(e,t){var n=e.description,r=e.fatal,a={hitType:"exception"};n&&(a.exDescription=q(n)),"undefined"!==typeof r&&("boolean"!==typeof r?c("`args.fatal` must be a boolean."):a.exFatal=r),Z(a,t)}var re={require:function(e,t,n){if(e){var r=E(e);if(""!==r){var a=n?"".concat(n,".require"):"require";if(t){if("object"!==N(t))return void c("Expected `options` arg to be an Object");0===Object.keys(t).length&&c("Empty `options` given to .require()"),Y(a,r,t),B&&M("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else Y(a,r),B&&M("called ga('require', '".concat(r,"');"))}else c("`name` cannot be an empty string in .require()")}else c("`name` is required in .require()")},execute:function(e,t){for(var n,r,a=arguments.length,i=new Array(a>2?a-2:0),o=2;o2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return v(e,s,a,i,null)}function v(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i:o};return null==o&&null!=a.vnode&&a.vnode(s),s}function g(){return{current:null}}function x(e){return e.children}function w(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&s.sort(f));S.__r=0}function T(e,t,n,r,a,i,o,s,c,u){var f,d,h,b,y,m,g,w=r&&r.__k||p,k=w.length;for(n.__k=[],f=0;f0?v(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(h=w[f])||h&&b.key==h.key&&b.type===h.type)w[f]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=C(n)))return r;return null}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function P(e,t,n,r,a){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||j(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?N:I,i):e.removeEventListener(t,i?N:I,i);else if("dangerouslySetInnerHTML"!==t){if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function I(e){return this.l[e.type+!1](a.event?a.event(e):e)}function N(e){return this.l[e.type+!0](a.event?a.event(e):e)}function R(e,t,n,r,i,o,s,c,u){var f,d,l,p,h,y,m,v,g,_,k,E,S,O,M,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(f=a.__b)&&f(t);try{e:if("function"==typeof A){if(v=t.props,g=(f=A.contextType)&&r[f.__c],_=f?g?g.props.value:f.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(v,_):(t.__c=d=new w(v,_),d.constructor=A,d.render=U),g&&g.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,l=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=b({},d.__s)),b(d.__s,A.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,l)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),d.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),k=0;k2&&(s.children=arguments.length>3?r.call(arguments,2):n),v(e.type,s,a||e.key,i||e.ref,null)}function q(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=p.slice,a={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},i=0,o=function(e){return null!=e&&void 0===e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},w.prototype.render=x,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,d=0},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s}));var r=n(308);function a(e){var t=Object(r.b)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||Object(r.b)()).getScope();return t&&t.getTransaction()}function o(e){return e/1e3}function s(e){return 1e3*e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(51);function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=a(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},i.apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(82);function a(e,t){if(null==e)return{};var n,a,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pino=void 0;var r=n(7),a=r.__importDefault(n(1773));Object.defineProperty(t,"pino",{enumerable:!0,get:function(){return a.default}}),r.__exportStar(n(884),t),r.__exportStar(n(1775),t)},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(7),a=n(37),i=n(26),o=n(60),s=n(178),c=n(501),u=n(298),f=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(i.a),d=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[u.a]=function(){return new f(this)},t.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),a=0;a=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r,a,i,o,s,c,u,f,d,l,p,h,b,y,m,v,g,x,w=n(92).default,_=n(66).default,k=n(79).default;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;var E=n(63),S=n(470);function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.opts,r=e.self;if(n.strictSchema&&"boolean"!==typeof t){var a=r.RULES.keywords;for(var i in t)a[i]||R(e,'unknown keyword: "'.concat(i,'"'))}}function O(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0;return!1}function M(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function A(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function C(e){var t=e.mergeNames,n=e.mergeToName,r=e.mergeValues,a=e.resultToName;return function(e,i,o,s){var c=void 0===o?i:o instanceof E.Name?(i instanceof E.Name?t(e,i,o):n(e,i,o),o):i instanceof E.Name?(n(e,o,i),i):r(i,o);return s!==E.Name||c instanceof E.Name?c:a(e,c)}}function j(e,t){if(!0===t)return e.var("props",!0);var n=e.var("props",(0,E._)(b||(b=_(["{}"]))));return void 0!==t&&P(e,n,t),n}function P(e,t,n){Object.keys(n).forEach((function(n){return e.assign((0,E._)(y||(y=_(["","",""])),t,(0,E.getProperty)(n)),!0)}))}t.toHash=function(e){var t,n={},r=k(e);try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(a){r.e(a)}finally{r.f()}return n},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(T(e,t),!O(t,e.self.RULES.all))},t.checkUnknownRules=T,t.schemaHasRules=O,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function(e,t,n,i){var o=e.topSchemaRef,s=e.schemaPath;if(!i){if("number"==typeof t||"boolean"==typeof t)return t;if("string"==typeof t)return(0,E._)(r||(r=_(["",""])),t)}return(0,E._)(a||(a=_(["","","",""])),o,s,(0,E.getProperty)(n))},t.unescapeFragment=function(e){return A(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(M(e))},t.escapeJsonPointer=M,t.unescapeJsonPointer=A,t.eachItem=function(e,t){if(Array.isArray(e)){var n,r=k(e);try{for(r.s();!(n=r.n()).done;){t(n.value)}}catch(a){r.e(a)}finally{r.f()}}else t(e)},t.mergeEvaluated={props:C({mergeNames:function(e,t,n){return e.if((0,E._)(i||(i=_([""," !== true && "," !== undefined"])),n,t),(function(){e.if((0,E._)(o||(o=_([""," === true"])),t),(function(){return e.assign(n,!0)}),(function(){return e.assign(n,(0,E._)(s||(s=_([""," || {}"])),n)).code((0,E._)(c||(c=_(["Object.assign(",", ",")"])),n,t))}))}))},mergeToName:function(e,t,n){return e.if((0,E._)(u||(u=_([""," !== true"])),n),(function(){!0===t?e.assign(n,!0):(e.assign(n,(0,E._)(f||(f=_([""," || {}"])),n)),P(e,n,t))}))},mergeValues:function(e,t){return!0===e||w(w({},e),t)},resultToName:j}),items:C({mergeNames:function(e,t,n){return e.if((0,E._)(d||(d=_([""," !== true && "," !== undefined"])),n,t),(function(){return e.assign(n,(0,E._)(l||(l=_([""," === true ? true : "," > "," ? "," : ",""])),t,n,t,n,t))}))},mergeToName:function(e,t,n){return e.if((0,E._)(p||(p=_([""," !== true"])),n),(function(){return e.assign(n,!0===t||(0,E._)(h||(h=_([""," > "," ? "," : ",""])),n,t,n,t))}))},mergeValues:function(e,t){return!0===e||Math.max(e,t)},resultToName:function(e,t){return e.var("items",t)}})},t.evaluatedPropsToName=j,t.setEvaluated=P;var I,N={};function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(n){if(t="strict mode: ".concat(t),!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:N[t.code]||(N[t.code]=new S._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(I=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof E.Name){var r=t===I.Num;return n?r?(0,E._)(m||(m=_(['"[" + ',' + "]"'])),e):(0,E._)(v||(v=_(['"[\'" + ',' + "\']"'])),e):r?(0,E._)(g||(g=_(['"/" + ',""])),e):(0,E._)(x||(x=_(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return n?(0,E.getProperty)(e).toString():"/"+M(e)},t.checkStrictMode=R},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="providers/5.6.8"},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}n.d(t,"a",(function(){return r}))},function(e,t){function n(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function s(e){n(o,a,i,s,c,"next",e)}function c(e){n(o,a,i,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(213),a=new(n(210).a)(r.a),i=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return Array.isArray||function(e){return e&&"number"===typeof e.length}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return x}));var r=n(96),a=n(109),i=n(1),o=n.n(i),s=n(156),c=n(28),u=n(82),f=n(40);o.a.Component;var d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a>6===2;s++)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 c=Object.freeze({error:function(e,t,n,r,a){return o.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n))}});function u(e,t){null==t&&(t=c.error),e=Object(i.arrayify)(e);for(var n=[],r=0;r>7!==0){var s=null,u=null;if(192===(224&o))s=1,u=127;else if(224===(240&o))s=2,u=2047;else{if(240!==(248&o)){r+=t(128===(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,r-1,e,n);continue}s=3,u=65535}if(r-1+s>=e.length)r+=t(a.OVERRUN,r-1,e,n);else{for(var f=o&(1<<8-s-1)-1,d=0;d1114111?r+=t(a.OUT_OF_RANGE,r-1-s,e,n,f):f>=55296&&f<=57343?r+=t(a.UTF16_SURROGATE,r-1-s,e,n,f):f<=u?r+=t(a.OVERLONG,r-1-s,e,n,f):n.push(f))}}else n.push(o)}return n}function f(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&s|128);else if(55296==(64512&s)){a++;var c=e.charCodeAt(a);if(a>=e.length||56320!==(64512&c))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&c);n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(63&u|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return Object(i.arrayify)(n)}function d(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function l(e,t){return'"'+u(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?d(e):d(55296+((e-=65536)>>10&1023))+d(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(u(e,t))}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;return u(f(e,t))}},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"f",(function(){return l})),n.d(t,"c",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"n",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return v}));var r=Object.prototype.toString;function a(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function i(e,t){return r.call(e)==="[object "+t+"]"}function o(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function f(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return i(e,"Object")}function l(e){return"undefined"!==typeof Event&&v(e,Event)}function p(e){return"undefined"!==typeof Element&&v(e,Element)}function h(e){return i(e,"RegExp")}function b(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function y(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e){return"number"===typeof e&&e!==e}function v(e,t){try{return e instanceof t}catch(n){return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return r}));var r,a=n(7),i=n(215),o=n(119),s=Object(o.a)(),c="Sentry Logger ",u=["debug","info","warn","error","log","assert"];function f(e){var t=Object(o.a)();if(!("console"in t))return e();var n=t.console,r={};u.forEach((function(e){var a=n[e]&&n[e].__sentry_original__;e in t.console&&a&&(r[e]=n[e],n[e]=a)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function d(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return i.a?u.forEach((function(n){t[n]=function(){for(var t=[],r=0;r0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(i+=""!==i?", ":"",i+="".concat(e," ").concat(t).concat(e>1?"s":""))})),i}t.valueToFrac=function(e,n){return(0,t.valueToBigNumber)(e).div((0,t.valueToBigNumber)(n))},function(e){e[e.millennium=31536e9]="millennium",e[e.century=31536e8]="century",e[e.decade=31536e7]="decade",e[e.year=31536e6]="year",e[e.quarter=7776e6]="quarter",e[e.month=2592e6]="month",e[e.week=6048e5]="week",e[e.day=864e5]="day",e[e.hour=36e5]="hour",e[e.minute=6e4]="minute",e[e.second=1e3]="second",e[e.millisecond=1]="millisecond"}(h||(h={})),t.secondsToDurationString=b;t.blocksToDurationString=function(e){return b((0,t.valueToBigNumber)(e).times(5))};var y={year:"numeric",month:"short",weekday:"short",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"};t.unixSecondsTimestampToDateString=function(e){var n=new Date((0,t.valueToInt)(e)*h.second);return Intl.DateTimeFormat("default",y).format(n)};t.stringToSolidityBytes=function(e){return(0,s.ensureLeading0x)(e)};t.bufferToSolidityBytes=function(e){return(0,t.stringToSolidityBytes)((0,s.bufferToHex)(e))};t.solidityBytesToString=function(e){if(null===e||void 0===e||"string"===typeof e)return e;if(Array.isArray(e)){var t=e.reduce((function(e,t){return e+t.toString(16).padStart(2,"0")}),"");return(0,s.ensureLeading0x)(t)}throw new Error("Unexpected input type for solidity bytes")};t.identity=function(e){return e};t.stringIdentity=function(e){return e},t.tupleParser=function(){for(var e=[],t=0;t=0&&e.indexOf(t,n)===n}(_,l)}return!1}function f(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}var l="{ [native code] }";function p(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){var r=n(126);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;tthis.wordSize&&f.throwError("value out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(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){Object(r.a)(this,e),Object(s.defineReadOnly)(this,"_data",Object(i.arrayify)(t)),Object(s.defineReadOnly)(this,"wordSize",n||32),Object(s.defineReadOnly)(this,"_coerceFunc",a),Object(s.defineReadOnly)(this,"allowLoose",o),this._offset=0}return Object(a.a)(e,[{key:"data",get:function(){return Object(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:f.throwError("data out-of-bounds",c.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.a.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}()},function(e,t,n){"use strict";var r,a=n(122).default,i=n(126).default,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=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)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_NETWORKS=t.getProviderForWallet=t.STATIC_NETWORK_WALLETS=t.Localhost=t.Mainnet=t.Cannoli=t.Baklava=t.Alfajores=t.NetworkNames=t.PROVIDERS=t.WalletIds=t.Platform=t.Priorities=t.WalletTypes=t.SupportedProviders=t.localStorageKeys=void 0;var u,f,d,l,p=n(181),h=c(n(1078)),b=n(418),y=n(534);!function(e){e.lastUsedAddress="react-celo/last-used-address",e.lastUsedNetwork="react-celo/last-used-network",e.lastUsedWalletType="react-celo/last-used-wallet",e.lastUsedWalletId="react-celo/last-used-wallet-id",e.lastUsedWallets="react-celo/last-used-wallets",e.lastUsedIndex="react-celo/last-used-index",e.lastUsedPrivateKey="react-celo/last-used-private-key",e.lastUsedFeeCurrency="react-celo/last-used-fee-currency"}(t.localStorageKeys||(t.localStorageKeys={})),function(e){e.CeloExtensionWallet="Celo Extension Wallet",e.CeloTerminal="Celo Terminal",e.CeloWallet="Celo Wallet",e.CeloDance="CeloDance",e.Injected="Injected",e.Ledger="Ledger",e.MetaMask="MetaMask",e.PrivateKey="Private key",e.Valora="Valora",e.WalletConnect="WalletConnect",e.Steakwallet="Omni",e.Omni="Omni",e.CoinbaseWallet="Coinbase Wallet"}(u=t.SupportedProviders||(t.SupportedProviders={})),function(e){e.Valora="Valora",e.MetaMask="MetaMask",e.WalletConnect="WalletConnect",e.CeloDance="CeloDance",e.CeloWallet="CeloWallet",e.CeloTerminal="CeloTerminal",e.CeloExtensionWallet="CeloExtensionWallet",e.Ledger="Ledger",e.Injected="Injected",e.PrivateKey="PrivateKey",e.Unauthenticated="Unauthenticated",e.CoinbaseWallet="CoinbaseWallet"}(f=t.WalletTypes||(t.WalletTypes={})),function(e){e[e.Default=0]="Default",e[e.Popular=1]="Popular",e[e.Recent=2]="Recent"}(d=t.Priorities||(t.Priorities={})),function(e){e.Mobile="Mobile",e.Desktop="Desktop",e.Web="Web"}(l=t.Platform||(t.Platform={})),t.WalletIds={WalletConnect:"_",Valora:"d01c7758d741b363e637a817a09bcf579feae4db9f5bb16f599fdd1f66e2f974",CeloWallet:"36d854b702817e228d5c853c528d7bdb46f4bb041d255f67b82eb47111e5676b",CeloDance:"TODO",CeloTerminal:"8f8506b7f191a8ab95a8295fc8ca147aa152b1358bee4283d6ad2468d97e0ca4",Omni:"afbd95522f4041c71dd4f1a065f971fd32372865b416f95a0b1db759ae33f2a7"},t.PROVIDERS=(i(r={},u.Valora,{name:u.Valora,type:f.WalletConnect,description:"Connect to Valora, a mobile payments app that works worldwide",icon:h.Valora,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Popular},installURL:"https://valoraapp.com/",walletConnectId:t.WalletIds.Valora,supportedPlatforms:[l.Mobile],getLink:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Mobile;return t===l.Mobile&&"celo://wallet/wc?uri=".concat(e)}}),i(r,u.WalletConnect,{name:u.WalletConnect,type:f.WalletConnect,description:"Scan a QR code to connect your wallet",icon:h.WalletConnect,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Default},supportedPlatforms:[l.Mobile]}),i(r,u.Ledger,{name:u.Ledger,type:f.Ledger,description:"Sync with your Ledger hardware wallet",icon:h.Ledger,canConnect:function(){return!0},showInList:function(){return!p.isMobile},listPriority:function(){return d.Popular}}),i(r,u.CeloWallet,{name:u.CeloWallet,type:f.WalletConnect,description:"Connect to Celo Wallet for web or desktop",icon:h.Celo,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Default},walletConnectId:t.WalletIds.CeloWallet,installURL:"https://celowallet.app/",supportedPlatforms:[l.Desktop,l.Web],getLink:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Mobile;switch(t){case l.Desktop:return"celowallet://wc?uri=".concat(encodeURIComponent(e));case l.Web:return"https://celowallet.app/wc?uri=".concat(encodeURIComponent(e));default:return!1}}}),i(r,u.CeloTerminal,{name:u.CeloTerminal,type:f.WalletConnect,description:"Connect to the Celo Terminal desktop app",icon:h.CeloTerminal,canConnect:function(){return!0},showInList:function(){return!p.isMobile},listPriority:function(){return d.Default},installURL:"https://celoterminal.com/",walletConnectId:t.WalletIds.CeloTerminal,supportedPlatforms:[]}),i(r,u.MetaMask,{name:u.MetaMask,type:f.MetaMask,description:p.isMobile?(0,y.isEthereumFromMetamask)()?"Connect with MetaMask Mobile App":"Open MetaMask Mobile App":"Use the Metamask browser extension. Celo support is limited.",icon:h.MetaMask,canConnect:function(){return p.isMobile||(0,y.isEthereumFromMetamask)()},showInList:function(){return!0},listPriority:function(){return d.Popular},installURL:p.isMobile?"https://metamask.app.link/dapp/"+window.location.href.replace(/^https?:\/\//,""):"https://metamask.app.link/"}),i(r,u.CeloExtensionWallet,{name:u.CeloExtensionWallet,type:f.CeloExtensionWallet,description:"Use a wallet from the the Celo chrome extension",icon:h.ChromeExtensionStore,canConnect:function(){return!!window.celo},showInList:function(){return!p.isMobile},listPriority:function(){return d.Default},installURL:"https://chrome.google.com/webstore/detail/celoextensionwallet/kkilomkmpmkbdnfelcpgckmpcaemjcdh/related"}),i(r,u.Injected,{name:u.Injected,type:f.Injected,description:"Connect any Ethereum wallet to Celo",icon:h.Ethereum,canConnect:function(){return(0,y.isEthereumPresent)()},showInList:function(){return(0,y.isEthereumFromMetamask)()},listPriority:function(){return d.Default}}),i(r,u.PrivateKey,{name:u.PrivateKey,type:f.PrivateKey,description:"Enter a plaintext private key to load your account (testing only)",icon:h.PrivateKey,canConnect:function(){return!0},showInList:function(){return!1},listPriority:function(){return d.Default}}),i(r,u.CeloDance,{name:u.CeloDance,type:f.WalletConnect,description:"Send, vote, and earn rewards within one wallet",icon:h.CeloDance,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Default},installURL:"https://celo.dance/",walletConnectId:t.WalletIds.CeloDance,supportedPlatforms:[l.Mobile],getLink:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Mobile;return t===l.Mobile&&"celo://wallet/wc?uri=".concat(e)}}),i(r,u.Omni,{name:u.Omni,description:"Scan a QR code to connect your wallet",type:f.WalletConnect,icon:h.Omni,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Default},installURL:"https://omniwallet.app.link",walletConnectId:t.WalletIds.Omni,supportedPlatforms:[l.Mobile],getLink:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Mobile;return t===l.Mobile&&"omni://wc?uri=".concat(e)}}),i(r,u.CoinbaseWallet,{name:u.CoinbaseWallet,type:f.CoinbaseWallet,description:"Scan a QR code to connect your wallet",icon:h.CoinbaseWallet,canConnect:function(){return!0},showInList:function(){return!0},listPriority:function(){return d.Default}}),r),t.NetworkNames={Alfajores:"Alfajores",Baklava:"Baklava",Mainnet:"Mainnet",Cannoli:"Cannoli",Localhost:"Localhost"},t.Alfajores={name:t.NetworkNames.Alfajores,rpcUrl:"https://alfajores-forno.celo-testnet.org",graphQl:"https://explorer.celo.org/alfajores/graphiql",explorer:"https://explorer.celo.org/alfajores",chainId:b.ChainId.Alfajores},t.Baklava={name:t.NetworkNames.Baklava,rpcUrl:"https://baklava-forno.celo-testnet.org",graphQl:"https://explorer.celo.org/baklava/graphiql",explorer:"https://explorer.celo.org/baklava",chainId:b.ChainId.Baklava},t.Cannoli={name:t.NetworkNames.Cannoli,rpcUrl:"https://forno.cannoli.celo-testnet.org",graphQl:"https://explorer.celo.org/cannoli/graphiql",explorer:"https://explorer.celo.org/cannoli",chainId:b.ChainId.Cannoli},t.Mainnet={name:t.NetworkNames.Mainnet,rpcUrl:"https://forno.celo.org",graphQl:"https://explorer.celo.org/mainnet/graphiql",explorer:"https://explorer.celo.org/mainnet",chainId:b.ChainId.Mainnet},t.Localhost={name:t.NetworkNames.Localhost,rpcUrl:"http://localhost:8545",graphQl:"",explorer:"",chainId:1337},t.STATIC_NETWORK_WALLETS=[f.CeloExtensionWallet];t.getProviderForWallet=function(e){return e===f.Unauthenticated?null:u[e]},t.DEFAULT_NETWORKS=[t.Mainnet,t.Alfajores,t.Baklava,t.Cannoli].concat(a([]))},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return N}));var r=n(109),a=n(1),i=n.n(a),o=n(156),s=n(1008),c=n(40),u=n(28),f=n(663),d=n.n(f),l=(n(1937),n(82)),p=(n(139),function(e){var t=Object(s.a)();return t.displayName=e,t}),h=p("Router-History"),b=p("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var m=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var v={},g=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(v[e])return v[e];var t=d.a.compile(e);return g<1e4&&(v[e]=t,g++),t}(e)(t,{pretty:!0})}function w(e){var t=e.computedMatch,n=e.to,r=e.push,a=void 0!==r&&r;return i.a.createElement(b.Consumer,null,(function(e){e||Object(c.a)(!1);var r=e.history,s=e.staticContext,f=a?r.push:r.replace,d=Object(o.c)(t?"string"===typeof n?x(n,t.params):Object(u.a)({},n,{pathname:x(n.pathname,t.params)}):n);return s?(f(d),null):i.a.createElement(m,{onMount:function(){f(d)},onUpdate:function(e,t){var n=Object(o.c)(t.to);Object(o.f)(n,Object(u.a)({},d,{key:n.key}))||f(d)},to:n})}))}var _={},k=0;function E(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,i=void 0!==a&&a,o=n.strict,s=void 0!==o&&o,c=n.sensitive,u=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=_[n]||(_[n]={});if(r[e])return r[e];var a=[],i={regexp:d()(e,a,t),keys:a};return k<1e4&&(r[e]=i,k++),i}(n,{end:i,strict:s,sensitive:u}),a=r.regexp,o=r.keys,c=a.exec(e);if(!c)return null;var f=c[0],l=c.slice(1),p=e===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:o.reduce((function(e,t,n){return e[t.name]=l[n],e}),{})}}),null)}var S=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b.Consumer,null,(function(t){t||Object(c.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?E(n.pathname,e.props):t.match,a=Object(u.a)({},t,{location:n,match:r}),o=e.props,s=o.children,f=o.component,d=o.render;return Array.isArray(s)&&function(e){return 0===i.a.Children.count(e)}(s)&&(s=null),i.a.createElement(b.Provider,{value:a},a.match?s?"function"===typeof s?s(a):s:f?i.a.createElement(f,a):d?d(a):null:"function"===typeof s?s(a):null)}))},t}(i.a.Component);function T(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=T(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function M(e){return"string"===typeof e?e:Object(o.e)(e)}function A(e){return function(){Object(c.a)(!1)}}function C(){}i.a.Component;var j=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b.Consumer,null,(function(t){t||Object(c.a)(!1);var n,r,a=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?E(a.pathname,Object(u.a)({},e.props,{path:o})):t.match}})),r?i.a.cloneElement(n,{location:a,computedMatch:r}):null}))},t}(i.a.Component);var P=i.a.useContext;function I(){return P(h)}function N(){return P(b).location}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1800),a=n(1801),i=n(1802),o=n(1803),s=n(1804),c=n(1805);t.compare=r.compare,t.concat=a.concat,t.equals=i.equals,t.fromString=o.fromString,t.toString=s.toString,t.xor=c.xor},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7),a=n(26);function i(e,t){return function(n){if("function"!==typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.project=n,a.count=0,a.thisArg=r||a,a}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(a.a)},function(e,t,n){"use strict";n.r(t),n.d(t,"AccountNameRequiredError",(function(){return f})),n.d(t,"AccountNotSupported",(function(){return d})),n.d(t,"AmountRequired",(function(){return l})),n.d(t,"BluetoothRequired",(function(){return p})),n.d(t,"BtcUnmatchedApp",(function(){return h})),n.d(t,"CantOpenDevice",(function(){return b})),n.d(t,"CantScanQRCode",(function(){return Le})),n.d(t,"CashAddrNotSupported",(function(){return y})),n.d(t,"CurrencyNotSupported",(function(){return m})),n.d(t,"DBNotReset",(function(){return Ye})),n.d(t,"DBWrongPassword",(function(){return $e})),n.d(t,"DeviceAppVerifyNotSupported",(function(){return v})),n.d(t,"DeviceGenuineSocketEarlyClose",(function(){return g})),n.d(t,"DeviceHalted",(function(){return E})),n.d(t,"DeviceInOSUExpected",(function(){return k})),n.d(t,"DeviceNameInvalid",(function(){return S})),n.d(t,"DeviceNotGenuineError",(function(){return x})),n.d(t,"DeviceOnDashboardExpected",(function(){return w})),n.d(t,"DeviceOnDashboardUnexpected",(function(){return _})),n.d(t,"DeviceShouldStayInApp",(function(){return je})),n.d(t,"DeviceSocketFail",(function(){return T})),n.d(t,"DeviceSocketNoBulkStatus",(function(){return O})),n.d(t,"DisconnectedDevice",(function(){return M})),n.d(t,"DisconnectedDeviceDuringOperation",(function(){return A})),n.d(t,"ETHAddressNonEIP",(function(){return De})),n.d(t,"EnpointConfigError",(function(){return C})),n.d(t,"EthAppPleaseEnableContractData",(function(){return j})),n.d(t,"FeeEstimationFailed",(function(){return P})),n.d(t,"FeeNotLoaded",(function(){return Be})),n.d(t,"FeeRequired",(function(){return Fe})),n.d(t,"FeeTooHigh",(function(){return Ue})),n.d(t,"FirmwareNotRecognized",(function(){return I})),n.d(t,"FirmwareOrAppUpdateRequired",(function(){return Ge})),n.d(t,"GasLessThanEstimate",(function(){return se})),n.d(t,"GenuineCheckFailed",(function(){return ze})),n.d(t,"HardResetFail",(function(){return N})),n.d(t,"InvalidAddress",(function(){return D})),n.d(t,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return L})),n.d(t,"InvalidXRPTag",(function(){return R})),n.d(t,"LatestMCUInstalledError",(function(){return B})),n.d(t,"LedgerAPI4xx",(function(){return qe})),n.d(t,"LedgerAPI5xx",(function(){return We})),n.d(t,"LedgerAPIError",(function(){return U})),n.d(t,"LedgerAPIErrorWithMessage",(function(){return V})),n.d(t,"LedgerAPINotAvailable",(function(){return H})),n.d(t,"MCUNotGenuineToDashboard",(function(){return he})),n.d(t,"ManagerAppAlreadyInstalledError",(function(){return z})),n.d(t,"ManagerAppDepInstallRequired",(function(){return W})),n.d(t,"ManagerAppDepUninstallRequired",(function(){return G})),n.d(t,"ManagerAppRelyOnBTCError",(function(){return q})),n.d(t,"ManagerDeviceLockedError",(function(){return K})),n.d(t,"ManagerFirmwareNotEnoughSpaceError",(function(){return $})),n.d(t,"ManagerNotEnoughSpaceError",(function(){return Y})),n.d(t,"ManagerUninstallBTCDep",(function(){return J})),n.d(t,"NetworkDown",(function(){return Z})),n.d(t,"NoAccessToCamera",(function(){return ae})),n.d(t,"NoAddressesFound",(function(){return X})),n.d(t,"NoDBPathGiven",(function(){return Ke})),n.d(t,"NotEnoughBalance",(function(){return Q})),n.d(t,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return re})),n.d(t,"NotEnoughBalanceInParentAccount",(function(){return te})),n.d(t,"NotEnoughBalanceToDelegate",(function(){return ee})),n.d(t,"NotEnoughGas",(function(){return ie})),n.d(t,"NotEnoughSpendableBalance",(function(){return ne})),n.d(t,"NotSupportedLegacyAddress",(function(){return oe})),n.d(t,"PairingFailed",(function(){return He})),n.d(t,"PasswordIncorrectError",(function(){return ue})),n.d(t,"PasswordsDontMatchError",(function(){return ce})),n.d(t,"RecipientRequired",(function(){return be})),n.d(t,"RecommendSubAccountsToEmpty",(function(){return fe})),n.d(t,"RecommendUndelegation",(function(){return de})),n.d(t,"StatusCodes",(function(){return Ze})),n.d(t,"SyncError",(function(){return Ve})),n.d(t,"TimeoutTagged",(function(){return le})),n.d(t,"TransportError",(function(){return Je})),n.d(t,"TransportInterfaceNotAvailable",(function(){return Me})),n.d(t,"TransportOpenUserCancelled",(function(){return Oe})),n.d(t,"TransportRaceCondition",(function(){return Ae})),n.d(t,"TransportStatusError",(function(){return Qe})),n.d(t,"TransportWebUSBGestureRequired",(function(){return Ce})),n.d(t,"UnavailableTezosOriginatedAccountReceive",(function(){return ye})),n.d(t,"UnavailableTezosOriginatedAccountSend",(function(){return me})),n.d(t,"UnexpectedBootloader",(function(){return pe})),n.d(t,"UnknownMCU",(function(){return F})),n.d(t,"UpdateFetchFileFail",(function(){return ve})),n.d(t,"UpdateIncorrectHash",(function(){return ge})),n.d(t,"UpdateIncorrectSig",(function(){return xe})),n.d(t,"UpdateYourApp",(function(){return we})),n.d(t,"UserRefusedAddress",(function(){return ke})),n.d(t,"UserRefusedAllowManager",(function(){return Se})),n.d(t,"UserRefusedDeviceNameChange",(function(){return _e})),n.d(t,"UserRefusedFirmwareUpdate",(function(){return Ee})),n.d(t,"UserRefusedOnDevice",(function(){return Te})),n.d(t,"WebsocketConnectionError",(function(){return Pe})),n.d(t,"WebsocketConnectionFailed",(function(){return Ie})),n.d(t,"WrongAppForCurrency",(function(){return Re})),n.d(t,"WrongDeviceForAccount",(function(){return Ne})),n.d(t,"addCustomErrorDeserializer",(function(){return i})),n.d(t,"createCustomErrorClass",(function(){return o})),n.d(t,"deserializeError",(function(){return s})),n.d(t,"getAltStatusMessage",(function(){return Xe})),n.d(t,"serializeError",(function(){return c}));var r={},a={},i=function(e,t){a[e]=t},o=function(e){var t=function(t,n){Object.assign(this,n),this.name=e,this.message=t||e,this.stack=(new Error).stack};return t.prototype=new Error,r[e]=t,t},s=function e(t){if("object"===typeof t&&t){try{var n=JSON.parse(t.message);n.message&&n.name&&(t=n)}catch(d){}var i=void 0;if("string"===typeof t.name){var s=t.name,c=a[s];if(c)i=c(t);else{var u="Error"===s?Error:r[s];u||(console.warn("deserializing an unknown class '"+s+"'"),u=o(s)),i=Object.create(u.prototype);try{for(var f in t)t.hasOwnProperty(f)&&(i[f]=t[f])}catch(d){}}}else i=new Error(t.message);return!i.stack&&Error.captureStackTrace&&Error.captureStackTrace(i,e),i}return new Error(String(t))},c=function(e){return e?"object"===typeof e?u(e,[]):"function"===typeof e?"[Function: "+(e.name||"anonymous")+"]":e:e};function u(e,t){var n={};t.push(e);for(var r=0,a=Object.keys(e);r=256)throw new Error("Depth too large!");return _(Object(o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(o.hexlify)(this.depth),this.parentFingerprint,Object(o.hexZeroPad)(Object(o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?Object(o.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(E,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+="/"+(2147483647&t));var r=new Uint8Array(37);if(t&g){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Object(o.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set(Object(o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)r[33+(a>>3)]=t>>24-a&255;var i=Object(o.arrayify)(Object(l.a)(p.a.sha512,this.chainCode,r)),c=i.slice(0,32),u=i.slice(32),f=null,h=null;this.privateKey?f=w(s.a.from(c).add(this.privateKey).mod(m)):h=new d.SigningKey(Object(o.hexlify)(c))._addPoint(this.publicKey);var b=n,y=this.mnemonic;return y&&(b=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(E,f,h,this.fingerprint,w(u),t,this.depth+1,b)}},{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=g)throw new Error("invalid path index - "+a);n=n._derive(g+i)}else{if(!a.match(/^[0-9]+$/))throw new Error("invalid path component - "+a);var o=parseInt(a);if(o>=g)throw new Error("invalid path index - "+a);n=n._derive(o)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=Object(o.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var a=Object(o.arrayify)(Object(l.a)(p.a.sha512,v,r));return new e(E,w(a.slice(0,32)),null,"0x00000000",w(a.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=A(M(t,r=k(r)),r),e._fromSeed(O(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&&_(n.slice(0,78))===t||y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],a=Object(o.hexlify)(n.slice(5,9)),s=parseInt(Object(o.hexlify)(n.slice(9,13)).substring(2),16),c=Object(o.hexlify)(n.slice(13,45)),u=n.slice(45,78);switch(Object(o.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(E,null,Object(o.hexlify)(u),a,c,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new e(E,Object(o.hexlify)(u.slice(1)),null,a,c,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function O(e,t){t||(t="");var n=Object(c.f)("mnemonic"+t,c.a.NFKD);return Object(u.a)(Object(c.f)(e,c.a.NFKD),n,2048,64,"sha512")}function M(e,t){t=k(t),y.checkNormalize();var n=t.split(e);if(n.length%3!==0)throw new Error("invalid mnemonic");for(var r=Object(o.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var u=32*n.length/3,f=x(n.length/3);if((Object(o.arrayify)(Object(l.c)(r.slice(0,u/8)))[0]&f)!==(r[r.length-1]&f))throw new Error("invalid checksum");return Object(o.hexlify)(r.slice(0,u/8))}function A(e,t){if(t=k(t),(e=Object(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,s=Object(o.arrayify)(Object(l.c)(e))[0]&x(i);return n[n.length-1]<<=i,n[n.length-1]|=s>>8-i,t.join(n.map((function(e){return t.getWord(e)})))}function C(e,t){try{return M(e,t),!0}catch(n){}return!1}function j(e){return("number"!==typeof e||e<0||e>=g||e%1)&&y.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},function(e,t,n){"use strict";function r(e){return e&&"function"===typeof e.schedule}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";(function(e){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a0||(o[a[s].index]=i[c].index,s++),c++)}return o},t.mapAddressListDataOnto=function(e,r,a,i){var o=n([],Array(r.length).fill(i),!0);if(0===e.length)return o;for(var s=(0,t.mapAddressListOnto)(r,a),c=0;c=0&&(o[s[c]]=e[c]);return o}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(276),i=a.keccak224,o=a.keccak384,s=a.keccak256,c=a.keccak512,u=n(1479),f=n(123),d=n(221),l=n(36),p=n(170),h=n(59).Buffer;Object.assign(t,n(326)),t.MAX_INTEGER=new l("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new l("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.SHA3_NULL_S=t.KECCAK256_NULL_S,t.KECCAK256_NULL=h.from(t.KECCAK256_NULL_S,"hex"),t.SHA3_NULL=t.KECCAK256_NULL,t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.SHA3_RLP_ARRAY_S=t.KECCAK256_RLP_ARRAY_S,t.KECCAK256_RLP_ARRAY=h.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.SHA3_RLP_ARRAY=t.KECCAK256_RLP_ARRAY,t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.SHA3_RLP_S=t.KECCAK256_RLP_S,t.KECCAK256_RLP=h.from(t.KECCAK256_RLP_S,"hex"),t.SHA3_RLP=t.KECCAK256_RLP,t.BN=l,t.rlp=d,t.secp256k1=u,t.zeros=function(e){return h.allocUnsafe(e).fill(0)},t.zeroAddress=function(){var e=t.zeros(20);return t.bufferToHex(e)},t.setLengthLeft=t.setLength=function(e,n,r){var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===n.toString();)n=(e=e.slice(1))[0];return e},t.toBuffer=function(e){if(!h.isBuffer(e))if(Array.isArray(e))e=h.from(e);else if("string"===typeof e)e=t.isHexString(e)?h.from(t.padToEven(t.stripHexPrefix(e)),"hex"):h.from(e);else if("number"===typeof e)e=t.intToBuffer(e);else if(null===e||void 0===e)e=h.allocUnsafe(0);else if(l.isBN(e))e=e.toArrayLike(h);else{if(!e.toArray)throw new Error("invalid type");e=h.from(e.toArray())}return e},t.bufferToInt=function(e){return new l(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new l(e).fromTwos(256)},t.toUnsigned=function(e){return h.from(e.toTwos(256).toArray())},t.keccak=function(e,n){switch(e=t.toBuffer(e),n||(n=256),n){case 224:return i(e);case 256:return s(e);case 384:return o(e);case 512:return c(e);default:throw new Error("Invald algorithm: keccak"+n)}},t.keccak256=function(e){return t.keccak(e)},t.sha3=t.keccak,t.sha256=function(e){return e=t.toBuffer(e),p("sha256").update(e).digest()},t.ripemd160=function(e,n){e=t.toBuffer(e);var r=p("rmd160").update(e).digest();return!0===n?t.setLength(r,32):r},t.rlphash=function(e){return t.keccak(d.encode(e))},t.isValidPrivate=function(e){return u.privateKeyVerify(e)},t.isValidPublic=function(e,t){return 64===e.length?u.publicKeyVerify(h.concat([h.from([4]),e])):!!t&&u.publicKeyVerify(e)},t.pubToAddress=t.publicToAddress=function(e,n){return e=t.toBuffer(e),n&&64!==e.length&&(e=u.publicKeyConvert(e,!1).slice(1)),f(64===e.length),t.keccak(e).slice(-20)};var b=t.privateToPublic=function(e){return e=t.toBuffer(e),u.publicKeyCreate(e,!1).slice(1)};t.importPublic=function(e){return 64!==(e=t.toBuffer(e)).length&&(e=u.publicKeyConvert(e,!1).slice(1)),e},t.ecsign=function(e,t){var n=u.sign(e,t),r={};return r.r=n.signature.slice(0,32),r.s=n.signature.slice(32,64),r.v=n.recovery+27,r},t.hashPersonalMessage=function(e){var n=t.toBuffer("\x19Ethereum Signed Message:\n"+e.length.toString());return t.keccak(h.concat([n,e]))},t.ecrecover=function(e,n,r,a){var i=h.concat([t.setLength(r,32),t.setLength(a,32)],64),o=n-27;if(0!==o&&1!==o)throw new Error("Invalid signature v value");var s=u.recover(e,i,o);return u.publicKeyConvert(s,!1).slice(1)},t.toRpcSig=function(e,n,r){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return t.bufferToHex(h.concat([t.setLengthLeft(n,32),t.setLengthLeft(r,32),t.toBuffer(e-27)]))},t.fromRpcSig=function(e){if(65!==(e=t.toBuffer(e)).length)throw new Error("Invalid signature length");var n=e[64];return n<27&&(n+=27),{v:n,r:e.slice(0,32),s:e.slice(32,64)}},t.privateToAddress=function(e){return t.publicToAddress(b(e))},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===t.addHexPrefix(e)},t.toChecksumAddress=function(e){e=t.stripHexPrefix(e).toLowerCase();for(var n=t.keccak(e).toString("hex"),r="0x",a=0;a=8?r+=e[a].toUpperCase():r+=e[a];return r},t.isValidChecksumAddress=function(e){return t.isValidAddress(e)&&t.toChecksumAddress(e)===e},t.generateAddress=function(e,n){return e=t.toBuffer(e),n=(n=new l(n)).isZero()?null:h.from(n.toArray()),t.rlphash([e,n]).slice(-20)},t.isPrecompiled=function(e){var n=t.unpad(e);return 1===n.length&&n[0]>=1&&n[0]<=8},t.addHexPrefix=function(e){return"string"!==typeof e||t.isHexPrefixed(e)?e:"0x"+e},t.isValidSignature=function(e,t,n,r){var a=new l("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),i=new l("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return 32===t.length&&32===n.length&&((27===e||28===e)&&(t=new l(t),n=new l(n),!(t.isZero()||t.gt(i)||n.isZero()||n.gt(i))&&(!1!==r||1!==new l(n).cmp(a))))},t.baToJSON=function(e){if(h.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],r=0;r=a.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===a.length||!n.length||f(n.length===a.length,"The field "+n.name+" must have byte length of "+n.length),e.raw[r]=a}e._fields.push(n.name),Object.defineProperty(e,n.name,{enumerable:!0,configurable:!0,get:a,set:i}),n.default&&(e[n.name]=n.default),n.alias&&Object.defineProperty(e,n.alias,{enumerable:!1,configurable:!0,set:i,get:a})})),a)if("string"===typeof a&&(a=h.from(t.stripHexPrefix(a),"hex")),h.isBuffer(a)&&(a=d.decode(a)),Array.isArray(a)){if(a.length>e._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(n,r){e[e._fields[r]]=t.toBuffer(n)}))}else{if("object"!==("undefined"===typeof a?"undefined":r(a)))throw new Error("invalid data");var i=Object.keys(a);n.forEach((function(t){-1!==i.indexOf(t.name)&&(e[t.name]=a[t.name]),-1!==i.indexOf(t.alias)&&(e[t.alias]=a[t.alias])}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"commify",(function(){return o})),n.d(t,"formatUnits",(function(){return s})),n.d(t,"parseUnits",(function(){return c})),n.d(t,"formatEther",(function(){return u})),n.d(t,"parseEther",(function(){return f}));var r=n(1939),a=new(n(13).Logger)("units/5.6.1"),i=["wei","kwei","mwei","gwei","szabo","finney","ether"];function o(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&a.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 i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);for(var o=[];n.length;){if(n.length<=3){o.unshift(n);break}var s=n.length-3;o.unshift(n.substring(s)),n=n.substring(0,s)}return r+o.join(",")+i}function s(e,t){if("string"===typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return Object(r.b)(e,null!=t?t:18)}function c(e,t){if("string"!==typeof e&&a.throwArgumentError("value must be a string","value",e),"string"===typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return Object(r.c)(e,null!=t?t:18)}function u(e){return s(e,18)}function f(e){return c(e,18)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return T})),n.d(t,"f",(function(){return O})),n.d(t,"b",(function(){return A}));var r=n(17),a=n(19),i=n(8),o=n(9),s=n(44),c=n(10),u=n(13),f=n(212),d=new u.Logger(f.a),l={},p={calldata:!0,memory:!0,storage:!0},h={calldata:!0,memory:!0};function b(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)&&d.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)Object(c.defineReadOnly)(e,n,t[n])}var m=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),v=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,n){Object(i.a)(this,e),t!==l&&d.throwError("use fromString",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(v);y(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 Object(o.a)(e,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.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!==m.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+")"):n+=this.type,e!==m.sighash&&(!0===this.indexed&&(n+=" indexed"),e===m.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(l,{name:t.name||null,type:C(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){d.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,s=0;s2&&d.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||d.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.a.from(n[1]),n[0]):e}function E(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&&d.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&d.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||d.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&&d.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&&d.throwArgumentError("unable to determine stateMutability","value",e),t}var T=function(e){Object(r.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.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===m.sighash&&d.throwError("cannot format a constructor for sighash",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===m.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&&d.throwArgumentError("invalid constructor object","value",e);var t=S(e);t.constant&&d.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.a.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=k(e,t)).match(I);return r&&"constructor"===r[1].trim()||d.throwArgumentError("invalid constructor string","value",e),t.inputs=x(r[2].trim(),!1),E(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(w),O=function(e){Object(r.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.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!==m.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ",e!==m.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&&d.throwArgumentError("invalid function object","value",e);var t=S(e),r={type:e.type,name:P(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.a.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=k(e,t)).split(" returns ");r.length>2&&d.throwArgumentError("invalid function string","value",e);var a=r[0].match(I);if(a||d.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&P(t.name),t.inputs=x(a[2],!1),E(a[3].trim(),t),r.length>1){var i=r[1].match(I);""==i[1].trim()&&""==i[3].trim()||d.throwArgumentError("unexpected tokens","value",e),t.outputs=x(i[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(T);function M(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||d.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var A=function(e){Object(r.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.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!==m.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.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&&d.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:P(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return M(new n(l,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(I);return r||d.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&P(t.name),t.inputs=x(r[2],!1),M(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(w);function C(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var j=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function P(e){return e&&e.match(j)||d.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var I=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(263);function a(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(262);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){var r;!function(a){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",f=u+"Number primitive has more than 15 significant digits: ",d=1e14,l=14,p=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,y=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function v(e){for(var t,n,r=1,a=e.length,i=e[0]+"";ru^n?1:-1;for(s=(c=a.length)<(u=i.length)?c:u,o=0;oi[o]^n?1:-1;return c==u?0:c>u^n?1:-1}function x(e,t,n,r){if(en||e!==c(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/l)==t&&e.c[t]%2!=0}function _(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tC?m.c=m.e=null:e.e=10;d/=10,u++);return void(u>C?m.c=m.e=null:(m.e=u,m.c=[e]))}y=String(e)}else{if(!o.test(y=String(e)))return a(m,y,h);m.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(d=y.search(/e/i))>0?(u<0&&(u=d),u+=+y.slice(d+1),y=y.substring(0,d)):u<0&&(u=y.length)}else{if(x(t,2,R.length,"Base"),10==t&&D)return V(m=new L(e),S+m.e+1,T);if(y=String(e),h="number"==typeof e){if(0*e!=0)return a(m,y,h,t);if(m.s=1/e<0?(y=y.slice(1),-1):1,L.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(f+e)}else m.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=R.slice(0,t),u=d=0,b=y.length;du){u=b;continue}}else if(!s&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){s=!0,d=-1,u=0;continue}return a(m,String(e),h,t)}h=!1,(u=(y=r(y,t,10,m.s)).indexOf("."))>-1?y=y.replace(".",""):u=y.length}for(d=0;48===y.charCodeAt(d);d++);for(b=y.length;48===y.charCodeAt(--b););if(y=y.slice(d,++b)){if(b-=d,h&&L.DEBUG&&b>15&&(e>p||e!==c(e)))throw Error(f+m.s*e);if((u=u-d-1)>C)m.c=m.e=null;else if(u=M)?_(c,o):k(c,o,"0");else if(i=(e=V(new L(e),t,n)).e,s=(c=v(e.c)).length,1==r||2==r&&(t<=i||i<=O)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function F(e,t){for(var n,r=1,a=new L(e[0]);r=10;a/=10,r++);return(n=r+n*l-1)>C?e.c=e.e=null:n=10;u/=10,a++);if((i=t-a)<0)i+=l,o=t,b=(f=y[p=0])/m[a-o-1]%10|0;else if((p=s((i+1)/l))>=y.length){if(!r)break e;for(;y.length<=p;y.push(0));f=b=0,a=1,o=(i%=l)-l+1}else{for(f=u=y[p],a=1;u>=10;u/=10,a++);b=(o=(i%=l)-l+a)<0?0:f/m[a-o-1]%10|0}if(r=r||t<0||null!=y[p+1]||(o<0?f:f%m[a-o-1]),r=n<4?(b||r)&&(0==n||n==(e.s<0?3:2)):b>5||5==b&&(4==n||r||6==n&&(i>0?o>0?f/m[a-o]:0:y[p-1])%10&1||n==(e.s<0?8:7)),t<1||!y[0])return y.length=0,r?(t-=e.e+1,y[0]=m[(l-t%l)%l],e.e=-t||0):y[0]=e.e=0,e;if(0==i?(y.length=p,u=1,p--):(y.length=p+1,u=m[l-i],y[p]=o>0?c(f/m[a-o]%m[o])*u:0),r)for(;;){if(0==p){for(i=1,o=y[0];o>=10;o/=10,i++);for(o=y[0]+=u,u=1;o>=10;o/=10,u++);i!=u&&(e.e++,y[0]==d&&(y[0]=1));break}if(y[p]+=u,y[p]!=d)break;y[p--]=0,u=1}for(i=y.length;0===y[--i];y.pop());}e.e>C?e.c=e.e=null:e.e=M?_(t,n):k(t,n,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(x(n=e[t],0,y,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(x(n=e[t],0,8,t),T=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(x(n[0],-y,0,t),x(n[1],0,y,t),O=n[0],M=n[1]):(x(n,-y,y,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)x(n[0],-y,-1,t),x(n[1],1,y,t),A=n[0],C=n[1];else{if(x(n,-y,y,t),!n)throw Error(u+t+" cannot be zero: "+n);A=-(C=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!n,Error(u+"crypto unavailable");j=n}else j=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(x(n=e[t],0,9,t),P=n),e.hasOwnProperty(t="POW_PRECISION")&&(x(n=e[t],0,y,t),I=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);N=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);D="0123456789"==n.slice(0,10),R=n}}return{DECIMAL_PLACES:S,ROUNDING_MODE:T,EXPONENTIAL_AT:[O,M],RANGE:[A,C],CRYPTO:j,MODULO_MODE:P,POW_PRECISION:I,FORMAT:N,ALPHABET:R}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-y&&a<=y&&a===c(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%l)<1&&(t+=l),String(r[0]).length==t){for(t=0;t=d||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return F(arguments,i.lt)},L.minimum=L.min=function(){return F(arguments,i.gt)},L.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return c(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,a,i,o,f=0,d=[],p=new L(E);if(null==e?e=S:x(e,0,y),i=s(e/l),j)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));f>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[f]=r[0],n[f+1]=r[1]):(d.push(o%1e14),f+=2);f=i/2}else{if(!crypto.randomBytes)throw j=!1,Error(u+"crypto unavailable");for(n=crypto.randomBytes(i*=7);f=9e15?crypto.randomBytes(7).copy(n,f):(d.push(o%1e14),f+=7);f=i/7}if(!j)for(;f=10;o/=10,f++);fn-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,u,f,d,l,p,h,b,y=r.indexOf("."),m=S,g=T;for(y>=0&&(d=I,I=0,r=r.replace(".",""),p=(b=new L(a)).pow(r.length-y),I=d,b.c=t(k(v(p.c),p.e,"0"),10,i,e),b.e=b.c.length),f=d=(h=t(r,a,i,s?(c=R,e):(c=e,R))).length;0==h[--d];h.pop());if(!h[0])return c.charAt(0);if(y<0?--f:(p.c=h,p.e=f,p.s=o,h=(p=n(p,b,m,g,i)).c,l=p.r,f=p.e),y=h[u=f+m+1],d=i/2,l=l||u<0||null!=h[u+1],l=g<4?(null!=y||l)&&(0==g||g==(p.s<0?3:2)):y>d||y==d&&(4==g||l||6==g&&1&h[u-1]||g==(p.s<0?8:7)),u<1||!h[0])r=l?k(c.charAt(1),-m,c.charAt(0)):c.charAt(0);else{if(h.length=u,l)for(--i;++h[--u]>i;)h[u]=0,u||(++f,h=[1].concat(h));for(d=h.length;!h[--d];);for(y=0,r="";y<=d;r+=c.charAt(h[y++]));r=k(r,f,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,u=t%b,f=t/b|0;for(e=e.slice();c--;)s=((a=u*(i=e[c]%b)+(r=f*i+(o=e[c]/b|0)*u)%b*b+s)/n|0)+(r/b|0)+f*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var u,f,p,h,b,y,v,g,x,w,_,k,E,S,T,O,M,A=r.s==a.s?1:-1,C=r.c,j=a.c;if(!C||!C[0]||!j||!j[0])return new L(r.s&&a.s&&(C?!j||C[0]!=j[0]:j)?C&&0==C[0]||!j?0*A:A/0:NaN);for(x=(g=new L(A)).c=[],A=i+(f=r.e-a.e)+1,s||(s=d,f=m(r.e/l)-m(a.e/l),A=A/l|0),p=0;j[p]==(C[p]||0);p++);if(j[p]>(C[p]||0)&&f--,A<0)x.push(1),h=!0;else{for(S=C.length,O=j.length,p=0,A+=2,(b=c(s/(j[0]+1)))>1&&(j=e(j,b,s),C=e(C,b,s),O=j.length,S=C.length),E=O,_=(w=C.slice(0,O)).length;_=s/2&&T++;do{if(b=0,(u=t(j,w,O,_))<0){if(k=w[0],O!=_&&(k=k*s+(w[1]||0)),(b=c(k/T))>1)for(b>=s&&(b=s-1),v=(y=e(j,b,s)).length,_=w.length;1==t(y,w,v,_);)b--,n(y,O=10;A/=10,p++);V(g,i+(g.e=p+f*l-1)+1,o,h)}else g.e=f,g.r=+h;return g}}(),a=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,a=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,o,s,c){var f,d=s?o:o.replace(a,"");if(r.test(d))i.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,(function(e,t,n){return f="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=f?e:t})),c&&(f=c,d=d.replace(t,"$1").replace(n,"0.$1")),o!=d))return new L(d,f);if(L.DEBUG)throw Error(u+"Not a"+(c?" base "+c:"")+" number: "+o);i.s=null}i.c=i.e=null}}(),i.absoluteValue=i.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return g(this,new L(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,a,i=this;if(null!=e)return x(e,0,y),null==t?t=T:x(t,0,8),V(new L(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-m(this.e/l))*l,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,t){return n(this,new L(e,t),S,T)},i.dividedToIntegerBy=i.idiv=function(e,t){return n(this,new L(e,t),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,a,i,o,f,d,p,h=this;if((e=new L(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new L(t)),o=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new L(Math.pow(+H(h),o?2-w(e):+H(e))),t?p.mod(t):p;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(r=!f&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||o&&h.c[1]>=24e7:h.c[0]<8e13||o&&h.c[0]<=9999975e7)))return i=h.s<0&&w(e)?-0:0,h.e>-1&&(i=1/i),new L(f?1/i:i);I&&(i=s(I/l+2))}for(o?(n=new L(.5),f&&(e.s=1),d=w(e)):d=(a=Math.abs(+H(e)))%2,p=new L(E);;){if(d){if(!(p=p.times(h)).c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(t))}if(a){if(0===(a=c(a/2)))break;d=a%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)d=w(e);else{if(0===(a=+H(e)))break;d=a%2}h=h.times(h),i?h.c&&h.c.length>i&&(h.c.length=i):r&&(h=h.mod(t))}return r?p:(f&&(p=E.div(p)),t?p.mod(t):i?V(p,I,T,undefined):p)},i.integerValue=function(e){var t=new L(this);return null==e?e=T:x(e,0,8),V(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===g(this,new L(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return g(this,new L(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=g(this,new L(e,t)))||0===t},i.isInteger=function(){return!!this.c&&m(this.e/l)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return g(this,new L(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return-1===(t=g(this,new L(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new L(e,t)).s,!s||!t)return new L(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/l,u=e.e/l,f=o.c,p=e.c;if(!c||!u){if(!f||!p)return f?(e.s=-t,e):new L(p?o:NaN);if(!f[0]||!p[0])return p[0]?(e.s=-t,e):new L(f[0]?o:3==T?-0:0)}if(c=m(c),u=m(u),f=f.slice(),s=c-u){for((i=s<0)?(s=-s,a=f):(u=c,a=p),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=f.length)<(t=p.length))?s:t,s=t=0;t0)for(;t--;f[n++]=0);for(t=d-1;r>s;){if(f[--r]=0;){for(n=0,h=k[a]%x,y=k[a]/x|0,i=a+(o=c);i>a;)n=((u=h*(u=_[--o]%x)+(s=y*u+(f=_[o]/x|0)*h)%x*x+v[i]+n)/g|0)+(s/x|0)+y*f,v[i--]=u%g;v[i]=n}return n?++r:v.splice(0,1),U(e,v,r)},i.negated=function(){var e=new L(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/l,o=e.e/l,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new L(a/0);if(!s[0]||!c[0])return c[0]?e:new L(s[0]?r:0*a)}if(i=m(i),o=m(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/d|0,s[t]=d===s[t]?0:s[t]%d;return a&&(s=[a].concat(s),++o),U(e,s,o)},i.precision=i.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return x(e,1,y),null==t?t=T:x(t,0,8),V(new L(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*l+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},i.shiftedBy=function(e){return x(e,-9007199254740991,p),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,u=o.e,f=S+4,d=new L("0.5");if(1!==c||!s||!s[0])return new L(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+H(o)))||c==1/0?(((t=v(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=m((u+1)/2)-(u<0||u%2),r=new L(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new L(c+""),r.c[0])for((c=(u=r.e)+f)<3&&(c=0);;)if(i=r,r=d.times(i.plus(n(o,i,f,1))),v(i.c).slice(0,c)===(t=v(r.c)).slice(0,c)){if(r.e0&&b>0){for(i=b%s||s,d=h.substr(0,i);i0&&(d+=f+h.slice(i)),p&&(d="-"+d)}r=l?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?l.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):l):d}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(e){var t,r,a,i,o,s,c,f,d,p,b,y,m=this,g=m.c;if(null!=e&&(!(c=new L(e)).isInteger()&&(c.c||1!==c.s)||c.lt(E)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+H(c));if(!g)return new L(m);for(t=new L(E),d=r=new L(E),a=f=new L(E),y=v(g),o=t.e=y.length-m.e-1,t.c[0]=h[(s=o%l)<0?l+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=C,C=1/0,c=new L(y),f.c[0]=0;p=n(c,t,0,1),1!=(i=r.plus(p.times(a))).comparedTo(e);)r=a,a=i,d=f.plus(p.times(i=d)),f=i,t=c.minus(p.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),f=f.plus(i.times(d)),r=r.plus(i.times(a)),f.s=d.s=m.s,b=n(d,a,o*=2,T).minus(m).abs().comparedTo(n(f,r,o,T).minus(m).abs())<1?[d,a]:[f,r],C=s,b},i.toNumber=function(){return+H(this)},i.toPrecision=function(e,t){return null!=e&&x(e,1,y),B(this,e,t,2)},i.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?_(v(n.c),i):k(v(n.c),i,"0"):10===e&&D?t=k(v((n=V(new L(n),S+i+1,T)).c),n.e,"0"):(x(e,2,R.length,"Base"),t=r(k(v(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return H(this)},i._isBigNumber=!0,null!=t&&L.set(t),L}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(37),a=new r.a((function(e){return e.complete()}));function i(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):a}},function(e,t,n){"use strict";n.r(t),n.d(t,"_fetchData",(function(){return b})),n.d(t,"fetchJson",(function(){return y})),n.d(t,"poll",(function(){return m}));var r=n(2),a=n(477),i=n(6),o=n(10),s=n(87),c=n(13),u=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};function f(e,t){return u(this,void 0,void 0,Object(r.a)().mark((function n(){var a,o,s,c;return Object(r.a)().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"),n.next=6,fetch(e,a);case 6:return o=n.sent,n.next=9,o.arrayBuffer();case 9:return s=n.sent,c={},o.headers.forEach?o.headers.forEach((function(e,t){c[t.toLowerCase()]=e})):o.headers.keys().forEach((function(e){c[e.toLowerCase()]=o.headers.get(e)})),n.abrupt("return",{headers:c,statusCode:o.status,statusMessage:o.statusText,body:Object(i.arrayify)(new Uint8Array(s))});case 13:case"end":return n.stop()}}),n)})))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},l=new c.Logger("web/5.6.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(Object(i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Object(s.h)(e)}catch(n){}return Object(i.hexlify)(e)}return e}function b(e,t,n){var i="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(i>0&&i%1===0,"invalid connection throttle limit","connection.throttleLimit",i);var o="object"===typeof e?e.throttleCallback:null,u="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(u>0&&u%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",u);var b="object"===typeof e&&!!e.errorPassThrough,y={},m=null,v={method:"GET"},g=!1,x=12e4;if("string"===typeof e)m=e;else if("object"===typeof e){if(null!=e&&null!=e.url||l.throwArgumentError("missing URL","connection.url",e),m=e.url,"number"===typeof e.timeout&&e.timeout>0&&(x=e.timeout),e.headers)for(var w in e.headers)y[w.toLowerCase()]={key:w,value:String(e.headers[w])},["if-none-match","if-modified-since"].indexOf(w.toLowerCase())>=0&&(g=!0);if(v.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==m.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:m,user:e.user,password:"[REDACTED]"});var _=e.user+":"+e.password;y.authorization={key:"Authorization",value:"Basic "+Object(a.b)(Object(s.f)(_))}}null!=e.skipFetchSetup&&(v.skipFetchSetup=!!e.skipFetchSetup)}var k=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),E=m?m.match(k):null;if(E)try{var S={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]},body:Object(a.a)(E[2])},T=S.body;return n&&(T=n(S.body,S)),Promise.resolve(T)}catch(C){l.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:h(E[1],E[2]),error:C,requestBody:null,requestMethod:"GET",url:m})}t&&(v.method="POST",v.body=t,null==y["content-type"]&&(y["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==y["content-length"]&&(y["content-length"]={key:"Content-Length",value:String(t.length)}));var O={};Object.keys(y).forEach((function(e){var t=y[e];O[t.key]=t.value})),v.headers=O;var M=function(){var e=null;return{promise:new Promise((function(t,n){x&&(e=setTimeout((function(){null!=e&&(e=null,n(l.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:h(v.body,O["content-type"]),requestMethod:v.method,timeout:x,url:m})))}),x))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),A=function(){return d(this,void 0,void 0,Object(r.a)().mark((function e(){var t,a,s,d,y,x,w,_,k,E;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t=300)&&(M.cancel(),l.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:h(w,a.headers?a.headers["content-type"]:null),requestBody:h(v.body,O["content-type"]),requestMethod:v.method,url:m})),!n){e.next=60;break}return e.prev=37,e.next=40,n(w,a);case 40:return _=e.sent,M.cancel(),e.abrupt("return",_);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(o()&&r(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));ut.ceiling&&(u=t.ceiling),setTimeout(a,u)}return null}),(function(e){o()&&r(e)}))}()}))}},function(e,t,n){"use strict";(function(t,r){var a=65536,i=4294967295;var o=n(59).Buffer,s=t.crypto||t.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>a)for(var c=0;c"}}function h(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function b(e,t){void 0===t&&(t=40);var n=Object.keys(l(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(o.d)(n[0],t);for(var r=n.length;r>0;r--){var a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length?a:Object(o.d)(a,t)}return""}function y(e){var t,n;if(Object(i.i)(e)){var a={};try{for(var o=Object(r.__values)(Object.keys(e)),s=o.next();!s.done;s=o.next()){var c=s.value;"undefined"!==typeof e[c]&&(a[c]=y(e[c]))}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(y):e}},function(e,t,n){var r=n(1074),a=n(1075),i=n(532),o=n(1076);e.exports=function(e){return r(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(t){var r=n(116);function a(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a=0;u--)if(f[u]!==d[u])return!1;for(u=f.length-1;u>=0;u--)if(!g(e[s=f[u]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,r){var a;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&m(a,n,"Missing expected exception"+r);var i="string"===typeof r,s=!e&&a&&!n;if((!e&&o.isError(a)&&i&&w(a,n)||s)&&m(a,n,"Got unwanted exception"+r),e&&a&&n&&!w(a,n)||!e&&a)throw a}l.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return b(y(e.actual),128)+" "+e.operator+" "+b(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=h(t),i=r.indexOf("\n"+a);if(i>=0){var o=r.indexOf("\n",i+1);r=r.substring(o+1)}this.stack=r}}},o.inherits(l.AssertionError,Error),l.fail=m,l.ok=v,l.equal=function(e,t,n){e!=t&&m(e,t,n,"==",l.equal)},l.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",l.notEqual)},l.deepEqual=function(e,t,n){g(e,t,!1)||m(e,t,n,"deepEqual",l.deepEqual)},l.deepStrictEqual=function(e,t,n){g(e,t,!0)||m(e,t,n,"deepStrictEqual",l.deepStrictEqual)},l.notDeepEqual=function(e,t,n){g(e,t,!1)&&m(e,t,n,"notDeepEqual",l.notDeepEqual)},l.notDeepStrictEqual=function e(t,n,r){g(t,n,!0)&&m(t,n,r,"notDeepStrictEqual",e)},l.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",l.strictEqual)},l.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",l.notStrictEqual)},l.throws=function(e,t,n){_(!0,e,t,n)},l.doesNotThrow=function(e,t,n){_(!1,e,t,n)},l.ifError=function(e){if(e)throw e},l.strict=r((function e(t,n){t||m(t,!0,n,"==",e)}),l,{equal:l.strictEqual,deepEqual:l.deepStrictEqual,notEqual:l.notStrictEqual,notDeepEqual:l.notDeepStrictEqual}),l.strict.strict=l.strict;var k=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(52))},function(e,t){var n="0123456789abcdef".split(""),r=[1,256,65536,16777216],a=[0,8,16,24],i=[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],o=function(e){var t,n,r,a,o,s,c,u,f,d,l,p,h,b,y,m,v,g,x,w,_,k,E,S,T,O,M,A,C,j,P,I,N,R,D,L,B,F,U,V,H,z,q,W,G,K,$,Y,J,Z,X,Q,ee,te,ne,re,ae,ie,oe,se,ce,ue,fe;for(r=0;r<48;r+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>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^(u<<1|f>>>31),n=o^(f<<1|u>>>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=s^(d<<1|l>>>31),n=c^(l<<1|d>>>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=u^(p<<1|h>>>31),n=f^(h<<1|p>>>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=d^(a<<1|o>>>31),n=l^(o<<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,b=e[0],y=e[1],K=e[11]<<4|e[10]>>>28,$=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,C=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,x=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,T=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,O=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,V=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,E=e[49]<<14|e[48]>>>18,e[0]=b^~m&g,e[1]=y^~v&x,e[10]=S^~O&A,e[11]=T^~M&C,e[20]=R^~L&F,e[21]=D^~B&U,e[30]=W^~K&Y,e[31]=G^~$&J,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=m^~g&w,e[3]=v^~x&_,e[12]=O^~A&j,e[13]=M^~C&P,e[22]=L^~F&V,e[23]=B^~U&H,e[32]=K^~Y&Z,e[33]=$^~J&X,e[42]=re^~ie&se,e[43]=ae^~oe&ce,e[4]=g^~w&k,e[5]=x^~_&E,e[14]=A^~j&I,e[15]=C^~P&N,e[24]=F^~V&z,e[25]=U^~H&q,e[34]=Y^~Z&Q,e[35]=J^~X&ee,e[44]=ie^~se&ue,e[45]=oe^~ce&fe,e[6]=w^~k&b,e[7]=_^~E&y,e[16]=j^~I&S,e[17]=P^~N&T,e[26]=V^~z&R,e[27]=H^~q&D,e[36]=Z^~Q&W,e[37]=X^~ee&G,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=k^~b&m,e[9]=E^~y&v,e[18]=I^~S&O,e[19]=N^~T&M,e[28]=z^~R&L,e[29]=q^~D&B,e[38]=Q^~W&K,e[39]=ee^~G&$,e[48]=ue^~te&re,e[49]=fe^~ne&ae,e[0]^=i[r],e[1]^=i[r+1]},s=function(e){return function(t){var i;if("0x"===t.slice(0,2)){i=[];for(var s=2,c=t.length;s>2]|=t[p]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(c[y>>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(e.start=y-u,e.block=c[f],y=0;y>2]|=r[3&y],e.lastByteIndex===u)for(c[0]=c[f],y=1;y>4&15]+n[15&h]+n[h>>12&15]+n[h>>8&15]+n[h>>20&15]+n[h>>16&15]+n[h>>28&15]+n[h>>24&15];m%f===0&&(o(l),y=0)}return"0x"+b}(function(e){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t}(e),i)}};e.exports={keccak256:s(256),keccak512:s(512),keccak256s:s(256),keccak512s:s(512)}},function(e,t,n){"use strict";var r=n(1496),a=n(1497);e.exports={errors:r,formatters:a}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[react-celo]";a(this,e),this.namespace=n,t?this.level=t:"true"===Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"}).DEBUG?this.level=r.Debug:this.level=r.Error}return i(e,[{key:"debug",value:function(){var e;if(!(this.level>r.Debug)){for(var t=arguments.length,n=new Array(t),a=0;ar.Default)){for(var t=arguments.length,n=new Array(t),a=0;ar.Warning)){for(var t=arguments.length,n=new Array(t),a=0;ar.Error)){for(var t=arguments.length,n=new Array(t),a=0;a1&&c.forEach((function(n){var a;r[n]=e(((a={})[n]=t[n],a))})),r},d=function(e,t,n,r,i){var o={};return r.slice(0,e.length).forEach((function(r,s){var c,u=e[s],f=t(r,n,i);u?a()(o,((c={})[u]=a()({},o[u],f),c)):a()(o,f)})),o},l=function(e,t,n,r,i){var o={};for(var c in r){var u=e[c],f=t(r[c],n,i);if(u){var d,l=s(u);a()(o,((d={})[l]=a()({},o[l],f),d))}else a()(o,f)}return o},p=function(e){var t=e.properties,n=e.property,r=e.scale,a=e.transform,i=void 0===a?c:a,o=e.defaultScale;t=t||[n];var s=function(e,n,r){var a={},o=i(e,n,r);if(null!==o)return t.forEach((function(e){a[e]=o})),a};return s.scale=r,s.defaults=o,s},h=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!==typeof r?p(r):r:p({property:n,scale:n})})),f(t)},b=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),m=y,v={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};v.bg=v.backgroundColor;var g=h(v),x=g,w=h({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),_=w,k=h({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),E=k,S={space:[0,4,8,16,32,64,128,256,512]},T=h({gridGap:{property:"gridGap",scale:"space",defaultScale:S.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:S.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:S.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),O=T,M={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};M.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},M.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},M.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},M.borderBottomColor={property:"borderBottomColor",scale:"colors"},M.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},M.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},M.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},M.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},M.borderLeftColor={property:"borderLeftColor",scale:"colors"},M.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},M.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},M.borderRightColor={property:"borderRightColor",scale:"colors"},M.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var A=h(M),C=A,j={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};j.bgImage=j.backgroundImage,j.bgSize=j.backgroundSize,j.bgPosition=j.backgroundPosition,j.bgRepeat=j.backgroundRepeat;var P=h(j),I=P,N={space:[0,4,8,16,32,64,128,256,512]},R=h({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:N.space},right:{property:"right",scale:"space",defaultScale:N.space},bottom:{property:"bottom",scale:"space",defaultScale:N.space},left:{property:"left",scale:"space",defaultScale:N.space}}),D=R,L={space:[0,4,8,16,32,64,128,256,512]},B=function(e){return"number"===typeof e&&!isNaN(e)},F=function(e,t){if(!B(e))return u(t,e,e);var n=e<0,r=Math.abs(e),a=u(t,r,r);return B(a)?a*(n?-1:1):n?"-"+a:a},U={};U.margin={margin:{property:"margin",scale:"space",transform:F,defaultScale:L.space},marginTop:{property:"marginTop",scale:"space",transform:F,defaultScale:L.space},marginRight:{property:"marginRight",scale:"space",transform:F,defaultScale:L.space},marginBottom:{property:"marginBottom",scale:"space",transform:F,defaultScale:L.space},marginLeft:{property:"marginLeft",scale:"space",transform:F,defaultScale:L.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:F,defaultScale:L.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:F,defaultScale:L.space}},U.margin.m=U.margin.margin,U.margin.mt=U.margin.marginTop,U.margin.mr=U.margin.marginRight,U.margin.mb=U.margin.marginBottom,U.margin.ml=U.margin.marginLeft,U.margin.mx=U.margin.marginX,U.margin.my=U.margin.marginY,U.padding={padding:{property:"padding",scale:"space",defaultScale:L.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:L.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:L.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:L.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:L.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:L.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:L.space}},U.padding.p=U.padding.padding,U.padding.pt=U.padding.paddingTop,U.padding.pr=U.padding.paddingRight,U.padding.pb=U.padding.paddingBottom,U.padding.pl=U.padding.paddingLeft,U.padding.px=U.padding.paddingX,U.padding.py=U.padding.paddingY;var V=h(U.margin),H=h(U.padding),z=b(V,H),q=h({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}}),W=q,G=n(489),K=function(e){var t,n,r=e.scale,a=e.prop,i=void 0===a?"variant":a,o=e.variants,s=void 0===o?{}:o,c=e.key;n=Object.keys(s).length?function(e,t,n){return Object(G.default)(u(t,e,null))(n.theme)}:function(e,t){return u(t,e,null)},n.scale=r||c,n.defaults=s;var d=((t={})[i]=n,t);return f(d)},$=K({key:"buttons"}),Y=K({key:"textStyles",prop:"textStyle"}),J=K({key:"colorStyles",prop:"colors"}),Z=m.width,X=m.height,Q=m.minWidth,ee=m.minHeight,te=m.maxWidth,ne=m.maxHeight,re=m.size,ae=m.verticalAlign,ie=m.display,oe=m.overflow,se=m.overflowX,ce=m.overflowY,ue=x.opacity,fe=_.fontSize,de=_.fontFamily,le=_.fontWeight,pe=_.lineHeight,he=_.textAlign,be=_.fontStyle,ye=_.letterSpacing,me=E.alignItems,ve=E.alignContent,ge=E.justifyItems,xe=E.justifyContent,we=E.flexWrap,_e=E.flexDirection,ke=E.flex,Ee=E.flexGrow,Se=E.flexShrink,Te=E.flexBasis,Oe=E.justifySelf,Me=E.alignSelf,Ae=E.order,Ce=O.gridGap,je=O.gridColumnGap,Pe=O.gridRowGap,Ie=O.gridColumn,Ne=O.gridRow,Re=O.gridAutoFlow,De=O.gridAutoColumns,Le=O.gridAutoRows,Be=O.gridTemplateColumns,Fe=O.gridTemplateRows,Ue=O.gridTemplateAreas,Ve=O.gridArea,He=C.borderWidth,ze=C.borderStyle,qe=C.borderColor,We=C.borderTop,Ge=C.borderRight,Ke=C.borderBottom,$e=C.borderLeft,Ye=C.borderRadius,Je=I.backgroundImage,Ze=I.backgroundSize,Xe=I.backgroundPosition,Qe=I.backgroundRepeat,et=D.zIndex,tt=D.top,nt=D.right,rt=D.bottom,at=D.left,it=function(e){var t=e.prop,n=e.cssProperty,r=e.alias,a=e.key,i=e.transformValue,o=e.scale,s=e.properties,c={};return c[t]=p({properties:s,property:n||t,scale:a,defaultScale:o,transform:i}),r&&(c[r]=c[t]),f(c)}},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string";if(!e[t]||typeof e[t]!==n)throw new Error('Missing or invalid "'.concat(t,'" param'))}function a(e,t,n){var r=!n.length?function(e,t){return Array.isArray(e)?e.length===t:Object.keys(e).length===t}(e,t.length):function(e,t){return Array.isArray(e)?e.length>=t:Object.keys(e).length>=t}(e,t.length);return!!r&&function(e,t){var n=!0;return t.forEach((function(t){t in e||(n=!1)})),n}(e,t)}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_",r=e.split(n);return r[r.length-1].trim().toLowerCase()===t.trim().toLowerCase()}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i}))},function(e,t,n){!function(e){var t,n,r,a=String.fromCharCode;function i(e){for(var t,n,r=[],a=0,i=e.length;a=55296&&t<=56319&&a=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return a(e>>t&63|128)}function c(e){if(0==(4294967168&e))return a(e);var t="";return 0==(4294965248&e)?t=a(e>>6&31|192):0==(4294901760&e)?(o(e),t=a(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=a(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=a(63&e|128)}function u(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,a;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(e=255&t[r],r++,0==(128&e))return e;if(192==(224&e)){if((a=(31&e)<<6|u())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&e)){if((a=(15&e)<<12|u()<<6|u())>=2048)return o(a),a;throw Error("Invalid continuation byte")}if(240==(248&e)&&(a=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=i(e),n=t.length,r=-1,a="";++r65535&&(i+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=a(t);return i}(s)}}(t)},function(e,t,n){"use strict";var r=n(720),a=n(1176);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=g(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(u),d=["%","/","?",";","#"].concat(f),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(1177);function g(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?I+="x":I+=P[N];if(!I.match(p)){var D=C.slice(0,O),L=C.slice(O+1),B=P.match(h);B&&(D.push(B[1]),L.unshift(B[2])),L.length&&(g="/"+L.join(".")+g),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[_])for(O=0,j=f.length;O0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],T=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,O=0,M=k.length;M>=0;M--)"."===(S=k[M])?k.splice(M,1):".."===S?(k.splice(M,1),O++):O&&(k.splice(M,1),O--);if(!w&&!_)for(;O--;O)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),T&&"/"!==k.join("/").substr(-1)&&k.push("");var A,C=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=C?"":k.length?k.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(w=w||n.host&&k.length)&&!C&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";var r=n(1865),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},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=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=f(n);d&&(o=o.concat(d(n)));for(var s=c(t),b=c(n),y=0;ys)throw new TypeError("version is longer than ".concat(s," characters"));i("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var a=t.trim().match(n.loose?f[d.LOOSE]:f[d.FULL]);if(!a)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>c||this.major<0)throw new TypeError("Invalid major version");if(this.minor>c||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>c||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"===typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(0===p(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),e}();e.exports=h},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"SigningKey",(function(){return d})),n.d(t,"recoverPublicKey",(function(){return l})),n.d(t,"computePublicKey",(function(){return p}));var r=n(8),a=n(9),i=n(984),o=n(6),s=n(10),c=new(n(13).Logger)("signing-key/5.6.2"),u=null;function f(){return u||(u=new i.a("secp256k1")),u}var d=function(){function e(t){Object(r.a)(this,e),Object(s.defineReadOnly)(this,"curve","secp256k1"),Object(s.defineReadOnly)(this,"privateKey",Object(o.hexlify)(t)),32!==Object(o.hexDataLength)(this.privateKey)&&c.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=f().keyFromPrivate(Object(o.arrayify)(this.privateKey));Object(s.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),Object(s.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),Object(s.defineReadOnly)(this,"_isSigningKey",!0)}return Object(a.a)(e,[{key:"_addPoint",value:function(e){var t=f().keyFromPublic(Object(o.arrayify)(this.publicKey)),n=f().keyFromPublic(Object(o.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=f().keyFromPrivate(Object(o.arrayify)(this.privateKey)),n=Object(o.arrayify)(e);32!==n.length&&c.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return Object(o.splitSignature)({recoveryParam:r.recoveryParam,r:Object(o.hexZeroPad)("0x"+r.r.toString(16),32),s:Object(o.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=f().keyFromPrivate(Object(o.arrayify)(this.privateKey)),n=f().keyFromPublic(Object(o.arrayify)(p(e)));return Object(o.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function l(e,t){var n=Object(o.splitSignature)(t),r={r:Object(o.arrayify)(n.r),s:Object(o.arrayify)(n.s)};return"0x"+f().recoverPubKey(Object(o.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function p(e,t){var n=Object(o.arrayify)(e);if(32===n.length){var r=new d(n);return t?"0x"+f().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?Object(o.hexlify)(n):"0x"+f().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+f().keyFromPublic(n).getPublic(!0,"hex"):Object(o.hexlify)(n):c.throwArgumentError("invalid public or private key","key","[REDACTED]")}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(1100),a=n(685);e.exports=function(e){if("string"===typeof e||"number"===typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),i="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),o=a(n);if("-"===o.substr(0,1)&&(o=a(o.slice(1)),t=new r(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===i&&o.match(/^[0-9A-Fa-f]+$/))return new r(o,16).mul(t);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===i)return new r(o,10).mul(t)}else if("object"===typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,n){"use strict";var r=n(1205),a=n(1206);e.exports={errors:r,formatters:a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n(7),a=n(308);function i(e){for(var t=[],n=1;n>=8;return t}function s(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 d(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=s(e,t+1,n);return t+1+n+o>e.length&&i.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1+n,n+o)}if(e[t]>=192){var c=e[t]-192;return t+1+c>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1,c)}if(e[t]>=184){var u=e[t]-183;t+1+u>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});var d=s(e,t+1,u);return t+1+u+d>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+u+d,result:Object(r.hexlify)(e.slice(t+1+u,t+1+u+d))}}if(e[t]>=128){var l=e[t]-128;return t+1+l>e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l,result:Object(r.hexlify)(e.slice(t+1,t+1+l))}}return{consumed:1,result:Object(r.hexlify)(e[t])}}function l(e){var t=Object(r.arrayify)(e),n=d(t,0);return n.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),n.result}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return A})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return h}));var r=n(28);function a(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,a=e.length;r=0;l--){var p=o[l];"."===p?i(o,l):".."===p?(i(o,l),d++):d&&(i(o,l),d--)}if(!u)for(;d--;d)o.unshift("..");!u||""===o[0]||o[0]&&a(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),a=s(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(40);function f(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function b(e,t,n,a){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),a?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=o(i.pathname,a.pathname)):i.pathname=a.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,a):a(!0):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=b(e,t,l(),x.location);f.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=x.index+e;return t>=0&&t2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var l=d[0],p=d[1];if(l||(l="0"),p||(p="0"),p.length>i)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;p.length=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function s(e){return"string"===typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function c(e){return"string"===typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=a,t.isInBloom=i,t.isUserEthereumAddressInBloom=function(e,t){if(!a(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"'));return i(e,r.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!a(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid contract address given: "'.concat(t,'"'));return i(e,t)},t.isTopicInBloom=function(e,t){if(!a(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error("Invalid topic");return i(e,t)},t.isTopic=s,t.isAddress=c},function(e,t,n){"use strict";var r=n(46).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useCeloInternal=t.useContractKit=t.useCelo=void 0;var a=n(788);function i(){var e=(0,a.useReactCeloContext)(),t=r(e,3),n=t[0],i=(t[1],t[2]),o=n.dapp,s=n.address,c=n.network,u=n.walletChainId,f=n.feeCurrency,d=n.connectorInitError,l=n.networks,p=n.connector,h=i.destroy,b=i.disconnect,y=i.updateNetwork,m=i.connect,v=i.getConnectedKit,g=i.performActions,x=i.updateFeeCurrency,w=i.contractsCache,_=i.updateTheme;return{dapp:o,address:s,network:c,walletChainId:u,feeCurrency:f,initError:d,networks:l.map((function(e){return Object.assign({},e)})),kit:p.kit,account:p.kit.connection.defaultAccount,initialised:p.initialised,walletType:p.type,supportsFeeCurrency:p.supportsFeeCurrency(),destroy:h,disconnect:b,updateNetwork:y,connect:m,getConnectedKit:v,performActions:g,updateFeeCurrency:x,contractsCache:w,updateTheme:_}}t.useCelo=i,t.useContractKit=i;t.useCeloInternal=function(){var e=(0,a.useReactCeloContext)(),t=r(e,3),n=t[0],o=n.pendingActionCount,s=n.connectionCallback,c=n.theme,u=n.manualNetworkMode,f=(t[1],t[2]),d=f.initConnector,l=f.resetInitError;return Object.assign(Object.assign({},i()),{manualNetworkMode:u,connectionCallback:s,initConnector:d,pendingActionCount:o,theme:c,resetInitError:l})}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(1477),t),a(n(1478),t),a(n(1494),t),a(n(802),t),a(n(1519),t),a(n(579),t),a(n(803),t),a(n(1520),t)},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(1459)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var r=n(30),a=n(17),i=n(19),o=n(2),s=n(8),c=n(9),u=n(10),f=n(13),d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},l=new f.Logger("abstract-signer/5.6.2"),p=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],h=[f.Logger.errors.INSUFFICIENT_FUNDS,f.Logger.errors.NONCE_EXPIRED,f.Logger.errors.REPLACEMENT_UNDERPRICED],b=function(){function e(){Object(s.a)(this,e),l.checkAbstract(this instanceof e?this.constructor:void 0,e),Object(u.defineReadOnly)(this,"_isSigner",!0)}return Object(c.a)(e,[{key:"getBalance",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){var n;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,Object(u.resolveProperties)(this.checkTransaction(e));case 3:return n=t.sent,t.next=6,this.provider.estimateGas(n);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return d(this,void 0,void 0,Object(o.a)().mark((function n(){var r;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._checkProvider("call"),n.next=3,Object(u.resolveProperties)(this.checkTransaction(e));case 3:return r=n.sent,n.next=6,this.provider.call(r,t);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"sendTransaction",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("sendTransaction"),t.next=3,this.populateTransaction(e);case 3:return n=t.sent,t.next=6,this.signTransaction(n);case 6:return r=t.sent,t.next=9,this.provider.sendTransaction(r);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getChainId",value:function(){return d(this,void 0,void 0,Object(o.a)().mark((function e(){var t;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return d(this,void 0,void 0,Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getFeeData",value:function(){return d(this,void 0,void 0,Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getFeeData"),e.next=3,this.provider.getFeeData();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===p.indexOf(t)&&l.throwArgumentError("invalid transaction key: "+t,"transaction",e);var n=Object(u.shallowCopy)(e);return null==n.from?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&l.throwArgumentError("from address mismatch","transaction",e),t[0]})),n}},{key:"populateTransaction",value:function(e){return d(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r,a,i,s=this;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.resolveProperties)(this.checkTransaction(e));case 2:if(null!=(n=t.sent).to&&(n.to=Promise.resolve(n.to).then((function(e){return d(s,void 0,void 0,Object(o.a)().mark((function t(){var n;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(n=t.sent)&&l.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))})),n.to.catch((function(e){}))),r=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas,null==n.gasPrice||2!==n.type&&!r?0!==n.type&&1!==n.type||!r||l.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):l.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas){t.next=10;break}n.type=2,t.next=18;break;case 10:if(0!==n.type&&1!==n.type){t.next=14;break}null==n.gasPrice&&(n.gasPrice=this.getGasPrice()),t.next=18;break;case 14:return t.next=16,this.getFeeData();case 16:a=t.sent,null==n.type?null!=a.maxFeePerGas&&null!=a.maxPriorityFeePerGas?(n.type=2,null!=n.gasPrice?(i=n.gasPrice,delete n.gasPrice,n.maxFeePerGas=i,n.maxPriorityFeePerGas=i):(null==n.maxFeePerGas&&(n.maxFeePerGas=a.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))):null!=a.gasPrice?(r&&l.throwError("network does not support EIP-1559",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=a.gasPrice),n.type=0):l.throwError("failed to get consistent fee data",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===n.type&&(null==n.maxFeePerGas&&(n.maxFeePerGas=a.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas));case 18:return null==n.nonce&&(n.nonce=this.getTransactionCount("pending")),null==n.gasLimit&&(n.gasLimit=this.estimateGas(n).catch((function(e){if(h.indexOf(e.code)>=0)throw e;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.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]&&l.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,Object(u.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||l.throwError("missing provider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),y=function(e){Object(a.a)(n,e);var t=Object(i.a)(n);function n(e,a){var i;return Object(s.a)(this,n),i=t.call(this),Object(u.defineReadOnly)(Object(r.a)(i),"address",e),Object(u.defineReadOnly)(Object(r.a)(i),"provider",a||null),i}return Object(c.a)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){l.throwError(e,f.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}(b)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return N}));var r=n(74),a=n(51),i=n(2),o=n(8),s=n(9),c=n(30),u=n(17),f=n(19),d=n(162),l=n(44),p=n(6),h=n(498),b=n(10),y=n(87),m=n(69),v=n(112),g=n(13),x=n(81),w=n(231),_=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},k=new g.Logger(x.a),E=["call","estimateGas"];function S(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){var n=Object(p.isHexString)(e.data)?e.data:null;if(!t||n)return{message:e.message,data:n}}if("object"===typeof e){for(var r in e){var a=S(e[r],t);if(a)return a}return null}if("string"===typeof e)try{return S(JSON.parse(e),t)}catch(i){}return null}function T(e,t,n){var r=n.transaction||n.signedTransaction;if("call"===e){var a=S(t,!0);if(a)return a.data;k.throwError("missing revert data in call exception; Transaction reverted without a reason string",g.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===e){var i=S(t.body,!1);null==i&&(i=S(t,!1)),i&&k.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:i.message,method:e,transaction:r,error:t})}var o=t.message;throw t.code===g.Logger.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?o=t.error.message:"string"===typeof t.body?o=t.body:"string"===typeof t.responseText&&(o=t.responseText),(o=(o||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit/i)&&k.throwError("insufficient funds for intrinsic transaction cost",g.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),o.match(/nonce (is )?too low/i)&&k.throwError("nonce has already been used",g.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),o.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&k.throwError("replacement fee too low",g.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),o.match(/only replay-protected/i)&&k.throwError("legacy pre-eip-155 transactions not supported",g.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:r}),E.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&k.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function O(e){return new Promise((function(t){setTimeout(t,e)}))}function M(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function A(e){return e?e.toLowerCase():e}var C={},j=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r,a){var i;if(Object(o.a)(this,n),i=t.call(this),e!==C)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return Object(b.defineReadOnly)(Object(c.a)(i),"provider",r),null==a&&(a=0),"string"===typeof a?(Object(b.defineReadOnly)(Object(c.a)(i),"_address",i.provider.formatter.address(a)),Object(b.defineReadOnly)(Object(c.a)(i),"_index",null)):"number"===typeof a?(Object(b.defineReadOnly)(Object(c.a)(i),"_index",a),Object(b.defineReadOnly)(Object(c.a)(i),"_address",null)):k.throwArgumentError("invalid address or index","addressOrIndex",a),i}return Object(s.a)(n,[{key:"connect",value:function(e){return k.throwError("cannot alter JSON-RPC Signer connection",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new P(C,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&k.throwError("unknown account #"+e._index,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=Object(b.shallowCopy)(e);var n=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var r=Object(b.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return _(t,void 0,void 0,Object(i.a)().mark((function t(){var n;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(n=t.sent)&&k.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}))),Object(b.resolveProperties)({tx:Object(b.resolveProperties)(e),sender:n}).then((function(n){var r=n.tx,a=n.sender;null!=r.from?r.from.toLowerCase()!==a&&k.throwArgumentError("from address mismatch","transaction",e):r.from=a;var i=t.provider.constructor.hexlifyTransaction(r,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return T("sendTransaction",e,i)}))}))}},{key:"signTransaction",value:function(e){return k.throwError("signing transactions is unsupported",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return _(this,void 0,void 0,Object(i.a)().mark((function t(){var n,r,a=this;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return n=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return r=t.sent,t.prev=6,t.next=9,Object(v.poll)((function(){return _(a,void 0,void 0,Object(i.a)().mark((function e(){var t;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(r);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,r,n));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=r,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return _(this,void 0,void 0,Object(i.a)().mark((function t(){var n,r;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"===typeof e?Object(y.f)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.next=6,this.provider.send("personal_sign",[Object(p.hexlify)(n),r.toLowerCase()]);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_legacySignMessage",value:function(e){return _(this,void 0,void 0,Object(i.a)().mark((function t(){var n,r;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"===typeof e?Object(y.f)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.next=6,this.provider.send("eth_sign",[r.toLowerCase(),Object(p.hexlify)(n)]);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return _(this,void 0,void 0,Object(i.a)().mark((function r(){var a,o,s=this;return Object(i.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.a.resolveNames(e,t,n,(function(e){return s.provider.resolveName(e)}));case 2:return a=r.sent,r.next=5,this.getAddress();case 5:return o=r.sent,r.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(h.a.getPayload(a.domain,t,a.value))]);case 8:return r.abrupt("return",r.sent);case 9:case"end":return r.stop()}}),r,this)})))}},{key:"unlock",value:function(e){return _(this,void 0,void 0,Object(i.a)().mark((function t(){var n,r;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.provider,t.next=3,this.getAddress();case 3:return r=t.sent,t.abrupt("return",n.send("personal_unlockAccount",[r.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),n}(d.a),P=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}}))}}]),n}(j),I={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},N=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r){var a;Object(o.a)(this,n);var i=r;return null==i&&(i=new Promise((function(e,t){setTimeout((function(){a.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),a=t.call(this,i),e||(e=Object(b.getStatic)(a.constructor,"defaultUrl")()),"string"===typeof e?Object(b.defineReadOnly)(Object(c.a)(a),"connection",Object.freeze({url:e})):Object(b.defineReadOnly)(Object(c.a)(a),"connection",Object.freeze(Object(b.shallowCopy)(e))),a._nextId=42,a}return Object(s.a)(n,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return _(this,void 0,void 0,Object(i.a)().mark((function e(){var t,n;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return n=Object(b.getStatic)(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",n(l.a.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",k.throwError("could not detect network",g.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",k.throwError("could not detect network",g.Logger.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new j(C,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Object(b.deepCopy)(r),provider:this});var a=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(a&&this._cache[e])return this._cache[e];var i=Object(v.fetchJson)(this.connection,JSON.stringify(r),M).then((function(e){return n.emit("debug",{action:"response",request:r,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",error:e,request:r,provider:n}),e}));return a&&(this._cache[e]=i,setTimeout((function(){n._cache[e]=null}),0)),i}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[A(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[A(t.address),t.blockTag]];case"getCode":return["eth_getCode",[A(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[A(t.address),Object(p.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[Object(b.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[Object(b.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=A(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return _(this,void 0,void 0,Object(i.a)().mark((function n(){var r,a,o;return Object(i.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("call"!==e&&"estimateGas"!==e){n.next=8;break}if(!(r=t.transaction)||null==r.type||!l.a.from(r.type).isZero()){n.next=8;break}if(null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas){n.next=8;break}return n.next=6,this.getFeeData();case 6:null==(a=n.sent).maxFeePerGas&&null==a.maxPriorityFeePerGas&&((t=Object(b.shallowCopy)(t)).transaction=Object(b.shallowCopy)(r),delete t.transaction.type);case 8:return null==(o=this.prepareRequest(e,t))&&k.throwError(e+" not implemented",g.Logger.errors.NOT_IMPLEMENTED,{operation:e}),n.prev=10,n.next=13,this.send(o[0],o[1]);case 13:return n.abrupt("return",n.sent);case 16:return n.prev=16,n.t0=n.catch(10),n.abrupt("return",T(e,n.t0,t));case 19:case"end":return n.stop()}}),n,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),Object(r.a)(Object(a.a)(n.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return O(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),Object(r.a)(Object(a.a)(n.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var n=Object(b.shallowCopy)(I);if(t)for(var r in t)t[r]&&(n[r]=!0);Object(b.checkProperties)(e,n);var a={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var n=Object(p.hexValue)(l.a.from(e[t]));"gasLimit"===t&&(t="gas"),a[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(a[t]=Object(p.hexlify)(e[t]))})),e.accessList&&(a.accessList=Object(m.accessListify)(e.accessList)),a}}]),n}(w.a)},function(e,t,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return a}));var a=r()},function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"j",(function(){return f})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return b})),n.d(t,"i",(function(){return y})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return g}));var r=n(24),a=n(129),i=n(522);function o(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function c(e){return Object(a.a)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,n,a){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return u(i,e.name,e.value,a)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(a||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return u(n,t,e,a),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new r.a('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new r.a(52);e[t.value]=null}}function f(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var a=r.name,i=r.value;return u(n[e.name.value],a,i,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,a=e.value;return u(r,n,a,t)}))),l(e.name.value,r,n)}var d=["connection","include","skip","client","rest","export"],l=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var a={};return r.forEach((function(e){a[e]=t[e]})),"".concat(n.connection.key,"(").concat(p(a),")")}return n.connection.key}var i=e;if(t){var o=p(t);i+="(".concat(o,")")}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(p(n[e]),")"):i+="@".concat(e))})),i}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return Object(a.a)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function b(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,a=e.value;return u(n,r,a,t)})),n}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,a=t.selections;r0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1](a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},r.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,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0===(1&c)?0:3!==(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0===(1&u)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a(e,"hex","le")}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=n(43),a=n(541),i=n(364),o=n(421),s=n(246);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new i:new c(o(e))}},function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"}).DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(1488)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(53))},function(e,t,n){"use strict";var r=n(47).default,a=n(34).default,i=n(33).default,o=n(62).default,s=n(65).default,c=n(251).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractConnector=t.ConnectorEvents=t.updateFeeCurrency=t.UnsupportedChainIdError=void 0;var d,l=n(144),p=f(n(1599)),h=n(132),b=function(e){o(n,e);var t=s(n);function n(e){var r;return i(this,n),(r=t.call(this,"Unsupported chain ID: ".concat(e))).chainID=e,r.name=n.NAME,r}return a(n)}(c(Error));t.UnsupportedChainIdError=b,b.NAME="UnsupportedChainIdError",t.updateFeeCurrency=function(e){return u(this,void 0,void 0,r().mark((function t(){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.supportsFeeCurrency()){t.next=2;break}return t.abrupt("return");case 2:if(this.feeCurrency=e,e!==l.CeloContract.GoldToken){t.next=7;break}t.t0=void 0,t.next=10;break;case 7:return t.next=9,this.kit.registry.addressFor(e);case 9:t.t0=t.sent;case 10:n=t.t0,this.kit.connection.defaultFeeCurrency=n;case 12:case"end":return t.stop()}}),t,this)})))},function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.ADDRESS_CHANGED="ADDRESS_CHANGED",e.NETWORK_CHANGED="NETWORK_CHANGED",e.NETWORK_CHANGE_FAILED="NETWORK_CHANGE_FAILED",e.WALLET_CHAIN_CHANGED="WALLET_CHAIN_CHANGED",e.WC_URI_RECEIVED="WC_URI_RECEIVED",e.WC_INITIALISED="WC_INITIALISED",e.WC_ERROR="WC_ERROR"}(d=t.ConnectorEvents||(t.ConnectorEvents={}));var y=function(){function e(){var t=this;i(this,e),this.emitter=new p.default,this.on=function(e,n){t.emitter.on(e,n)},this.emit=function(e,n){(0,h.getApplicationLogger)().debug("[CONNECTOR EMIT]",t.type,e,null!==n&&void 0!==n?n:""),t.emitter.emit(e,n)}}return a(e,[{key:"account",get:function(){var e,t;return null===(t=null===(e=this.kit)||void 0===e?void 0:e.connection)||void 0===t?void 0:t.defaultAccount},set:function(e){this.kit.connection.defaultAccount=e}},{key:"supportsFeeCurrency",value:function(){return!1}},{key:"disconnect",value:function(){this.emit(d.DISCONNECTED),this.emitter.removeAllListeners()}}]),e}();t.AbstractConnector=y},function(e,t,n){"use strict";n.r(t),n.d(t,"AddressZero",(function(){return r.a})),n.d(t,"NegativeOne",(function(){return a.d})),n.d(t,"Zero",(function(){return a.h})),n.d(t,"One",(function(){return a.e})),n.d(t,"Two",(function(){return a.f})),n.d(t,"WeiPerEther",(function(){return a.g})),n.d(t,"MaxUint256",(function(){return a.b})),n.d(t,"MinInt256",(function(){return a.c})),n.d(t,"MaxInt256",(function(){return a.a})),n.d(t,"HashZero",(function(){return i.a})),n.d(t,"EtherSymbol",(function(){return o}));var r=n(652),a=n(222),i=n(500),o="\u039e"},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(113),t.createHash=t.Hash=n(170),t.createHmac=t.Hmac=n(738);var r=n(1292),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(741);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(1294);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(1309);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(1312);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1335);var f=n(1336);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var d=n(1339);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidAddress=t.isValidPrivateKey=t.publicKeyToAddress=t.privateKeyToPublicKey=t.privateKeyToAddress=t.toChecksumAddress=t.isValidChecksumAddress=t.trimLeading0x=t.NULL_ADDRESS=t.normalizeAddressWith0x=t.normalizeAddress=t.mapAddressListOnto=t.mapAddressListDataOnto=t.isHexString=t.hexToBuffer=t.getAddressChunks=t.findAddressIndex=t.eqAddress=t.ensureLeading0x=t.bufferToHex=void 0;var r=n(104),a=n(105),i=n(104);Object.defineProperty(t,"bufferToHex",{enumerable:!0,get:function(){return i.bufferToHex}}),Object.defineProperty(t,"ensureLeading0x",{enumerable:!0,get:function(){return i.ensureLeading0x}}),Object.defineProperty(t,"eqAddress",{enumerable:!0,get:function(){return i.eqAddress}}),Object.defineProperty(t,"findAddressIndex",{enumerable:!0,get:function(){return i.findAddressIndex}}),Object.defineProperty(t,"getAddressChunks",{enumerable:!0,get:function(){return i.getAddressChunks}}),Object.defineProperty(t,"hexToBuffer",{enumerable:!0,get:function(){return i.hexToBuffer}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"mapAddressListDataOnto",{enumerable:!0,get:function(){return i.mapAddressListDataOnto}}),Object.defineProperty(t,"mapAddressListOnto",{enumerable:!0,get:function(){return i.mapAddressListOnto}}),Object.defineProperty(t,"normalizeAddress",{enumerable:!0,get:function(){return i.normalizeAddress}}),Object.defineProperty(t,"normalizeAddressWith0x",{enumerable:!0,get:function(){return i.normalizeAddressWith0x}}),Object.defineProperty(t,"NULL_ADDRESS",{enumerable:!0,get:function(){return i.NULL_ADDRESS}}),Object.defineProperty(t,"trimLeading0x",{enumerable:!0,get:function(){return i.trimLeading0x}});var o=n(105);Object.defineProperty(t,"isValidChecksumAddress",{enumerable:!0,get:function(){return o.isValidChecksumAddress}}),Object.defineProperty(t,"toChecksumAddress",{enumerable:!0,get:function(){return o.toChecksumAddress}});t.privateKeyToAddress=function(e){return(0,a.toChecksumAddress)((0,r.ensureLeading0x)((0,a.privateToAddress)((0,r.hexToBuffer)(e)).toString("hex")))};t.privateKeyToPublicKey=function(e){return(0,a.toChecksumAddress)((0,r.ensureLeading0x)((0,a.privateToPublic)((0,r.hexToBuffer)(e)).toString("hex")))};t.publicKeyToAddress=function(e){return(0,a.toChecksumAddress)((0,r.ensureLeading0x)((0,a.pubToAddress)((0,a.toBuffer)((0,r.ensureLeading0x)(e)),!0).toString("hex")))};t.isValidPrivateKey=function(e){return e.startsWith("0x")&&(0,a.isValidPrivate)((0,r.hexToBuffer)(e))};t.isValidAddress=function(e){return"string"===typeof e&&(!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!!/^(0x|0X)?[0-9A-F]{40}$/.test(e.toUpperCase())||(0,a.toChecksumAddress)(e)===e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return B}));var r=n(25),a=n(30),i=n(74),o=n(51),s=n(17),c=n(19),u=n(8),f=n(9),d=n(2),l=n(94),p=n(385),h=n(192),b=n(162),y=n(38),m=n(44),v=n(6),g=n(10),x=n(69),w=n(13),_=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},k=new w.Logger("contracts/5.6.2"),E={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function S(e,t){return _(this,void 0,void 0,Object(d.a)().mark((function n(){var r,a;return Object(d.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t;case 2:return"string"!==typeof(r=n.sent)&&k.throwArgumentError("invalid address or ENS name","name",r),n.prev=4,n.abrupt("return",Object(y.getAddress)(r));case 8:n.prev=8,n.t0=n.catch(4);case 10:return e||k.throwError("a provider or signer is needed to resolve ENS names",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),n.next=13,e.resolveName(r);case 13:return null==(a=n.sent)&&k.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n.abrupt("return",a);case 16:case"end":return n.stop()}}),n,null,[[4,8]])})))}function T(e,t,n){return _(this,void 0,void 0,Object(d.a)().mark((function r(){return Object(d.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=4;break}return r.next=3,Promise.all(n.map((function(n,r){return T(e,Array.isArray(t)?t[r]:t[n.name],n)})));case 3:case 7:case 11:case 17:return r.abrupt("return",r.sent);case 4:if("address"!==n.type){r.next=8;break}return r.next=7,S(e,t);case 8:if("tuple"!==n.type){r.next=12;break}return r.next=11,T(e,t,n.components);case 12:if("array"!==n.baseType){r.next=18;break}if(Array.isArray(t)){r.next=15;break}return r.abrupt("return",Promise.reject(k.makeError("invalid value for array",w.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return r.next=17,Promise.all(t.map((function(t){return T(e,t,n.arrayChildren)})));case 18:return r.abrupt("return",t);case 19:case"end":return r.stop()}}),r)})))}function O(e,t,n){return _(this,void 0,void 0,Object(d.a)().mark((function r(){var a,i,o,s,c,u,f,l,p,h,b=this;return Object(d.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={},n.length===t.inputs.length+1&&"object"===typeof n[n.length-1]&&(a=Object(g.shallowCopy)(n.pop())),k.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?a.from?a.from=Object(g.resolveProperties)({override:S(e.signer,a.from),signer:e.signer.getAddress()}).then((function(e){return _(b,void 0,void 0,Object(d.a)().mark((function t(){return Object(d.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(y.getAddress)(e.signer)!==e.override&&k.throwError("Contract with a Signer cannot override from",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):a.from=e.signer.getAddress():a.from&&(a.from=S(e.provider,a.from)),r.next=6,Object(g.resolveProperties)({args:T(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:Object(g.resolveProperties)(a)||{}});case 6:if(i=r.sent,o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},null!=(c=i.overrides).nonce&&(s.nonce=m.a.from(c.nonce).toNumber()),null!=c.gasLimit&&(s.gasLimit=m.a.from(c.gasLimit)),null!=c.gasPrice&&(s.gasPrice=m.a.from(c.gasPrice)),null!=c.maxFeePerGas&&(s.maxFeePerGas=m.a.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=m.a.from(c.maxPriorityFeePerGas)),null!=c.from&&(s.from=c.from),null!=c.type&&(s.type=c.type),null!=c.accessList&&(s.accessList=Object(x.accessListify)(c.accessList)),null==s.gasLimit&&null!=t.gas){for(u=21e3,f=Object(v.arrayify)(o),l=0;l1)){e=e.substring(1);var n=t[0];try{null==a[e]&&Object(g.defineReadOnly)(a,e,a[n])}catch(r){}null==a.functions[e]&&Object(g.defineReadOnly)(a.functions,e,a.functions[n]),null==a.callStatic[e]&&Object(g.defineReadOnly)(a.callStatic,e,a.callStatic[n]),null==a.populateTransaction[e]&&Object(g.defineReadOnly)(a.populateTransaction,e,a.populateTransaction[n]),null==a.estimateGas[e]&&Object(g.defineReadOnly)(a.estimateGas,e,a.estimateGas[n])}}))}return Object(f.a)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&k.throwError("contract not deployed",w.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||k.throwError("sending a transactions require a signer",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=Object(g.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=n[e]&&k.throwError("cannot override "+e,w.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(n)}))}},{key:"connect",value:function(e){"string"===typeof e&&(e=new b.b(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Object(g.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new I);if("event"===e)return this._normalizeRunningEvent(new P("event",null));if("*"===e)return this._normalizeRunningEvent(new R(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new N(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if("string"!==typeof n)throw new Error("invalid topic");var r=this.interface.getEvent(n);return this._normalizeRunningEvent(new N(this.address,this.interface,r,e.topics))}catch(i){}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new P(j(a),a))}return this._normalizeRunningEvent(new R(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,n){var r=this,a=Object(g.deepCopy)(t);return a.removeListener=function(){n&&(e.removeListener(n),r._checkRunningEvents(e))},a.getBlock=function(){return r.provider.getBlock(t.blockHash)},a.getTransaction=function(){return r.provider.getTransaction(t.transactionHash)},a.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(a),a}},{key:"_addEventListener",value:function(e,t,n){var a=this;if(this.provider||k.throwError("events require a provider or a signer with a provider",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(n){var i=a._wrapEvent(e,n,t);if(null==i.decodeError)try{var o=e.getEmit(i);a.emit.apply(a,[e.filter].concat(Object(r.a)(o)))}catch(s){i.decodeError=s.error}null!=e.filter&&a.emit("event",i),null!=i.decodeError&&a.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,n){var r=this,a=this._getRunningEvent(e),i=Object(g.shallowCopy)(a.filter);return"string"===typeof t&&Object(v.isHexString)(t,32)?(null!=n&&k.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((function(e){return e.map((function(e){return r._wrapEvent(a,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0;return this._checkRunningEvents(t),i}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,n){return e+t._runningEvents[n].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this;if(!this.provider)return[];if(null==e){var n=function(){var e=[];for(var n in t._runningEvents)t._runningEvents[n].listeners().forEach((function(t){e.push(t)}));return{v:e}}();if("object"===typeof n)return n.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return Object(y.getContractAddress)(e)}},{key:"getInterface",value:function(e){return p.b.isInterface(e)?e:new p.b(e)}},{key:"isIndexed",value:function(e){return p.a.isIndexed(e)}}]),e}(),L=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(f.a)(n)}(D),B=function(){function e(t,n,r){Object(u.a)(this,e);var a=null;"0x"!==(a="string"===typeof n?n:Object(v.isBytes)(n)?Object(v.hexlify)(n):n&&"string"===typeof n.object?n.object:"!").substring(0,2)&&(a="0x"+a),(!Object(v.isHexString)(a)||a.length%2)&&k.throwArgumentError("invalid bytecode","bytecode",n),r&&!b.a.isSigner(r)&&k.throwArgumentError("invalid signer","signer",r),Object(g.defineReadOnly)(this,"bytecode",a),Object(g.defineReadOnly)(this,"interface",Object(g.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(t)),Object(g.defineReadOnly)(this,"signer",r||null)}return Object(f.a)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r255)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 s={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("")}},c=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],n=0;n>4]+e[15&a])}return n.join("")}}}(),u={16:10,24:12,32:14},f=[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],d=[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],l=[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],b=[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],y=[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],m=[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],v=[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],g=[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],x=[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],w=[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],_=[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],E=[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,s=0,c=a;c>16&255]<<24^d[o>>8&255]<<16^d[255&o]<<8^d[o>>24&255]^f[s]<<24,s+=1,8!=a)for(t=1;t>8&255]<<8^d[o>>16&255]<<16^d[o>>24&255]<<24;for(t=a/2+1;t>2,p=c%4,this._Ke[l][p]=i[t],this._Kd[e-l][p]=i[t++],c++}for(var l=1;l>24&255]^_[o>>16&255]^k[o>>8&255]^E[255&o]},T.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]^b[r[(a+2)%4]>>8&255]^y[255&r[(a+3)%4]]^this._Ke[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Ke[t][a],c[4*a]=255&(d[r[a]>>24&255]^s>>24),c[4*a+1]=255&(d[r[(a+1)%4]>>16&255]^s>>16),c[4*a+2]=255&(d[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(d[255&r[(a+3)%4]]^s);return c},T.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]^v[r[(a+3)%4]>>16&255]^g[r[(a+2)%4]>>8&255]^x[255&r[(a+1)%4]]^this._Kd[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Kd[t][a],c[4*a]=255&(l[r[a]>>24&255]^s>>24),c[4*a+1]=255&(l[r[(a+3)%4]>>16&255]^s>>16),c[4*a+2]=255&(l[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(l[255&r[(a+1)%4]]^s);return c};var O=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 T(t)};O.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},j.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},j.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var P=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof j||(n=new j(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new T(t)};P.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;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(c){s=!0,a=c}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},F=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=F();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},V=function(e,t,n,r){return function(e){for(var t=1;t1)&&!window.MSStream},Se=function(){return U("iPad")},Te=function(){return U("iPhone")},Oe=function(){return U("iPod")},Me=function(e){return B(e)};function Ae(e){var t=e||y,n=t.device,r=t.browser,a=t.os,i=t.engine,o=t.ua;return{isSmartTV:W(n),isConsole:$(n),isWearable:K(n),isEmbedded:Y(n),isMobileSafari:le(r)||Se(),isChromium:ce(r),isMobile:q(n)||Se(),isMobileOnly:H(n),isTablet:z(n)||Se(),isBrowser:G(n),isDesktop:G(n),isAndroid:Q(a),isWinPhone:ne(a),isIOS:re(a)||Se(),isChrome:oe(r),isFirefox:se(r),isSafari:de(r),isOpera:pe(r),isIE:he(r),osVersion:ae(a),osName:ie(a),fullBrowserVersion:me(r),browserVersion:ve(r),browserName:ge(r),mobileVendor:J(n),mobileModel:Z(n),engineName:xe(i),engineVersion:we(i),getUA:Me(o),isEdge:ue(r)||ke(o),isYandex:fe(r),deviceType:X(n),isIOS13:Ee(),isIPad13:Se(),isIPhone13:Te(),isIPod13:Oe(),isElectron:_e(),isEdgeChromium:ke(o),isLegacyEdge:ue(r)&&!ke(o),isWindows:ee(a),isMacOs:te(a),isMIUI:be(r),isSamsungBrowser:ye(r)}}var Ce=W(f),je=$(f),Pe=K(f),Ie=Y(f),Ne=le(c)||Se(),Re=ce(c),De=q(f)||Se(),Le=H(f),Be=z(f)||Se(),Fe=G(f),Ue=G(f),Ve=Q(l),He=ne(l),ze=re(l)||Se(),qe=oe(c),We=se(c),Ge=de(c),Ke=pe(c),$e=he(c),Ye=ae(l),Je=ie(l),Ze=me(c),Xe=ve(c),Qe=ge(c),et=J(f),tt=Z(f),nt=xe(d),rt=we(d),at=Me(p),it=ue(c)||ke(p),ot=fe(c),st=X(f),ct=Ee(),ut=Se(),ft=Te(),dt=Oe(),lt=_e(),pt=ke(p),ht=ue(c)&&!ke(p),bt=ee(l),yt=te(l),mt=be(c),vt=ye(c);function gt(e){var t=e||window.navigator.userAgent;return b(t)}t.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Ve?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.BrowserTypes=R,t.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Fe?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return je?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.CustomView=function(e){var t=e.renderWithFragment,n=e.children,r=(e.viewClassName,e.style,e.condition),o=E(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?t?i.createElement(a.Fragment,null,n):i.createElement("div",o,n):null},t.IEView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return $e?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.IOSView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return ze?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children,r=(e.viewClassName,e.style,E(e,["renderWithFragment","children","viewClassName","style"]));return Le?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.MobileView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return De?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.OsTypes=D,t.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Ce?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.TabletView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Be?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.WearableView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Pe?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return He?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.browserName=Qe,t.browserVersion=Xe,t.deviceDetect=function(e){var t=e?b(e):y,n=t.device,r=t.browser,a=t.engine,i=t.os,o=t.ua,s=function(e){switch(e){case M:return{isMobile:!0};case A:return{isTablet:!0};case C:return{isSmartTV:!0};case j:return{isConsole:!0};case P:return{isWearable:!0};case N:return{isBrowser:!0};case I:return{isEmbedded:!0};default:return L}}(n.type),c=s.isBrowser,u=s.isMobile,f=s.isTablet,d=s.isSmartTV,l=s.isConsole,p=s.isWearable,h=s.isEmbedded;return c?function(e,t,n,r,a){return{isBrowser:e,browserMajorVersion:B(t.major),browserFullVersion:B(t.version),browserName:B(t.name),engineName:B(n.name),engineVersion:B(n.version),osName:B(r.name),osVersion:B(r.version),userAgent:B(a)}}(c,r,a,i,o):d?function(e,t,n,r){return{isSmartTV:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(d,a,i,o):l?function(e,t,n,r){return{isConsole:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(l,a,i,o):u||f?V(s,n,i,o):p?function(e,t,n,r){return{isWearable:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(p,a,i,o):h?function(e,t,n,r,a){return{isEmbedded:e,vendor:B(t.vendor),model:B(t.model),engineName:B(n.name),engineVersion:B(n.version),osName:B(r.name),osVersion:B(r.version),userAgent:B(a)}}(h,n,a,i,o):void 0},t.deviceType=st,t.engineName=nt,t.engineVersion=rt,t.fullBrowserVersion=Ze,t.getSelectorsByUserAgent=function(e){if(e&&"string"===typeof e){var t=b(e);return Ae({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},t.getUA=at,t.isAndroid=Ve,t.isBrowser=Fe,t.isChrome=qe,t.isChromium=Re,t.isConsole=je,t.isDesktop=Ue,t.isEdge=it,t.isEdgeChromium=pt,t.isElectron=lt,t.isEmbedded=Ie,t.isFirefox=We,t.isIE=$e,t.isIOS=ze,t.isIOS13=ct,t.isIPad13=ut,t.isIPhone13=ft,t.isIPod13=dt,t.isLegacyEdge=ht,t.isMIUI=mt,t.isMacOs=yt,t.isMobile=De,t.isMobileOnly=Le,t.isMobileSafari=Ne,t.isOpera=Ke,t.isSafari=Ge,t.isSamsungBrowser=vt,t.isSmartTV=Ce,t.isTablet=Be,t.isWearable=Pe,t.isWinPhone=He,t.isWindows=bt,t.isYandex=ot,t.mobileModel=tt,t.mobileVendor=et,t.osName=Je,t.osVersion=Ye,t.parseUserAgent=b,t.setUserAgent=function(e){return h(e)},t.useDeviceData=gt,t.useDeviceSelectors=function(e){var t=gt(e||window.navigator.userAgent);return[Ae(t),t]},t.useMobileOrientation=function(){var e=T(a.useState((function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}})),2),t=e[0],n=e[1],r=a.useCallback((function(){var e=window.innerWidth>window.innerHeight?90:0,r={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return a.useEffect((function(){return void 0!==("undefined"===typeof window?"undefined":v(window))&&De&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}}),[r]),t},t.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(this,_(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(S(t)),t.onOrientationChange=t.onOrientationChange.bind(S(t)),t.onPageLoad=t.onPageLoad.bind(S(t)),t.state={isLandscape:!1,isPortrait:!1},t}var r,a,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,t),r=n,(a=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"===typeof window?"undefined":v(window))&&De&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(e,w({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&g(r.prototype,a),o&&g(r,o),n}(i.Component)}},function(e,t,n){"use strict";var r=n(1095),a=n(1096);e.exports={errors:r,formatters:a}},function(e,t,n){"use strict";var r=n(59).Buffer,a=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=d,t=3;break;default:return this.write=l,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return a>0&&(e.lastNeed=a-1),a;if(--r=0)return a>0&&(e.lastNeed=a-2),a;if(--r=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(1275),a=n(1276);e.exports={errors:r,formatters:a}},function(e,t,n){var r=n(145);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},function(e,t,n){var r=n(122).default,a=n(79).default,i=n(33).default,o=n(34).default,s=function(){"use strict";function e(t,n){var r=this;if(i(this,e),n=u(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof f)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t,this.set=t.split("||").map((function(e){return r.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(t));if(this.set.length>1){var o=this.set[0];if(this.set=this.set.filter((function(e){return!g(e[0])})),0===this.set.length)this.set=[o];else if(this.set.length>1){var s,c=a(this.set);try{for(c.s();!(s=c.n()).done;){var d=s.value;if(1===d.length&&x(d[0])){this.set=[d];break}}}catch(l){c.e(l)}finally{c.f()}}}this.format()}return o(e,[{key:"format",value:function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t=this;e=e.trim();var n=Object.keys(this.options).join(","),i="parseRange:".concat(n,":").concat(e),o=c.get(i);if(o)return o;var s=this.options.loose,u=s?h[b.HYPHENRANGELOOSE]:h[b.HYPHENRANGE];e=e.replace(u,P(this.options.includePrerelease)),d("hyphen replace",e),e=e.replace(h[b.COMPARATORTRIM],y),d("comparator trim",e);var l=(e=(e=(e=e.replace(h[b.TILDETRIM],m)).replace(h[b.CARETTRIM],v)).split(/\s+/).join(" ")).split(" ").map((function(e){return _(e,t.options)})).join(" ").split(/\s+/).map((function(e){return j(e,t.options)}));s&&(l=l.filter((function(e){return d("loose invalid filter",e,t.options),!!e.match(h[b.COMPARATORLOOSE])}))),d("range list",l);var p,x=new Map,w=l.map((function(e){return new f(e,t.options)})),k=a(w);try{for(k.s();!(p=k.n()).done;){var E=p.value;if(g(E))return[E];x.set(E.value,E)}}catch(T){k.e(T)}finally{k.f()}x.size>1&&x.has("")&&x.delete("");var S=r(x.values());return c.set(i,S),S}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return w(e,n)&&t.set.some((function(t){return w(t,n)&&e.every((function(e){return t.every((function(t){return e.intersects(t,n)}))}))}))}))}},{key:"test",value:function(e){if(!e)return!1;if("string"===typeof e)try{e=new l(e,this.options)}catch(n){return!1}for(var t=0;t=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):o?(d("replaceCaret pr",o),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(+n+1,".0.0-0")):(d("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),d("caret return",s),s}))},M=function(e,t){return d("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return A(e,t)})).join(" ")},A=function(e,t){e=e.trim();var n=t.loose?h[b.XRANGELOOSE]:h[b.XRANGE];return e.replace(n,(function(n,r,a,i,o,s){d("xRange",e,n,r,a,i,o,s);var c=k(a),u=c||k(i),f=u||k(o),l=f;return"="===r&&l&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(i=0),o=0,">"===r?(r=">=",u?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(o).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):f&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),d("xRange return",n),n}))},C=function(e,t){return d("replaceStars",e,t),e.trim().replace(h[b.STAR],"")},j=function(e,t){return d("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?b.GTE0PRE:b.GTE0],"")},P=function(e){return function(t,n,r,a,i,o,s,c,u,f,d,l,p){return n=k(r)?"":k(a)?">=".concat(r,".0.0").concat(e?"-0":""):k(i)?">=".concat(r,".").concat(a,".0").concat(e?"-0":""):o?">=".concat(n):">=".concat(n).concat(e?"-0":""),c=k(u)?"":k(f)?"<".concat(+u+1,".0.0-0"):k(d)?"<".concat(u,".").concat(+f+1,".0-0"):l?"<=".concat(u,".").concat(f,".").concat(d,"-").concat(l):e?"<".concat(u,".").concat(f,".").concat(+d+1,"-0"):"<=".concat(c),"".concat(n," ").concat(c).trim()}},I=function(e,t,n){for(var r=0;r0){var i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;tthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),c=new a.a,u=Object.prototype.hasOwnProperty,f=void 0===(o=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:o;function d(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var l=[];function p(e,t){if(!e)throw new Error(t||"assertion failure")}function h(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var b=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!v(this))return y(this),this.value[0]},e.prototype.recompute=function(e){return p(!this.recomputing,"already recomputing"),y(this),v(this)?function(e,t){S(e),c.withValue(e,m,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,v(e))return;x(e)}(e);return h(e.value)}(this,e):h(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,g(this),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),S(this),w(this,(function(t,n){t.setDirty(),T(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=l.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(f(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),l.push(this.deps),this.deps=null)},e.count=0,e}();function y(e){var t=c.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),v(e)?_(t,e):k(t,e),t}function m(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function v(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function g(e){w(e,_)}function x(e){w(e,k)}function w(e,t){var n=e.parents.size;if(n)for(var r=f(e.parents),a=0;a0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),E(e,t),v(e)||x(e)}function E(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(l.length<100&&l.push(n),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){T(e,n)})),e.forgetDeps(),p(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),E(e,t)}var O={setDirty:!0,dispose:!0,forget:!0};function M(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=c.getValue();if(r){var a=t.get(e);a||t.set(e,a=new Set),r.dependOn(a),"function"===typeof n&&(d(a),a.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var a=n&&u.call(O,n)?n:"setDirty";f(r).forEach((function(e){return e[a]()})),t.delete(e),d(r)}},r}function A(){var e=new r.a("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}A();var C=new Set;function j(e,t){void 0===t&&(t=Object.create(null));var n=new s(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,a=t.makeCacheKey||A(),i=function(){var i=a.apply(null,r?r.apply(null,arguments):arguments);if(void 0===i)return e.apply(null,arguments);var o=n.get(i);o||(n.set(i,o=new b(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(i)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(i,o),C.add(n),c.hasValue()||(C.forEach((function(e){return e.clean()})),C.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function u(e){var t=n.get(e);if(t)return t.peek()}function f(e){return n.delete(e)}return Object.defineProperty(i,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),i.dirtyKey=o,i.dirty=function(){o(a.apply(null,arguments))},i.peekKey=u,i.peek=function(){return u(a.apply(null,arguments))},i.forgetKey=f,i.forget=function(){return f(a.apply(null,arguments))},i.makeCacheKey=a,i.getKey=r?function(){return a.apply(null,r.apply(null,arguments))}:a,Object.freeze(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(1),i=(r=a)&&"object"===typeof r&&"default"in r?r.default:r,o=n(1864),s=new o,c=s.getBrowser(),u=s.getCPU(),f=s.getDevice(),d=s.getEngine(),l=s.getOS(),p=s.getUA(),h=function(e){return s.setUA(e)},b=function(e){if(e){var t=new o(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},y=Object.freeze({ClientUAInstance:s,browser:c,cpu:u,device:f,engine:d,os:l,ua:p,setUa:h,parseUserAgent:b});function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(c){s=!0,a=c}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},F=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=F();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},V=function(e,t,n,r){return function(e){for(var t=1;t1)&&!window.MSStream},Se=function(){return U("iPad")},Te=function(){return U("iPhone")},Oe=function(){return U("iPod")},Me=function(e){return B(e)};function Ae(e){var t=e||y,n=t.device,r=t.browser,a=t.os,i=t.engine,o=t.ua;return{isSmartTV:W(n),isConsole:$(n),isWearable:K(n),isEmbedded:Y(n),isMobileSafari:le(r)||Se(),isChromium:ce(r),isMobile:q(n)||Se(),isMobileOnly:H(n),isTablet:z(n)||Se(),isBrowser:G(n),isDesktop:G(n),isAndroid:Q(a),isWinPhone:ne(a),isIOS:re(a)||Se(),isChrome:oe(r),isFirefox:se(r),isSafari:de(r),isOpera:pe(r),isIE:he(r),osVersion:ae(a),osName:ie(a),fullBrowserVersion:me(r),browserVersion:ve(r),browserName:ge(r),mobileVendor:J(n),mobileModel:Z(n),engineName:xe(i),engineVersion:we(i),getUA:Me(o),isEdge:ue(r)||ke(o),isYandex:fe(r),deviceType:X(n),isIOS13:Ee(),isIPad13:Se(),isIPhone13:Te(),isIPod13:Oe(),isElectron:_e(),isEdgeChromium:ke(o),isLegacyEdge:ue(r)&&!ke(o),isWindows:ee(a),isMacOs:te(a),isMIUI:be(r),isSamsungBrowser:ye(r)}}var Ce=W(f),je=$(f),Pe=K(f),Ie=Y(f),Ne=le(c)||Se(),Re=ce(c),De=q(f)||Se(),Le=H(f),Be=z(f)||Se(),Fe=G(f),Ue=G(f),Ve=Q(l),He=ne(l),ze=re(l)||Se(),qe=oe(c),We=se(c),Ge=de(c),Ke=pe(c),$e=he(c),Ye=ae(l),Je=ie(l),Ze=me(c),Xe=ve(c),Qe=ge(c),et=J(f),tt=Z(f),nt=xe(d),rt=we(d),at=Me(p),it=ue(c)||ke(p),ot=fe(c),st=X(f),ct=Ee(),ut=Se(),ft=Te(),dt=Oe(),lt=_e(),pt=ke(p),ht=ue(c)&&!ke(p),bt=ee(l),yt=te(l),mt=be(c),vt=ye(c);function gt(e){var t=e||window.navigator.userAgent;return b(t)}t.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Ve?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.BrowserTypes=R,t.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Fe?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return je?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.CustomView=function(e){var t=e.renderWithFragment,n=e.children,r=(e.viewClassName,e.style,e.condition),o=E(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?t?i.createElement(a.Fragment,null,n):i.createElement("div",o,n):null},t.IEView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return $e?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.IOSView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return ze?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children,r=(e.viewClassName,e.style,E(e,["renderWithFragment","children","viewClassName","style"]));return Le?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.MobileView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return De?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.OsTypes=D,t.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Ce?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.TabletView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Be?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.WearableView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return Pe?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,r=E(e,["renderWithFragment","children"]);return He?t?i.createElement(a.Fragment,null,n):i.createElement("div",r,n):null},t.browserName=Qe,t.browserVersion=Xe,t.deviceDetect=function(e){var t=e?b(e):y,n=t.device,r=t.browser,a=t.engine,i=t.os,o=t.ua,s=function(e){switch(e){case M:return{isMobile:!0};case A:return{isTablet:!0};case C:return{isSmartTV:!0};case j:return{isConsole:!0};case P:return{isWearable:!0};case N:return{isBrowser:!0};case I:return{isEmbedded:!0};default:return L}}(n.type),c=s.isBrowser,u=s.isMobile,f=s.isTablet,d=s.isSmartTV,l=s.isConsole,p=s.isWearable,h=s.isEmbedded;return c?function(e,t,n,r,a){return{isBrowser:e,browserMajorVersion:B(t.major),browserFullVersion:B(t.version),browserName:B(t.name),engineName:B(n.name),engineVersion:B(n.version),osName:B(r.name),osVersion:B(r.version),userAgent:B(a)}}(c,r,a,i,o):d?function(e,t,n,r){return{isSmartTV:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(d,a,i,o):l?function(e,t,n,r){return{isConsole:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(l,a,i,o):u||f?V(s,n,i,o):p?function(e,t,n,r){return{isWearable:e,engineName:B(t.name),engineVersion:B(t.version),osName:B(n.name),osVersion:B(n.version),userAgent:B(r)}}(p,a,i,o):h?function(e,t,n,r,a){return{isEmbedded:e,vendor:B(t.vendor),model:B(t.model),engineName:B(n.name),engineVersion:B(n.version),osName:B(r.name),osVersion:B(r.version),userAgent:B(a)}}(h,n,a,i,o):void 0},t.deviceType=st,t.engineName=nt,t.engineVersion=rt,t.fullBrowserVersion=Ze,t.getSelectorsByUserAgent=function(e){if(e&&"string"===typeof e){var t=b(e);return Ae({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},t.getUA=at,t.isAndroid=Ve,t.isBrowser=Fe,t.isChrome=qe,t.isChromium=Re,t.isConsole=je,t.isDesktop=Ue,t.isEdge=it,t.isEdgeChromium=pt,t.isElectron=lt,t.isEmbedded=Ie,t.isFirefox=We,t.isIE=$e,t.isIOS=ze,t.isIOS13=ct,t.isIPad13=ut,t.isIPhone13=ft,t.isIPod13=dt,t.isLegacyEdge=ht,t.isMIUI=mt,t.isMacOs=yt,t.isMobile=De,t.isMobileOnly=Le,t.isMobileSafari=Ne,t.isOpera=Ke,t.isSafari=Ge,t.isSamsungBrowser=vt,t.isSmartTV=Ce,t.isTablet=Be,t.isWearable=Pe,t.isWinPhone=He,t.isWindows=bt,t.isYandex=ot,t.mobileModel=tt,t.mobileVendor=et,t.osName=Je,t.osVersion=Ye,t.parseUserAgent=b,t.setUserAgent=function(e){return h(e)},t.useDeviceData=gt,t.useDeviceSelectors=function(e){var t=gt(e||window.navigator.userAgent);return[Ae(t),t]},t.useMobileOrientation=function(){var e=T(a.useState((function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}})),2),t=e[0],n=e[1],r=a.useCallback((function(){var e=window.innerWidth>window.innerHeight?90:0,r={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return a.useEffect((function(){return void 0!==("undefined"===typeof window?"undefined":v(window))&&De&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}}),[r]),t},t.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(this,_(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(S(t)),t.onOrientationChange=t.onOrientationChange.bind(S(t)),t.onPageLoad=t.onPageLoad.bind(S(t)),t.state={isLandscape:!1,isPortrait:!1},t}var r,a,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,t),r=n,(a=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"===typeof window?"undefined":v(window))&&De&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(e,w({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&g(r.prototype,a),o&&g(r,o),n}(i.Component)}},,function(e,t,n){"use strict";function r(e){try{return e()}catch(t){}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d}));var r=n(135);function a(e){return Object(r.c)(e,"subscribe")}function i(e){return Object(r.b)(e,["topic"],[])}function o(e){return Object(r.c)(e,"publish")}function s(e){return Object(r.b)(e,["message","topic","ttl"],["prompt","tag"])}function c(e){return Object(r.c)(e,"unsubscribe")}function u(e){return Object(r.b)(e,["id","topic"],[])}function f(e){return Object(r.c)(e,"subscription")}function d(e){return Object(r.b)(e,["id","data"],[])}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var a=n(997);function i(){return!Object(a.a)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof e?e:0)}function o(e,t){return e.require(t)}function s(e){var t;try{t=o(r,e)}catch(a){}try{var n=o(r,"process").cwd;t=o(r,n()+"/node_modules/"+e)}catch(a){}return t}}).call(this,n(53),n(335)(e))},function(e,t,n){"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!o(r,e)||a&&!o(i,e))))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):s(e,t,n)}},function(e,t,n){"use strict";var r=n(169),a=n(43);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 s(e){return 1===e.length?"0"+e:e}function c(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,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,s,c,u){var f=0,d=t;return f+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>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}},function(e,t,n){"use strict";var r=n(1421),a=n(1422);e.exports={errors:r,formatters:a}},function(e,t,n){var r=n(909),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.r(t);var r=n(237);n.d(t,"id",(function(){return r.a}));var a=n(235);n.d(t,"dnsEncode",(function(){return a.a})),n.d(t,"namehash",(function(){return a.c})),n.d(t,"isValidName",(function(){return a.b}));var i=n(644);n.d(t,"messagePrefix",(function(){return i.b})),n.d(t,"hashMessage",(function(){return i.a}));var o=n(498);n.d(t,"_TypedDataEncoder",(function(){return o.a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return r.b})),n.d(t,"BaseProvider",(function(){return i.a})),n.d(t,"Resolver",(function(){return i.b})),n.d(t,"UrlJsonRpcProvider",(function(){return C})),n.d(t,"FallbackProvider",(function(){return be})),n.d(t,"AlchemyProvider",(function(){return N})),n.d(t,"AlchemyWebSocketProvider",(function(){return I})),n.d(t,"AnkrProvider",(function(){return B})),n.d(t,"CloudflareProvider",(function(){return V})),n.d(t,"EtherscanProvider",(function(){return Q})),n.d(t,"InfuraProvider",(function(){return xe})),n.d(t,"InfuraWebSocketProvider",(function(){return ge})),n.d(t,"JsonRpcProvider",(function(){return v.a})),n.d(t,"JsonRpcBatchProvider",(function(){return we})),n.d(t,"NodesmithProvider",(function(){return ke})),n.d(t,"PocketProvider",(function(){return Te})),n.d(t,"StaticJsonRpcProvider",(function(){return A})),n.d(t,"Web3Provider",(function(){return Ce})),n.d(t,"WebSocketProvider",(function(){return T})),n.d(t,"IpcProvider",(function(){return ye})),n.d(t,"JsonRpcSigner",(function(){return v.b})),n.d(t,"getDefaultProvider",(function(){return Pe})),n.d(t,"getNetwork",(function(){return a.a})),n.d(t,"isCommunityResource",(function(){return l.c})),n.d(t,"isCommunityResourcable",(function(){return l.b})),n.d(t,"showThrottleMessage",(function(){return l.d})),n.d(t,"Formatter",(function(){return l.a}));var r=n(192),a=n(267),i=n(231),o=n(8),s=n(9),c=n(30),u=n(17),f=n(19),d=n(10),l=n(118),p=n(2),h=n(216),b=n(74),y=n(51),m=n(44),v=n(163),g=n(13),x=n(81),w=null;try{if(null==(w=WebSocket))throw new Error("inject please")}catch(Ie){var _=new g.Logger(x.a);w=function(){_.throwError("WebSockets not supported in this environment",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},E=new g.Logger(x.a),S=1,T=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r){var a,i;Object(o.a)(this,n),"any"===r&&E.throwError("WebSocketProvider does not support 'any' network yet",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(i="string"===typeof e?t.call(this,e,r):t.call(this,"_websocket",r))._pollingInterval=-1,i._wsReady=!1,"string"===typeof e?Object(d.defineReadOnly)(Object(c.a)(i),"_websocket",new w(i.connection.url)):Object(d.defineReadOnly)(Object(c.a)(i),"_websocket",e),Object(d.defineReadOnly)(Object(c.a)(i),"_requests",{}),Object(d.defineReadOnly)(Object(c.a)(i),"_subs",{}),Object(d.defineReadOnly)(Object(c.a)(i),"_subIds",{}),Object(d.defineReadOnly)(Object(c.a)(i),"_detectNetwork",Object(b.a)((a=Object(c.a)(i),Object(y.a)(n.prototype)),"detectNetwork",a).call(a)),i.websocket.onopen=function(){i._wsReady=!0,Object.keys(i._requests).forEach((function(e){i.websocket.send(i._requests[e].payload)}))},i.websocket.onmessage=function(e){var t=e.data,n=JSON.parse(t);if(null!=n.id){var r=String(n.id),a=i._requests[r];if(delete i._requests[r],void 0!==n.result)a.callback(null,n.result),i.emit("debug",{action:"response",request:JSON.parse(a.payload),response:n.result,provider:Object(c.a)(i)});else{var o=null;n.error?(o=new Error(n.error.message||"unknown error"),Object(d.defineReadOnly)(o,"code",n.error.code||null),Object(d.defineReadOnly)(o,"response",t)):o=new Error("unknown error"),a.callback(o,void 0),i.emit("debug",{action:"response",error:o,request:JSON.parse(a.payload),provider:Object(c.a)(i)})}}else if("eth_subscription"===n.method){var s=i._subs[n.params.subscription];s&&s.processFunc(n.params.result)}else console.warn("this should not happen")};var s=setInterval((function(){i.emit("poll")}),1e3);return s.unref&&s.unref(),Object(h.a)(i)}return Object(s.a)(n,[{key:"websocket",get:function(){return this._websocket}},{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){E.throwError("cannot set polling interval on WebSocketProvider",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){E.throwError("cannot reset events block on WebSocketProvider",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return k(this,void 0,void 0,Object(p.a)().mark((function e(){return Object(p.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&E.throwError("cannot set polling on WebSocketProvider",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var n=this,r=S++;return new Promise((function(a,i){var o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});n.emit("debug",{action:"request",request:JSON.parse(o),provider:n}),n._requests[String(r)]={callback:function(e,t){return e?i(e):a(t)},payload:o},n._wsReady&&n.websocket.send(o)}))}},{key:"_subscribe",value:function(e,t,n){return k(this,void 0,void 0,Object(p.a)().mark((function r(){var a,i,o=this;return Object(p.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==(a=this._subIds[e])&&(a=Promise.all(t).then((function(e){return o.send("eth_subscribe",e)})),this._subIds[e]=a),r.next=4,a;case 4:i=r.sent,this._subs[i]={tag:e,processFunc:n};case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var n=m.a.from(e.number).toNumber();t._emitted.block=n,t.emit("block",n)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(n){null==n.removed&&(n.removed=!1),t.emit(e.filter,t.formatter.filterLog(n))}));break;case"tx":var n=function(e){var n=e.hash;t.getTransactionReceipt(n).then((function(e){e&&t.emit(n,e)}))};n(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(n)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,n=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;n="tx"}else if(this.listenerCount(e.event))return;var r=this._subIds[n];r&&(delete this._subIds[n],r.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return k(this,void 0,void 0,Object(p.a)().mark((function e(){var t=this;return Object(p.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.websocket.readyState!==w.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t.websocket.onopen=function(){e(!0)},t.websocket.onerror=function(){e(!1)}}));case 3:this.websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}],[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}]),n}(v.a),O=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},M=new g.Logger(x.a),A=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"detectNetwork",value:function(){var e=this,t=Object.create(null,{detectNetwork:{get:function(){return Object(b.a)(Object(y.a)(n.prototype),"detectNetwork",e)}}});return O(this,void 0,void 0,Object(p.a)().mark((function e(){var n;return Object(p.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=this.network)){e.next=7;break}return e.next=4,t.detectNetwork.call(this);case 4:(n=e.sent)||M.throwError("no network detected",g.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(Object(d.defineReadOnly)(this,"_network",n),this.emit("network",n,null));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})))}}]),n}(v.a),C=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r){var a;Object(o.a)(this,n),M.checkAbstract(this instanceof n?this.constructor:void 0,n),e=Object(d.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e),r=Object(d.getStatic)(this instanceof n?this.constructor:void 0,"getApiKey")(r);var i=Object(d.getStatic)(this instanceof n?this.constructor:void 0,"getUrl")(e,r);return a=t.call(this,i,e),"string"===typeof r?Object(d.defineReadOnly)(Object(c.a)(a),"apiKey",r):null!=r&&Object.keys(r).forEach((function(e){Object(d.defineReadOnly)(Object(c.a)(a),e,r[e])})),a}return Object(s.a)(n,[{key:"_startPending",value:function(){M.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return M.throwError("API provider does not support signing",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return M.throwError("not implemented; sub-classes must override getUrl",g.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),n}(A),j=new g.Logger(x.a),P="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",I=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r){var a;Object(o.a)(this,n);var i=new N(e,r),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=t.call(this,s,i.network),Object(d.defineReadOnly)(Object(c.a)(a),"apiKey",i.apiKey),a}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===P}}]),n}(T),N=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===P}}],[{key:"getWebSocketProvider",value:function(e,t){return new I(e,t)}},{key:"getApiKey",value:function(e){return null==e?P:(e&&"string"!==typeof e&&j.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":n="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":n="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.alchemyapi.io/v2/";break;case"kovan":n="eth-kovan.alchemyapi.io/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-rinkeby":n="arb-rinkeby.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-kovan":n="opt-kovan.g.alchemy.com/v2/";break;default:j.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:function(e,n){return t===P&&Object(l.d)(),Promise.resolve(!0)}}}}]),n}(C),R=new g.Logger(x.a),D="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function L(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return R.throwArgumentError("unsupported network","name",e)}var B=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===D}}],[{key:"getApiKey",value:function(e){return null==e?D:e}},{key:"getUrl",value:function(e,t){null==t&&(t=D);var n={allowGzip:!0,url:"https://"+L(e.name)+t,throttleCallback:function(e,n){return t.apiKey===D&&Object(l.d)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),n}(C),F=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},U=new g.Logger(x.a),V=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"perform",value:function(e,t){var r=this,a=Object.create(null,{perform:{get:function(){return Object(b.a)(Object(y.a)(n.prototype),"perform",r)}}});return F(this,void 0,void 0,Object(p.a)().mark((function n(){var r;return Object(p.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("getBlockNumber"!==e){n.next=5;break}return n.next=3,a.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return r=n.sent,n.abrupt("return",r.number);case 5:return n.abrupt("return",a.perform.call(this,e,t));case 6:case"end":return n.stop()}}),n,this)})))}}],[{key:"getApiKey",value:function(e){return null!=e&&U.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var n=null;if("homestead"===e.name)n="https://cloudflare-eth.com/";else U.throwArgumentError("unsupported network","network",arguments[0]);return n}}]),n}(C),H=n(6),z=n(69),q=n(112),W=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},G=new g.Logger(x.a);function K(e){var t={};for(var n in e)if(null!=e[n]){var r=e[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?Object(H.hexValue)(Object(H.hexlify)(r)):"accessList"===n?"["+Object(z.accessListify)(r).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]":Object(H.hexlify)(r),t[n]=r)}return t}function $(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"OK"!=e.message){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Y(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var n=new Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){var r=new Error(e.error.message||"unknown error");throw e.error.code&&(r.code=e.error.code),e.error.data&&(r.data=e.error.data),r}return e.result}function J(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}var Z="9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";function X(e,t,n){if("call"===e&&t.code===g.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){var a=r.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),Object(H.isHexString)(a))return a;G.throwError("missing revert data in call exception",g.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var i=t.message;throw t.code===g.Logger.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&G.throwError("insufficient funds for intrinsic transaction cost",g.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&G.throwError("nonce has already been used",g.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/another transaction with same nonce/)&&G.throwError("replacement fee too low",g.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/execution failed due to an exception|execution reverted/)&&G.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}var Q=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,r){var a;return Object(o.a)(this,n),a=t.call(this,e),Object(d.defineReadOnly)(Object(c.a)(a),"baseUrl",a.getBaseUrl()),Object(d.defineReadOnly)(Object(c.a)(a),"apiKey",r||Z),a}return Object(s.a)(n,[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"optimism":return"https://api-optimistic.etherscan.io"}return G.throwArgumentError("unsupported network","network",this.network.name)}},{key:"getUrl",value:function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e+="&".concat(n,"=").concat(r)),e}),""),r=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(n).concat(r)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,n){return W(this,void 0,void 0,Object(p.a)().mark((function r(){var a,i,o,s,c,u,f=this;return Object(p.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null,o="proxy"===e?Y:$,this.emit("debug",{action:"request",request:a,provider:this}),s={url:a,throttleSlotInterval:1e3,throttleCallback:function(e,t){return f.isCommunityResource()&&Object(l.d)(),Promise.resolve(!0)}},c=null,i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(i[e])})).join("&")),r.next=9,Object(q.fetchJson)(s,c,o||Y);case 9:return u=r.sent,this.emit("debug",{action:"response",request:a,response:Object(d.deepCopy)(u),provider:this}),r.abrupt("return",u);case 12:case"end":return r.stop()}}),r,this)})))}},{key:"detectNetwork",value:function(){return W(this,void 0,void 0,Object(p.a)().mark((function e(){return Object(p.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,a=Object.create(null,{perform:{get:function(){return Object(b.a)(Object(y.a)(n.prototype),"perform",r)}}});return W(this,void 0,void 0,Object(p.a)().mark((function n(){var r,i,o,s,c,u,f,d,l;return Object(p.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=e,n.next="getBlockNumber"===n.t0?3:"getGasPrice"===n.t0?4:"getBalance"===n.t0?5:"getTransactionCount"===n.t0?6:"getCode"===n.t0?7:"getStorageAt"===n.t0?8:"sendTransaction"===n.t0?9:"getBlock"===n.t0?10:"getTransaction"===n.t0?13:"getTransactionReceipt"===n.t0?14:"call"===n.t0?15:"estimateGas"===n.t0?29:"getLogs"===n.t0?41:"getEtherPrice"===n.t0?65:72;break;case 3:return n.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return n.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return n.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag}));case 6:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag}));case 7:return n.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag}));case 8:return n.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag}));case 9:return n.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return X("sendTransaction",e,t.signedTransaction)})));case 10:if(!t.blockTag){n.next=12;break}return n.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash}));case 14:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash}));case 15:if("latest"===t.blockTag){n.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(r=K(t.transaction)).module="proxy",r.action="eth_call",n.prev=20,n.next=23,this.fetch("proxy",r,!0);case 23:return n.abrupt("return",n.sent);case 26:return n.prev=26,n.t1=n.catch(20),n.abrupt("return",X("call",n.t1,t.transaction));case 29:return(i=K(t.transaction)).module="proxy",i.action="eth_estimateGas",n.prev=32,n.next=35,this.fetch("proxy",i,!0);case 35:return n.abrupt("return",n.sent);case 38:return n.prev=38,n.t2=n.catch(32),n.abrupt("return",X("estimateGas",n.t2,t.transaction));case 41:return o={action:"getLogs"},t.filter.fromBlock&&(o.fromBlock=J(t.filter.fromBlock)),t.filter.toBlock&&(o.toBlock=J(t.filter.toBlock)),t.filter.address&&(o.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&G.throwError("unsupported topic count",g.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"===typeof(s=t.filter.topics[0])&&66===s.length||G.throwError("unsupported topic format",g.Logger.errors.UNSUPPORTED_OPERATION,{topic0:s}),o.topic0=s)),n.next=48,this.fetch("logs",o);case 48:c=n.sent,u={},f=0;case 51:if(!(ft?null:(r+a)/2}function oe(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(m.a.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return oe(e)})));if("object"===typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var n=e[t];return n="function"===typeof n?"[function]":oe(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var se=1;function ce(e){var t=null,n=null,r=new Promise((function(r){t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:function(e){return r=r.then(e)}}}var ue=[g.Logger.errors.CALL_EXCEPTION,g.Logger.errors.INSUFFICIENT_FUNDS,g.Logger.errors.NONCE_EXPIRED,g.Logger.errors.REPLACEMENT_UNDERPRICED,g.Logger.errors.UNPREDICTABLE_GAS_LIMIT],fe=["address","args","errorArgs","errorSignature","method","transaction"];function de(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function le(e,t,n){var r=oe;switch(t){case"getBlockNumber":return function(t){var n=t.map((function(e){return e.result})),r=ie(t.map((function(e){return e.result})),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return ie(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=Object(d.shallowCopy)(e)).confirmations=-1,oe(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=Object(d.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=Object(d.shallowCopy)(e)).confirmations=-1,e})),oe(e))}:function(e){return null==e?null:oe(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){var r={};n.forEach((function(t){var n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));for(var a=Object.keys(r),i=0;i=t)return o.result}}}(r,e.quorum)}function pe(e,t){return te(this,void 0,void 0,Object(p.a)().mark((function n(){var r;return Object(p.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t)){n.next=3;break}return n.abrupt("return",r);case 3:return n.abrupt("return",Object(q.poll)((function(){return new Promise((function(n,a){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r}));case 4:case"end":return n.stop()}}),n)})))}function he(e,t,n,r){return te(this,void 0,void 0,Object(p.a)().mark((function a(){var i,o;return Object(p.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=e.provider,a.t0=n,a.next="getBlockNumber"===a.t0||"getGasPrice"===a.t0?4:"getEtherPrice"===a.t0?5:"getBalance"===a.t0||"getTransactionCount"===a.t0||"getCode"===a.t0?8:"getStorageAt"===a.t0?13:"getBlock"===a.t0?18:"call"===a.t0||"estimateGas"===a.t0?23:"getTransaction"===a.t0||"getTransactionReceipt"===a.t0?28:"getLogs"===a.t0?29:35;break;case 4:return a.abrupt("return",i[n]());case 5:if(!i.getEtherPrice){a.next=7;break}return a.abrupt("return",i.getEtherPrice());case 7:return a.abrupt("break",35);case 8:if(!r.blockTag||!Object(H.isHexString)(r.blockTag)){a.next=12;break}return a.next=11,pe(e,t);case 11:i=a.sent;case 12:return a.abrupt("return",i[n](r.address,r.blockTag||"latest"));case 13:if(!r.blockTag||!Object(H.isHexString)(r.blockTag)){a.next=17;break}return a.next=16,pe(e,t);case 16:i=a.sent;case 17:return a.abrupt("return",i.getStorageAt(r.address,r.position,r.blockTag||"latest"));case 18:if(!r.blockTag||!Object(H.isHexString)(r.blockTag)){a.next=22;break}return a.next=21,pe(e,t);case 21:i=a.sent;case 22:return a.abrupt("return",i[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash));case 23:if(!r.blockTag||!Object(H.isHexString)(r.blockTag)){a.next=27;break}return a.next=26,pe(e,t);case 26:i=a.sent;case 27:return a.abrupt("return",i[n](r.transaction));case 28:return a.abrupt("return",i[n](r.transactionHash));case 29:if(!((o=r.filter).fromBlock&&Object(H.isHexString)(o.fromBlock)||o.toBlock&&Object(H.isHexString)(o.toBlock))){a.next=34;break}return a.next=33,pe(e,t);case 33:i=a.sent;case 34:return a.abrupt("return",i.getLogs(o));case 35:return a.abrupt("return",ne.throwError("unknown method error",g.Logger.errors.UNKNOWN_ERROR,{method:n,params:r}));case 36:case"end":return a.stop()}}),a)})))}var be=function(e){Object(u.a)(n,e);var t=Object(f.a)(n);function n(e,a){var i;Object(o.a)(this,n),0===e.length&&ne.throwArgumentError("missing providers","providers",e);var s=e.map((function(e,t){if(r.b.isProvider(e)){var n=Object(l.c)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var a=Object(d.shallowCopy)(e);null==a.priority&&(a.priority=1),null==a.stallTimeout&&(a.stallTimeout=Object(l.c)(e)?2e3:750),null==a.weight&&(a.weight=1);var i=a.weight;return(i%1||i>512||i<1)&&ne.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(a)})),u=s.reduce((function(e,t){return e+t.weight}),0);null==a?a=u/2:a>u&&ne.throwArgumentError("quorum will always fail; larger than total weight","quorum",a);var f=ae(s.map((function(e){return e.provider.network})));return null==f&&(f=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then(e,t)}),0)}))),i=t.call(this,f),Object(d.defineReadOnly)(Object(c.a)(i),"providerConfigs",Object.freeze(s)),Object(d.defineReadOnly)(Object(c.a)(i),"quorum",a),i._highestBlockNumber=-1,i}return Object(s.a)(n,[{key:"detectNetwork",value:function(){return te(this,void 0,void 0,Object(p.a)().mark((function e(){var t;return Object(p.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",ae(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return te(this,void 0,void 0,Object(p.a)().mark((function n(){var r,a,i,o,s,c,u,f,l,h,b=this;return Object(p.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sendTransaction"!==e){n.next=13;break}return n.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:r=n.sent,a=0;case 5:if(!(a=b.quorum)){n.next=19;break}if(void 0===(y=o(h))){n.next=15;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",{v:y});case 15:if(f){n.next=18;break}return n.next=18,ce(100).getPromise();case 18:f=!1;case 19:if(m=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return ue.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{}),Object.keys(m).forEach((function(e){var t=m[e];if(!(t.weight0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.b),f=s},function(e,t,n){"use strict";n.r(t),n.d(t,"BaseX",(function(){return s})),n.d(t,"Base32",(function(){return c})),n.d(t,"Base58",(function(){return u}));var r=n(8),a=n(9),i=n(6),o=n(10),s=function(){function e(t){Object(r.a)(this,e),Object(o.defineReadOnly)(this,"alphabet",t),Object(o.defineReadOnly)(this,"base",t.length),Object(o.defineReadOnly)(this,"_alphabetMap",{}),Object(o.defineReadOnly)(this,"_leader",t.charAt(0));for(var n=0;n0;)n.push(a%this.base),a=a/this.base|0}for(var s="",c=0;0===t[c]&&c=0;--u)s+=this.alphabet[n[u]];return s}},{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 s=0;e[s]===this._leader&&s=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(148),a=n(30);function i(e,t){if(t&&("object"===Object(r.a)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(a.a)(e)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(22),a=(n(24),n(1041));function i(e){return e.hasOwnProperty("graphQLErrors")}var o=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,s=n.errorMessage,c=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=r||[],u.clientErrors=i||[],u.networkError=o||null,u.message=s||function(e){var t="";return(Object(a.a)(e.graphQLErrors)||Object(a.a)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")})),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(u),u.extraInfo=c,u.__proto__=t.prototype,u}return Object(r.c)(t,e),t}(Error)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(119),a=n(199),i={nowSeconds:function(){return Date.now()/1e3}};var o=Object(a.b)()?function(){try{return Object(a.a)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=Object(r.a)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===o?i:{nowSeconds:function(){return(o.timeOrigin+o.now())/1e3}},c=i.nowSeconds.bind(i),u=s.nowSeconds.bind(s),f=u,d=function(){var e=Object(r.a)().performance;if(e&&e.now){var t=36e5,n=e.now(),a=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,o=it.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(r,d)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)c=s(o),u.push(c.data),o=c.remainder;return{data:u,remainder:t.slice(d)}}function c(e){return"0x"===e.slice(0,2)}function u(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function f(t){if(!e.isBuffer(t)){if("string"===typeof t)return c(t)?e.from((n="string"!==typeof(r=t)?r:c(r)?r.slice(2):r).length%2?"0"+n:n,"hex"):e.from(t);if("number"===typeof t||"bigint"===typeof t)return t?function(t){var n=u(t);return e.from(n,"hex")}(t):e.from([]);if(null===t||void 0===t)return e.from([]);if(t instanceof Uint8Array)return e.from(t);if(a.default.isBN(t))return e.from(t.toArray());throw new Error("invalid type")}var n,r;return t}t.encode=function t(n){if(Array.isArray(n)){for(var r=[],a=0;a"},d=function(e,t){return{key:e,type:t}},l=function(e,t,n,r){for(var a=e.length,i=Array(a+1),o=0;o"),new X(t,(function(t){return L.is(t)&&t.every(e.is)}),(function(t,n){return s(L.validate(t,n),(function(t){for(var a=t.length,i=t,o=[],s=0;s0?p(o):b(i)}))}),e.encode===u?u:function(t){return t.map(e.encode)},e)},ee=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.props=i,o._tag="InterfaceType",o}return a(t,e),t}(c),te=function(e){return Object.keys(e).map((function(t){return t+": "+e[t].name})).join(", ")},ne=function(e){for(var t=0;t0?p(c):b(s)}))}),ne(a)?u:function(e){for(var t=i({},e),r=0;r"},se=function(e,t){void 0===t&&(t=oe(re(e)));var n=Object.keys(e),a=n.map((function(t){return e[t]})),o=n.length;return new ie(t,(function(t){if(!F.is(t))return!1;for(var r=0;r0?p(c):b(s)}))}),ne(a)?u:function(e){for(var t=i({},e),r=0;r0?p(s):b(f?o:i)}))}),e.encode===u&&t.encode===u?u:function(n){for(var r={},a=Object.keys(n),i=a.length,o=0;o0){var a=n[0],i=n[1],o=i.length,c=function(e){for(var t=0;t0?p(o):b(be(t,i))},0===e.length?u:function(t){return be(t,e.map((function(e){return e.encode(t)})))},e)}var me=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.types=i,o._tag="TupleType",o}return a(t,e),t}(c);function ve(e,t){void 0===t&&(t="["+e.map((function(e){return e.name})).join(", ")+"]");var n=e.length;return new me(t,(function(t){return L.is(t)&&t.length===n&&e.every((function(e,n){return e.is(t[n])}))}),(function(t,a){return s(L.validate(t,a),(function(t){for(var i=t.length>n?t.slice(0,n):t,o=[],s=0;s0?p(o):b(i)}))}),ne(e)?u:function(t){return e.map((function(e,n){return e.encode(t[n])}))},e)}var ge=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.type=i,o._tag="ReadonlyType",o}return a(t,e),t}(c),xe=function(e,t){return void 0===t&&(t="Readonly<"+e.name+">"),new ge(t,e.is,(function(t,n){return o(e.validate(t,n),(function(e){return e}))}),e.encode===u?u:e.encode,e)},we=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.type=i,o._tag="ReadonlyArrayType",o}return a(t,e),t}(c),_e=function(e,t){void 0===t&&(t="ReadonlyArray<"+e.name+">");var n=Q(e);return new we(t,n.is,(function(e,t){return o(n.validate(e,t),(function(e){return e}))}),n.encode,e)},ke=function(e,t){return Ae(ae(e),t)},Ee=function(e){function t(t,n,r,a,i,o){var s=e.call(this,t,n,r,a,i)||this;return s.tag=o,s}return a(t,e),t}(de),Se=function(e,t,n){void 0===n&&(n=le(t));var r=pe(t,n);return r instanceof Ee?r:(console.warn("[io-ts] Cannot build a tagged union for "+n+", returning a de-optimized union"),new Ee(n,r.is,r.validate,r.encode,t,e))},Te=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.type=i,o._tag="ExactType",o}return a(t,e),t}(c),Oe=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce((function(t,n){return Object.assign(t,e(n))}),{})}},Me=function(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,a={},i=0;i"}(e));var n=Oe(e);return new Te(t,e.is,(function(t,r){return s(F.validate(t,r),(function(){return o(e.validate(t,r),(function(e){return Me(e,n)}))}))}),(function(t){return e.encode(Me(t,n))}),e)},Ce=function(e,t){return{value:e,context:t}},je=function(e){return[{key:"",type:e}]},Pe=function(e){function t(){var t=e.call(this,"never",(function(e){return!1}),(function(e,t){return h(e,t)}),(function(){throw new Error("cannot encode never")}))||this;return t._tag="NeverType",t}return a(t,e),t}(c),Ie=new Pe,Ne=function(e){function t(){var t=e.call(this,"any",(function(e){return!0}),b,u)||this;return t._tag="AnyType",t}return a(t,e),t}(c),Re=new Ne,De=F,Le=function(e){function t(){var t=e.call(this,"object",F.is,F.validate,u)||this;return t._tag="ObjectType",t}return a(t,e),t}(c),Be=new Le;function Fe(e,t,n){return void 0===n&&(n="("+e.name+" | "+f(t)+")"),new H(n,(function(n){return e.is(n)&&t(n)}),(function(n,r){return s(e.validate(n,r),(function(e){return t(e)?b(e):h(e,r)}))}),e.encode,e,t)}var Ue=Fe(I,Number.isInteger,"Integer"),Ve=fe,He=function(e){function t(t,n,r,a,i){var o=e.call(this,t,n,r,a)||this;return o.props=i,o._tag="StrictType",o}return a(t,e),t}(c);function ze(e){return e}function qe(e){return function(){return e}}var We={};function Ge(e,t){for(var n=[],r=0,a=e;r0)){n=We;break}n[r]=a}else n[r]=t[r];return n}(e,Ye(t))}),We);if(function(e){return"UnionType"===e._tag}(e))return e.types.slice(1).reduce((function(e,t){return function(e,t){if(e===We||t===We)return We;var n=We;for(var r in e)t.hasOwnProperty(r)&&0===Ge(e[r],t[r]).length&&(n===We&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,Ye(t))}),Ye(e.types[0]));if(function(e){return"RecursiveType"===e._tag}(e)){$e.push(e);var a=Ye(e.type);return $e.pop(),a}return We}function Je(e){for(var t=Ye(e[0]),n=Object.keys(t),r=e.length,a=function(n){for(var a=t[n].slice(),i=[t[n]],o=1;on;)i+=t[a&s>>(o-=n)];if(o&&(i+=t[a&s<=8&&(c-=8,s[f++]=255&u>>c)}if(c>=n||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s}(e,a,r,t)}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=null,a={},i=1,o="@wry/context:Slot",s=Array,c=s[o]||function(){var e=function(){function e(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===a)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=a),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,a){var i,o=((i={__proto__:null})[this.id]=e,i),s=r;r={parent:s,slots:o};try{return t.apply(a,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var a=r;try{return r=null,e.apply(n,t)}finally{r=a}},e}();try{Object.defineProperty(s,o,{value:s[o]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();c.bind,c.noContext},function(e,t,n){"use strict";n.d(t,"b",(function(){return G})),n.d(t,"a",(function(){return Y}));var r=n(30),a=n(17),i=n(19),o=n(2),s=n(8),c=n(9),u=n(192),f=n(477),d=n(208),l=n(44),p=n(6),h=n(500),b=n(235),y=n(267),m=n(10),v=n(233),g=n(87),x=n(112),w=n(655),_=n.n(w),k=n(13),E=n(81),S=n(118),T=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},O=new k.Logger(E.a);function M(e){return null==e?"null":(32!==Object(p.hexDataLength)(e)&&O.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function A(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[M(e)]=!0}));var n=Object.keys(t);return n.sort(),n.join("|")}return M(e)})).join("&")}function C(e){if("string"===typeof e){if(e=e.toLowerCase(),32===Object(p.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+A(e);if(u.a.isForkEvent(e))throw O.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+A(e.topics||[])}throw new Error("invalid event - "+e)}function j(){return(new Date).getTime()}function P(e){return new Promise((function(t){setTimeout(t,e)}))}var I=["block","network","pending","poll"],N=function(){function e(t,n,r){Object(s.a)(this,e),Object(m.defineReadOnly)(this,"tag",t),Object(m.defineReadOnly)(this,"listener",n),Object(m.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}return Object(c.a)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,n=e[1],r=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),a={};return r.length>0&&(a.topics=r),n&&"*"!==n&&(a.address=n),a}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||I.indexOf(this.tag)>=0}}]),e}(),R={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function D(e){return Object(p.hexZeroPad)(l.a.from(e).toHexString(),32)}function L(e){return d.Base58.encode(Object(p.concat)([e,Object(p.hexDataSlice)(Object(v.c)(Object(v.c)(e)),0,4)]))}var B=new RegExp("^(ipfs)://(.*)$","i"),F=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),B,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function U(e,t){try{return Object(g.h)(V(e,t))}catch(n){}return null}function V(e,t){if("0x"===e)return null;var n=l.a.from(Object(p.hexDataSlice)(e,t,t+32)).toNumber(),r=l.a.from(Object(p.hexDataSlice)(e,n,n+32)).toNumber();return Object(p.hexDataSlice)(e,n+32,n+32+r)}function H(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):O.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function z(e){var t=Object(p.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");var n=new Uint8Array(32);return n.set(t,32-t.length),n}function q(e){if(e.length%32===0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function W(e){for(var t=[],n=0,r=0;r=1&&i<=75)return L(Object(p.concat)([[n.p2pkh],"0x"+a[2]]))}}if(null!=n.p2sh){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var s=parseInt(o[1],16);if(o[2].length===2*s&&s>=1&&s<=75)return L(Object(p.concat)([[n.p2sh],"0x"+o[2]]))}}if(null!=n.prefix){var c=r[1],u=r[0];if(0===u?20!==c&&32!==c&&(u=-1):u=-1,u>=0&&r.length===2+c&&c>=1&&c<=75){var f=_.a.toWords(r.slice(2));return f.unshift(u),_.a.encode(n.prefix,f)}}return null}},{key:"getAddress",value:function(e){return T(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r,a;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(n=t.sent)&&n!==h.a){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(n));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==k.Logger.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",D(e));case 18:if(null!=(r=t.sent)&&"0x"!==r){t.next=21;break}return t.abrupt("return",null);case 21:return null==(a=this._getAddress(e,r))&&O.throwError("invalid or unsupported coin data",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:r}),t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return T(this,void 0,void 0,Object(o.a)().mark((function e(){var t,n,r,a,i,s,c,u,f,d,h,b,y,m,v,g;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(n=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:r=0;case 8:if(!(r=0?null:JSON.stringify({data:i,sender:a}),r.next=12,Object(x.fetchJson)({url:f,errorPassThrough:!0},d,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(l=r.sent).data){r.next=15;break}return r.abrupt("return",l.data);case 15:if(p=l.message||"unknown error",!(l.status>=400&&l.status<500)){r.next=18;break}return r.abrupt("return",O.throwError("response not found during CCIP fetch: ".concat(p),k.Logger.errors.SERVER_ERROR,{url:u,errorMessage:p}));case 18:s.push(p);case 19:c++,r.next=6;break;case 22:return r.abrupt("return",O.throwError("error encountered during CCIP fetch: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),k.Logger.errors.SERVER_ERROR,{urls:n,errorMessages:s}));case 23:case"end":return r.stop()}}),r,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return T(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r,a,i,s=this;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return n=this._internalBlockNumber,t.prev=5,t.next=8,n;case 8:if(r=t.sent,!(j()-r.respTime<=e)){t.next=11;break}return t.abrupt("return",r.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==n){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return a=j(),i=Object(m.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,n=e.networkError;if(n)throw s._internalBlockNumber===i&&(s._internalBlockNumber=null),n;var r=j();return(t=l.a.from(t).toNumber())1e3)O.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(r,")")),this.emit("error",O.makeError("network block skew detected",k.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(a=this._emitted.block+1;a<=r;a++)this.emit("block",a);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=i._emitted[e];"pending"!==t&&r-t>12&&delete i._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,a=i.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(i._emitted["t:"+t]=e.blockNumber,i.emit(t,e),null):null})).catch((function(e){i.emit("error",e)}));n.push(a);break;case"filter":if(!e._inflight){e._inflight=!0;var o=e.filter;o.fromBlock=e._lastBlockNumber+1,o.toBlock=r,o.toBlock-i._maxFilterBlockRange>o.fromBlock&&(o.fromBlock=o.toBlock-i._maxFilterBlockRange);var s=i.getLogs(o).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),i._emitted["b:"+t.blockHash]=t.blockNumber,i._emitted["t:"+t.transactionHash]=t.blockNumber,i.emit(o,t)}))})).catch((function(t){i.emit("error",t),e._inflight=!1}));n.push(s)}}})),this._lastBlockNumber=r,Promise.all(n).then((function(){i.emit("didPoll",t)})).catch((function(e){i.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return T(this,void 0,void 0,Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",O.throwError("provider does not support network detection",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return T(this,void 0,void 0,Object(o.a)().mark((function e(){var t,n,r;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(n=e.sent,t.chainId===n.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),e.next=19,P(0);case 19:return e.abrupt("return",this._network);case 20:throw r=O.makeError("underlying network changed",k.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",r),r;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=j();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,n){return T(this,void 0,void 0,Object(o.a)().mark((function r(){return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this._waitForTransaction(e,null==t?1:t,n||0,null));case 1:case"end":return r.stop()}}),r,this)})))}},{key:"_waitForTransaction",value:function(e,t,n,r){return T(this,void 0,void 0,Object(o.a)().mark((function a(){var i,s=this;return Object(o.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getTransactionReceipt(e);case 2:if(!(((i=a.sent)?i.confirmations:0)>=t)){a.next=5;break}return a.abrupt("return",i);case 5:return a.abrupt("return",new Promise((function(a,i){var c=[],u=!1,f=function(){return!!u||(u=!0,c.forEach((function(e){e()})),!1)},d=function(e){e.confirmations0){var b=setTimeout((function(){f()||i(O.makeError("timeout exceeded",k.Logger.errors.TIMEOUT,{timeout:n}))}),n);b.unref&&b.unref(),c.push((function(){clearTimeout(b)}))}})));case 6:case"end":return a.stop()}}),a,this)})))}},{key:"getBlockNumber",value:function(){return T(this,void 0,void 0,Object(o.a)().mark((function e(){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return T(this,void 0,void 0,Object(o.a)().mark((function e(){var t;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",l.a.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",O.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return T(this,void 0,void 0,Object(o.a)().mark((function n(){var r,a;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getBalance",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",l.a.from(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",O.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return T(this,void 0,void 0,Object(o.a)().mark((function n(){var r,a;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getTransactionCount",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",l.a.from(a).toNumber());case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",O.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return T(this,void 0,void 0,Object(o.a)().mark((function n(){var r,a;return Object(o.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getCode",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",Object(p.hexlify)(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",O.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,n){return T(this,void 0,void 0,Object(o.a)().mark((function r(){var a,i;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Object(m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((function(e){return Object(p.hexValue)(e)}))});case 4:return a=r.sent,r.next=7,this.perform("getStorageAt",a);case 7:return i=r.sent,r.prev=8,r.abrupt("return",Object(p.hexlify)(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",O.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:a,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,n){var r=this;if(null!=t&&32!==Object(p.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var a=e;return null!=t&&e.hash!==t&&O.throwError("Transaction hash mismatch from Provider.sendTransaction.",k.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),a.wait=function(t,a){return T(r,void 0,void 0,Object(o.a)().mark((function r(){var i,s;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t=1),null==a&&(a=0),i=void 0,0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n}),r.next=6,this._waitForTransaction(e.hash,t,a,i);case 6:if(null!=(s=r.sent)||0!==t){r.next=9;break}return r.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=s.blockNumber,0===s.status&&O.throwError("transaction failed",k.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),r.abrupt("return",s);case 12:case"end":return r.stop()}}),r,this)})))},a}},{key:"sendTransaction",value:function(e){return T(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r,a,i;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(p.hexlify)(e)}));case 4:return n=t.sent,null==(r=this.formatter.transaction(e)).confirmations&&(r.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return a=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:n});case 13:return i=t.sent,t.abrupt("return",this._wrapTransaction(r,i,a));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=r,t.t0.transactionHash=r.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return T(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r,a=this;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return n=t.sent,r={},["from","to"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?a._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?l.a.from(e):null})))})),["type"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return null!=e?e:null})))})),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?Object(p.hexlify)(e):null})))})),t.t0=this.formatter,t.next=12,Object(m.resolveProperties)(r);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return T(this,void 0,void 0,Object(o.a)().mark((function t(){var n,r=this;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,n={},null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(n[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(n[t]=r._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,Object(m.resolveProperties)(n);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,n){return T(this,void 0,void 0,Object(o.a)().mark((function r(){var a,i,s,c,u,f,d,h,b,y,m,v,g,x,w;return Object(o.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n>=10&&O.throwError("CCIP read exceeded maximum redirections",k.Logger.errors.SERVER_ERROR,{redirects:n,transaction:e}),a=e.to,r.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(i=r.sent,!(n>=0&&"latest"===t&&null!=a&&"0x556f1830"===i.substring(0,10)&&Object(p.hexDataLength)(i)%32===4)){r.next=31;break}for(r.prev=6,s=Object(p.hexDataSlice)(i,4),c=Object(p.hexDataSlice)(s,0,32),l.a.from(c).eq(a)||O.throwError("CCIP Read sender did not match",k.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),u=[],f=l.a.from(Object(p.hexDataSlice)(s,32,64)).toNumber(),d=l.a.from(Object(p.hexDataSlice)(s,f,f+32)).toNumber(),h=Object(p.hexDataSlice)(s,f+32),b=0;bthis._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}i=null,s=0;case 14:if(!(s0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,n){var r=new N(C(e),t,n);return this._events.push(r),this._startEvent(r),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};p=d(d({},p),e)}(e.options.react),function(e){l=e}(e)}}},function(e,t,n){"use strict";var r=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty,o="undefined"!==typeof Element;function s(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,c,u,f=r(e),d=r(t);if(f&&d){if((c=e.length)!=t.length)return!1;for(n=c;0!==n--;)if(!s(e[n],t[n]))return!1;return!0}if(f!=d)return!1;var l=e instanceof Date,p=t instanceof Date;if(l!=p)return!1;if(l&&p)return e.getTime()==t.getTime();var h=e instanceof RegExp,b=t instanceof RegExp;if(h!=b)return!1;if(h&&b)return e.toString()==t.toString();var y=a(e);if((c=y.length)!==a(t).length)return!1;for(n=c;0!==n--;)if(!i.call(t,y[n]))return!1;if(o&&e instanceof Element&&t instanceof Element)return e===t;for(n=c;0!==n--;)if(("_owner"!==(u=y[n])||!e.$$typeof)&&!s(e[u],t[u]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return s(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return m(a)||(a=f(e,a,r)),a}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,n);if(i)return i;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),_(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(n);if(0===o.length){if(k(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return d(n)}var u,x="",E=!1,S=["{","}"];(p(n)&&(E=!0,S=["[","]"]),k(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(x=" "+RegExp.prototype.toString.call(n)),w(n)&&(x=" "+Date.prototype.toUTCString.call(n)),_(n)&&(x=" "+d(n)),0!==o.length||E&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,a){for(var i=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,x,S)):S[0]+x+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,r,a,i){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),M(r,a)||(o="["+a+"]"),s||(e.seen.indexOf(c.value)<0?(s=b(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function b(e){return null===e}function y(e){return"number"===typeof e}function m(e){return"string"===typeof e}function v(e){return void 0===e}function g(e){return x(e)&&"[object RegExp]"===E(e)}function x(e){return"object"===typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===E(e)}function _(e){return x(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"===typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(i)&&(i=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"}).NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else o[n]=function(){};return o[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=v,t.isRegExp=g,t.isObject=x,t.isDate=w,t.isError=_,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(1093);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(1094),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var A="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t;if("function"!==typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),a=[],i=0;i>6|192);else{if(a>55295&&a<56320){if(++r==e.length)return null;var i=e.charCodeAt(r);if(i<56320||i>57343)return null;n+=t((a=65536+((1023&a)<<10)+(1023&i))>>18|240),n+=t(a>>12&63|128)}else n+=t(a>>12|224);n+=t(a>>6&63|128)}n+=t(63&a|128)}}return n},toString:function(e){for(var t="",n=0,i=a(e);n127){if(o>191&&o<224){if(n>=i)return null;o=(31&o)<<6|63&r(e,n)}else if(o>223&&o<240){if(n+1>=i)return null;o=(15&o)<<12|(63&r(e,n))<<6|63&r(e,++n)}else{if(!(o>239&&o<248))return null;if(n+2>=i)return null;o=(7&o)<<18|(63&r(e,n))<<12|(63&r(e,++n))<<6|63&r(e,++n)}++n}if(o<=65535)t+=String.fromCharCode(o);else{if(!(o<=1114111))return null;o-=65536,t+=String.fromCharCode(o>>10|55296),t+=String.fromCharCode(1023&o|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2===0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:o,toArray:i,fromUint8Array:function(e){return o([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(i(e))}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]&&arguments[1];if("string"===typeof e){var n=p(e).toLowerCase();if(f.test(n))return(0,c.HexString)(t?"0x"+n:n)}throw new Error('"'.concat(String(e),'" is not a hexadecimal string'))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=y(e,!1);return n.length%2===1&&(n=(0,c.HexString)("0"+n)),t?(0,c.HexString)("0x"+n):n}function v(e){if("number"===typeof e&&Number.isInteger(e))return(0,c.IntNumber)(e);if("string"===typeof e){if(u.test(e))return(0,c.IntNumber)(Number(e));if(b(e))return(0,c.IntNumber)(new o.default(m(e,!1),16).toNumber())}throw new Error("Not an integer: ".concat(String(e)))}function g(e){if(null==e||"function"!==typeof e.constructor)return!1;var t=e.constructor;return"function"===typeof t.config&&"number"===typeof t.EUCLID}t.randomBytesHex=function(e){return d(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=d,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})))},t.hexStringFromBuffer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.toString("hex");return(0,c.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,c.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,c.IntNumber)(new o.default(m(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,c.HexString)("0x"+new o.default(e).toString(16))},t.has0xPrefix=l,t.strip0x=p,t.prepend0x=h,t.isHexString=b,t.ensureHexString=y,t.ensureEvenLengthHexString=m,t.ensureAddressString=function(e){if("string"===typeof e){var t=p(e).toLowerCase();if(b(t)&&40===t.length)return(0,c.AddressString)(h(t))}throw new Error("Invalid Ethereum address: ".concat(String(e)))},t.ensureBuffer=function(t){if(e.isBuffer(t))return t;if("string"===typeof t){if(b(t)){var n=m(t,!1);return e.from(n,"hex")}return e.from(t,"utf8")}throw new Error("Not binary data: ".concat(String(t)))},t.ensureIntNumber=v,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,c.RegExpString)(e.toString());throw new Error("Not a RegExp: ".concat(String(e)))},t.ensureBN=function(e){if(null!==e&&(o.default.isBN(e)||g(e)))return new o.default(e.toString(10),10);if("number"===typeof e)return new o.default(v(e));if("string"===typeof e){if(u.test(e))return new o.default(e,10);if(b(e))return new o.default(m(e,!1),16)}throw new Error("Not an integer: ".concat(String(e)))},t.ensureParsedJSONObject=function(e){if("string"===typeof e)return JSON.parse(e);if("object"===typeof e)return e;throw new Error("Not a JSON string or an object: ".concat(String(e)))},t.isBigNumber=g,t.range=function(e,t){return Array.from({length:t-e},(function(t,n){return e+n}))},t.getFavicon=function(){var e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),t=document.location,n=t.protocol,r=t.host,a=e?e.getAttribute("href"):null;return!a||a.startsWith("javascript:")?null:a.startsWith("http://")||a.startsWith("https://")||a.startsWith("data:")?a:a.startsWith("//")?n+a:"".concat(n,"//").concat(r).concat(a)},t.createQrUrl=function(e,t,n,a,i,o){var c,u=a?"parent-id":"id",f=(0,s.stringify)((r(c={},u,e),r(c,"secret",t),r(c,"server",n),r(c,"v",i),r(c,"chainId",o),c));return"".concat(n,"/#/link?").concat(f)},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new Uint8Array(0);t.coerce=function(e){if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},t.empty=r,t.equals=function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var n=0;n256)&&l.throwArgumentError("invalid number type","type",e),n&&(o=256),t=r.a.from(t).toTwos(o),Object(a.zeroPad)(t,o/8)}if(i=e.match(u)){var c=parseInt(i[1]);return(String(c)!==i[1]||0===c||c>32)&&l.throwArgumentError("invalid bytes type","type",e),Object(a.arrayify)(t).byteLength!==c&&l.throwArgumentError("invalid value for ".concat(e),"value",t),n?Object(a.arrayify)((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if((i=e.match(d))&&Array.isArray(t)){var h=i[1];parseInt(i[2]||String(t.length))!=t.length&&l.throwArgumentError("invalid array length for ".concat(e),"value",t);var b=[];return t.forEach((function(e){b.push(p(h,e,!0))})),Object(a.concat)(b)}return l.throwArgumentError("invalid type","type",e)}function h(e,t){e.length!=t.length&&l.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(p(e,t[r]))})),Object(a.hexlify)(Object(a.concat)(n))}function b(e,t){return Object(i.keccak256)(h(e,t))}function y(e,t){return Object(o.c)(h(e,t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(102),a=n(209),i=n(349);function o(){for(var e=[],t=0;tthis._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=Object(a.f)(),this.spanId=Object(a.f)().substring(16),this.startTimestamp=Object(i.d)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(Object(r.__assign)(Object(r.__assign)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=Object(r.__assign)(Object(r.__assign)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=Object(r.__assign)(Object(r.__assign)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:Object(i.d)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return Object(o.c)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,a,i;return this.data=null!==(t=e.data)&&void 0!==t?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!==(n=e.spanId)&&void 0!==n?n:this.spanId,this.startTimestamp=null!==(r=e.startTimestamp)&&void 0!==r?r:this.startTimestamp,this.status=e.status,this.tags=null!==(a=e.tags)&&void 0!==a?a:{},this.traceId=null!==(i=e.traceId)&&void 0!==i?i:this.traceId,this},e.prototype.getTraceContext=function(){return Object(o.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return Object(o.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(401);function a(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e){e.exports=JSON.parse('[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"},{"internalType":"uint32","name":"blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]')},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(38);function a(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return t.encseed&&t.ethaddr}function i(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function o(e){if(a(e))try{return Object(r.getAddress)(JSON.parse(e).ethaddr)}catch(t){return null}if(i(e))try{return Object(r.getAddress)(JSON.parse(e).address)}catch(t){return null}return null}},function(e,t,n){(function(e,r){var a;(function(){var i,o="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",u=16,f=32,d=64,l=128,p=256,h=1/0,b=9007199254740991,y=NaN,m=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",f],["partialRight",d],["rearg",p]],g="[object Arguments]",x="[object Array]",w="[object Boolean]",_="[object Date]",k="[object Error]",E="[object Function]",S="[object GeneratorFunction]",T="[object Map]",O="[object Number]",M="[object Object]",A="[object Promise]",C="[object RegExp]",j="[object Set]",P="[object String]",I="[object Symbol]",N="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",z="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",G=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Z=RegExp(Y.source),X=RegExp(J.source),Q=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),se=/^\s+/,ce=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fe=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ye=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['\u2019]",Pe="[\\ud800-\\udfff]",Ie="["+Ce+"]",Ne="["+Se+"]",Re="\\d+",De="[\\u2700-\\u27bf]",Le="["+Oe+"]",Be="[^\\ud800-\\udfff"+Ce+Re+Te+Oe+Me+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Me+"]",qe="(?:"+Le+"|"+Be+")",We="(?:"+ze+"|"+Be+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ne+"|"+Fe+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Je=Ye+$e+("(?:\\u200d(?:"+[Ue,Ve,He].join("|")+")"+Ye+$e+")*"),Ze="(?:"+[De,Ve,He].join("|")+")"+Je,Xe="(?:"+[Ue+Ne+"?",Ne,Ve,He,Pe].join("|")+")",Qe=RegExp(je,"g"),et=RegExp(Ne,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Xe+Je,"g"),nt=RegExp([ze+"?"+Le+"+"+Ge+"(?="+[Ie,ze,"$"].join("|")+")",We+"+"+Ke+"(?="+[Ie,ze+qe,"$"].join("|")+")",ze+"?"+qe+"+"+Ge,ze+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ze].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Ae+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,st={};st[L]=st[B]=st[F]=st[U]=st[V]=st[H]=st[z]=st[q]=st[W]=!0,st[g]=st[x]=st[R]=st[w]=st[D]=st[_]=st[k]=st[E]=st[T]=st[O]=st[M]=st[C]=st[j]=st[P]=st[N]=!1;var ct={};ct[g]=ct[x]=ct[R]=ct[D]=ct[w]=ct[_]=ct[L]=ct[B]=ct[F]=ct[U]=ct[V]=ct[T]=ct[O]=ct[M]=ct[C]=ct[j]=ct[P]=ct[I]=ct[H]=ct[z]=ct[q]=ct[W]=!0,ct[k]=ct[E]=ct[N]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),bt=t&&!t.nodeType&&t,yt=bt&&"object"==typeof r&&r&&!r.nodeType&&r,mt=yt&&yt.exports===bt,vt=mt&<.process,gt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),xt=gt&>.isArrayBuffer,wt=gt&>.isDate,_t=gt&>.isMap,kt=gt&>.isRegExp,Et=gt&>.isSet,St=gt&>.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function It(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var an=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function cn(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function fn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"});var vn=function e(t){var n=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,it))).Array,r=t.Date,a=t.Error,ce=t.Function,Se=t.Math,Te=t.Object,Oe=t.RegExp,Me=t.String,Ae=t.TypeError,Ce=n.prototype,je=ce.prototype,Pe=Te.prototype,Ie=t["__core-js_shared__"],Ne=je.toString,Re=Pe.hasOwnProperty,De=0,Le=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Be=Pe.toString,Fe=Ne.call(Te),Ue=ht._,Ve=Oe("^"+Ne.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=mt?t.Buffer:i,ze=t.Symbol,qe=t.Uint8Array,We=He?He.allocUnsafe:i,Ge=fn(Te.getPrototypeOf,Te),Ke=Te.create,$e=Pe.propertyIsEnumerable,Ye=Ce.splice,Je=ze?ze.isConcatSpreadable:i,Ze=ze?ze.iterator:i,Xe=ze?ze.toStringTag:i,tt=function(){try{var e=li(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=r&&r.now!==ht.Date.now&&r.now,lt=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=Se.ceil,bt=Se.floor,yt=Te.getOwnPropertySymbols,vt=He?He.isBuffer:i,gt=t.isFinite,Ft=Ce.join,Kt=fn(Te.keys,Te),gn=Se.max,xn=Se.min,wn=r.now,_n=t.parseInt,kn=Se.random,En=Ce.reverse,Sn=li(t,"DataView"),Tn=li(t,"Map"),On=li(t,"Promise"),Mn=li(t,"Set"),An=li(t,"WeakMap"),Cn=li(Te,"create"),jn=An&&new An,Pn={},In=Fi(Sn),Nn=Fi(Tn),Rn=Fi(On),Dn=Fi(Mn),Ln=Fi(An),Bn=ze?ze.prototype:i,Fn=Bn?Bn.valueOf:i,Un=Bn?Bn.toString:i;function Vn(e){if(rs(e)&&!Go(e)&&!(e instanceof Wn)){if(e instanceof qn)return e;if(Re.call(e,"__wrapped__"))return Ui(e)}return new qn(e)}var Hn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function zn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,n,r,a,o){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!ns(e))return e;var d=Go(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ca(e,s)}else{var l=bi(e),p=l==E||l==S;if(Jo(e))return Ea(e,c);if(l==M||l==g||p&&!a){if(s=u||p?{}:mi(e),!c)return u?function(e,t){return ja(e,hi(e),t)}(e,function(e,t){return e&&ja(t,Ns(t),e)}(s,e)):function(e,t){return ja(e,pi(e),t)}(e,ir(s,e))}else{if(!ct[l])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return Sa(e);case w:case _:return new r(+e);case D:return function(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case B:case F:case U:case V:case H:case z:case q:case W:return Ta(e,n);case T:return new r;case O:case P:return new r(e);case C:return function(e){var t=new e.constructor(e.source,ye.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new r;case I:return a=e,Fn?Te(Fn.call(a)):{}}var a}(e,l,c)}}o||(o=new Jn);var h=o.get(e);if(h)return h;o.set(e,s),cs(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,o))})):as(e)&&e.forEach((function(r,a){s.set(a,ur(r,t,n,a,e,o))}));var b=d?i:(f?u?ii:ai:u?Ns:Is)(e);return Mt(b||e,(function(r,a){b&&(r=e[a=r]),nr(s,a,ur(r,t,n,a,e,o))})),s}function fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Pi((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var a=-1,i=Pt,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Nt(t,Xt(n))),r?(i=It,o=!1):t.length>=200&&(i=en,o=!1,t=new Yn(t));e:for(;++a-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Tn||Kn),string:new Gn}},$n.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return fi(this,e).get(e)},$n.prototype.has=function(e){return fi(this,e).has(e)},$n.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var pr=Na(wr),hr=Na(_r,!0);function br(e,t){var n=!0;return pr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function yr(e,t,n){for(var r=-1,a=e.length;++r0&&n(s)?t>1?vr(s,t-1,n,r,a):Rt(a,s):r||(a[a.length]=s)}return a}var gr=Ra(),xr=Ra(!0);function wr(e,t){return e&&gr(e,t,Is)}function _r(e,t){return e&&xr(e,t,Is)}function kr(e,t){return jt(t,(function(t){return Qo(e[t])}))}function Er(e,t){for(var n=0,r=(t=xa(t,e)).length;null!=e&&nt}function Mr(e,t){return null!=e&&Re.call(e,t)}function Ar(e,t){return null!=e&&t in Te(e)}function Cr(e,t,r){for(var a=r?It:Pt,o=e[0].length,s=e.length,c=s,u=n(s),f=1/0,d=[];c--;){var l=e[c];c&&t&&(l=Nt(l,Xt(t))),f=xn(l.length,f),u[c]=!r&&(t||o>=120&&l.length>=120)?new Yn(c&&l):i}l=e[0];var p=-1,h=u[0];e:for(;++p=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Ye.call(s,c,1),Ye.call(e,c,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;gi(a)?Ye.call(e,a,1):la(e,a)}}return e}function Yr(e,t){return e+bt(kn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>b)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ii(Oi(e,t,ic),e+"")}function Xr(e){return Xn(Hs(e))}function Qr(e,t){var n=Hs(e);return Di(n,cr(t,0,n.length))}function ea(e,t,n,r){if(!ns(e))return e;for(var a=-1,o=(t=xa(t,e)).length,s=o-1,c=e;null!=c&&++ai?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a>>1,o=e[i];null!==o&&!fs(o)&&(n?o<=t:o=200){var u=t?null:Ja(e);if(u)return ln(u);o=!1,a=en,c=new Yn}else c=t?[]:s;e:for(;++r=r?e:aa(e,t,n)}var ka=rt||function(e){return ht.clearTimeout(e)};function Ea(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Sa(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ta(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oa(e,t){if(e!==t){var n=e!==i,r=null===e,a=e===e,o=fs(e),s=t!==i,c=null===t,u=t===t,f=fs(t);if(!c&&!f&&!o&&e>t||o&&s&&u&&!c&&!f||r&&s&&u||!n&&u||!a)return 1;if(!r&&!o&&!f&&e1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&xi(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=Te(t);++r-1?a[o?t[s]:s]:i}}function Ua(e){return ri((function(t){var n=t.length,r=n,a=qn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(o);if(a&&!c&&"wrapper"==si(s))var c=new qn([],!0)}for(r=c?r:n;++r1&&g.reverse(),p&&fc))return!1;var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var l=-1,p=!0,h=2&n?new Yn:i;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(v,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(fe);return t?t[1].split(de):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=wn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Di(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oo(e,n)}));function ho(e){var t=Vn(e);return t.__chain__=!0,t}function bo(e,t){return t(e)}var yo=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:bo,args:[a],thisArg:i}),new qn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var mo=Pa((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var vo=Fa(qi),go=Fa(Wi);function xo(e,t){return(Go(e)?Mt:pr)(e,ui(t,3))}function wo(e,t){return(Go(e)?At:hr)(e,ui(t,3))}var _o=Pa((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var ko=Zr((function(e,t,r){var a=-1,i="function"==typeof t,o=$o(e)?n(e.length):[];return pr(e,(function(e){o[++a]=i?Tt(t,e,r):jr(e,t,r)})),o})),Eo=Pa((function(e,t,n){or(e,n,t)}));function So(e,t){return(Go(e)?Nt:Ur)(e,ui(t,3))}var To=Pa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oo=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,vr(t,1),[])})),Mo=ut||function(){return ht.Date.now()};function Ao(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xa(e,l,i,i,i,i,t)}function Co(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=ys(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var jo=Zr((function(e,t,n){var r=1;if(n.length){var a=dn(n,ci(jo));r|=f}return Xa(e,r,t,n,a)})),Po=Zr((function(e,t,n){var r=3;if(n.length){var a=dn(n,ci(Po));r|=f}return Xa(t,r,e,n,a)}));function Io(e,t,n){var r,a,s,c,u,f,d=0,l=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ae(o);function b(t){var n=r,o=a;return r=a=i,d=t,c=e.apply(o,n)}function y(e){return d=e,u=Pi(v,t),l?b(e):c}function m(e){var n=e-f;return f===i||n>=t||n<0||p&&e-d>=s}function v(){var e=Mo();if(m(e))return g(e);u=Pi(v,function(e){var n=t-(e-f);return p?xn(n,s-(e-d)):n}(e))}function g(e){return u=i,h&&r?b(e):(r=a=i,c)}function x(){var e=Mo(),n=m(e);if(r=arguments,a=this,f=e,n){if(u===i)return y(f);if(p)return ka(u),u=Pi(v,t),b(f)}return u===i&&(u=Pi(v,t)),c}return t=vs(t)||0,ns(n)&&(l=!!n.leading,s=(p="maxWait"in n)?gn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),x.cancel=function(){u!==i&&ka(u),d=0,r=f=a=u=i},x.flush=function(){return u===i?c:g(Mo())},x}var No=Zr((function(e,t){return dr(e,1,t)})),Ro=Zr((function(e,t,n){return dr(e,vs(t)||0,n)}));function Do(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Do.Cache||$n),n}function Lo(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Do.Cache=$n;var Bo=wa((function(e,t){var n=(t=1==t.length&&Go(t[0])?Nt(t[0],Xt(ui())):Nt(vr(t,1),Xt(ui()))).length;return Zr((function(r){for(var a=-1,i=xn(r.length,n);++a=t})),Wo=Pr(function(){return arguments}())?Pr:function(e){return rs(e)&&Re.call(e,"callee")&&!$e.call(e,"callee")},Go=n.isArray,Ko=xt?Xt(xt):function(e){return rs(e)&&Tr(e)==R};function $o(e){return null!=e&&ts(e.length)&&!Qo(e)}function Yo(e){return rs(e)&&$o(e)}var Jo=vt||vc,Zo=wt?Xt(wt):function(e){return rs(e)&&Tr(e)==_};function Xo(e){if(!rs(e))return!1;var t=Tr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qo(e){if(!ns(e))return!1;var t=Tr(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==ys(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=b}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var as=_t?Xt(_t):function(e){return rs(e)&&bi(e)==T};function is(e){return"number"==typeof e||rs(e)&&Tr(e)==O}function os(e){if(!rs(e)||Tr(e)!=M)return!1;var t=Ge(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Fe}var ss=kt?Xt(kt):function(e){return rs(e)&&Tr(e)==C};var cs=Et?Xt(Et):function(e){return rs(e)&&bi(e)==j};function us(e){return"string"==typeof e||!Go(e)&&rs(e)&&Tr(e)==P}function fs(e){return"symbol"==typeof e||rs(e)&&Tr(e)==I}var ds=St?Xt(St):function(e){return rs(e)&&ts(e.length)&&!!st[Tr(e)]};var ls=Ka(Fr),ps=Ka((function(e,t){return e<=t}));function hs(e){if(!e)return[];if($o(e))return us(e)?bn(e):Ca(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=bi(e);return(t==T?un:t==j?ln:Hs)(e)}function bs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ys(e){var t=bs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?cr(ys(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(fs(e))return y;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||xe.test(e)?dt(e.slice(2),n?2:8):me.test(e)?y:+e}function gs(e){return ja(e,Ns(e))}function xs(e){return null==e?"":fa(e)}var ws=Ia((function(e,t){if(Ei(t)||$o(t))ja(t,Is(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),_s=Ia((function(e,t){ja(t,Ns(t),e)})),ks=Ia((function(e,t,n,r){ja(t,Ns(t),e,r)})),Es=Ia((function(e,t,n,r){ja(t,Is(t),e,r)})),Ss=ri(sr);var Ts=Zr((function(e,t){e=Te(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&xi(t[0],t[1],a)&&(r=1);++n1),t})),ja(e,ii(e),n),r&&(n=ur(n,7,ti));for(var a=t.length;a--;)la(n,t[a]);return n}));var Bs=ri((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Nt(ii(e),(function(e){return[e]}));return t=ui(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Za(Is),Vs=Za(Ns);function Hs(e){return null==e?[]:Qt(e,Is(e))}var zs=La((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Xs(xs(e).toLowerCase())}function Ws(e){return(e=xs(e))&&e.replace(_e,an).replace(et,"")}var Gs=La((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=La((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=Da("toLowerCase");var Ys=La((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Js=La((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Zs=La((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Da("toUpperCase");function Qs(e,t,n){return e=xs(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var ec=Zr((function(e,t){try{return Tt(e,i,t)}catch(n){return Xo(n)?n:new a(n)}})),tc=ri((function(e,t){return Mt(t,(function(t){t=Bi(t),or(e,t,jo(e[t],e))})),e}));function nc(e){return function(){return e}}var rc=Ua(),ac=Ua(!0);function ic(e){return e}function oc(e){return Dr("function"==typeof e?e:ur(e,1))}var sc=Zr((function(e,t){return function(n){return jr(n,e,t)}})),cc=Zr((function(e,t){return function(n){return jr(e,n,t)}}));function uc(e,t,n){var r=Is(t),a=kr(t,r);null!=n||ns(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=kr(t,Is(t)));var i=!(ns(n)&&"chain"in n)||!!n.chain,o=Qo(e);return Mt(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),a=n.__actions__=Ca(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function fc(){}var dc=qa(Nt),lc=qa(Ct),pc=qa(Bt);function hc(e){return wi(e)?Gt(Bi(e)):function(e){return function(t){return Er(t,e)}}(e)}var bc=Ga(),yc=Ga(!0);function mc(){return[]}function vc(){return!1}var gc=za((function(e,t){return e+t}),0),xc=Ya("ceil"),wc=za((function(e,t){return e/t}),1),_c=Ya("floor");var kc=za((function(e,t){return e*t}),1),Ec=Ya("round"),Sc=za((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=ys(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Ao,Vn.assign=ws,Vn.assignIn=_s,Vn.assignInWith=ks,Vn.assignWith=Es,Vn.at=Ss,Vn.before=Co,Vn.bind=jo,Vn.bindAll=tc,Vn.bindKey=Po,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Go(e)?e:[e]},Vn.chain=ho,Vn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===i)?1:gn(ys(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,c=n(pt(a/t));oa?0:a+n),(r=r===i||r>a?a:ys(r))<0&&(r+=a),r=n>r?0:ms(r);n>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=fa(t))&&cn(e)?_a(bn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:gn(ys(t),0),Zr((function(n){var r=n[t],a=_a(n,0,t);return r&&Rt(a,r),Tt(e,this,a)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?aa(e,0,(t=n||t===i?1:ys(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?aa(e,(t=r-(t=n||t===i?1:ys(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?ha(e,ui(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?ha(e,ui(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ae(o);return ns(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Io(e,t,{leading:r,maxWait:t,trailing:a})},Vn.thru=bo,Vn.toArray=hs,Vn.toPairs=Us,Vn.toPairsIn=Vs,Vn.toPath=function(e){return Go(e)?Nt(e,Bi):fs(e)?[e]:Ca(Li(xs(e)))},Vn.toPlainObject=gs,Vn.transform=function(e,t,n){var r=Go(e),a=r||Jo(e)||ds(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:ns(e)&&Qo(i)?Hn(Ge(e)):{}}return(a?Mt:wr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Vn.unary=function(e){return Ao(e,1)},Vn.union=no,Vn.unionBy=ro,Vn.unionWith=ao,Vn.uniq=function(e){return e&&e.length?da(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?da(e,ui(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?da(e,i,t):[]},Vn.unset=function(e,t){return null==e||la(e,t)},Vn.unzip=io,Vn.unzipWith=oo,Vn.update=function(e,t,n){return null==e?e:pa(e,t,ga(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pa(e,t,ga(n),r)},Vn.values=Hs,Vn.valuesIn=function(e){return null==e?[]:Qt(e,Ns(e))},Vn.without=so,Vn.words=Qs,Vn.wrap=function(e,t){return Fo(ga(t),e)},Vn.xor=co,Vn.xorBy=uo,Vn.xorWith=fo,Vn.zip=lo,Vn.zipObject=function(e,t){return ma(e||[],t||[],nr)},Vn.zipObjectDeep=function(e,t){return ma(e||[],t||[],ea)},Vn.zipWith=po,Vn.entries=Us,Vn.entriesIn=Vs,Vn.extend=_s,Vn.extendWith=ks,uc(Vn,Vn),Vn.add=gc,Vn.attempt=ec,Vn.camelCase=zs,Vn.capitalize=qs,Vn.ceil=xc,Vn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))===n?n:0),t!==i&&(t=(t=vs(t))===t?t:0),cr(vs(e),t,n)},Vn.clone=function(e){return ur(e,4)},Vn.cloneDeep=function(e){return ur(e,5)},Vn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},Vn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},Vn.conformsTo=function(e,t){return null==t||fr(e,t,Is(t))},Vn.deburr=Ws,Vn.defaultTo=function(e,t){return null==e||e!==e?t:e},Vn.divide=wc,Vn.endsWith=function(e,t,n){e=xs(e),t=fa(t);var r=e.length,a=n=n===i?r:cr(ys(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Vn.eq=Ho,Vn.escape=function(e){return(e=xs(e))&&X.test(e)?e.replace(J,on):e},Vn.escapeRegExp=function(e){return(e=xs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Vn.every=function(e,t,n){var r=Go(e)?Ct:br;return n&&xi(e,t,n)&&(t=i),r(e,ui(t,3))},Vn.find=vo,Vn.findIndex=qi,Vn.findKey=function(e,t){return Ut(e,ui(t,3),wr)},Vn.findLast=go,Vn.findLastIndex=Wi,Vn.findLastKey=function(e,t){return Ut(e,ui(t,3),_r)},Vn.floor=_c,Vn.forEach=xo,Vn.forEachRight=wo,Vn.forIn=function(e,t){return null==e?e:gr(e,ui(t,3),Ns)},Vn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),Ns)},Vn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},Vn.forOwnRight=function(e,t){return e&&_r(e,ui(t,3))},Vn.get=Ms,Vn.gt=zo,Vn.gte=qo,Vn.has=function(e,t){return null!=e&&yi(e,t,Mr)},Vn.hasIn=As,Vn.head=Ki,Vn.identity=ic,Vn.includes=function(e,t,n,r){e=$o(e)?e:Hs(e),n=n&&!r?ys(n):0;var a=e.length;return n<0&&(n=gn(a+n,0)),us(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:ys(n);return a<0&&(a=gn(r+a,0)),Ht(e,t,a)},Vn.inRange=function(e,t,n){return t=bs(t),n===i?(n=t,t=0):n=bs(n),function(e,t,n){return e>=xn(t,n)&&e=-9007199254740991&&e<=b},Vn.isSet=cs,Vn.isString=us,Vn.isSymbol=fs,Vn.isTypedArray=ds,Vn.isUndefined=function(e){return e===i},Vn.isWeakMap=function(e){return rs(e)&&bi(e)==N},Vn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Tr(e)},Vn.join=function(e,t){return null==e?"":Ft.call(e,t)},Vn.kebabCase=Gs,Vn.last=Zi,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=ys(n))<0?gn(r+a,0):xn(a,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Vt(e,qt,a,!0)},Vn.lowerCase=Ks,Vn.lowerFirst=$s,Vn.lt=ls,Vn.lte=ps,Vn.max=function(e){return e&&e.length?yr(e,ic,Or):i},Vn.maxBy=function(e,t){return e&&e.length?yr(e,ui(t,2),Or):i},Vn.mean=function(e){return Wt(e,ic)},Vn.meanBy=function(e,t){return Wt(e,ui(t,2))},Vn.min=function(e){return e&&e.length?yr(e,ic,Fr):i},Vn.minBy=function(e,t){return e&&e.length?yr(e,ui(t,2),Fr):i},Vn.stubArray=mc,Vn.stubFalse=vc,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=kc,Vn.nth=function(e,t){return e&&e.length?qr(e,ys(t)):i},Vn.noConflict=function(){return ht._===this&&(ht._=Ue),this},Vn.noop=fc,Vn.now=Mo,Vn.pad=function(e,t,n){e=xs(e);var r=(t=ys(t))?hn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Wa(bt(a),n)+e+Wa(pt(a),n)},Vn.padEnd=function(e,t,n){e=xs(e);var r=(t=ys(t))?hn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=kn();return xn(e+a*(t-e+ft("1e-"+((a+"").length-1))),t)}return Yr(e,t)},Vn.reduce=function(e,t,n){var r=Go(e)?Dt:$t,a=arguments.length<3;return r(e,ui(t,4),n,a,pr)},Vn.reduceRight=function(e,t,n){var r=Go(e)?Lt:$t,a=arguments.length<3;return r(e,ui(t,4),n,a,hr)},Vn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===i)?1:ys(t),Jr(xs(e),t)},Vn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,a=(t=xa(t,e)).length;for(a||(a=1,e=i);++rb)return[];var n=m,r=xn(e,m);t=ui(t),e-=m;for(var a=Jt(r,t);++n=o)return e;var c=n-hn(r);if(c<1)return r;var u=s?_a(s,0,c).join(""):e.slice(0,c);if(a===i)return u+r;if(s&&(c+=u.length-c),ss(a)){if(e.slice(c).search(a)){var f,d=u;for(a.global||(a=Oe(a.source,xs(ye.exec(a))+"g")),a.lastIndex=0;f=a.exec(d);)var l=f.index;u=u.slice(0,l===i?c:l)}}else if(e.indexOf(fa(a),c)!=c){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+r},Vn.unescape=function(e){return(e=xs(e))&&Z.test(e)?e.replace(Y,mn):e},Vn.uniqueId=function(e){var t=++De;return xs(e)+t},Vn.upperCase=Zs,Vn.upperFirst=Xs,Vn.each=xo,Vn.eachRight=wo,Vn.first=Ki,uc(Vn,function(){var e={};return wr(Vn,(function(t,n){Re.call(Vn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Vn.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Mt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:gn(ys(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Lo(ui(e)))},Wn.prototype.slice=function(e,t){e=ys(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ys(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},wr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Vn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Wn,u=s[0],f=c||Go(t),d=function(e){var t=a.apply(Vn,Rt([e],s));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(c=f=!1);var l=this.__chain__,p=!!this.__actions__.length,h=o&&!l,b=c&&!p;if(!o&&f){t=b?t:new Wn(this);var y=e.apply(t,s);return y.__actions__.push({func:bo,args:[d],thisArg:i}),new qn(y,l)}return h&&b?e.apply(this,s):(y=this.thru(d),h?r?y.value()[0]:y.value():y)})})),Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Go(a)?a:[],e)}return this[n]((function(n){return t.apply(Go(n)?n:[],e)}))}})),wr(Wn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Va(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ca(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ca(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ca(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Go(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Ui(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:bo,args:[to],thisArg:i}),new qn(t,this.__chain__)}return this.thru(to)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return ba(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Ze&&(Vn.prototype[Ze]=function(){return this}),Vn}();ht._=vn,(a=function(){return vn}.call(t,n,t,r))===i||(r.exports=a)}).call(this)}).call(this,n(52),n(100)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=new(n(13).Logger)("networks/5.6.3");function a(e){var t=function(t,n){null==n&&(n={});var r=[];if(t.InfuraProvider&&"-"!==n.infura)try{r.push(new t.InfuraProvider(e,n.infura))}catch(o){}if(t.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(o){}if(t.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(o){}if(t.PocketProvider&&"-"!==n.pocket){try{var a=new t.PocketProvider(e,n.pocket);a.network&&-1===["goerli","ropsten","rinkeby"].indexOf(a.network.name)&&r.push(a)}catch(o){}}if(t.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new t.CloudflareProvider(e))}catch(o){}if(t.AnkrProvider&&"-"!==n.ankr)try{r.push(new t.AnkrProvider(e,n.ankr))}catch(o){}if(0===r.length)return null;if(t.FallbackProvider){var i=1;return null!=n.quorum?i=n.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(r,i)}return r[0]};return t.renetwork=function(e){return a(e)},t}function i(e,t){var n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return i(e,t)},n}var o={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},c={chainId:63,name:"classicMordor",_defaultProvider:i("https://www.ethercluster.com/mordor","classicMordor")},u={unspecified:{chainId:0,name:"unspecified"},homestead:o,mainnet:o,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},classic:{chainId:61,name:"classic",_defaultProvider:i("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:c,classicTestnet:c,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:i("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function f(e){if(null==e)return null;if("number"===typeof e){for(var t in u){var n=u[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){var a=u[e];return null==a?null:{name:a.name,chainId:a.chainId,ensAddress:a.ensAddress,_defaultProvider:a._defaultProvider||null}}var i=u[e.name];if(!i)return"number"!==typeof e.chainId&&r.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==i.chainId&&r.throwArgumentError("network chainId mismatch","network",e);var o,s=e._defaultProvider||null;return null==s&&i._defaultProvider&&(s=(o=i._defaultProvider)&&"function"===typeof o.renetwork?i._defaultProvider.renetwork(e):i._defaultProvider),{name:e.name,chainId:i.chainId,ensAddress:e.ensAddress||i.ensAddress||null,_defaultProvider:s}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return b}));var r=n(12),a=n(990),i=n(306),o=n(273),s=n(239),c=n(67);function u(e){return Object(s.a)(Object(i.toString)(Object(o.fromString)(e,c.g),c.e))}function f(e){return Object(i.toString)(Object(o.fromString)(Object(s.b)(e),c.e),c.g)}function d(e){var t=Object(o.fromString)(c.m,c.l),n=c.k+Object(i.toString)(Object(a.concat)([t,e]),c.l);return[c.d,c.c,n].join(c.b)}function l(e){var t=e.split(c.b),n=Object(r.a)(t,3),a=n[0],s=n[1],u=n[2];if(a!==c.d||s!==c.c)throw new Error('Issuer must be a DID with method "key"');if(u.slice(0,1)!==c.k)throw new Error("Issuer must be a key in mulicodec format");var f=Object(o.fromString)(u.slice(1),c.l);if(Object(i.toString)(f.slice(0,2),c.l)!==c.m)throw new Error('Issuer must be a public key with type "Ed25519"');var d=f.slice(2);if(d.length!==c.n)throw new Error("Issuer must be a public key with length 32 bytes");return d}function p(e){return Object(o.fromString)([f(e.header),f(e.payload)].join(c.f),c.a)}function h(e){return[f(e.header),f(e.payload),(t=e.signature,Object(i.toString)(t,c.g))].join(c.f);var t}function b(e){var t,n=e.split(c.f);return{header:u(n[0]),payload:u(n[1]),signature:(t=n[2],Object(o.fromString)(t,c.g)),data:Object(o.fromString)(n.slice(0,2).join(c.f),c.a)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="finishReason",a=["heartbeatFailed","idleTimeout","documentHidden"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ie})),n.d(t,"b",(function(){return Y})),n.d(t,"c",(function(){return ne}));var r=n(25),a=n(108),i=n(30),o=n(17),s=n(19),c=n(8),u=n(9),f=n(21),d=n(28),l=n(82),p=n(1),h=n.n(p),b={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(b.str(e)||b.num(e))return e===t;if(b.obj(e)&&b.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!b.und(n)||e===t}};function y(){var e=Object(p.useState)(!1)[1];return Object(p.useCallback)((function(){return e((function(e){return!e}))}),[])}function m(e,t){return b.und(e)||b.nul(e)?t:e}function v(e){return b.und(e)?[]:b.arr(e)?e:[e]}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=l.startTime+c.duration;else if(c.decay)b=p+m/(1-.998)*(1-Math.exp(-(1-.998)*(n-l.startTime))),(u=Math.abs(l.lastPosition-b)<.1)&&(h=b);else{f=void 0!==l.lastTime?l.lastTime:n,m=void 0!==l.lastVelocity?l.lastVelocity:c.initialVelocity,n>f+64&&(f=n);for(var v=Math.floor(n-f),g=0;gh:b=e);++n);return n-1}(e,i);return function(e,t,n,r,a,i,o,s,c){var u=c?c(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:a===1/0?u+=r:u=u*(a-r)+r;return u}(e,i[t],i[t+1],a[t],a[t+1],c,o,s,r.map)}}var H=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,r,a,i){var o;return Object(c.a)(this,n),(o=t.call(this)).calc=void 0,o.payload=e instanceof E&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],o.calc=V(r,a,i),o}return Object(u.a)(n,[{key:"getValue",value:function(){return this.calc.apply(this,Object(r.a)(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=V(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(E);function z(e,t){"update"in e?t.add(e):e.getChildren().forEach((function(e){return z(e,t)}))}var q=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r,a;return Object(c.a)(this,n),r=t.call(this),a=Object(i.a)(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),a.value=e,t&&a.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return Object(u.a)(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&z(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new H(this,e,t,n)}}]),n}(k),W=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this)).payload=e.map((function(e){return new q(e)})),r}return Object(u.a)(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new H(this,e,t)}}]),n}(E),G=0,K=function(){function e(){var t=this;Object(c.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=G++}return Object(u.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=x(e),n=t.delay,r=void 0===n?0:n,a=t.to,i=Object(l.a)(t,["delay","to"]);if(b.arr(a)||b.fun(a))this.queue.push(Object(d.a)({},i,{delay:r,to:a}));else if(a){var o={};Object.entries(a).forEach((function(e){var t=e[0],n=e[1],a=Object(d.a)({to:Object(f.a)({},t,n),delay:g(r,t)},i),s=o[a.delay]&&o[a.delay].to;o[a.delay]=Object(d.a)({},o[a.delay],a,{to:Object(d.a)({},s,a.to)})})),this.queue=Object.values(o)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;b.obj(r)&&(n.merged=Object(d.a)({},r,n.merged)),b.obj(i)&&(n.merged=Object(d.a)({},n.merged,i))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,i){var o=t.delay,s=Object(l.a)(t,["delay"]),c=function(t){i===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},u=b.arr(s.to)||b.fun(s.to);o?setTimeout((function(){r===n.guid&&(u?n.runAsync(s,c):n.diff(s).start(c))}),o):u?n.runAsync(s,c):n.diff(s).start(c)}))}else b.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),B||(B=!0,A(N||U));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,a=(e.delay,Object(l.a)(e,["delay"])),i=this.local,o=Promise.resolve(void 0);if(b.arr(a.to))for(var s=function(e){var t=e,r=Object(d.a)({},a,x(a.to[t]));b.arr(r.config)&&(r.config=r.config[t]),o=o.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},c=0;c0&&re(k),b&&b(c,t,n))},onStart:m&&function(){return m(c,t)},onFrame:h&&function(e){return h(c,t,e)},delay:i,reset:u&&t===Z});l.update(p),k.current.paused||l.start()})),Object(p.useEffect)((function(){return k.current.mounted=_.current=!0,function(){k.current.mounted=_.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:k.current.instances.get(r).getValues()}}))}function re(e,t){var n,r=e.current.deleted,i=Object(a.a)(r);try{var o=function(){var r=n.value.key,a=function(e){return e.key!==r};(b.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))};for(i.s();!(n=i.n()).done;)o()}catch(s){i.e(s)}finally{i.f()}e.current.forceUpdate()}var ae=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(c.a)(this,n),void 0===e&&(e={}),r=t.call(this),!e.transform||e.transform instanceof k||(e=w.transform(e)),r.payload=e,r}return Object(u.a)(n)}(S),ie={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},oe="[-+]?\\d*\\.?\\d+",se=oe+"%";function ce(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ve(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=me(a,r,e+1/3),o=me(a,r,e),s=me(a,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function ge(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function xe(e){return(parseFloat(e)%360+360)%360/360}function we(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _e(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ke(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=be.exec(e))?parseInt(t[1]+"ff",16)>>>0:ie.hasOwnProperty(e)?ie[e]:(t=ue.exec(e))?(ge(t[1])<<24|ge(t[2])<<16|ge(t[3])<<8|255)>>>0:(t=fe.exec(e))?(ge(t[1])<<24|ge(t[2])<<16|ge(t[3])<<8|we(t[4]))>>>0:(t=pe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ye.exec(e))?parseInt(t[1],16)>>>0:(t=he.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=de.exec(e))?(255|ve(xe(t[1]),_e(t[2]),_e(t[3])))>>>0:(t=le.exec(e))?(ve(xe(t[1]),_e(t[2]),_e(t[3]))|we(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,a=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(a,")")}var Ee=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Se=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Te=new RegExp("(".concat(Object.keys(ie).join("|"),")"),"g"),Oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Me=["Webkit","Ms","Moz","O"];function Ae(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Oe.hasOwnProperty(e)&&Oe[e]?(""+t).trim():t+"px"}Oe=Object.keys(Oe).reduce((function(e,t){return Me.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Oe);var Ce={};D((function(e){return new ae(e)})),P("div"),C((function(e){var t=e.output.map((function(e){return e.replace(Se,ke)})).map((function(e){return e.replace(Te,ke)})),n=t[0].match(Ee).map((function(){return[]}));t.forEach((function(e){e.match(Ee).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Ee).map((function(t,r){return V(Object(d.a)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Ee,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,a){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(a,")")}))}})),O(ie),T((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,a=t.scrollTop,i=t.scrollLeft,o=Object(l.a)(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var c in void 0!==a&&(e.scrollTop=a),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(c)){var u=0===c.indexOf("--"),f=Ae(c,n[c],u);"float"===c&&(c="cssFloat"),u?e.style.setProperty(c,f):e.style[c]=f}for(var d in o){var p=s?d:Ce[d]||(Ce[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(p)&&e.setAttribute(p,o[d])}}),(function(e){return e}));var je,Pe,Ie=(je=function(e){return Object(p.forwardRef)((function(t,n){var r=y(),a=Object(p.useRef)(!0),i=Object(p.useRef)(null),o=Object(p.useRef)(null),s=Object(p.useCallback)((function(e){var t=i.current;i.current=new L(e,(function(){var e=!1;o.current&&(e=w.fn(o.current,i.current.getAnimatedValue())),o.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(p.useEffect)((function(){return function(){a.current=!1,i.current&&i.current.detach()}}),[]),Object(p.useImperativeHandle)(n,(function(){return R(o,a,r)})),s(t);var c,u=i.current.getValue(),f=(u.scrollTop,u.scrollLeft,Object(l.a)(u,["scrollTop","scrollLeft"])),m=(c=e,!b.fun(c)||c.prototype instanceof h.a.Component?function(e){return o.current=function(e,t){return t&&(b.fun(t)?t(e):b.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return h.a.createElement(e,Object(d.a)({},f,{ref:m}))}))},void 0===(Pe=!1)&&(Pe=!0),function(e){return(b.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Pe?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityMetadataWrapper=t.Token=t.StableToken=t.CeloTokens=t.RegisteredContracts=t.CeloContract=t.AllContracts=t.REGISTRY_CONTRACT_ADDRESS=t.NULL_ADDRESS=void 0;var i=n(104);Object.defineProperty(t,"NULL_ADDRESS",{enumerable:!0,get:function(){return i.NULL_ADDRESS}});var o=n(583);Object.defineProperty(t,"REGISTRY_CONTRACT_ADDRESS",{enumerable:!0,get:function(){return o.REGISTRY_CONTRACT_ADDRESS}});var s=n(144);Object.defineProperty(t,"AllContracts",{enumerable:!0,get:function(){return s.AllContracts}}),Object.defineProperty(t,"CeloContract",{enumerable:!0,get:function(){return s.CeloContract}}),Object.defineProperty(t,"RegisteredContracts",{enumerable:!0,get:function(){return s.RegisteredContracts}});var c=n(250);Object.defineProperty(t,"CeloTokens",{enumerable:!0,get:function(){return c.CeloTokens}}),Object.defineProperty(t,"StableToken",{enumerable:!0,get:function(){return c.StableToken}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return c.Token}});var u=n(1969);Object.defineProperty(t,"IdentityMetadataWrapper",{enumerable:!0,get:function(){return u.IdentityMetadataWrapper}}),a(n(1976),t),a(n(1999),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"IEvents",(function(){return i}));var r=n(9),a=n(8),i=Object(r.a)((function e(){Object(a.a)(this,e)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(886);t.fromString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",n=r[t];if(!n)throw new Error('Unsupported encoding "'.concat(t,'"'));return n.decoder.decode("".concat(n.prefix).concat(e))}},,function(e,t,n){"use strict";(function(e){var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=n(220),o=n(310),s=n(420);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))};t.intToBuffer=function(n){var r=(0,t.intToHex)(n);return e.from((0,o.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var c=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),u(e)};t.unpadArray=function(e){return(0,s.assertIsArray)(e),u(e)};t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)};t.toBuffer=function(n){if(null===n||void 0===n)return e.allocUnsafe(0);if(e.isBuffer(n))return e.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return e.from(n);if("string"===typeof n){if(!(0,o.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,t.intToBuffer)(n);if(i.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(e)}if(n.toArray)return e.from(n.toArray());if(n.toBuffer)return e.from(n.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new i.BN(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(n){if(e.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(n){return Array.isArray(n)?n.map((function(e){return t(e)})):e.from(n)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1129),a=n(1130);t.keccak224=r.createHashFunction((function(){return a("keccak224")})),t.keccak256=r.createHashFunction((function(){return a("keccak256")})),t.keccak384=r.createHashFunction((function(){return a("keccak384")})),t.keccak512=r.createHashFunction((function(){return a("keccak512")}))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(422),a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var i=Object.create(n(366));i.inherits=n(43);var o=n(714),s=n(544);i.inherits(d,o);for(var c=a(s.prototype),u=0;u=0;a--){var s=r(o[a]);n=r(new e(n+s,"hex"))}}return"0x"+n},t.normalize=i}).call(this,n(23).Buffer)},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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,a(n(774),t),a(n(775),t),a(n(1346),t),a(n(566),t),a(n(1347),t),a(n(282),t),a(n(1348),t),a(n(223),t),a(n(567),t);var i=n(321);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}})},function(e,t,n){"use strict";(function(e){var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=n(223),o=n(321),s=n(432);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))};t.intToBuffer=function(n){var r=(0,t.intToHex)(n);return e.from((0,o.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var c=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),u(e)};t.unpadArray=function(e){return(0,s.assertIsArray)(e),u(e)};t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)};t.toBuffer=function(n){if(null===n||void 0===n)return e.allocUnsafe(0);if(e.isBuffer(n))return e.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return e.from(n);if("string"===typeof n){if(!(0,o.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,t.intToBuffer)(n);if(i.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(e)}if(n.toArray)return e.from(n.toArray());if(n.toBuffer)return e.from(n.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new i.BN(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(n){if(e.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(n){return Array.isArray(n)?n.map((function(e){return t(e)})):e.from(n)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=n(224),o=n(323),s=n(433);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))};t.intToBuffer=function(n){var r=(0,t.intToHex)(n);return e.from((0,o.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var c=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),u(e)};t.unpadArray=function(e){return(0,s.assertIsArray)(e),u(e)};t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)};t.toBuffer=function(n){if(null===n||void 0===n)return e.allocUnsafe(0);if(e.isBuffer(n))return e.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return e.from(n);if("string"===typeof n){if(!(0,o.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,t.intToBuffer)(n);if(i.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(e)}if(n.toArray)return e.from(n.toArray());if(n.toBuffer)return e.from(n.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new i.BN(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(n){if(e.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(n){return Array.isArray(n)?n.map((function(e){return t(e)})):e.from(n)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=n(225),o=n(324),s=n(434);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))};t.intToBuffer=function(n){var r=(0,t.intToHex)(n);return e.from((0,o.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var c=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),u(e)};t.unpadArray=function(e){return(0,s.assertIsArray)(e),u(e)};t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)};t.toBuffer=function(n){if(null===n||void 0===n)return e.allocUnsafe(0);if(e.isBuffer(n))return e.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return e.from(n);if("string"===typeof n){if(!(0,o.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,t.intToBuffer)(n);if(i.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(e)}if(n.toArray)return e.from(n.toArray());if(n.toBuffer)return e.from(n.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new i.BN(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(n){if(e.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(n){return Array.isArray(n)?n.map((function(e){return t(e)})):e.from(n)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1)),i=r(n(130)),o=r(n(131)),s=r(n(373)),c=(0,o.default)({container:"\n tw-flex\n tw-flex-col\n tw-items-stretch\n tw-justify-start\n tw-h-full\n tw-gap-2",title:"\n tw-text-xl\n tw-text-center\n tw-w-4/5\n tw-self-center\n tw-font-medium",contentContainer:"\n tw-flex\n tw-flex-col\n tw-items-center\n tw-flex-grow justify-center",footer:"\n tw-flex\n tw-flex-row\n tw-justify-between\n tw-items-stretch\n tw-text-sm self-end",footerText:"\n tw-font-medium"});t.default=function(e){var t=e.title,n=e.content,r=e.footer,o=(0,i.default)();return a.default.createElement("div",{className:c.container},a.default.createElement("h1",{className:c.title,style:{color:o.textSecondary}},t),a.default.createElement("div",{className:c.contentContainer},n),r&&a.default.createElement("div",{className:c.footer},a.default.createElement("div",null,a.default.createElement("p",{className:c.footerText,style:{color:o.textTertiary}},"desc"in r?r.desc:"Don't have ".concat(r.name,"?"))),a.default.createElement("div",null,a.default.createElement(s.default,{as:"a",href:r.url,target:"_blank",rel:"noreferrer"},r.CTA||"GET"))))}},function(e,t,n){var r=n(1495),a=n(1509);e.exports={packageInit:function(e,t){if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:function(){return e._provider},set:function(t){return e.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new r.Manager(t[0],t[1]),e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=function(t,n){return e._requestManager.setProvider(t,n),e._provider=e._requestManager.provider,!0}),e.setRequestManager=function(t){e._requestManager=t,e._provider=t.provider},e.BatchRequest=r.BatchManager.bind(null,e._requestManager),e.extend=a(e)},addProviders:function(e){e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers}}},function(e,t,n){"use strict";var r=n(47).default,a=n(83).default,i=n(50),o=n(125).errors,s=n(125).formatters,c=n(1510),u=n(438),f=n(439).subscriptions,d=n(69),l=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};l.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},l.prototype.createFunction=function(e,t){var n=this.buildCall();return n.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),n},l.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},l.prototype.getCall=function(e){return i.isFunction(this.call)?this.call(e):this.call},l.prototype.extractCallback=function(e){if(i.isFunction(e[e.length-1]))return e.pop()},l.prototype.validateArgs=function(e){if(e.length!==this.params)throw o.InvalidNumberOfParams(e.length,this.params,this.name)},l.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},l.prototype.formatOutput=function(e){var t=this;return i.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},l.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var a={method:t,params:r,callback:n};return this.transformPayload&&(a=this.transformPayload(a)),a},l.prototype._confirmTransaction=function(e,t,n){var p=this,h=!1,b=!0,y=0,m=0,v=null,g=null,x=i.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,w=i.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,_=w&&n.params[0].data.length>2,k=[new l({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[s.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:s.outputBlockFormatter}),new l({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:s.outputTransactionReceiptFormatter}),new l({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:s.outputTransactionFormatter}),new f({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:s.outputBlockFormatter}}})],E={};i.each(k,(function(e){e.attachToObject(E),e.requestManager=p.requestManager}));var S=function(i,f,l,k,S){if(!l)return S||(S={unsubscribe:function(){clearInterval(v)}}),(i?u.resolve(i):E.getTransactionReceipt(t)).catch((function(t){S.unsubscribe(),h=!0,c._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=a(r().mark((function t(n){var a,o,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(p.extraFormatters&&p.extraFormatters.receiptFormatter&&(n=p.extraFormatters.receiptFormatter(n)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==i&&0===m){t.next=25;break}return t.next=7,E.getBlockByNumber("latest");case 7:if(o=t.sent,s=o?o.hash:null,!f){t.next=24;break}if(!g){t.next=17;break}return t.next=13,E.getBlockByNumber(g.number+1);case 13:(a=t.sent)&&(g=a,e.eventEmitter.emit("confirmation",m,n,s)),t.next=22;break;case 17:return t.next=19,E.getBlockByNumber(n.blockNumber);case 19:a=t.sent,g=a,e.eventEmitter.emit("confirmation",m,n,s);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",m,n,s);case 25:(f&&a||!f)&&m++,b=!1,m===p.transactionConfirmationBlocks+1&&(S.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",n);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=a(r().mark((function t(n){var a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w||h){t.next=19;break}if(n.contractAddress){t.next=5;break}return b&&(S.unsubscribe(),h=!0),c._fireError(o.NoContractAddressFoundError(n),e.eventEmitter,e.reject,null,n),t.abrupt("return");case 5:return t.prev=5,t.next=8,E.getCode(n.contractAddress);case 8:a=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(a){t.next=15;break}return t.abrupt("return");case 15:!0===n.status&&_||a.length>2?(e.eventEmitter.emit("receipt",n),p.extraFormatters&&p.extraFormatters.contractDeployFormatter?e.resolve(p.extraFormatters.contractDeployFormatter(n)):e.resolve(n),b&&e.eventEmitter.removeAllListeners()):c._fireError(o.ContractCodeNotStoredError(n),e.eventEmitter,e.reject,null,n),b&&S.unsubscribe(),h=!0;case 19:return t.abrupt("return",n);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=a(r().mark((function t(a){var i,u,f,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w||h){t.next=35;break}if(a.outOfGas||x&&x===a.gasUsed||!0!==a.status&&"0x1"!==a.status&&"undefined"!==typeof a.status){t.next=7;break}e.eventEmitter.emit("receipt",a),e.resolve(a),b&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(a,null,2),!1!==a.status&&"0x0"!==a.status){t.next=32;break}if(t.prev=9,i=null,!p.handleRevert||"eth_sendTransaction"!==p.call&&"eth_sendRawTransaction"!==p.call){t.next=24;break}return u=n.params[0],"eth_sendRawTransaction"===p.call&&(f=n.params[0],l=d.parse(f),u=s.inputTransactionFormatter({data:l.data,to:l.to,from:l.from,gas:l.gasLimit.toHexString(),gasPrice:l.gasPrice.toHexString(),value:l.value.toHexString()})),t.next=16,p.getRevertReason(u,a.blockNumber);case 16:if(!(i=t.sent)){t.next=21;break}c._fireError(o.TransactionRevertInstructionError(i.reason,i.signature,a),e.eventEmitter,e.reject,null,a),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),c._fireError(o.TransactionRevertedWithoutReasonError(a),e.eventEmitter,e.reject,null,a);case 30:t.next=33;break;case 32:c._fireError(o.TransactionOutOfGasError(a),e.eventEmitter,e.reject,null,a);case 33:b&&S.unsubscribe(),h=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){y++,f?y-1>=p.transactionPollingTimeout&&(S.unsubscribe(),h=!0,c._fireError(o.TransactionError("Transaction was not mined within "+p.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):y-1>=p.transactionBlockTimeout&&(S.unsubscribe(),h=!0,c._fireError(o.TransactionError("Transaction was not mined within "+p.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));S.unsubscribe(),h=!0,c._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:l},e.eventEmitter,e.reject)},T=function(e){var t=function(){v=setInterval(S.bind(null,e,!0),1e3)};this.requestManager.provider.on?E.subscribe("newBlockHeaders",(function(n,r,a){n||!r?t():S(e,!1,n,0,a)})):t()}.bind(this);E.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&T(t),S(t,!1)):h||T()})).catch((function(){h||T()}))};var p=function(e,t){return i.isNumber(e)?t.wallet[e]:i.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};l.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,r=function(){var r=u(!t),a=e.toPayload(Array.prototype.slice.call(arguments)),s=function(i,s){var u;if(e.handleRevert&&n&&e.abiCoder&&(!i&&e.isRevertReasonString(s)?u=s.substring(10):i&&i.data&&(u=i.data.substring(10)),u)){var f=e.abiCoder.decodeParameter("string","0x"+u),d="Error(String)";return void c._fireError(o.RevertInstructionError(f,d),r.eventEmitter,r.reject,a.callback,{reason:f,signature:d})}try{s=e.formatOutput(s)}catch(l){i=l}if(s instanceof Error&&(i=s),i)return i.error&&(i=i.error),c._fireError(i,r.eventEmitter,r.reject,a.callback);a.callback&&a.callback(null,s),t?(r.eventEmitter.emit("transactionHash",s),e._confirmTransaction(r,s,a)):i||r.resolve(s)},f=function(t){var n=i.extend({},a,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,s)},d=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var a=e.params[0];if((n=p(i.isObject(a)?a.from:null,t.accounts))&&n.privateKey){var o=i.omit(a,"from");return t.defaultChain&&!o.chain&&(o.chain=t.defaultChain),t.defaultHardfork&&!o.hardfork&&(o.hardfork=t.defaultHardfork),t.defaultCommon&&!o.common&&(o.common=t.defaultCommon),void t.accounts.signTransaction(o,n.privateKey).then(f).catch((function(e){if(i.isFunction(r.eventEmitter.listeners)&&r.eventEmitter.listeners("error").length){try{r.eventEmitter.emit("error",e)}catch(e){}r.eventEmitter.removeAllListeners(),r.eventEmitter.catch((function(){}))}r.reject(e)}))}}else if("eth_sign"===e.method){var c=e.params[1];if((n=p(e.params[0],t.accounts))&&n.privateKey){var u=t.accounts.sign(c,n.privateKey);return e.callback&&e.callback(null,u.signature),void r.resolve(u.signature)}}return t.requestManager.send(e,s)};if(t&&i.isObject(a.params[0])&&"undefined"===typeof a.params[0].gasPrice){var h=new l({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);h((function(n,i){i&&(a.params[0].gasPrice=i),t&&setTimeout((function(){r.eventEmitter.emit("sending",a)}),0),d(a,e)}))}else t&&setTimeout((function(){r.eventEmitter.emit("sending",a)}),0),d(a,e);return t&&setTimeout((function(){r.eventEmitter.emit("sent",a)}),0),r.eventEmitter};return r.method=e,r.request=this.request.bind(this),r},l.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,a){new l({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,c.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):a(e)}))}))},l.prototype.isRevertReasonString=function(e){return i.isString(e)&&(e.length-2)/2%32===4&&"0x08c379a0"===e.substring(0,10)},l.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=l},function(e,t,n){"use strict";(function(e){var r=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=n(228),o=n(334),s=n(457);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))};t.intToBuffer=function(n){var r=(0,t.intToHex)(n);return e.from((0,o.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var c=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),u(e)};t.unpadArray=function(e){return(0,s.assertIsArray)(e),u(e)};t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)};t.toBuffer=function(n){if(null===n||void 0===n)return e.allocUnsafe(0);if(e.isBuffer(n))return e.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return e.from(n);if("string"===typeof n){if(!(0,o.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,t.intToBuffer)(n);if(i.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(e)}if(n.toArray)return e.from(n.toArray());if(n.toBuffer)return e.from(n.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new i.BN(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(n){if(e.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(n){return Array.isArray(n)?n.map((function(e){return t(e)})):e.from(n)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}}).call(this,n(23).Buffer)},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)}},function(e,t,n){var r=n(903),a=n(904);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=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}}},function(e,t,n){var r=n(1872),a=n(1877);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Wallet",(function(){return T})),n.d(t,"verifyMessage",(function(){return O})),n.d(t,"verifyTypedData",(function(){return M}));var r=n(2),a=n(8),i=n(9),o=n(30),s=n(17),c=n(19),u=n(38),f=n(192),d=n(162),l=n(6),p=n(644),h=n(498),b=n(101),y=n(49),m=n(10),v=n(357),g=n(147),x=n(345),w=n(400),_=n(69),k=n(13),E=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},S=new k.Logger("wallet/5.6.2");var T=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i,s;if(Object(a.a)(this,n),i=t.call(this),null!=(s=e)&&Object(l.isHexString)(s.privateKey,32)&&null!=s.address){var c=new g.SigningKey(e.privateKey);if(Object(m.defineReadOnly)(Object(o.a)(i),"_signingKey",(function(){return c})),Object(m.defineReadOnly)(Object(o.a)(i),"address",Object(_.computeAddress)(i.publicKey)),i.address!==Object(u.getAddress)(e.address)&&S.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var d=e.mnemonic;Object(m.defineReadOnly)(Object(o.a)(i),"_mnemonic",(function(){return{phrase:d.phrase,path:d.path||b.defaultPath,locale:d.locale||"en"}}));var p=i.mnemonic,h=b.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);Object(_.computeAddress)(h.privateKey)!==i.address&&S.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(m.defineReadOnly)(Object(o.a)(i),"_mnemonic",(function(){return null}))}else{if(g.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&S.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(m.defineReadOnly)(Object(o.a)(i),"_signingKey",(function(){return e}));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var y=new g.SigningKey(e);Object(m.defineReadOnly)(Object(o.a)(i),"_signingKey",(function(){return y}))}Object(m.defineReadOnly)(Object(o.a)(i),"_mnemonic",(function(){return null})),Object(m.defineReadOnly)(Object(o.a)(i),"address",Object(_.computeAddress)(i.publicKey))}return r&&!f.b.isProvider(r)&&S.throwArgumentError("invalid provider","provider",r),Object(m.defineReadOnly)(Object(o.a)(i),"provider",r||null),i}return Object(i.a)(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 Object(m.resolveProperties)(e).then((function(n){null!=n.from&&(Object(u.getAddress)(n.from)!==t.address&&S.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest(Object(y.keccak256)(Object(_.serialize)(n)));return Object(_.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return E(this,void 0,void 0,Object(r.a)().mark((function t(){return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(l.joinSignature)(this._signingKey().signDigest(Object(p.a)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return E(this,void 0,void 0,Object(r.a)().mark((function a(){var i,o=this;return Object(r.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.a.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",Object(l.joinSignature)(this._signingKey().signDigest(h.a.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={}),Object(x.c)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=Object(v.a)(16);e||(e={}),e.extraEntropy&&(t=Object(l.arrayify)(Object(l.hexDataSlice)(Object(y.keccak256)(Object(l.concat)([t,e.extraEntropy])),0,16)));var r=Object(b.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return Object(w.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n(Object(w.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=b.defaultPath),new n(b.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(d.a);function O(e,t){return Object(_.recoverAddress)(Object(p.a)(e),t)}function M(e,t,n,r){return Object(_.recoverAddress)(h.a.hash(e,t,n),r)}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return m}));var r=n(7),a=n(308),i=n(89),o=n(88),s=n(199),c=n(1e3),u=n(42),f=n(343),d=n(344),l=n(72);function p(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function h(e,t,n){return Object(l.b)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"===typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(e){if(Object(o.h)(e)||"number"!==typeof e&&"boolean"!==typeof e)return u.a&&i.c.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return u.a&&i.c.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=Object(r.__spread)(t.__SENTRY__.integrations||[],i))}}(),Object(c.a)()}}).call(this,n(335)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(146);function a(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource;return n.randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource,n=o(4,e),r=(0,a.readUint32LE)(n);return(0,i.wipe)(n),r};var s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");for(var a="",c=n.length,u=256-256%c;e>0;){for(var f=o(Math.ceil(256*e/u),r),d=0;d0;d++){var l=f[d];l1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource,a=Math.ceil(e/(Math.log(n.length)/Math.LN2));return c(a,n,r)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var r=n(7),a=1,i=function(){return Promise.resolve()}(),o={};function s(e){return e in o&&(delete o[e],!0)}var c=function(e){var t=a++;return o[t]=!0,i.then((function(){return s(t)&&e()})),t},u=function(e){s(e)},f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=c(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(u(n),t.scheduled=void 0)},t}(n(213).a),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,a=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1),y=[],m=!1,v=-1,g=void 0,x=void 0,w=function(e){return y.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},_=function(e){var t=e||window.event;return!!w(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},k=function(e,t){if(e){if(!y.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};y=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?_(e):e.stopPropagation())}(t,e)},m||(document.addEventListener("touchmove",_,s?{passive:!1}:void 0),m=!0)):function(e){if(void 0===x){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(x=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===g&&(g=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},E=function(){b?(y.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),m&&(document.removeEventListener("touchmove",_,s?{passive:!1}:void 0),m=!1),v=-1):(void 0!==x&&(document.body.style.paddingRight=x,x=void 0),void 0!==g&&(document.body.style.overflow=g,g=void 0)),y=[]};function S(){try{return String(crypto.getRandomValues(new Uint32Array(1))[0])}catch(e){return String(Math.floor(1e7*Math.random()))}}!function(e){e.MANUAL_BANK_TRANSFER="MANUAL_BANK_TRANSFER",e.AUTO_BANK_TRANSFER="AUTO_BANK_TRANSFER",e.CARD_PAYMENT="CARD_PAYMENT",e.APPLE_PAY="APPLE_PAY"}(u||(u={})),function(e){e.INITIALIZED="INITIALIZED",e.PAYMENT_STARTED="PAYMENT_STARTED",e.PAYMENT_IN_PROGRESS="PAYMENT_IN_PROGRESS",e.PAYMENT_FAILED="PAYMENT_FAILED",e.PAYMENT_EXECUTED="PAYMENT_EXECUTED",e.FIAT_RECEIVED="FIAT_RECEIVED",e.FIAT_SENT="FIAT_SENT",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED",e.RELEASING="RELEASING",e.RELEASED="RELEASED"}(f||(f={})),function(e){e.VERBOSE="VERBOSE",e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.CRITICAL="CRITICAL"}(d||(d={})),function(e){e.WIDGET_CLOSE="WIDGET_CLOSE",e.WIDGET_CONFIG_DONE="WIDGET_CONFIG_DONE",e.WIDGET_CONFIG_FAILED="WIDGET_CONFIG_FAILED",e.PURCHASE_CREATED="PURCHASE_CREATED"}(l||(l={})),function(e){e.WIDGET_CLOSE_REQUEST="WIDGET_CLOSE_REQUEST",e.WIDGET_CLOSE_REQUEST_CANCELLED="WIDGET_CLOSE_REQUEST_CANCELLED",e.WIDGET_CLOSE_REQUEST_CONFIRMED="WIDGET_CLOSE_REQUEST_CONFIRMED",e.REQUEST_CRYPTO_ACCOUNT="REQUEST_CRYPTO_ACCOUNT"}(p||(p={})),function(e){e.REQUEST_CRYPTO_ACCOUNT_RESULT="REQUEST_CRYPTO_ACCOUNT_RESULT"}(h||(h={}));var T=895,O=590,M=320,A=667;function C(e){var t=[],n=r({},e);return["desktop","mobile","hosted-desktop","hosted-mobile","hosted-auto","auto","embedded-desktop","embedded-mobile"].includes(e.variant)||(n.variant="desktop",t.push({fieldName:"variant",description:"Invalid value for `variant` config field ",exampleValue:"'desktop'",severity:d.WARNING})),"embedded-desktop"!==e.variant&&"embedded-mobile"!==e.variant||function(e,t){if(!document.body)throw new Error("Couldn't find element.");if(!(e instanceof HTMLElement))throw new Error("Container node has to be a proper HTML element.");if(!document.body.contains(e))throw new Error("Container node must be attached to the document.");var n=e.getBoundingClientRect(),r=n.width,a=n.height;if("embedded-desktop"===t){if(r+1\n \n \n \n ',o.appendChild(s),i.appendChild(D(n.variant));var c=R(e,n.variant,n.containerNode);return o.appendChild(c),{body:r,iframe:c,overlay:null,shadow:i,shadowHost:a}}(n,this._dispatchEvent,this._config),!(null===(e=this.domNodes)||void 0===e?void 0:e.body))throw new Error("Couldn't find element.");null===(t=this._config.containerNode)||void 0===t||t.appendChild(this.domNodes.shadowHost),this._isVisible=!0},e.prototype._showUsingOverlayMode=function(){var e,t=I(this._config);if(this.domNodes=N(t,this._dispatchEvent,this._config),!(null===(e=this.domNodes)||void 0===e?void 0:e.body))throw new Error("Couldn't find element.");this.domNodes.body.appendChild(this.domNodes.shadowHost),this._isVisible=!0,k(this.domNodes.iframe);var n=j(this._config);"desktop"!==n&&"embedded-desktop"!==n&&function(e,t){var n=document.createElement("div");n.classList.add("background-hider"),t&&(n.style.maxWidth="".concat(t,"px")),e.appendChild(n)}(this.domNodes.shadow)},e.prototype._showUsingHostedMode=function(){var e,t=I(this._config);this.widgetWindow=null!==(e=window.open(t))&&void 0!==e?e:void 0},e.prototype._isConfiguredWithOverlay=function(){return["desktop","mobile"].includes(this._config.variant)},e.prototype._isConfiguredAsHosted=function(){return["hosted-desktop","hosted-mobile"].includes(this._config.variant)},e.prototype._isConfiguredAsEmbedded=function(){return["embedded-desktop","embedded-mobile"].includes(this._rawNormalizedConfig.variant)},e}()},function(e,t,n){"use strict";function r(e){var t=void 0;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function a(e){var t=r(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=a,t.getDocumentOrThrow=function(){return a("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return a("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return a("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return a("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return a("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(88);function a(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var a=Math.max(t-60,0);a<5&&(a=0);var i=Math.min(a+140,r);return i>r-5&&(i=r),i===r&&(a=Math.max(i-140,0)),n=n.slice(a,i),a>0&&(n="'{snip} "+n),i0){if(e!==s){e=s,t.forEach((function(e){o(e).dep.dirty(r),f(e)}));var c=Array.from(n);n.clear(),c.forEach((function(t){return t(e)}))}}else{var u=a.getValue();u&&(i(u),o(u).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),o(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function f(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(886);t.toString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",n=r[t];if(!n)throw new Error('Unsupported encoding "'.concat(t,'"'));return n.encoder.encode(e).substring(1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return l}));var r=n(24),a=n(166);function i(e){__DEV__?Object(r.b)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Object(r.b)(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new r.a('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new r.a(45);return e}));return __DEV__?Object(r.b)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Object(r.b)(t.length<=1,46),e}function o(e){return i(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function s(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){var t=o(e);return __DEV__?Object(r.b)(t&&"query"===t.operation,"Must contain a query definition."):Object(r.b)(t&&"query"===t.operation,47),t}function f(e){__DEV__?Object(r.b)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Object(r.b)("Document"===e.kind,48),__DEV__?Object(r.b)(e.definitions.length<=1,"Fragment must have exactly one definition."):Object(r.b)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Object(r.b)("FragmentDefinition"===t.kind,"Must be a fragment definition."):Object(r.b)("FragmentDefinition"===t.kind,50),t}function d(e){var t;i(e);for(var n=0,a=e.definitions;n=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,a,o,s;if("string"===typeof t&&(a="not ",t.substr(!o||o<0?0:+o,a.length)===a)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(699),i=n(703);n(43)(u,a);for(var o=r(i.prototype),s=0;s2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,a,o,s;if("string"===typeof t&&(a="not ",t.substr(!o||o<0?0:+o,a.length)===a)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(706),i=n(710);n(43)(u,a);for(var o=r(i.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},function(e,t,n){var r;if("object"===typeof globalThis)r=globalThis;else try{r=n(1180)}catch(s){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var a=r.WebSocket||r.MozWebSocket,i=n(1181);function o(e,t){return t?new a(e,t):new a(e)}a&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(o,e,{get:function(){return a[e]}})})),e.exports={w3cwebsocket:a?o:null,version:i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1184));var r=n(548);t.XMLHttpRequestEventTarget=r.XMLHttpRequestEventTarget},function(e,t,n){var r;"undefined"!==typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h}));var r=n(1),a=u((function(e,t){var n=t.length;return u((function(r){for(var a=0;a0&&(a=n),n=e[r++]);)switch(H++,"\n"===n?(q++,z=0):z++,L){case p:if("{"===n)L=b;else if("["===n)L=m;else if(!G(n))return W("Non-whitespace before {[.");continue;case x:case b:if(G(n))continue;if(L===x)B.push(w);else{if("}"===n){s({}),c(),L=B.pop()||h;continue}B.push(y)}if('"'!==n)return W('Malformed object key should start with " ');L=g;continue;case w:case y:if(G(n))continue;if(":"===n)L===y?(B.push(y),void 0!==i&&(s({}),o(i),i=void 0),V++):void 0!==i&&(o(i),i=void 0),L=h;else if("}"===n)void 0!==i&&(s(i),c(),i=void 0),c(),V--,L=B.pop()||h;else{if(","!==n)return W("Bad object");L===y&&B.push(y),void 0!==i&&(s(i),c(),i=void 0),L=x}continue;case m:case h:if(G(n))continue;if(L===m){if(s([]),V++,L=h,"]"===n){c(),V--,L=B.pop()||h;continue}B.push(v)}if('"'===n)L=g;else if("{"===n)L=b;else if("["===n)L=m;else if("t"===n)L=_;else if("f"===n)L=S;else if("n"===n)L=A;else if("-"===n)N+=n;else if("0"===n)N+=n,L=20;else{if(-1==="123456789".indexOf(n))return W("Bad value");N+=n,L=20}continue;case v:if(","===n)B.push(v),void 0!==i&&(s(i),c(),i=void 0),L=h;else{if("]"!==n){if(G(n))continue;return W("Bad array")}void 0!==i&&(s(i),c(),i=void 0),c(),V--,L=B.pop()||h}continue;case g:void 0===i&&(i="");var u=r-1;e:for(;;){for(;U>0;)if(F+=n,n=e.charAt(r++),4===U?(i+=String.fromCharCode(parseInt(F,16)),U=0,u=r-1):U++,!n)break e;if('"'===n&&!R){L=B.pop()||h,i+=e.substring(u,r-1);break}if("\\"===n&&!R&&(R=!0,i+=e.substring(u,r-1),!(n=e.charAt(r++))))break;if(R){if(R=!1,"n"===n?i+="\n":"r"===n?i+="\r":"t"===n?i+="\t":"f"===n?i+="\f":"b"===n?i+="\b":"u"===n?(U=1,F=""):i+=n,n=e.charAt(r++),u=r-1,n)continue;break}d.lastIndex=r;var l=d.exec(e);if(!l){r=e.length+1,i+=e.substring(u,r-1);break}if(r=l.index+1,!(n=e.charAt(l.index))){i+=e.substring(u,r-1);break}}continue;case _:if(!n)continue;if("r"!==n)return W("Invalid true started with t"+n);L=k;continue;case k:if(!n)continue;if("u"!==n)return W("Invalid true started with tr"+n);L=E;continue;case E:if(!n)continue;if("e"!==n)return W("Invalid true started with tru"+n);s(!0),c(),L=B.pop()||h;continue;case S:if(!n)continue;if("a"!==n)return W("Invalid false started with f"+n);L=T;continue;case T:if(!n)continue;if("l"!==n)return W("Invalid false started with fa"+n);L=O;continue;case O:if(!n)continue;if("s"!==n)return W("Invalid false started with fal"+n);L=M;continue;case M:if(!n)continue;if("e"!==n)return W("Invalid false started with fals"+n);s(!1),c(),L=B.pop()||h;continue;case A:if(!n)continue;if("u"!==n)return W("Invalid null started with n"+n);L=C;continue;case C:if(!n)continue;if("l"!==n)return W("Invalid null started with nu"+n);L=j;continue;case j:if(!n)continue;if("l"!==n)return W("Invalid null started with nul"+n);s(null),c(),L=B.pop()||h;continue;case P:if("."!==n)return W("Leading zero not followed by .");N+=n,L=20;continue;case 20:if(-1!=="0123456789".indexOf(n))N+=n;else if("."===n){if(-1!==N.indexOf("."))return W("Invalid number has two dots");N+=n}else if("e"===n||"E"===n){if(-1!==N.indexOf("e")||-1!==N.indexOf("E"))return W("Invalid number has two exponential");N+=n}else if("+"===n||"-"===n){if("e"!==a&&"E"!==a)return W("Invalid symbol in number");N+=n}else N&&(s(parseFloat(N)),c(),N=""),r--,L=B.pop()||h;continue;default:return W("Unknown state: "+L)}H>=I&&function(){var e=0;void 0!==i&&i.length>f&&(W("Max buffer length exceeded: textNode"),e=Math.max(e,i.length)),N.length>f&&(W("Max buffer length exceeded: numberNode"),e=Math.max(e,N.length)),I=f-e+H}()}})),e(r.n).on((function(){if(L===p)return s({}),c(),void(D=!0);L===h&&0===V||W("Unexpected end"),void 0!==i&&(s(i),c(),i=void 0),D=!0}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(19),a=n(3),i=n(2),o=n(20),s=n(0);function c(){return new XMLHttpRequest}function u(e,t,n,c,u,f,d){var l=e(a.m).emit,p=e(a.b).emit,h=0,b=!0;function y(){if("2"===String(t.status)[0]){var e=t.responseText,n=(" "+e.substr(h)).substr(1);n&&l(n),h=Object(i.e)(e)}}function m(t){try{b&&e(a.c).emit(t.status,Object(o.a)(t.getAllResponseHeaders())),b=!1}catch(n){}}e(a.a).on((function(){t.onreadystatechange=null,t.abort()})),"onprogress"in t&&(t.onprogress=y),t.onreadystatechange=function(){switch(t.readyState){case 2:case 3:return m(t);case 4:m(t),"2"===String(t.status)[0]?(y(),e(a.n).emit()):p(Object(a.o)(t.status,t.responseText))}};try{for(var v in t.open(n,c,!0),f)t.setRequestHeader(v,f[v]);Object(r.a)(window.location,Object(r.b)(c))||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=d,t.send(u)}catch(g){window.setTimeout(Object(s.j)(p,Object(a.o)(void 0,void 0,g)),0)}}},function(e,t,n){"use strict";function r(e,t){function n(t){return String(t.port||{"http:":80,"https:":443}[t.protocol||e.protocol])}return!!(t.protocol&&t.protocol!==e.protocol||t.host&&t.host!==e.host||t.host&&n(t)!==n(e))}function a(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";function r(e){var t={};return e&&e.split("\r\n").forEach((function(e){var n=e.indexOf(": ");t[e.substring(0,n)]=e.substring(n+2)})),t}n.d(t,"a",(function(){return r}))}]).default},e.exports=r()},function(e,t,n){"use strict";var r={};function a(e,t,n){n||(n=Error);var a=function(e){var n,r;function a(n,r,a){return e.call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,r,a))||this}return r=e,(n=a).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,a}(n);a.prototype.name=n.name,a.prototype.code=e,r[e]=a}function i(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,a,o,s;if("string"===typeof t&&(a="not ",t.substr(!o||o<0?0:+o,a.length)===a)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(755),i=n(759);n(43)(u,a);for(var o=r(i.prototype),s=0;s=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n=0}))},intToBuffer:function(e){var n=o(e);return new t(i(n.slice(2)),"hex")},getBinarySize:function(e){if("string"!==typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return t.byteLength(e,"utf8")},isHexPrefixed:r,stripHexPrefix:a,padToEven:i,intToHex:o,fromAscii:function(e){for(var t="",n=0;n-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},f.prototype.mapStructToCoderFormat=function(e){var t=this,n=[];return Object.keys(e).forEach((function(r){"object"!==typeof e[r]?n.push({name:r,type:e[r]}):n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))})),n},f.prototype.formatParam=function(e,t){var n=this,a=new RegExp(/^bytes([0-9]*)$/),o=new RegExp(/^bytes([0-9]*)\[\]$/),s=new RegExp(/^(u?int)([0-9]*)$/),c=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(t)||i.isBigNumber(t))return t.toString(10);if(e.match(o)||e.match(c))return t.map((function(t){return n.formatParam(e.replace("[]",""),t)}));var u=e.match(s);if(u){var f=parseInt(u[2]||"256");f/80&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var r=c.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),n),i=new u;return i.__length__=0,e.forEach((function(e,t){var n=r[i.__length__];n="0x"===n?null:n,i[t]=n,a.isObject(e)&&e.name&&(i[e.name]=n),i.__length__++})),i},f.prototype.decodeLog=function(e,t,n){var r=this;n=a.isArray(n)?n:[n],t=t||"";var i=[],o=[],s=0;e.forEach((function(e,t){e.indexed?(o[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?r.decodeParameter(e.type,n[s]):n[s],s++):i[t]=e}));var c=t,f=c?this.decodeParametersWith(i,c,!0):[],d=new u;return d.__length__=0,e.forEach((function(e,t){d[t]="string"===e.type?"":null,"undefined"!==typeof f[t]&&(d[t]=f[t]),"undefined"!==typeof o[t]&&(d[t]=o[t]),e.name&&(d[e.name]=d[t]),d.__length__++})),d};var d=new f;e.exports=d},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,a,o,s;if("string"===typeof t&&(a="not ",t.substr(!o||o<0?0:+o,a.length)===a)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(847),i=n(851);n(43)(u,a);for(var o=r(i.prototype),s=0;s)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(o[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(o[s.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:".concat(o[s.PRERELEASE],")?").concat(o[s.BUILD],"?")+")?)?"),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[s.PRERELEASELOOSE],")?").concat(o[s.BUILD],"?")+")?)?"),u("XRANGE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAINLOOSE],"$")),u("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),u("COERCERTL",o[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM","(\\s*)".concat(o[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",u("TILDE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAIN],"$")),u("TILDELOOSE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAINLOOSE],"$")),u("LONECARET","(?:\\^)"),u("CARETTRIM","(\\s*)".concat(o[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",u("CARET","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAIN],"$")),u("CARETLOOSE","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAINLOOSE],"$")),u("COMPARATORLOOSE","^".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],")$|^$")),u("COMPARATOR","^".concat(o[s.GTLT],"\\s*(").concat(o[s.FULLPLAIN],")$|^$")),u("COMPARATORTRIM","(\\s*)".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],"|").concat(o[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE","^\\s*(".concat(o[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAIN],")")+"\\s*$"),u("HYPHENRANGELOOSE","^\\s*(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s*$"),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},function(e,t,n){var r=n(450).MAX_LENGTH,a=n(332),i=a.re,o=a.t,s=n(145),c=n(452);e.exports=function(e,t){if(t=c(t),e instanceof s)return e;if("string"!==typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new s(e,t)}catch(n){return null}}},function(e,t,n){"use strict";(function(e){function n(e){if("string"!==typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=n;function r(e){var t=e;if("string"!==typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}t.stripHexPrefix=function(e){if("string"!==typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return n(e)?e.slice(2):e},t.padToEven=r,t.getBinarySize=function(t){if("string"!==typeof t)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof t));return e.byteLength(t,"utf8")},t.arrayContainsArray=function(e,t,n){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[n?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(7),a=n(77),i=n(396),o=n(60),s=n(481),c=n(178),u=n(501),f=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var a=e.call(this)||this;return a.scheduler=r,a._events=[],a._infiniteTimeWindow=!1,a._bufferSize=t<1?1:t,a._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(a._infiniteTimeWindow=!0,a.next=a.nextInfiniteTimeWindow):a.next=a.nextTimeWindow,a}return r.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new d(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,i=r.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?t=o.a.EMPTY:(this.observers.push(e),t=new u.a(this,e)),a&&e.add(e=new s.a(e,a)),n)for(var f=0;ft&&(i=Math.max(i,a-t)),i>0&&r.splice(0,i),r},t}(a.a),d=function(){return function(e,t){this.time=e,this.value=t}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(37);function a(e,t){return t?new r.a((function(n){return t.schedule(i,0,{error:e,subscriber:n})})):new r.a((function(t){return t.error(e)}))}function i(e){var t=e.error;e.subscriber.error(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(7),a=n(102),i=n(85),o=n(152),s=n(140),c=n(209),u={};function f(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),h=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.parent=n,a.observable=r,a.stillUnsubscribed=!0,a.buffer=[],a.isComplete=!1,a}return r.__extends(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Object(c.c)(this.observable,new c.a(this))},t}(c.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return l}));var r=n(7),a=n(219),i=n(89),o=n(269),s=n(42),c=n(261),u=n(344),f=1e3,d=function(e){function t(t,n,r,a){void 0===r&&(r="");var i=e.call(this,a)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return Object(r.__extends)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"===typeof e?e:Object(a.d)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(c.b),l=function(e){function t(t,n,r,a){void 0===r&&(r=f),void 0===a&&(a=!1);var o=e.call(this,t,n)||this;return o._idleHub=n,o._idleTimeout=r,o._onScope=a,o.activities={},o._heartbeatCounter=0,o._finished=!1,o._beforeFinishCallbacks=[],n&&a&&(p(n),s.a&&i.c.log("Setting idle transaction on scope. Span ID: "+o.spanId),n.configureScope((function(e){return e.setSpan(o)}))),o._initTimeout=setTimeout((function(){o._finished||o.finish()}),o._idleTimeout),o}return Object(r.__extends)(t,e),t.prototype.finish=function(t){var n,o,c=this;if(void 0===t&&(t=Object(a.d)()),this._finished=!0,this.activities={},this.spanRecorder){s.a&&i.c.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var u=Object(r.__values)(this._beforeFinishCallbacks),f=u.next();!f.done;f=u.next()){(0,f.value)(this,t)}}catch(d){n={error:d}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===c.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),s.a&&i.c.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp=3?(s.a&&i.c.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(o.a,o.b[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;s.a&&i.c.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(u.a);function p(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(7),a=n(308),i=n(88),o=n(89),s=n(121),c=n(42),u=n(261),f=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=Object(a.b)(),Object(i.g)(n,a.a)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return Object(r.__extends)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new u.b(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=Object(r.__assign)({},e)},t.prototype.setMetadata=function(e){this.metadata=Object(r.__assign)(Object(r.__assign)({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(c.a&&o.c.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var a={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(c.a&&o.c.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),c.a&&o.c.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(a)}c.a&&o.c.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient(),s=i&&i.getTransport&&i.getTransport();s&&s.recordLostEvent&&s.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return Object(s.c)(Object(r.__assign)(Object(r.__assign)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!==(n=t.name)&&void 0!==n?n:"",this._trimEnd=t.trimEnd,this},t}(u.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return P})),n.d(t,"c",(function(){return I}));var r=n(2),a=n(8),i=n(9),o=n(17),s=n(19),c=n(180),u=n.n(c),f=n(346),d=n.n(f),l=n(38),p=n(6),h=n(101),b=n(49),y=n(2098),m=n(357),v=n(10),g=n(69),x=n(64),w=n(13),_=n(515),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},E=new w.Logger(_.a);function S(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}var T=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"isKeystoreAccount",value:function(e){return!(!e||!e._isKeystoreAccount)}}]),n}(v.Description);function O(e,t){var n=Object(x.b)(Object(x.c)(e,"crypto/ciphertext"));if(Object(p.hexlify)(Object(b.keccak256)(Object(p.concat)([t.slice(16,32),n]))).substring(2)!==Object(x.c)(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var r=function(e,t,n){if("aes-128-ctr"===Object(x.c)(e,"crypto/cipher")){var r=Object(x.b)(Object(x.c)(e,"crypto/cipherparams/iv")),a=new u.a.Counter(r),i=new u.a.ModeOfOperation.ctr(t,a);return Object(p.arrayify)(i.decrypt(n))}return null}(e,t.slice(0,16),n);r||E.throwError("unsupported cipher",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var a=t.slice(32,64),i=Object(g.computeAddress)(r);if(e.address){var o=e.address.toLowerCase();if("0x"!==o.substring(0,2)&&(o="0x"+o),Object(l.getAddress)(o)!==i)throw new Error("address mismatch")}var s={_isKeystoreAccount:!0,address:i,privateKey:Object(p.hexlify)(r)};if("0.1"===Object(x.c)(e,"x-ethers/version")){var c=Object(x.b)(Object(x.c)(e,"x-ethers/mnemonicCiphertext")),f=Object(x.b)(Object(x.c)(e,"x-ethers/mnemonicCounter")),d=new u.a.Counter(f),y=new u.a.ModeOfOperation.ctr(a,d),m=Object(x.c)(e,"x-ethers/path")||h.defaultPath,v=Object(x.c)(e,"x-ethers/locale")||"en",_=Object(p.arrayify)(y.decrypt(c));try{var k=Object(h.entropyToMnemonic)(_,v),S=h.HDNode.fromMnemonic(k,null,v).derivePath(m);if(S.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=S.mnemonic}catch(O){if(O.code!==w.Logger.errors.INVALID_ARGUMENT||"wordlist"!==O.argument)throw O}}return new T(s)}function M(e,t,n,r,a){return Object(p.arrayify)(Object(y.a)(e,t,n,r,a))}function A(e,t,n,r,a){return Promise.resolve(M(e,t,n,r,a))}function C(e,t,n,r,a){var i=Object(x.a)(t),o=Object(x.c)(e,"crypto/kdf");if(o&&"string"===typeof o){var s=function(e,t){return E.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===o.toLowerCase()){var c=Object(x.b)(Object(x.c)(e,"crypto/kdfparams/salt")),u=parseInt(Object(x.c)(e,"crypto/kdfparams/n")),f=parseInt(Object(x.c)(e,"crypto/kdfparams/r")),d=parseInt(Object(x.c)(e,"crypto/kdfparams/p"));u&&f&&d||s("kdf",o),0!==(u&u-1)&&s("N",u);var l=parseInt(Object(x.c)(e,"crypto/kdfparams/dklen"));return 32!==l&&s("dklen",l),r(i,c,u,f,d,64,a)}if("pbkdf2"===o.toLowerCase()){var p=Object(x.b)(Object(x.c)(e,"crypto/kdfparams/salt")),h=null,b=Object(x.c)(e,"crypto/kdfparams/prf");"hmac-sha256"===b?h="sha256":"hmac-sha512"===b?h="sha512":s("prf",b);var y=parseInt(Object(x.c)(e,"crypto/kdfparams/c")),m=parseInt(Object(x.c)(e,"crypto/kdfparams/dklen"));return 32!==m&&s("dklen",m),n(i,p,y,m,h)}}return E.throwArgumentError("unsupported key-derivation function","kdf",o)}function j(e,t){var n=JSON.parse(e);return O(n,C(n,t,M,d.a.syncScrypt))}function P(e,t,n){return k(this,void 0,void 0,Object(r.a)().mark((function a(){var i,o;return Object(r.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=JSON.parse(e),r.next=3,C(i,t,A,d.a.scrypt,n);case 3:return o=r.sent,r.abrupt("return",O(i,o));case 5:case"end":return r.stop()}}),a)})))}function I(e,t,n,r){try{if(Object(l.getAddress)(e.address)!==Object(g.computeAddress)(e.privateKey))throw new Error("address/privateKey mismatch");if(S(e)){var a=e.mnemonic;if(h.HDNode.fromMnemonic(a.phrase,null,a.locale).derivePath(a.path||h.defaultPath).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(M){return Promise.reject(M)}"function"!==typeof n||r||(r=n,n={}),n||(n={});var i=Object(p.arrayify)(e.privateKey),o=Object(x.a)(t),s=null,c=null,f=null;if(S(e)){var y=e.mnemonic;s=Object(p.arrayify)(Object(h.mnemonicToEntropy)(y.phrase,y.locale||"en")),c=y.path||h.defaultPath,f=y.locale||"en"}var v=n.client;v||(v="ethers.js");var w=null;w=n.salt?Object(p.arrayify)(n.salt):Object(m.a)(32);var _=null;if(n.iv){if(16!==(_=Object(p.arrayify)(n.iv)).length)throw new Error("invalid iv")}else _=Object(m.a)(16);var k=null;if(n.uuid){if(16!==(k=Object(p.arrayify)(n.uuid)).length)throw new Error("invalid uuid")}else k=Object(m.a)(16);var E=1<<17,T=8,O=1;return n.scrypt&&(n.scrypt.N&&(E=n.scrypt.N),n.scrypt.r&&(T=n.scrypt.r),n.scrypt.p&&(O=n.scrypt.p)),d.a.scrypt(o,w,E,T,O,64,r).then((function(t){var n=(t=Object(p.arrayify)(t)).slice(0,16),r=t.slice(16,32),a=t.slice(32,64),o=new u.a.Counter(_),d=new u.a.ModeOfOperation.ctr(n,o),l=Object(p.arrayify)(d.encrypt(i)),h=Object(b.keccak256)(Object(p.concat)([r,l])),y={address:e.address.substring(2).toLowerCase(),id:Object(x.d)(k),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(p.hexlify)(_).substring(2)},ciphertext:Object(p.hexlify)(l).substring(2),kdf:"scrypt",kdfparams:{salt:Object(p.hexlify)(w).substring(2),n:E,dklen:32,p:O,r:T},mac:h.substring(2)}};if(s){var g=Object(m.a)(16),S=new u.a.Counter(g),M=new u.a.ModeOfOperation.ctr(a,S),A=Object(p.arrayify)(M.encrypt(s)),C=new Date,j=C.getUTCFullYear()+"-"+Object(x.e)(C.getUTCMonth()+1,2)+"-"+Object(x.e)(C.getUTCDate(),2)+"T"+Object(x.e)(C.getUTCHours(),2)+"-"+Object(x.e)(C.getUTCMinutes(),2)+"-"+Object(x.e)(C.getUTCSeconds(),2)+".0Z";y["x-ethers"]={client:v,gethFilename:"UTC--"+j+"--"+y.address,mnemonicCounter:Object(p.hexlify)(g).substring(2),mnemonicCiphertext:Object(p.hexlify)(A).substring(2),path:c,locale:f,version:"0.1"}}return JSON.stringify(y)}))}},function(e,t,n){"use strict";(function(t){!function(n){var r=2147483647;function a(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=1779033703,r=3144134277,a=1013904242,i=2773480762,o=1359893119,s=2600822924,c=528734635,u=1541459225,f=new Uint32Array(64);function d(e){for(var d=0,l=e.length;l>=64;){var p=n,h=r,b=a,y=i,m=o,v=s,g=c,x=u,w=void 0,_=void 0,k=void 0,E=void 0,S=void 0;for(_=0;_<16;_++)k=d+4*_,f[_]=(255&e[k])<<24|(255&e[k+1])<<16|(255&e[k+2])<<8|255&e[k+3];for(_=16;_<64;_++)E=((w=f[_-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,S=((w=f[_-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,f[_]=(E+f[_-7]|0)+(S+f[_-16]|0)|0;for(_=0;_<64;_++)E=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&g)|0)+(x+(t[_]+f[_]|0)|0)|0,S=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&h^p&b^h&b)|0,x=g,g=v,v=m,m=y+E|0,y=b,b=h,h=p,p=E+S|0;n=n+p|0,r=r+h|0,a=a+b|0,i=i+y|0,o=o+m|0,s=s+v|0,c=c+g|0,u=u+x|0,d+=64,l-=64}}d(e);var l,p=e.length%64,h=e.length/536870912|0,b=e.length<<3,y=p<56?56:120,m=e.slice(e.length-p,e.length);for(m.push(128),l=p+1;l>>24&255),m.push(h>>>16&255),m.push(h>>>8&255),m.push(h>>>0&255),m.push(b>>>24&255),m.push(b>>>16&255),m.push(b>>>8&255),m.push(b>>>0&255),d(m),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function i(e,t,n){e=e.length<=64?e:a(e);var r,i=64+t.length+4,o=new Array(i),s=new Array(64),c=[];for(r=0;r<64;r++)o[r]=54;for(r=0;r=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)u(),c=c.concat(a(s.concat(a(o)))),n-=32;return n>0&&(u(),c=c.concat(a(s.concat(a(o))).slice(0,n))),c}function o(e,t,n,r,a){var i;for(f(e,16*(2*n-1),a,0,16),i=0;i<2*n;i++)u(e,16*i,a,16),c(a,r),f(a,0,e,t+16*i,16);for(i=0;i>>32-t}function c(e,t){f(e,0,t,0,16);for(var n=8;n>0;n-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(var r=0;r<16;++r)e[r]+=t[r]}function u(e,t,n,r){for(var a=0;a=256)return!1}return!0}function l(e,t){if("number"!==typeof e||e%1)throw new Error("invalid "+t);return e}function p(e,n,a,s,c,p,h){if(a=l(a,"N"),s=l(s,"r"),c=l(c,"p"),p=l(p,"dkLen"),0===a||0!==(a&a-1))throw new Error("N must be power of 2");if(a>r/128/s)throw new Error("N too large");if(s>r/128/c)throw new Error("r too large");if(!d(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!d(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);for(var b=i(e,n,128*c*s),y=new Uint32Array(32*c*s),m=0;mP&&(n=P);for(var r=0;rP&&(n=P);for(var l=0;l>0&255),b.push(y[N]>>8&255),b.push(y[N]>>16&255),b.push(y[N]>>24&255);var R=i(e,b,p);return h&&h(null,1,R),R}h&&I(t)};if(!h)for(;;){var R=N();if(void 0!=R)return R}N()}var h={scrypt:function(e,t,n,r,a,i,o){return new Promise((function(s,c){var u=0;o&&o(0),p(e,t,n,r,a,i,(function(e,t,n){if(e)c(e);else if(n)o&&1!==u&&o(1),s(new Uint8Array(n));else if(o&&t!==u)return u=t,o(t)}))}))},syncScrypt:function(e,t,n,r,a,i){return new Uint8Array(p(e,t,n,r,a,i))}};e.exports=h}()}).call(this,n(717).setImmediate)},function(e,t,n){"use strict";function r(e){return null!==e&&"object"===typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26);function a(e){for(;e;){var t=e,n=t.closed,a=t.destination,i=t.isStopped;if(n||i)return!1;e=a&&a instanceof r.a?a:null}return!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37),a=n(60);function i(e,t){return new r.a((function(n){var r=new a.a,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",o="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Function]",d="[object Map]",l="[object Number]",p="[object Object]",h="[object Promise]",b="[object RegExp]",y="[object Set]",m="[object String]",v="[object Symbol]",g="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,E=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[i]=A[o]=A[x]=A[s]=A[w]=A[c]=A[u]=A[f]=A[d]=A[l]=A[p]=A[b]=A[y]=A[m]=A[g]=!1;var C="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,P=C||j||Function("return this")(),I=t&&!t.nodeType&&t,N=I&&"object"==typeof n&&n&&!n.nodeType&&n,R=N&&N.exports===I&&C.process,D=function(){try{return R&&R.binding("util")}catch(e){}}(),L=D&&D.isTypedArray;function B(e,t){for(var n=-1,r=e?e.length:0,a=Array(r);++n-1},_e.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ke.prototype.clear=function(){this.__data__={hash:new we,map:new(ce||_e),string:new we}},ke.prototype.delete=function(e){return He(this,e).delete(e)},ke.prototype.get=function(e){return He(this,e).get(e)},ke.prototype.has=function(e){return He(this,e).has(e)},ke.prototype.set=function(e,t){return He(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,r),this},Ee.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new _e},Se.prototype.delete=function(e){return this.__data__.delete(e)},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!ce||r.length<199)return r.push([e,t]),this;n=this.__data__=new ke(r)}return n.set(e,t),this};var Me,Ae,Ce=(Me=function(e,t){return e&&Pe(e,t,ft)},function(e,t){if(null==e)return e;if(!rt(e))return Me(e,t);for(var n=e.length,r=Ae?n:-1,a=Object(e);(Ae?r--:++r0&&n(s)?t>1?je(s,t-1,n,r,a):F(a,s):r||(a[a.length]=s)}return a}var Pe=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(!1===n(i[c],c,i))break}return t}}();function Ie(e,t){for(var n=0,r=(t=Ke(t,e)?[t]:Ue(t)).length;null!=e&&ns))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var f=-1,d=!0,l=1&a?new Ee:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=a}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||st(e)&&Q.call(e)==v}var ut=L?function(e){return function(t){return e(t)}}(L):function(e){return st(e)&&it(e.length)&&!!A[Q.call(e)]};function ft(e){return rt(e)?Te(e):Be(e)}function dt(e){return e}n.exports=function(e,t){return je(function(e,t){return(nt(e)?B:Fe)(e,Le(t))}(e,t),1)}}).call(this,n(52),n(100)(e))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(12),a=n(108),i=n(1),o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,b=function(e,t,n){return t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},y=function(e,t){for(var n in t||(t={}))p.call(t,n)&&b(e,n,t[n]);if(l){var r,i=Object(a.a)(l(t));try{for(i.s();!(r=i.n()).done;){n=r.value;h.call(t,n)&&b(e,n,t[n])}}catch(o){i.e(o)}finally{i.f()}}return e},m=function(e,t){return f(e,d(t))},v="undefined"==typeof window?i.useEffect:i.useLayoutEffect,g={easeInCubic:function(e,t,n,r){return n*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return e/=r,n*(--e*e*e+1)+t},linear:function(e,t,n,r){return n*e/r+t}},x=g.easeOutCubic,w=function(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)},_=function(e){return(e.toString().split(".")[1]||"").length},k=function(e){var t=e.isCounting,n=void 0!==t&&t,a=e.start,o=void 0===a?0:a,s=e.end,c=e.duration,u=e.decimalPlaces,f=void 0===u?function(e,t){var n=_(e),r=_(t||1);return n>=r?n:r}(o,s):u,d=e.decimalSeparator,l=void 0===d?".":d,p=e.thousandsSeparator,h=void 0===p?"":p,b=e.onComplete,k=e.easing,E=void 0===k?x:k,S=e.formatter,T=e.updateInterval,O=e.onUpdate,M=function(e,t){if("number"==typeof e)return"number"==typeof t?t:2}(s,c),A=function(e){var t;if(0===M&&"number"==typeof s)t=s;else if("number"==typeof s&&"number"==typeof M){var n=function(e){return"function"==typeof e?e:g[e]}(E);t=n(e=a;h(u?a:s+(0===o?c:(c/o|0)*o)),u||(g.current=requestAnimationFrame(e))},E=function(){g.current&&cancelAnimationFrame(g.current),w.current&&clearTimeout(w.current),x.current=null},S=Object(i.useCallback)((function(e){var n="number"==typeof e?e:o;E(),_.current=m(y({},_.current),{elapsedTimeRef:0,startAtRef:n}),h(n),t&&(g.current=requestAnimationFrame(k))}),[t,o]);return v((function(){if(null==f||f(p),n&&p>=n){b.current+=1e3*n;var e=(null==u?void 0:u(b.current/1e3))||{},t=e.shouldRepeat,r=void 0!==t&&t,a=e.delay,i=void 0===a?0:a,o=e.newStartAt;r&&(w.current=setTimeout((function(){return S(o)}),1e3*i))}}),[p,n]),v((function(){return t&&(g.current=requestAnimationFrame(k)),E}),[t]),{elapsedTime:p,reset:S}}({isPlaying:n,duration:M,onComplete:b,updateInterval:T,onUpdate:"function"==typeof O?function(e){return O(A(e))}:void 0}),j=C.elapsedTime,P=C.reset;return{value:A(j),reset:P}},E=function(e){var t=e,n=t.children,r=function(e,t){var n={};for(var r in e)s.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o){var i,u=Object(a.a)(o(e));try{for(u.s();!(i=u.n()).done;)r=i.value,t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r])}catch(f){u.e(f)}finally{u.f()}}return n}(t,["children"]),i=k(r);return"function"==typeof n?n(i):i.value};E.displayName="CountUp"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return a.Box}}),Object.defineProperty(t,"Flex",{enumerable:!0,get:function(){return a.Flex}}),t.Card=t.Image=t.Button=t.Link=t.Heading=t.Text=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}}n.default=e,t&&t.set(e,n);return n}(n(1)),a=n(1940);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(){return o=Object.assign||function(e){for(var t=1;t>8;return s.find((function(e){return e.productIdMM===n}))},f=[],d={};for(var l in o){var p=o[l],h=p.bluetoothSpec;if(h)for(var b=0;b1024||e%1||e!=e)&&o.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return c.getRandomValues(t),Object(r.arrayify)(t)}c&&c.getRandomValues||(o.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(e){return o.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,n(52))},function(e,t,n){"use strict";function r(e){var t=[];return e.split("/").forEach((function(e){var n=parseInt(e,10);isNaN(n)||(e.length>1&&"'"===e[e.length-1]&&(n+=2147483648),t.push(n))})),t}function a(e,t){function n(e,r,a){return e>=r.length?a:t(r[e],e).then((function(t){return a.push(t),n(e+1,r,a)}))}return Promise.resolve().then((function(){return n(0,e,[])}))}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(2),a=n(11),i=n(356),o=[{vendorId:i.b}];function s(){return c.apply(this,arguments)}function c(){return(c=Object(a.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.usb.requestDevice({filters:o});case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return f.apply(this,arguments)}function f(){return(f=Object(a.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.usb.getDevices();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.vendorId===i.b})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return l.apply(this,arguments)}function l(){return(l=Object(a.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:if(!((t=e.sent).length>0)){e.next=5;break}return e.abrupt("return",t[0]);case 5:return e.abrupt("return",s());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var p=function(){return Promise.resolve(!!navigator&&!!navigator.usb&&"function"===typeof navigator.usb.getDevices)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u}));var r=n(24),a="function"===typeof WeakMap&&"ReactNative"!==Object(r.c)((function(){return navigator.product})),i="function"===typeof WeakSet,o="function"===typeof Symbol&&"function"===typeof Symbol.for,s="function"===typeof Object(r.c)((function(){return window.document.createElement})),c=Object(r.c)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,u=s&&!c},function(e,t,n){"use strict";var r=n(201),a=n(169);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=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;i>>32-t}function b(e,t,n,r,a,i,o,s){return h(e+(t^n^r)+i+o|0,s)+a|0}function y(e,t,n,r,a,i,o,s){return h(e+(t&n|~t&r)+i+o|0,s)+a|0}function m(e,t,n,r,a,i,o,s){return h(e+((t|~n)^r)+i+o|0,s)+a|0}function v(e,t,n,r,a,i,o,s){return h(e+(t&r|n&~r)+i+o|0,s)+a|0}function g(e,t,n,r,a,i,o,s){return h(e+(t^(n|~r))+i+o|0,s)+a|0}a(p,i),p.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,a=0|this._c,i=0|this._d,p=0|this._e,x=0|this._a,w=0|this._b,_=0|this._c,k=0|this._d,E=0|this._e,S=0;S<80;S+=1){var T,O;S<16?(T=b(n,r,a,i,p,e[s[S]],d[0],u[S]),O=g(x,w,_,k,E,e[c[S]],l[0],f[S])):S<32?(T=y(n,r,a,i,p,e[s[S]],d[1],u[S]),O=v(x,w,_,k,E,e[c[S]],l[1],f[S])):S<48?(T=m(n,r,a,i,p,e[s[S]],d[2],u[S]),O=m(x,w,_,k,E,e[c[S]],l[2],f[S])):S<64?(T=v(n,r,a,i,p,e[s[S]],d[3],u[S]),O=y(x,w,_,k,E,e[c[S]],l[3],f[S])):(T=g(n,r,a,i,p,e[s[S]],d[4],u[S]),O=b(x,w,_,k,E,e[c[S]],l[4],f[S])),n=p,p=i,i=h(a,10),a=r,r=T,x=E,E=k,k=h(_,10),_=w,w=O}var M=this._b+a+k|0;this._b=this._c+i+E|0,this._c=this._d+p+x|0,this._d=this._e+n+w|0,this._e=this._a+r+_|0,this._a=M},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},function(e,t,n){(t=e.exports=n(714)).Stream=t,t.Readable=t,t.Writable=n(544),t.Duplex=n(278),t.Transform=n(718),t.PassThrough=n(1161)},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(23).Buffer.isBuffer},function(e,t,n){"use strict";var r=n(46).default,a=n(92).default,i=n(47).default,o=n(83).default,s=n(150).errors,c=n(150).formatters,u=n(48),f=n(725),d=n(551).subscriptions,l=n(69),p=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.transactionPollingInterval=e.transactionPollingInterval||1e3,this.blockHeaderTimeout=e.blockHeaderTimeout||10,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};p.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},p.prototype.createFunction=function(e,t){var n=this.buildCall();return n.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),n},p.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},p.prototype.getCall=function(e){return"function"===typeof this.call?this.call(e):this.call},p.prototype.extractCallback=function(e){if("function"===typeof e[e.length-1])return e.pop()},p.prototype.validateArgs=function(e){if(e.length!==this.params)throw s.InvalidNumberOfParams(e.length,this.params,this.name)},p.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},p.prototype.formatOutput=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},p.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var a={method:t,params:r,callback:n};return this.transformPayload&&(a=this.transformPayload(a)),a},p.prototype._confirmTransaction=function(e,t,n){var r=this,a=!1,h=!0,b=0,y=0,m=null,v=null,g=null,x=n.params[0]&&"object"===typeof n.params[0]&&n.params[0].gas?n.params[0].gas:null,w=!!n.params[0]&&"object"===typeof n.params[0]&&n.params[0].data&&n.params[0].from&&!n.params[0].to,_=w&&n.params[0].data.length>2,k=[new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[c.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:c.outputBlockFormatter}),new p({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionReceiptFormatter}),new p({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[c.inputAddressFormatter,c.inputDefaultBlockNumberFormatter]}),new p({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionFormatter}),new d({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:c.outputBlockFormatter}}})],E={};k.forEach((function(e){e.attachToObject(E),e.requestManager=r.requestManager}));var S=function(d,p,k,S,T){if(!k)return T||(T={unsubscribe:function(){clearInterval(m),clearTimeout(v)}}),(d?f.resolve(d):E.getTransactionReceipt(t)).catch((function(t){T.unsubscribe(),a=!0,u._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=o(i().mark((function t(n){var a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(r.extraFormatters&&r.extraFormatters.receiptFormatter&&(n=r.extraFormatters.receiptFormatter(n)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==d&&0===y){t.next=25;break}return t.next=7,E.getBlockByNumber("latest");case 7:if(o=t.sent,s=o?o.hash:null,!p){t.next=24;break}if(!g){t.next=17;break}return t.next=13,E.getBlockByNumber(g.number+1);case 13:(a=t.sent)&&(g=a,e.eventEmitter.emit("confirmation",y,n,s)),t.next=22;break;case 17:return t.next=19,E.getBlockByNumber(n.blockNumber);case 19:a=t.sent,g=a,e.eventEmitter.emit("confirmation",y,n,s);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",y,n,s);case 25:(p&&a||!p)&&y++,h=!1,y===r.transactionConfirmationBlocks+1&&(T.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",n);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w||a){t.next=19;break}if(n.contractAddress){t.next=5;break}return h&&(T.unsubscribe(),a=!0),u._fireError(s.NoContractAddressFoundError(n),e.eventEmitter,e.reject,null,n),t.abrupt("return");case 5:return t.prev=5,t.next=8,E.getCode(n.contractAddress);case 8:o=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(o){t.next=15;break}return t.abrupt("return");case 15:!0===n.status&&_||o.length>2?(e.eventEmitter.emit("receipt",n),r.extraFormatters&&r.extraFormatters.contractDeployFormatter?e.resolve(r.extraFormatters.contractDeployFormatter(n)):e.resolve(n),h&&e.eventEmitter.removeAllListeners()):u._fireError(s.ContractCodeNotStoredError(n),e.eventEmitter,e.reject,null,n),h&&T.unsubscribe(),a=!0;case 19:return t.abrupt("return",n);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(o){var f,d,p,b;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w||a){t.next=35;break}if(o.outOfGas||x&&x===o.gasUsed||!0!==o.status&&"0x1"!==o.status&&"undefined"!==typeof o.status){t.next=7;break}e.eventEmitter.emit("receipt",o),e.resolve(o),h&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(o,null,2),!1!==o.status&&"0x0"!==o.status){t.next=32;break}if(t.prev=9,f=null,!r.handleRevert||"eth_sendTransaction"!==r.call&&"eth_sendRawTransaction"!==r.call){t.next=24;break}return d=n.params[0],"eth_sendRawTransaction"===r.call&&(p=n.params[0],b=l.parse(p),d=c.inputTransactionFormatter({data:b.data,to:b.to,from:b.from,gas:b.gasLimit.toHexString(),gasPrice:b.gasPrice.toHexString(),value:b.value.toHexString()})),t.next=16,r.getRevertReason(d,o.blockNumber);case 16:if(!(f=t.sent)){t.next=21;break}u._fireError(s.TransactionRevertInstructionError(f.reason,f.signature,o),e.eventEmitter,e.reject,null,o),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),u._fireError(s.TransactionRevertedWithoutReasonError(o),e.eventEmitter,e.reject,null,o);case 30:t.next=33;break;case 32:u._fireError(s.TransactionOutOfGasError(o),e.eventEmitter,e.reject,null,o);case 33:h&&T.unsubscribe(),a=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){b++,p?b-1>=r.transactionPollingTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):b-1>=r.transactionBlockTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));T.unsubscribe(),a=!0,u._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:k},e.eventEmitter,e.reject)},T=function(e){var t=!1,n=function(){m=setInterval(S.bind(null,e,!0),r.transactionPollingInterval)};if(!this.requestManager.provider.on)return n();E.subscribe("newBlockHeaders",(function(r,a,i){if(t=!0,r||!a)return n();S(e,!1,r,0,i)})),v=setTimeout((function(){t||n()}),1e3*this.blockHeaderTimeout)}.bind(this);E.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&T(t),S(t,!1)):a||T()})).catch((function(){a||T()}))};var h=function(e,t){return"number"===typeof e?t.wallet[e]:e&&"object"===typeof e&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};function b(e,t){return new Promise((function(n,a){try{var i=new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?u.toHex(e):"latest"},function(){return!1}]}).createFunction(e.requestManager),o=new p({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);Promise.all([i(),o()]).then((function(e){var a=r(e,2),i=a[0],o=a[1];if(("0x2"===t.type||void 0===t.type)&&i&&i.baseFeePerGas){var s,c;t.gasPrice?(s=t.gasPrice,c=t.gasPrice,delete t.gasPrice):(s=t.maxPriorityFeePerGas||"0x9502F900",c=t.maxFeePerGas||u.toHex(u.toBN(i.baseFeePerGas).mul(u.toBN(2)).add(u.toBN(s)))),n({maxFeePerGas:c,maxPriorityFeePerGas:s})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");n({gasPrice:o})}}))}catch(s){a(s)}}))}p.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,r=function(){var r=f(!t),i=e.toPayload(Array.prototype.slice.call(arguments)),o=function(a,o){var c;if(e.handleRevert&&n&&e.abiCoder&&(!a&&e.isRevertReasonString(o)?c=o.substring(10):a&&a.data&&(c=a.data.substring(10)),c)){var f=e.abiCoder.decodeParameter("string","0x"+c),d="Error(String)";return void u._fireError(s.RevertInstructionError(f,d),r.eventEmitter,r.reject,i.callback,{reason:f,signature:d})}try{o=e.formatOutput(o)}catch(l){a=l}if(o instanceof Error&&(a=o),a)return a.error&&(a=a.error),u._fireError(a,r.eventEmitter,r.reject,i.callback);i.callback&&i.callback(null,o),t?(r.eventEmitter.emit("transactionHash",o),e._confirmTransaction(r,o,i)):a||r.resolve(o)},c=function(t){var n=a(a({},i),{},{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,o)},d=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var a=e.params[0];if((n=h(a&&"object"===typeof a?a.from:null,t.accounts))&&n.privateKey)return delete(a=JSON.parse(JSON.stringify(a))).from,t.defaultChain&&!a.chain&&(a.chain=t.defaultChain),t.defaultHardfork&&!a.hardfork&&(a.hardfork=t.defaultHardfork),t.defaultCommon&&!a.common&&(a.common=t.defaultCommon),void t.accounts.signTransaction(a,n.privateKey).then(c).catch((function(e){if("function"===typeof r.eventEmitter.listeners&&r.eventEmitter.listeners("error").length){try{r.eventEmitter.emit("error",e)}catch(e){}r.eventEmitter.removeAllListeners(),r.eventEmitter.catch((function(){}))}r.reject(e)}))}else if("eth_sign"===e.method){var i=e.params[1];if((n=h(e.params[0],t.accounts))&&n.privateKey){var s=t.accounts.sign(i,n.privateKey);return e.callback&&e.callback(null,s.signature),void r.resolve(s.signature)}}return t.requestManager.send(e,o)};return t&&i.params[0]&&"object"===typeof i.params[0]&&"undefined"===typeof i.params[0].gasPrice&&("undefined"===typeof i.params[0].maxPriorityFeePerGas||"undefined"===typeof i.params[0].maxFeePerGas)?b(e,i.params[0]).then((function(n){void 0!==n.gasPrice?i.params[0].gasPrice=n.gasPrice:void 0!==n.maxPriorityFeePerGas&&void 0!==n.maxFeePerGas&&(i.params[0].maxPriorityFeePerGas=n.maxPriorityFeePerGas,i.params[0].maxFeePerGas=n.maxFeePerGas),t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)})):(t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)),t&&setTimeout((function(){r.eventEmitter.emit("sent",i)}),0),r.eventEmitter};return r.method=e,r.request=this.request.bind(this),r},p.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,a){new p({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,u.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):a(e)}))}))},p.prototype.isRevertReasonString=function(e){return"string"===typeof e&&(e.length-2)/2%32===4&&"0x08c379a0"===e.substring(0,10)},p.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=p},function(e,t,n){e.exports={encode:n(1241),decode:n(1242),encodingLength:n(1243)}},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),a=new t(r),i=0;i=this.length)return null;var t,n=0,a=r(this.storage.values());try{for(a.s();!(t=a.n()).done;){var i=t.value;if(n===e)return i;n+=1}}catch(o){a.e(o)}finally{a.f()}return null}},{key:"setItem",value:function(e,t){this.storage.set(e,t)}},{key:"removeItem",value:function(e){this.storage.delete(e)}},{key:"clear",value:function(){this.storage.clear()}},{key:"length",get:function(){return this.storage.size}}]),e}()):window.localStorage;function c(){var e=s.getItem(o.localStorageKeys.lastUsedWallets);return e?JSON.parse(e):[]}t.rememberWallet=function(e,t){var n=t?"".concat(e,":").concat(t):e,r=c(),a=r.indexOf(n);a>-1&&r.splice(a,1),r.unshift(n)>3&&r.pop();var i=JSON.stringify(r);s.setItem(o.localStorageKeys.lastUsedWallets,i)},t.getRecentWallets=c,t.getTypedStorageKey=function(e){var t=s.getItem(e);return e===o.localStorageKeys.lastUsedIndex&&t?Number(t):t||null},t.setTypedStorageKey=function(e,t){s.setItem(e,t.toString())},t.clearPreviousConfig=function(){Object.values(o.localStorageKeys).forEach((function(e){e!==o.localStorageKeys.lastUsedWalletId&&e!==o.localStorageKeys.lastUsedWalletType&&e!==o.localStorageKeys.lastUsedWallets&&s.removeItem(e)}))},t.wipeStorage=function(){s.clear()},t.localStorageAvailable=function(){return"undefined"!==typeof s}},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof a){var o=this;return t[Symbol.replace].call(this,e,(function(){var e=arguments;return"object"!=r(e[e.length-1])&&(e=[].slice.call(e)).push(c(e,o)),a.apply(this,e)}))}return t[Symbol.replace].call(this,e,a)},o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureUtils=t.guessSigner=t.verifyEIP712TypedDataSigner=t.recoverEIP712TypedDataSignerVrs=t.recoverEIP712TypedDataSignerRsv=t.parseSignatureWithoutPrefix=t.parseSignature=t.verifySignature=t.signMessageWithoutPrefix=t.signMessage=t.signedMessageToPublicKey=t.LocalSigner=t.addressToPublicKey=t.hashMessage=t.hashMessageWithPrefix=t.serializeSignature=t.POP_SIZE=t.NativeSigner=void 0;var o=n(437),s=n(799),c=n(175),u=n(436),f=n(437);Object.defineProperty(t,"NativeSigner",{enumerable:!0,get:function(){return f.NativeSigner}}),Object.defineProperty(t,"POP_SIZE",{enumerable:!0,get:function(){return f.POP_SIZE}}),Object.defineProperty(t,"serializeSignature",{enumerable:!0,get:function(){return f.serializeSignature}});var d=n(105);function l(e){var t="\x19Ethereum Signed Message:\n"+function(e){return(0,s.isHexStrict)(e)?(e.length-2)/2:e.length}(e);return(0,s.soliditySha3)(t,e)}function p(e){var t=this;return{sign:function(n){return r(t,void 0,void 0,(function(){return a(this,(function(t){return[2,Promise.resolve((0,o.serializeSignature)(h(n,e,(0,c.privateKeyToAddress)(e))))]}))}))}}}function h(e,t,n){return b(l(e),(0,c.ensureLeading0x)(t),n)}function b(e,t,n){var r=d.privateToPublic(d.toBuffer(t));if(d.bufferToHex(d.pubToAddress(r)).toLowerCase()!==n.toLowerCase())throw new Error("Provided private key does not match address of intended signer");var a=d.ecsign(d.toBuffer(e),d.toBuffer(t)),i=a.r,o=a.s,s=a.v;if(!E(n,e,s,d.bufferToHex(i),d.bufferToHex(o)))throw new Error("Unable to validate signature");return{v:s,r:d.bufferToHex(i),s:d.bufferToHex(o)}}function y(e,t,n){return m(l(e),t,n)}function m(e,t,n){var r,a=k(t.slice(2)),i=a.r,o=a.s,s=a.v;if(E(n,e,s,i,o))return{v:s,r:i,s:o};if(i=(r=_(t.slice(2))).r,o=r.s,E(n,e,s=r.v,i,o))return{v:s,r:i,s:o};throw new Error("Unable to parse signature (expected signer ".concat(n,")"))}function v(e,t,n){var r=(0,u.generateTypedDataHash)(e),a=n((0,c.trimLeading0x)(t)),i=a.r,o=a.s,s=a.v,f=d.ecrecover(d.toBuffer(r),s,d.toBuffer(i),d.toBuffer(o));return d.bufferToHex(d.pubToAddress(f))}function g(e,t){return v(e,t,k)}function x(e,t){return v(e,t,_)}function w(e,t,n){var r,a;try{for(var o=i([x,g]),s=o.next();!s.done;s=o.next()){var u=s.value;try{if((0,c.eqAddress)(u(e,t),n))return!0}catch(f){}}}catch(d){r={error:d}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!1}function _(e){var t=parseInt(e.slice(0,2),16);return t<27&&(t+=27),{v:t,r:"0x".concat(e.slice(2,66)),s:"0x".concat(e.slice(66,130))}}function k(e){var t="0x".concat(e.slice(0,64)),n="0x".concat(e.slice(64,128)),r=parseInt(e.slice(128,130),16);return r<27&&(r+=27),{r:t,s:n,v:r}}function E(e,t,n,r,a){try{var i=d.ecrecover(d.toBuffer(t),n,d.toBuffer(r),d.toBuffer(a)),o=d.bufferToHex(d.pubToAddress(i));return(0,c.eqAddress)(o,e)}catch(s){return!1}}t.hashMessageWithPrefix=l,t.hashMessage=function(e){return(0,s.soliditySha3)({type:"string",value:e})},t.addressToPublicKey=function(t,n){return r(this,void 0,void 0,(function(){var r,i,o,s,u,f,p;return a(this,(function(a){switch(a.label){case 0:return r=e.from("dummy_msg_data"),i="0x"+r.toString("hex"),[4,n(i,t)];case 1:if(o=a.sent(),s=d.fromRpcSig(o),u=l(i),f=d.ecrecover(e.from(u.slice(2),"hex"),s.v,s.r,s.s),p=d.pubToAddress(f).toString("hex"),!(0,c.eqAddress)(p,t))throw new Error("computed address !== signer");return[2,"0x"+f.toString("hex")]}}))}))},t.LocalSigner=p,t.signedMessageToPublicKey=function(t,n,r,a){return"0x"+d.ecrecover(e.from(t.slice(2),"hex"),n,e.from(r.slice(2),"hex"),e.from(a.slice(2),"hex")).toString("hex")},t.signMessage=h,t.signMessageWithoutPrefix=b,t.verifySignature=function(e,t,n){try{return y(e,t,n),!0}catch(r){return!1}},t.parseSignature=y,t.parseSignatureWithoutPrefix=m,t.recoverEIP712TypedDataSignerRsv=g,t.recoverEIP712TypedDataSignerVrs=x,t.verifyEIP712TypedDataSigner=w,t.guessSigner=function(e,t){var n=l(e),r=k(t.slice(2)),a=r.r,i=r.s,o=r.v,s=d.ecrecover(d.toBuffer(n),o,d.toBuffer(a),d.toBuffer(i));return d.bufferToHex(d.pubToAddress(s))},t.SignatureUtils={NativeSigner:o.NativeSigner,LocalSigner:p,signMessage:h,signMessageWithoutPrefix:b,parseSignature:y,parseSignatureWithoutPrefix:m,serializeSignature:o.serializeSignature,recoverEIP712TypedDataSignerRsv:g,recoverEIP712TypedDataSignerVrs:x,verifyEIP712TypedDataSigner:w}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(1531),t),a(n(104),t),a(n(377),t),a(n(328),t),a(n(1532),t),a(n(1533),t),a(n(1534),t),a(n(581),t),a(n(1535),t),a(n(1536),t),a(n(585),t),a(n(816),t),a(n(1537),t),a(n(1538),t),a(n(1539),t),a(n(437),t),a(n(1540),t),a(n(1541),t)},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0&&(i=n.type.substring(o));var s=e(t,n.components);r.isArray(s)&&t?a.push("tuple("+s.join(",")+")"+i):t?a.push("("+s+")"):a.push("("+s.join(",")+")"+i)}else a.push(n.type)})),a},f=function(e){if(!i.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7?n+=e[r].toUpperCase():n+=e[r];return n},toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:f,toAscii:f,asciiToHex:d,fromAscii:d,unitMap:a.unitMap,toWei:function(e,t){if(t=l(t),!i.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(e)?a.toWei(e,t):a.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=l(t),!i.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(e)?a.fromWei(e,t):a.fromWei(e,t).toString(10)},padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:function(e,t){if(e==t)return 0;if("genesis"!=e&&"earliest"!=e&&0!=e||"genesis"!=t&&"earliest"!=t&&0!=t){if("genesis"==e||"earliest"==e)return-1;if("genesis"==t||"earliest"==t)return 1;if("latest"==e)return"pending"==t?-1:1;if("latest"===t)return"pending"==e?1:-1;if("pending"==e)return 1;if("pending"==t)return-1;var n=new c(e),r=new c(t);return n.lt(r)?-1:n.eq(r)?0:1}return 0}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var r=n(326),a=n(36);t.zeros=function(t){return e.allocUnsafe(t).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(t){if(!e.isBuffer(t))if(Array.isArray(t))t=e.from(t);else if("string"===typeof t){if(!r.isHexString(t))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+t);t=e.from(r.padToEven(r.stripHexPrefix(t)),"hex")}else if("number"===typeof t)t=r.intToBuffer(t);else if(null===t||void 0===t)t=e.allocUnsafe(0);else if(a.isBN(t))t=t.toArrayLike(e);else{if(!t.toArray)throw new Error("invalid type");t=e.from(t.toArray())}return t},t.bufferToInt=function(e){return new a(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new a(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!==typeof e||r.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(n){if(e.isBuffer(n))return"0x"+n.toString("hex");if(n instanceof Array){for(var r=[],a=0;a=n.__.length&&n.__.push({__V:f}),n.__[e]}function m(e){return c=1,v(R,e)}function v(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):R(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=a,!a.u)){var o=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!s||s.call(this,e,t,n))};a.u=!0;var s=a.shouldComponentUpdate,c=a.componentWillUpdate;a.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}c&&c.call(this,e,t,n)},a.shouldComponentUpdate=o}return i.__N||i.__}function g(e,t){var n=y(r++,3);!s.options.__s&&N(n.__H,t)&&(n.__=e,n.i=t,a.__H.__h.push(n))}function x(e,t){var n=y(r++,4);!s.options.__s&&N(n.__H,t)&&(n.__=e,n.i=t,a.__h.push(n))}function w(e){return c=5,k((function(){return{current:e}}),[])}function _(e,t,n){c=6,x((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function k(e,t){var n=y(r++,7);return N(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return c=8,k((function(){return e}),t)}function S(e){var t=a.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(a)),t.props.value):e.__}function T(e,t){s.options.useDebugValue&&s.options.useDebugValue(t?t(e):e)}function O(e){var t=y(r++,10),n=m();return t.__=e,a.componentDidCatch||(a.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function M(){var e=y(r++,11);if(!e.__){for(var t=a.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function A(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(I),e.__H.__h=[]}catch(a){e.__H.__h=[],s.options.__e(a,e.__v)}}s.options.__b=function(e){a=null,d&&d(e)},s.options.__r=function(e){l&&l(e),r=0;var t=(a=e.__c).__H;t&&(i===a?(t.__h=[],a.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=f,e.__N=e.i=void 0}))):(t.__h.forEach(P),t.__h.forEach(I),t.__h=[])),i=a},s.options.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&o===s.options.requestAnimationFrame||((o=s.options.requestAnimationFrame)||j)(A)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==f&&(e.__=e.__V),e.i=void 0,e.__V=f}))),i=a=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(P),e.__h=e.__h.filter((function(e){return!e.__||I(e)}))}catch(i){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(i,e.__v)}})),h&&h(e,t)},s.options.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{P(e)}catch(e){t=e}})),n.__H=void 0,t&&s.options.__e(t,n.__v))};var C="function"==typeof requestAnimationFrame;function j(e){var t,n=function(){clearTimeout(r),C&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);C&&(t=requestAnimationFrame(n))}function P(e){var t=a,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),a=t}function I(e){var t=a;e.__c=e.__(),a=t}function N(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function R(e,t){return"function"==typeof t?t(e):t}},function(e,t,n){"use strict";(function(e){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a0||(o[a[s].index]=i[c].index,s++),c++)}return o},t.mapAddressListDataOnto=function(e,r,a,i){var o=n([],Array(r.length).fill(i),!0);if(0===e.length)return o;for(var s=(0,t.mapAddressListOnto)(r,a),c=0;c=0&&(o[s[c]]=e[c]);return o}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1780);function a(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function f(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function l(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),f(e/4294967296>>>0,t,n),f(e>>>0,t,n+4),t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=a,t.writeInt16BE=a,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=o,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=u,t.writeUint32BE=f,t.writeInt32BE=f,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=o(e,t),r=o(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=u(e,t);return 4294967296*u(e,t+4)+n},t.writeUint64BE=l,t.writeInt64BE=l,t.writeUint64LE=p,t.writeInt64LE=p,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,a=1,i=e/8+n-1;i>=n;i--)r+=t[i]*a,a*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,a=1,i=n;i=a;o--)n[o]=t/i&255,i*=256;return n},t.writeUintLE=function(e,t,n,a){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===a&&(a=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=a;o1&&m.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var a=this.functions[h.f.fromString(e).format()];return a||m.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if(Object(u.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];m.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?m.throwArgumentError("no matching event","name",r):a.length>1&&m.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}var i=this.events[h.c.fromString(e).format()];return i||m.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if(Object(u.isHexString)(e)){var t=Object(l.getStatic)(this.constructor,"getSighash");for(var n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}m.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?m.throwArgumentError("no matching error","name",r):a.length>1&&m.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}var i=this.errors[h.f.fromString(e).format()];return i||m.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 Object(l.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),Object(l.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=Object(u.arrayify)(t);return Object(u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"===typeof e&&(e=this.getError(e)),Object(u.hexlify)(Object(u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=Object(u.arrayify)(t);return Object(u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(u.hexlify)(Object(u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=Object(u.arrayify)(t),r=null,a="",i=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(d){}break;case 4:var c=Object(u.hexlify)(n.slice(0,4)),f=_[c];if(f)i=this._abiCoder.decode(f.inputs,n.slice(4)),o=f.name,s=f.signature,f.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 d=this.getError(c);i=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.format()}catch(d){}}return m.throwError("call revert exception"+a,b.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:Object(u.hexlify)(t),errorArgs:i,errorName:o,errorSignature:s,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(u.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&&m.throwError("too many arguments for "+e.format(),b.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?Object(f.a)(t):"bytes"===e.type?Object(d.keccak256)(Object(u.hexlify)(t)):("address"===e.type&&n._abiCoder.encode(["address"],[t]),Object(u.hexZeroPad)(Object(u.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?m.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&&m.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&&m.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)r.push(Object(f.a)(s));else if("bytes"===e.type)r.push(Object(d.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else a.push(e),i.push(s)})),{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);Object(u.isHexString)(n[0],32)&&n[0].toLowerCase()===r||m.throwError("fragment/topic mismatch",b.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.g.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(a.push(e),o.push(!1)):(i.push(e),o.push(!1))}));var s=null!=n?this._abiCoder.decode(a,Object(u.concat)(n)):null,c=this._abiCoder.decode(i,t,!0),f=[],d=0,l=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)f[t]=new w({_isIndexed:!0,hash:null});else if(o[t])f[t]=new w({_isIndexed:!0,hash:s[l++]});else try{f[t]=s[l++]}catch(r){f[t]=r}else try{f[t]=c[d++]}catch(r){f[t]=r}if(e.name&&null==f[e.name]){var n=f[t];n instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:function(){throw k("property ".concat(JSON.stringify(e.name)),n)}}):f[e.name]=n}}));for(var p=function(e){var t=f[e];t instanceof Error&&Object.defineProperty(f,e,{enumerable:!0,get:function(){throw k("index ".concat(e),t)}})},y=0;y>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 L(e,t,n){D.call(this,e,t,n)}D.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(o);if(null===e)throw new Error(o);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var r,a,i=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,f=0,d=this.s;f>2]|=e[f]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(i[r>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=s){for(this.start=r-s,this.block=i[u],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},D.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var r=0,a=e.length;if(t)r=a;else for(var i=0;i=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++i)),r+=4)}return r+=this.encode(8*r),this.update(e),r},D.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]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];o%t===0&&(B(n),i=0)}return a&&(e=n[i],s+=p[e>>4&15]+p[15&e],a>1&&(s+=p[e>>12&15]+p[e>>8&15]),a>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},D.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,a=this.extraBytes,i=0,o=0,s=this.outputBits>>3;e=a?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n===0&&B(r)}return i&&(e=s<<2,t=r[o],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},L.prototype=new D,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var B=function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,h,b,m,v,g,x,w,_,k,E,S,T,O,M,A,C,j,P,I,N,R,D,L,B,F,U,V,H,z,q,W,G,K,$,Y,J,Z,X,Q,ee,te,ne,re,ae,ie,oe,se,ce,ue,fe;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],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(l=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<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^(c<<1|u>>>31),n=i^(u<<1|c>>>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^(f<<1|d>>>31),n=s^(d<<1|f>>>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=c^(l<<1|p>>>31),n=u^(p<<1|l>>>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=f^(a<<1|i>>>31),n=d^(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,h=e[0],b=e[1],K=e[11]<<4|e[10]>>>28,$=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,C=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,x=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,T=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,O=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,V=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,E=e[49]<<14|e[48]>>>18,e[0]=h^~m&g,e[1]=b^~v&x,e[10]=S^~O&A,e[11]=T^~M&C,e[20]=R^~L&F,e[21]=D^~B&U,e[30]=W^~K&Y,e[31]=G^~$&J,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=m^~g&w,e[3]=v^~x&_,e[12]=O^~A&j,e[13]=M^~C&P,e[22]=L^~F&V,e[23]=B^~U&H,e[32]=K^~Y&Z,e[33]=$^~J&X,e[42]=re^~ie&se,e[43]=ae^~oe&ce,e[4]=g^~w&k,e[5]=x^~_&E,e[14]=A^~j&I,e[15]=C^~P&N,e[24]=F^~V&z,e[25]=U^~H&q,e[34]=Y^~Z&Q,e[35]=J^~X&ee,e[44]=ie^~se&ue,e[45]=oe^~ce&fe,e[6]=w^~k&h,e[7]=_^~E&b,e[16]=j^~I&S,e[17]=P^~N&T,e[26]=V^~z&R,e[27]=H^~q&D,e[36]=Z^~Q&W,e[37]=X^~ee&G,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=k^~h&m,e[9]=E^~b&v,e[18]=I^~S&O,e[19]=N^~T&M,e[28]=z^~R&L,e[29]=q^~D&B,e[38]=Q^~W&K,e[39]=ee^~G&$,e[48]=ue^~te&re,e[49]=fe^~ne&ae,e[0]^=y[r],e[1]^=y[r+1]};if(f)e.exports=M;else{for(C=0;C=0?a:"")+"]",c=-1===a||e.dynamic;return(o=t.call(this,"array",s,i,c)).coder=e,o.length=a,o}return Object(a.a)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;ne._data.length&&b.throwError("insufficient data length",s.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r256||r%8!==0)&&I.throwArgumentError("invalid "+n[1]+" bit length","param",e),new M(r/8,"int"===n[1],e.name)}if(n=e.type.match(N)){var a=parseInt(n[1]);return(0===a||a>32)&&I.throwArgumentError("invalid bytes length","param",e),new E(a,e.name)}return I.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new u.b(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new u.c(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(P.g.from(e))}));return new j(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&I.throwError("types/values length mismatch",s.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(P.g.from(e))})),a=new j(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(P.g.from(e))}));return new j(a,"_").decode(this._getReader(Object(i.arrayify)(t),n))}}]),e}(),L=new D},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(7),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(213).a),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(210).a),o=new i(a),s=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(406);function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e){return o(e,[])}function o(e,t){switch(a(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),a=function(e){var t=e[String(r.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==a){var i=a.call(e);if(i!==e)return"string"===typeof i?i:o(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,a=[],i=0;i1&&a.push("... ".concat(r," more items"));return"["+a.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+o(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";(function(e){var r=n(197);t.a=Object(r.a)((function(){return globalThis}))||Object(r.a)((function(){return window}))||Object(r.a)((function(){return self}))||Object(r.a)((function(){return e}))||Object(r.a)((function(){return r.a.constructor("return this")()}))}).call(this,n(52))},function(e,t,n){"use strict";n.r(t),n.d(t,"decryptCrowdsale",(function(){return x})),n.d(t,"decryptKeystore",(function(){return _.a})),n.d(t,"decryptKeystoreSync",(function(){return _.b})),n.d(t,"encryptKeystore",(function(){return _.c})),n.d(t,"isCrowdsaleWallet",(function(){return w.b})),n.d(t,"isKeystoreWallet",(function(){return w.c})),n.d(t,"getJsonWalletAddress",(function(){return w.a})),n.d(t,"decryptJsonWallet",(function(){return k})),n.d(t,"decryptJsonWalletSync",(function(){return E}));var r=n(8),a=n(9),i=n(17),o=n(19),s=n(180),c=n.n(s),u=n(38),f=n(6),d=n(49),l=n(2098),p=n(87),h=n(10),b=n(13),y=n(515),m=n(64),v=new b.Logger(y.a),g=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(h.Description);function x(e,t){var n=JSON.parse(e);t=Object(m.a)(t);var r=Object(u.getAddress)(Object(m.c)(n,"ethaddr")),a=Object(m.b)(Object(m.c)(n,"encseed"));a&&a.length%16===0||v.throwArgumentError("invalid encseed","json",e);for(var i=Object(f.arrayify)(Object(l.a)(t,t,2e3,32,"sha256")).slice(0,16),o=a.slice(0,16),s=a.slice(16),h=new c.a.ModeOfOperation.cbc(i,o),b=c.a.padding.pkcs7.strip(Object(f.arrayify)(h.decrypt(s))),y="",x=0;xe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=(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 s=i("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"),c="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),u=[{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}],f=a("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"),d=a("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"),l=a("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=o(e,u);if(t)return[e+t.s];var n=f[e];if(n)return n;var r=d[e];return r?[e+r[0]]:l[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=Object(r.g)(Object(r.e)(n),r.a.NFKC)).forEach((function(e){if(o(e,p))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(o(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var a=Object(r.e)(n);if("-"===a.substring(0,1)||"--"===a.substring(2,4)||"-"===a.substring(a.length-1))throw new Error("invalid hyphen");if(a.length>63)throw new Error("too long");return a}},function(e,t,n){"use strict";e.exports=n(1867)},function(e){e.exports=JSON.parse('{"name":"Ubeswap","logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/logo.svg","keywords":["celo","ubeswap","defi"],"timestamp":"2023-10-25T01:14:04.250Z","tokens":[{"address":"0x00400FcbF0816bebB94654259de7273f4A05c762","name":"Poof","symbol":"POOF","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_POOF.png"},{"address":"0x00Be915B9dCf56a3CBE739D9B9c202ca692409EC","name":"Ubeswap","symbol":"UBE","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_UBE.png"},{"address":"0x02De4766C272abc10Bc88c220D214A26960a7e92","name":"Nature Carbon Tonne","symbol":"NCT","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_NCT.png"},{"address":"0x0a60c25Ef6021fC3B479914E6bcA7C03c18A97f1","name":"Stabilite USD","symbol":"stabilUSD","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_stabilUSD.png"},{"address":"0x122013fd7dF1C6F636a5bb8f03108E876548b455","name":"Optics v2 WETH","symbol":"WETH","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_WETH.png"},{"address":"0x123ED050805E0998EBEf43671327139224218e50","name":"NetM Token","symbol":"NTMX","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_NTMX.png"},{"address":"0x17700282592D6917F6A73D0bF8AcCf4D578c131e","name":"Moola","symbol":"MOO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_MOO.png"},{"address":"0x1a8Dbe5958c597a744Ba51763AbEBD3355996c3e","name":"Rewards CELO","symbol":"rCELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_rCELO.png"},{"address":"0x20677d4f3d0F08e735aB512393524A3CfCEb250C","name":"Ariswap","symbol":"ARI","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_ARI.png"},{"address":"0x218c3c3D49d0E7B37aff0D8bB079de36Ae61A4c0","name":"Anyswap FTM","symbol":"FTM","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_FTM.png"},{"address":"0x27cd006548dF7C8c8e9fdc4A67fa05C2E3CA5CF9","name":"PLASTIK Token","symbol":"PLASTIK","decimals":9,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_PLASTIK.png"},{"address":"0x2879BFD5e7c4EF331384E908aaA3Bd3014b703fA","name":"Savings CELO","symbol":"sCELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_sCELO.png"},{"address":"0x29dFce9c22003A4999930382Fd00f9Fd6133Acd1","name":"Optics v2 SUSHI","symbol":"SUSHI","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_SUSHI.png"},{"address":"0x2DEf4285787d58a2f811AF24755A8150622f4361","name":"wrapped.com Ethereum","symbol":"cETH","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cETH.svg"},{"address":"0x301a61D01A63c8D670c2B8a43f37d12eF181F997","name":"Poof CELO","symbol":"pCELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_pCELO.png"},{"address":"0x32A9FE697a32135BFd313a6Ac28792DaE4D9979d","name":"Celo Moss Carbon Credit","symbol":"cMCO2","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cMCO2.png"},{"address":"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd","name":"Portal USDC from Ethereum","symbol":"USDCet","decimals":6,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_USDCet.png"},{"address":"0x452EF5a4bD00796e62E5e5758548e0dA6e8CCDF3","name":"CeloStarter","symbol":"cStar","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cStar.png"},{"address":"0x46c9757C5497c5B1f2eb73aE79b6B67D119B0B58","name":"impactMarket","symbol":"PACT","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_PACT.png"},{"address":"0x471EcE3750Da237f93B8E339c536989b8978a438","name":"Celo","symbol":"CELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_CELO.png"},{"address":"0x47264aE1Fc0c8e6418ebe78630718E11a07346A8","name":"Allbridge SBR","symbol":"SBR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_SBR.png"},{"address":"0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A","name":"GoodDollar","symbol":"G$","decimals":18,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_G$.png"},{"address":"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207","name":"Portal Ether","symbol":"ETH","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_ETH.png"},{"address":"0x6e512BFC33be36F2666754E996ff103AD1680Cc9","name":"Allbridge","symbol":"ABR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_ABR.png"},{"address":"0x73a210637f6F6B7005512677Ba6B3C96bb4AA44B","name":"Mobius DAO Token","symbol":"MOBI","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_MOBI.png"},{"address":"0x74c0C58B99b68cF16A717279AC2d056A34ba2bFe","name":"Source","symbol":"SOURCE","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_SOURCE.png"},{"address":"0x765DE816845861e75A25fCA122bb6898B8B1282a","name":"Celo Dollar","symbol":"cUSD","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cUSD.png"},{"address":"0x788BA01f8E2b87c08B142DB46F82094e0bdCad4F","name":"Staked Allbridge","symbol":"xABR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_xABR.png"},{"address":"0x7D00cd74FF385c955EA3d79e47BF06bD7386387D","name":"Moola CELO","symbol":"mCELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_mCELO.png"},{"address":"0x832F03bCeE999a577cb592948983E35C048B5Aa4","name":"Duniapay West African CFA franc","symbol":"cXOF","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cXOF.png"},{"address":"0x8427bD503dd3169cCC9aFF7326c15258Bc305478","name":"Symmetric","symbol":"SYMM","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_SYMM.png"},{"address":"0x88eeC49252c8cbc039DCdB394c0c2BA2f1637EA0","name":"Optics v2 USDT","symbol":"USDT","decimals":6,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_USDT.png"},{"address":"0x8E3670FD7B0935d3FE832711deBFE13BB689b690","name":"Allbridge AVAX","symbol":"AVAX","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_AVAX.png"},{"address":"0x90Ca507a5D4458a4C6C6249d186b6dCb02a5BCCd","name":"Optics v2 DAI","symbol":"DAI","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_DAI.png"},{"address":"0x918146359264C492BD6934071c6Bd31C854EDBc3","name":"Moola cUSD","symbol":"mcUSD","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_mcUSD.png"},{"address":"0x94140c2eA9D208D8476cA4E3045254169791C59e","name":"Premio","symbol":"PREMIO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_PREMIO.png"},{"address":"0x9802d866fdE4563d088a6619F7CeF82C0B991A55","name":"Moola cREAL","symbol":"mcREAL","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_mcREAL.png"},{"address":"0x9995cc8F20Db5896943Afc8eE0ba463259c931ed","name":"Ethix on Celo","symbol":"ETHIX","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_ETHIX.png"},{"address":"0xA287A3722c367849eFA5c76e96BE36efd65C290e","name":"Celo DeFi Index","symbol":"cDEFI","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cDEFI.png"},{"address":"0xa81D9a2d29373777E4082d588958678a6Df5645c","name":"KnoxEdge","symbol":"KNX","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_KNX.png"},{"address":"0xBAAB46E28388d2779e6E31Fd00cF0e5Ad95E327B","name":"Optics v2 WBTC","symbol":"WBTC","decimals":8,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_WBTC.png"},{"address":"0xbDd31EFfb9E9f7509fEaAc5B4091b31645A47e4b","name":"TrueFeedBack New","symbol":"TFBX","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_TFBX.png"},{"address":"0xC668583dcbDc9ae6FA3CE46462758188adfdfC24","name":"Staked Celo","symbol":"stCELO","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_stCELO.png"},{"address":"0xD629eb00dEced2a080B7EC630eF6aC117e614f1b","name":"wrapped.com Bitcoin","symbol":"cBTC","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cBTC.png"},{"address":"0xD8761DD6c7cB54febD33adD699F5E4440b62E01B","name":"Poof EUR","symbol":"pEUR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_pEUR.png"},{"address":"0xD8763CBa276a3738E6DE85b4b3bF5FDed6D6cA73","name":"Celo Euro","symbol":"cEUR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cEUR.png"},{"address":"0xE273Ad7ee11dCfAA87383aD5977EE1504aC07568","name":"Moola cEUR","symbol":"mcEUR","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_mcEUR.png"},{"address":"0xE685d21b7B0FC7A248a6A8E03b8Db22d013Aa2eE","name":"Immortal","symbol":"IMMO","decimals":9,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_IMMO.png"},{"address":"0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787","name":"Celo Real","symbol":"cREAL","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_cREAL.png"},{"address":"0xEadf4A7168A82D30Ba0619e64d5BCf5B30B45226","name":"Poof USD","symbol":"pUSD","chainId":42220,"decimals":18,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_pUSD.png"},{"address":"0xEe9801669C6138E84bD50dEB500827b776777d28","name":"O3 Swap Token","symbol":"O3","decimals":18,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_O3.png"},{"address":"0xef4229c8c3250C675F21BCefa42f58EfbfF6002a","name":"Optics v2 USDC","symbol":"USDC","decimals":6,"chainId":42220,"logoURI":"https://raw.githubusercontent.com/ubeswap/default-token-list/master/assets/asset_USDC.png"}],"version":{"major":4,"minor":1,"patch":62}}')},,function(e,t,n){"use strict";var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var r;function a(e,t){return t.major>e.major?r.MAJOR:t.majore.minor?r.MINOR:t.minore.patch?r.PATCH:r.NONE}function i(e,t){var n=e.reduce((function(e,t){return e[t.chainId]||(e[t.chainId]={}),e[t.chainId][t.address]=t,e}),{}),r=t.reduce((function(e,t){var r,a,i=null==(r=n[t.chainId])?void 0:r[t.address];if(i){var o=Object.keys(t).filter((function(e){return"address"!==e&&"chainId"!==e})).filter((function(e){return n=t[e],r=i[e],!(n===r||typeof n===typeof r&&Array.isArray(n)&&Array.isArray(r)&&n.every((function(e,t){return r[t]===e})));var n,r}));o.length>0&&(e.changed[t.chainId]||(e.changed[t.chainId]={}),e.changed[t.chainId][t.address]=o)}else e.added.push(t);e.index[t.chainId]?e.index[t.chainId][t.address]=!0:e.index[t.chainId]=((a={})[t.address]=!0,a);return e}),{added:[],changed:{},index:{}}),a=e.reduce((function(e,t){return r.index[t.chainId]&&r.index[t.chainId][t.address]||e.push(t),e}),[]);return{added:r.added,changed:r.changed,removed:a}}!function(e){e[e.NONE=0]="NONE",e[e.PATCH=1]="PATCH",e[e.MINOR=2]="MINOR",e[e.MAJOR=3]="MAJOR"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"]},a={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.853 54.87C10.47 40.9 24.54 32 40 32H472C487.5 32 501.5 40.9 508.1 54.87C514.8 68.84 512.7 85.37 502.1 97.33L320 320.9V448C320 460.1 313.2 471.2 302.3 476.6C291.5 482 278.5 480.9 268.8 473.6L204.8 425.6C196.7 419.6 192 410.1 192 400V320.9L9.042 97.33C-.745 85.37-2.765 68.84 3.854 54.87L3.853 54.87z"]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(51),a=n(262);var i=n(497);function o(e,t,n){return o=Object(i.a)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(a.a)(i,n.prototype),i},o.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return o(e,arguments,Object(r.a)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(a.a)(i,e)},s(e)}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ne(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function re(e){return e.classList?ne(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function ae(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ie(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function oe(e){return e.size!==ee.size||e.x!==ee.x||e.y!==ee.y||e.rotate!==ee.rotate||e.flipX||e.flipY}function se(){var e="fa",t=S,n=Z.familyPrefix,r=Z.replacementClass,a=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var ce=!1;function ue(){Z.autoAddCss&&!ce&&(!function(e){if(e&&k){var t=x.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=x.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}x.head.insertBefore(t,r)}}(se()),ce=!0)}var fe={mixout:function(){return{dom:{css:se,insertCss:ue}}},hooks:function(){return{beforeDOMElementCreation:function(){ue()},beforeI2svg:function(){ue()}}}},de=g||{};de.___FONT_AWESOME___||(de.___FONT_AWESOME___={}),de.___FONT_AWESOME___.styles||(de.___FONT_AWESOME___.styles={}),de.___FONT_AWESOME___.hooks||(de.___FONT_AWESOME___.hooks={}),de.___FONT_AWESOME___.shims||(de.___FONT_AWESOME___.shims=[]);var le=de.___FONT_AWESOME___,pe=[],he=!1;function be(e){k&&(he?setTimeout(e,0):pe.push(e))}function ye(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,a=e.children,i=void 0===a?[]:a;return"string"===typeof e?ae(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ae(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(ye).join(""),"")}function me(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}k&&((he=(x.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(x.readyState))||x.addEventListener("DOMContentLoaded",(function e(){x.removeEventListener("DOMContentLoaded",e),he=1,pe.map((function(e){return e()}))})));var ve=function(e,t,n,r){var a,i,o,s=Object.keys(e),c=s.length,u=void 0!==r?function(e,t){return function(n,r,a,i){return e.call(t,n,r,a,i)}}(t,r):t;for(void 0===n?(a=1,o=e[s[0]]):(a=0,o=n);a=55296&&a<=56319&&n2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=xe(t);"function"!==typeof le.hooks.addPack||i?le.styles[e]=a(a({},le.styles[e]||{}),o):le.hooks.addPack(e,xe(t)),"fas"===e&&we("fa",t)}var _e=le.styles,ke=le.shims,Ee=Object.values(R),Se=null,Te={},Oe={},Me={},Ae={},Ce={},je=Object.keys(I);function Pe(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r!==e||""===a||function(e){return~$.indexOf(e)}(a)?null:a}var Ie,Ne=function(){var e=function(e){return ve(_e,(function(t,n,r){return t[r]=ve(n,e,{}),t}),{})};Te=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Oe=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),Ce=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in _e||Z.autoFetchSvg,n=ve(ke,(function(e,n){var r=n[0],a=n[1],i=n[2];return"far"!==a||t||(a="fas"),"string"===typeof r&&(e.names[r]={prefix:a,iconName:i}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:a,iconName:i}),e}),{names:{},unicodes:{}});Me=n.names,Ae=n.unicodes,Se=Fe(Z.styleDefault)};function Re(e,t){return(Te[e]||{})[t]}function De(e,t){return(Ce[e]||{})[t]}function Le(e){return Me[e]||{prefix:null,iconName:null}}function Be(){return Se}Ie=function(e){Se=Fe(e.styleDefault)},X.push(Ie),Ne();function Fe(e){var t=N[e]||N[I[e]],n=e in le.styles?e:null;return t||n||null}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,a=null,i=e.reduce((function(e,t){var n=Pe(Z.familyPrefix,t);if(_e[t]?(t=Ee.includes(t)?D[t]:t,a=t,e.prefix=t):je.indexOf(t)>-1?(a=t,e.prefix=Fe(t)):n?e.iconName=n:t!==Z.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var i="fa"===a?Le(e.iconName):{},o=De(e.prefix,e.iconName);i.prefix&&(a=null),e.iconName=i.iconName||o||e.iconName,e.prefix=i.prefix||e.prefix,"far"!==e.prefix||_e.far||!_e.fas||Z.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return"fa"!==i.prefix&&"fa"!==a||(i.prefix=Be()||"fas"),i}var Ve=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&s.forEach((function(t){"string"===typeof t&&(e[a][t]=o)})),e[a][i]=o})),e}}],n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),He=[],ze={},qe={},We=Object.keys(qe);function Ge(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return k?(Ke("beforeI2svg",e),$e("pseudoElements2svg",e),$e("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===Z.autoReplaceSvg&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,be((function(){Qe({autoReplaceSvgRoot:t}),Ke("watch",e)}))}},Xe={noAuto:function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,Ke("noAuto")},config:Z,dom:Ze,parse:{icon:function(e){if(null===e)return null;if("object"===i(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:De(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Fe(e[0]);return{prefix:n,iconName:De(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Z.familyPrefix,"-"))>-1||e.match(L))){var r=Ue(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Be(),iconName:De(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var a=Be();return{prefix:a,iconName:De(a,e)||e}}}},library:Je,findIconDefinition:Ye,toHtml:ye},Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?x:t;(Object.keys(le.styles).length>0||Z.autoFetchSvg)&&k&&Z.autoReplaceSvg&&Xe.dom.i2svg({node:n})};function et(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ye(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(k){var t=x.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function tt(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,c=e.symbol,u=e.title,f=e.maskId,d=e.titleId,l=e.extra,p=e.watchable,h=void 0!==p&&p,b=r.found?r:n,y=b.width,m=b.height,v="fak"===i,g=[Z.replacementClass,o?"".concat(Z.familyPrefix,"-").concat(o):""].filter((function(e){return-1===l.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(l.classes).join(" "),x={children:[],attributes:a(a({},l.attributes),{},{"data-prefix":i,"data-icon":o,class:g,role:l.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(m)})},w=v&&!~l.classes.indexOf("fa-fw")?{width:"".concat(y/m*16*.0625,"em")}:{};h&&(x.attributes[T]=""),u&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(d||te())},children:[u]}),delete x.attributes.title);var _=a(a({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:f,transform:s,symbol:c,styles:a(a({},w),l.styles)}),k=r.found&&n.found?$e("generateAbstractMask",_)||{children:[],attributes:{}}:$e("generateAbstractIcon",_)||{children:[],attributes:{}},E=k.children,S=k.attributes;return _.children=E,_.attributes=S,c?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=!0===o?"".concat(t,"-").concat(Z.familyPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a(a({},i),{},{id:s}),children:r}]}]}(_):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(oe(s)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};i.style=ie(a(a({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(_)}function nt(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,c=e.watchable,u=void 0!==c&&c,f=a(a(a({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});u&&(f[T]="");var d=a({},s.styles);oe(i)&&(d.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,a=e.height,i=void 0===a?16:a,o=e.startCentered,s=void 0!==o&&o,c="";return c+=s&&E?"translate(".concat(t.x/Q-r/2,"em, ").concat(t.y/Q-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Q,"em), calc(-50% + ").concat(t.y/Q,"em)) "):"translate(".concat(t.x/Q,"em, ").concat(t.y/Q,"em) "),c+="scale(".concat(t.size/Q*(t.flipX?-1:1),", ").concat(t.size/Q*(t.flipY?-1:1),") "),c+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var l=ie(d);l.length>0&&(f.style=l);var p=[];return p.push({tag:"span",attributes:f,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function rt(e){var t=e.content,n=e.title,r=e.extra,i=a(a(a({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ie(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var at=le.styles;function it(e){var t=e[0],n=e[1],r=c(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Z.familyPrefix,"-").concat(q)},children:[{tag:"path",attributes:{class:"".concat(Z.familyPrefix,"-").concat(K),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Z.familyPrefix,"-").concat(G),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var ot={found:!1,width:512,height:512};function st(e,t){var n=t;return"fa"===t&&null!==Z.styleDefault&&(t=Be()),new Promise((function(r,i){$e("missingIconAbstract");if("fa"===n){var o=Le(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&at[t]&&at[t][e])return r(it(at[t][e]));!function(e,t){P||Z.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(a(a({},ot),{},{icon:Z.showMissingIcons&&e&&$e("missingIconAbstract")||{}}))}))}var ct=function(){},ut=Z.measurePerformance&&_&&_.mark&&_.measure?_:{mark:ct,measure:ct},ft='FA "6.1.1"',dt=function(e){ut.mark("".concat(ft," ").concat(e," ends")),ut.measure("".concat(ft," ").concat(e),"".concat(ft," ").concat(e," begins"),"".concat(ft," ").concat(e," ends"))},lt=function(e){return ut.mark("".concat(ft," ").concat(e," begins")),function(){return dt(e)}},pt=function(){};function ht(e){return"string"===typeof(e.getAttribute?e.getAttribute(T):null)}function bt(e){return x.createElementNS("http://www.w3.org/2000/svg",e)}function yt(e){return x.createElement(e)}function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?bt:yt:n;if("string"===typeof e)return x.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){a.setAttribute(t,e.attributes[t])}));var i=e.children||[];return i.forEach((function(e){a.appendChild(mt(e,{ceFn:r}))})),a}var vt={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(mt(e),t)})),null===t.getAttribute(T)&&Z.keepOriginalSource){var n=x.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~re(t).indexOf(Z.replacementClass))return vt.replace(e);var r=new RegExp("".concat(Z.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Z.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var i=n.map((function(e){return ye(e)})).join("\n");t.setAttribute(T,""),t.innerHTML=i}};function gt(e){e()}function xt(e,t){var n="function"===typeof t?t:pt;if(0===e.length)n();else{var r=gt;"async"===Z.mutateApproach&&(r=g.requestAnimationFrame||gt),r((function(){var t=!0===Z.autoReplaceSvg?vt.replace:vt[Z.autoReplaceSvg]||vt.replace,r=lt("mutate");e.map(t),r(),n()}))}}var wt=!1;function _t(){wt=!0}function kt(){wt=!1}var Et=null;function St(e){if(w&&Z.observeMutations){var t=e.treeCallback,n=void 0===t?pt:t,r=e.nodeCallback,a=void 0===r?pt:r,i=e.pseudoElementsCallback,o=void 0===i?pt:i,s=e.observeMutationsRoot,c=void 0===s?x:s;Et=new w((function(e){if(!wt){var t=Be();ne(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!ht(e.addedNodes[0])&&(Z.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Z.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&ht(e.target)&&~z.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(M):null,n=e.getAttribute?e.getAttribute(A):null;return t&&n}(e.target)){var r=Ue(re(e.target)),i=r.prefix,s=r.iconName;e.target.setAttribute(M,i||t),s&&e.target.setAttribute(A,s)}else(c=e.target)&&c.classList&&c.classList.contains&&c.classList.contains(Z.replacementClass)&&a(e.target);var c}))}})),k&&Et.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tt(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],a=n.slice(1);return r&&a.length>0&&(e[r]=a.join(":").trim()),e}),{})),n}function Ot(e){var t,n,r=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",o=Ue(re(e));return o.prefix||(o.prefix=Be()),r&&a&&(o.prefix=r,o.iconName=a),o.iconName&&o.prefix||o.prefix&&i.length>0&&(o.iconName=(t=o.prefix,n=e.innerText,(Oe[t]||{})[n]||Re(o.prefix,ge(e.innerText)))),o}function Mt(e){var t=ne(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Z.autoA11y&&(n?t["aria-labelledby"]="".concat(Z.replacementClass,"-title-").concat(r||te()):(t["aria-hidden"]="true",t.focusable="false")),t}function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Ot(e),r=n.iconName,i=n.prefix,o=n.rest,s=Mt(e),c=Ge("parseNodeAttributes",{},e),u=t.styleParser?Tt(e):[];return a({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ee,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:u,attributes:s}},c)}var Ct=le.styles;function jt(e){var t="nest"===Z.autoReplaceSvg?At(e,{styleParser:!1}):At(e);return~t.extra.classes.indexOf(B)?$e("generateLayersText",e,t):$e("generateSvgReplacementMutation",e,t)}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!k)return Promise.resolve();var n=x.documentElement.classList,r=function(e){return n.add("".concat(C,"-").concat(e))},a=function(e){return n.remove("".concat(C,"-").concat(e))},i=Z.autoFetchSvg?Object.keys(I):Object.keys(Ct),o=[".".concat(B,":not([").concat(T,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(T,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=ne(e.querySelectorAll(o))}catch(wn){}if(!(s.length>0))return Promise.resolve();r("pending"),a("complete");var c=lt("onTree"),u=s.reduce((function(e,t){try{var n=jt(t);n&&e.push(n)}catch(wn){P||"MissingIcon"===wn.name&&console.error(wn)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){xt(n,(function(){r("active"),r("complete"),a("pending"),"function"===typeof t&&t(),c(),e()}))})).catch((function(e){c(),n(e)}))}))}function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jt(e).then((function(e){e&&xt([e],t)}))}var Nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ee:n,i=t.symbol,o=void 0!==i&&i,s=t.mask,c=void 0===s?null:s,u=t.maskId,f=void 0===u?null:u,d=t.title,l=void 0===d?null:d,p=t.titleId,h=void 0===p?null:p,b=t.classes,y=void 0===b?[]:b,m=t.attributes,v=void 0===m?{}:m,g=t.styles,x=void 0===g?{}:g;if(e){var w=e.prefix,_=e.iconName,k=e.icon;return et(a({type:"icon"},e),(function(){return Ke("beforeDOMElementCreation",{iconDefinition:e,params:t}),Z.autoA11y&&(l?v["aria-labelledby"]="".concat(Z.replacementClass,"-title-").concat(h||te()):(v["aria-hidden"]="true",v.focusable="false")),tt({icons:{main:it(k),mask:c?it(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:_,transform:a(a({},ee),r),symbol:o,title:l,maskId:f,titleId:h,extra:{attributes:v,styles:x,classes:y}})}))}},Rt={mixout:function(){return{icon:(e=Nt,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Ye(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ye(i||{})),e(r,a(a({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Pt,e.nodeCallback=It,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?x:t,r=e.callback;return Pt(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,a=t.titleId,i=t.prefix,o=t.transform,s=t.symbol,u=t.mask,f=t.maskId,d=t.extra;return new Promise((function(t,l){Promise.all([st(n,i),u.iconName?st(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var l=c(u,2),p=l[0],h=l[1];t([e,tt({icons:{main:p,mask:h},prefix:i,iconName:n,transform:o,symbol:s,maskId:f,title:r,titleId:a,extra:d,watchable:!0})])})).catch(l)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.transform,o=ie(e.styles);return o.length>0&&(r.style=o),oe(i)&&(t=$e("generateAbstractTransformGrouping",{main:a,transform:i,containerWidth:a.width,iconWidth:a.width})),n.push(t||a.icon),{children:n,attributes:r}}}},Dt={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return et({type:"layer"},(function(){Ke("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Z.familyPrefix,"-layers")].concat(u(r)).join(" ")},children:n}]}))}}}},Lt={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,a=t.classes,i=void 0===a?[]:a,o=t.attributes,s=void 0===o?{}:o,c=t.styles,f=void 0===c?{}:c;return et({type:"counter",content:e},(function(){return Ke("beforeDOMElementCreation",{content:e,params:t}),rt({content:e.toString(),title:r,extra:{attributes:s,styles:f,classes:["".concat(Z.familyPrefix,"-layers-counter")].concat(u(i))}})}))}}}},Bt={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ee:n,i=t.title,o=void 0===i?null:i,s=t.classes,c=void 0===s?[]:s,f=t.attributes,d=void 0===f?{}:f,l=t.styles,p=void 0===l?{}:l;return et({type:"text",content:e},(function(){return Ke("beforeDOMElementCreation",{content:e,params:t}),nt({content:e,transform:a(a({},ee),r),title:o,extra:{attributes:d,styles:p,classes:["".concat(Z.familyPrefix,"-layers-text")].concat(u(c))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,a=t.extra,i=null,o=null;if(E){var s=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();i=c.width/s,o=c.height/s}return Z.autoA11y&&!n&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,nt({content:e.innerHTML,width:i,height:o,transform:r,title:n,extra:a,watchable:!0})])}}},Ft=new RegExp('"',"ug"),Ut=[1105920,1112319];function Vt(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var o=ne(e.children).filter((function(e){return e.getAttribute(O)===t}))[0],s=g.getComputedStyle(e,t),c=s.getPropertyValue("font-family").match(F),u=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(o&&!c)return e.removeChild(o),r();if(c&&"none"!==f&&""!==f){var d=s.getPropertyValue("content"),l=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?N[c[2].toLowerCase()]:U[u],p=function(e){var t=e.replace(Ft,""),n=function(e,t){var n,r=e.length,a=e.charCodeAt(t);return a>=55296&&a<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(a-55296)+n-56320+65536:a}(t,0),r=n>=Ut[0]&&n<=Ut[1],a=2===t.length&&t[0]===t[1];return{value:ge(a?t[0]:t),isSecondary:r||a}}(d),h=p.value,b=p.isSecondary,y=c[0].startsWith("FontAwesome"),m=Re(l,h),v=m;if(y){var w=function(e){var t=Ae[e],n=Re("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);w.iconName&&w.prefix&&(m=w.iconName,l=w.prefix)}if(!m||b||o&&o.getAttribute(M)===l&&o.getAttribute(A)===v)r();else{e.setAttribute(n,v),o&&e.removeChild(o);var _={iconName:null,title:null,titleId:null,prefix:null,transform:ee,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=_.extra;k.attributes[O]=t,st(m,l).then((function(i){var o=tt(a(a({},_),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:l,iconName:v,extra:k,watchable:!0})),s=x.createElement("svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=o.map((function(e){return ye(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ht(e){return Promise.all([Vt(e,"::before"),Vt(e,"::after")])}function zt(e){return e.parentNode!==document.head&&!~j.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(O)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function qt(e){if(k)return new Promise((function(t,n){var r=ne(e.querySelectorAll("*")).filter(zt).map(Ht),a=lt("searchPseudoElements");_t(),Promise.all(r).then((function(){a(),kt(),t()})).catch((function(){a(),kt(),n()}))}))}var Wt=!1,Gt=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return e.flipX=!0,e;if(r&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(r){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Kt={mixout:function(){return{parse:{transform:function(e){return Gt(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Gt(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),f={outer:o,inner:{transform:"".concat(s," ").concat(c," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:a({},f.outer),children:[{tag:"g",attributes:a({},f.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:a(a({},t.icon.attributes),f.path)}]}]}}}},$t={x:0,y:0,width:"100%",height:"100%"};function Yt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Jt={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Ue(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Be()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,s=e.maskId,c=e.transform,u=i.width,f=i.icon,d=o.width,l=o.icon,p=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(i," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:c,containerWidth:d,iconWidth:u}),h={tag:"rect",attributes:a(a({},$t),{},{fill:"white"})},b=f.children?{children:f.children.map(Yt)}:{},y={tag:"g",attributes:a({},p.inner),children:[Yt(a({tag:f.tag,attributes:a(a({},f.attributes),p.path)},b))]},m={tag:"g",attributes:a({},p.outer),children:[y]},v="mask-".concat(s||te()),g="clip-".concat(s||te()),x={tag:"mask",attributes:a(a({},$t),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=l,"g"===t.tag?t.children:[t])},x]};return n.push(w,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(v,")")},$t)}),{children:n,attributes:r}}}},Zt={provides:function(e){var t=!1;g.matchMedia&&(t=g.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:a(a({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=a(a({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:a(a({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:a(a({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:a(a({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:a(a({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:a(a({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:a(a({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:a(a({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;He=e,ze={},Object.keys(qe).forEach((function(e){-1===We.indexOf(e)&&delete qe[e]})),He.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===i(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){ze[e]||(ze[e]=[]),ze[e].push(r[e])}))}e.provides&&e.provides(qe)}))}([fe,Rt,Dt,Lt,Bt,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=qt,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?x:t;Z.searchPseudoElements&&qt(n)}}},{mixout:function(){return{dom:{unwatch:function(){_t(),Wt=!0}}}},hooks:function(){return{bootstrap:function(){St(Ge("mutationObserverCallbacks",{}))},noAuto:function(){Et&&Et.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Wt?kt():St(Ge("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Kt,Jt,Zt,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:Xe});var Xt=Xe.parse,Qt=Xe.icon,en=n(16),tn=n.n(en),nn=n(1),rn=n.n(nn);function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fn(e){return function(e){if(Array.isArray(e))return dn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||!Array.isArray(t)&&t?cn({},e,t):{}}var vn=["forwardedRef"];function gn(e){var t=e.forwardedRef,n=un(e,vn),r=n.icon,a=n.mask,i=n.symbol,o=n.className,s=n.title,c=n.titleId,u=n.maskId,f=yn(r),d=mn("classes",[].concat(fn(function(e){var t,n=e.beat,r=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,s=e.flash,c=e.spin,u=e.spinPulse,f=e.spinReverse,d=e.pulse,l=e.fixedWidth,p=e.inverse,h=e.border,b=e.listItem,y=e.flip,m=e.size,v=e.rotation,g=e.pull,x=(cn(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":l,"fa-inverse":p,"fa-border":h,"fa-li":b,"fa-flip-horizontal":"horizontal"===y||"both"===y,"fa-flip-vertical":"vertical"===y||"both"===y},"fa-".concat(m),"undefined"!==typeof m&&null!==m),cn(t,"fa-rotate-".concat(v),"undefined"!==typeof v&&null!==v&&0!==v),cn(t,"fa-pull-".concat(g),"undefined"!==typeof g&&null!==g),cn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(n)),fn(o.split(" ")))),l=mn("transform","string"===typeof n.transform?Xt.transform(n.transform):n.transform),p=mn("mask",yn(a)),h=Qt(f,on(on(on(on({},d),l),p),{},{symbol:i,title:s,titleId:c,maskId:u}));if(!h)return function(){var e;!bn&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var b=h.abstract,y={ref:t};return Object.keys(n).forEach((function(e){gn.defaultProps.hasOwnProperty(e)||(y[e]=n[e])})),xn(b[0],y)}gn.displayName="FontAwesomeIcon",gn.propTypes={beat:tn.a.bool,border:tn.a.bool,bounce:tn.a.bool,className:tn.a.string,fade:tn.a.bool,flash:tn.a.bool,mask:tn.a.oneOfType([tn.a.object,tn.a.array,tn.a.string]),maskId:tn.a.string,fixedWidth:tn.a.bool,inverse:tn.a.bool,flip:tn.a.oneOf(["horizontal","vertical","both"]),icon:tn.a.oneOfType([tn.a.object,tn.a.array,tn.a.string]),listItem:tn.a.bool,pull:tn.a.oneOf(["right","left"]),pulse:tn.a.bool,rotation:tn.a.oneOf([0,90,180,270]),shake:tn.a.bool,size:tn.a.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:tn.a.bool,spinPulse:tn.a.bool,spinReverse:tn.a.bool,symbol:tn.a.oneOfType([tn.a.bool,tn.a.string]),title:tn.a.string,titleId:tn.a.string,transform:tn.a.oneOfType([tn.a.string,tn.a.object]),swapOpacity:tn.a.bool},gn.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var xn=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=hn(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ln(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,c=un(r,pn);return i.attrs.style=on(on({},i.attrs.style),s),t.apply(void 0,[n.tag,on(on({},i.attrs),c)].concat(fn(a)))}.bind(null,rn.a.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(8),a=n(9),i=n(237),o=n(10),s=n(13),c=new s.Logger("wordlists/5.6.1"),u=function(){function e(t){Object(r.a)(this,e),c.checkAbstract(this instanceof e?this.constructor:void 0,e),Object(o.defineReadOnly)(this,"locale",t)}return Object(a.a)(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 Object(i.a)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);r.__exportStar(n(1762),t),r.__exportStar(n(882),t),r.__exportStar(n(883),t)},function(e,t,n){"use strict";var r=n(885);n.d(t,"generateKeyPair",(function(){return r.a})),n.d(t,"signJWT",(function(){return r.b}));n(67);var a=n(890);n.o(a,"encodeIss")&&n.d(t,"encodeIss",(function(){return a.encodeIss}));var i=n(268);n.d(t,"encodeIss",(function(){return i.d}))},function(e,t,n){"use strict";var r=n(126).default,a=n(46).default,i=n(79).default,o=n(122).default,s=n(1806),c=n(1807),u=n(1808),f=n(1809),d=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?s(e):encodeURIComponent(e):e}function h(e,t){return t.decode?c(e):e}function b(e){return Array.isArray(e)?e.sort():"object"===typeof e?b(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function y(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function m(e){var t=(e=y(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!a&&h(n,e).includes(e.arrayFormatSeparator);n=i?h(n,e):n;var o=a||i?n.split(e.arrayFormatSeparator).map((function(t){return h(t,e)})):null===n?n:h(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var a=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),a){var i=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return h(t,e)}));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i}else r[t]=n?h(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var o,s=i(e.split("&"));try{for(s.s();!(o=s.n()).done;){var c=o.value;if(""!==c){var f=u(t.decode?c.replace(/\+/g," "):c,"="),d=a(f,2),p=d[0],y=d[1];y=void 0===y?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?y:h(y,t),n(h(p,t),y,r)}}}catch(S){s.e(S)}finally{s.f()}for(var m=0,g=Object.keys(r);m0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),r=a(n,2),i=r[0],o=r[1];return Object.assign({url:i.split("?")[0]||"",query:g(m(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:h(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign(r({encode:!0,strict:!0},d,!0),n);var a=y(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),s=Object.assign(o,e.query),c=t.stringify(s,n);c&&(c="?".concat(c));var u=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[d]?p(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(a).concat(c).concat(u)},t.pick=function(e,n,a){a=Object.assign(r({parseFragmentIdentifier:!0},d,!1),a);var i=t.parseUrl(e,a),o=i.url,s=i.query,c=i.fragmentIdentifier;return t.stringifyUrl({url:o,query:f(s,n),fragmentIdentifier:c},a)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n(7),a=n(119),i=n(121);n(304);function o(){var e=Object(a.a)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function c(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var t=e.message,n=e.event_id;if(t)return t;var r=c(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"":n||""}function f(e,t,n){var r=e.exception=e.exception||{},a=r.values=r.values||[],i=a[0]=a[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function d(e,t){var n=c(e);if(n){var a=n.mechanism;if(n.mechanism=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},{type:"generic",handled:!0}),a),t),t&&"data"in t){var i=Object(r.__assign)(Object(r.__assign)({},a&&a.data),t.data);n.mechanism.data=i}}}function l(e){if(e&&e.__sentry_captured__)return!0;try{Object(i.a)(e,"__sentry_captured__",!0)}catch(t){}return!1}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(88);function a(e){return new o((function(t){t(e)}))}function i(e){return new o((function(t,n){n(e)}))}var o=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Object(r.n)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,a){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(r){a(r)}else e(n)},function(t){if(n)try{e(n(t))}catch(r){a(r)}else a(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var a,i;return n.then((function(e){i=!1,a=e,t&&t()}),(function(e){i=!0,a=e,t&&t()})).then((function(){i?r(a):e(a)}))}))},e}()},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mode=t.ChainId=void 0,function(e){e[e.Alfajores=44787]="Alfajores",e[e.Baklava=62320]="Baklava",e[e.Cannoli=17323]="Cannoli",e[e.Mainnet=42220]="Mainnet"}(t.ChainId||(t.ChainId={})),function(e){e.Dark="dark",e.Light="light"}(t.Mode||(t.Mode={}))},function(e,t,n){"use strict";var r=n(36),a=n(168),i=a.getNAF,o=a.getJSF,s=a.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),a=(1<=o;f--)c=(c<<1)+r[f];u.push(c)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),p=a;p>0;p--){for(o=0;o=0;u--){for(var f=0;u>=0&&0===o[u];u--)f++;if(u>=0&&f++,c=c.dblp(f),u<0)break;var d=o[u];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(a[d-1>>1]):c.mixedAdd(a[-d-1>>1].neg()):d>0?c.add(a[d-1>>1]):c.add(a[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,a){var s,c,u,f=this._wnafT1,d=this._wnafT2,l=this._wnafT3,p=0;for(s=0;s=1;s-=2){var b=s-1,y=s;if(1===f[b]&&1===f[y]){var m=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(m[1]=t[b].add(t[y]),m[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[y]),m[2]=t[b].add(t[y].neg())):(m[1]=t[b].toJ().mixedAdd(t[y]),m[2]=t[b].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[b],n[y]);for(p=Math.max(g[0].length,p),l[b]=new Array(p),l[y]=new Array(p),c=0;c=0;s--){for(var E=0;s>=0;){var S=!0;for(c=0;c=0&&E++,_=_.dblp(E),s<0)break;for(c=0;c0?u=d[c][T-1>>1]:T<0&&(u=d[c][-T-1>>1].neg()),_="affine"===u.type?_.mixedAdd(u):_.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a7?e[r+2].toUpperCase():e[r+2];return n},l=function(e){var n=new t(e.slice(2),"hex"),r="0x"+s.keyFromPrivate(n).getPublic(!1,"hex").slice(2),a=u(r);return{address:d("0x"+a.slice(-40)),privateKey:e}},p=function(e){var t=r(e,3),n=t[0],i=t[1],o=t[2];return a.flatten([i,o,n])},h=function(e){return[a.slice(64,a.length(e),e),a.slice(0,32,e),a.slice(32,64,e)]},b=function(e){return function(n,r){var o=s.keyFromPrivate(new t(r.slice(2),"hex")).sign(new t(n.slice(2),"hex"),{canonical:!0});return p([i.fromString(a.fromNumber(e+o.recoveryParam)),a.pad(32,a.fromNat("0x"+o.r.toString(16))),a.pad(32,a.fromNat("0x"+o.s.toString(16)))])}},y=b(27);e.exports={create:function(e){var t=u(a.concat(a.random(32),e||a.random(32))),n=a.concat(a.concat(a.random(32),t),a.random(32)),r=u(n);return l(r)},toChecksum:d,fromPrivate:l,sign:y,makeSigner:b,recover:function(e,n){var r=h(n),i={v:a.toNumber(r[0]),r:r[1].slice(2),s:r[2].slice(2)},o="0x"+s.recoverPubKey(new t(e.slice(2),"hex"),i,i.v<2?i.v:1-i.v%2).encode("hex",!1).slice(2),c=u(o);return d("0x"+c.slice(-40))},encodeSignature:p,decodeSignature:h}}).call(this,n(23).Buffer)},function(e,t,n){var r=n(59).Buffer;function a(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),a=0;a>>24]^f[h>>>16&255]^d[b>>>8&255]^l[255&y]^t[m++],o=u[h>>>24]^f[b>>>16&255]^d[y>>>8&255]^l[255&p]^t[m++],s=u[b>>>24]^f[y>>>16&255]^d[p>>>8&255]^l[255&h]^t[m++],c=u[y>>>24]^f[p>>>16&255]^d[h>>>8&255]^l[255&b]^t[m++],p=i,h=o,b=s,y=c;return i=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[b>>>8&255]<<8|r[255&y])^t[m++],o=(r[h>>>24]<<24|r[b>>>16&255]<<16|r[y>>>8&255]<<8|r[255&p])^t[m++],s=(r[b>>>24]<<24|r[y>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[m++],c=(r[y>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&b])^t[m++],[i>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var f=e[o],d=e[f],l=e[d],p=257*e[u]^16843008*u;a[0][o]=p<<24|p>>>8,a[1][o]=p<<16|p>>>16,a[2][o]=p<<8|p>>>24,a[3][o]=p,p=16843009*l^65537*d^257*f^16843008*o,i[0][u]=p<<24|p>>>8,i[1][u]=p<<16|p>>>16,i[2][u]=p<<8|p>>>24,i[3][u]=p,0===o?o=s=1:(o=f^e[e[e[l^f]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:a,INV_SUB_MIX:i}}();function u(e){this._key=a(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),a=[],i=0;i>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[i/t|0]<<24):t>6&&i%t===4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),a[i]=a[i-t]^o}for(var u=[],f=0;f>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=n,this._keySchedule=a,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},function(e,t,n){var r=n(59).Buffer,a=n(541);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(i||0),u=r.alloc(0);o>0||i>0;){var f=new a;f.update(u),f.update(e),t&&f.update(t),u=f.digest();var d=0;if(o>0){var l=s.length-o;d=Math.min(o,u.length),u.copy(s,l,0,d),o-=d}if(d0){var p=c.length-i,h=Math.min(i,u.length-d);u.copy(c,p,d,d+h),i-=h}}return u.fill(0),{key:s,iv:c}}},function(e,t,n){var r=n(1325),a=n(1332),i=n(1333),o=n(558),s=n(741),c=n(59).Buffer;function u(e){var t;"object"!==typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=c.from(e));var n,u,f=i(e,t),d=f.tag,l=f.data;switch(d){case"CERTIFICATE":u=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(l,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":l=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=a[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,d=parseInt(i.split("-")[1],10)/8,l=s.pbkdf2Sync(t,n,r,d,"sha1"),p=o.createDecipheriv(i,l,u),h=[];return h.push(p.update(f)),h.push(p.final()),c.concat(h)}(l=r.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=u,u.signature=r.signature},function(e,t,n){var r=n(36),a=n(248),i=function(e){return new r(e.slice(2),16)},o=function(e){var t="0x"+("0x"===e.slice(0,2)?new r(e.slice(2),16):new r(e,10)).toString("hex");return"0x0"===t?"0x":t},s=function(e){return"string"===typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new r(e).toString("hex")},c=function(e){return i(e).toNumber()},u=function(e){return function(t,n){return"0x"+i(t)[e](i(n)).toString("hex")}},f=u("add"),d=u("mul"),l=u("div"),p=u("sub");e.exports={toString:function(e){return i(e).toString(10)},fromString:o,toNumber:c,fromNumber:s,toEther:function(e){return c(l(e,o("10000000000")))/1e8},fromEther:function(e){return d(s(Math.floor(1e8*e)),o("10000000000"))},toUint256:function(e){return a.pad(32,e)},add:f,mul:d,div:l,sub:p}},function(e,t){e.exports={encode:function(e){var t=function(e){return(t=e.toString(16)).length%2===0?t:"0"+t;var t},n=function(e,n){return e<56?t(n+e):t(n+t(e).length/2+55)+t(e)};return"0x"+function e(t){if("string"===typeof t){var r=t.slice(2);return(2!=r.length||r>="80"?n(r.length/2,128):"")+r}var a=t.map(e).join("");return n(a.length/2,192)+a}(e)},decode:function(e){var t=2,n=function(){if(t>=e.length)throw"";var n=e.slice(t,t+2);return n<"80"?(t+=2,"0x"+n):n<"c0"?a():i()},r=function(){var n=parseInt(e.slice(t,t+=2),16)%64;return n<56?n:parseInt(e.slice(t,t+=2*(n-55)),16)},a=function(){var n=r();return"0x"+e.slice(t,t+=2*n)},i=function(){for(var e=2*r()+t,a=[];t0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.zeroValue=t.structHash=t.encodeData=t.typeHash=t.encodeType=t.generateTypedDataHash=t.noString=t.noNumber=t.noBool=t.defined=t.eip712OptionalSchema=t.eip712OptionalType=t.EIP712_BUILTIN_TYPES=t.EIP712_DYNAMIC_TYPES=t.EIP712_ATOMIC_TYPES=void 0;var l=n(104),p=n(110),h=n(105),b=s(n(227)),y=d(n(327));t.EIP712_ATOMIC_TYPES=u(["bool","address"],c(function(){for(var e=[],t=32;t>=1;t--)e.push("bytes"+t),e.push("uint"+8*t),e.push("int"+8*t);return e}()),!1),t.EIP712_DYNAMIC_TYPES=["bytes","string"],t.EIP712_BUILTIN_TYPES=t.EIP712_DYNAMIC_TYPES.concat(t.EIP712_ATOMIC_TYPES);var m=r(/^([\w<>\[\]_\-]+)(\[(\d+)?\])$/,{memberType:1,fixedLength:3}),v=/^u?int\d*$/,g=/^bytes\d*$/;t.eip712OptionalType=function(e){var t;return(t={})["Optional<".concat(e,">")]=[{name:"defined",type:"bool"},{name:"value",type:e}],t};t.eip712OptionalSchema=function(e){return b.type({defined:b.boolean,value:e})};function x(e,n,r){var a,i,o;if(void 0===r&&(r=[]),r.includes(e)||t.EIP712_BUILTIN_TYPES.includes(e))return[];if(m.test(e)){var s=m.exec(e);return x(null===(o=null===s||void 0===s?void 0:s.groups)||void 0===o?void 0:o.memberType,n,r)}if(void 0===n[e])throw new Error("Unrecognized type ".concat(e," is not included in the EIP-712 type list"));var d=[e];try{for(var l=f(n[e]),p=l.next();!p.done;p=l.next()){var h=p.value;d.push.apply(d,u([],c(x(h.type,n,r.concat(d))),!1))}}catch(b){a={error:b}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}return d}function w(e,t){var n,r,a=x(e,t);a=a.filter((function(t){return t!==e})),a=[e].concat(a.sort());var i="";try{for(var o=f(a),s=o.next();!s.done;s=o.next()){var c=s.value;i+="".concat(c,"(").concat(t[c].map((function(e){var t=e.name,n=e.type;return"".concat(n," ").concat(t)})).join(","),")")}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function _(e,t){return(0,h.keccak)(w(e,t))}function k(n,r,a){var i;if(t.EIP712_ATOMIC_TYPES.includes(n)){var o=y.default.encodeParameter(n,function(e,t){return v.test(e)&&p.BigNumber.isBigNumber(t)?t.toString():t}(n,r));return e.from((0,l.trimLeading0x)(o),"hex")}if("string"===n)return(0,h.keccak)(e.from(r,"utf8"));if("bytes"===n)return(0,h.keccak)(r);if(void 0!==a[n])return S(n,r,a);if(m.test(n)){var s=m.exec(n),c=null===(i=null===s||void 0===s?void 0:s.groups)||void 0===i?void 0:i.memberType;return(0,h.keccak)(e.concat(r.map((function(e){return k(c,e,a)}))))}throw new Error("Unrecognized or unsupported type in EIP-712 encoding: ".concat(n))}function E(t,n,r){var a=r[t];if(void 0===a)throw new Error("Unrecognized primary type in EIP-712 encoding: ".concat(t));return e.concat(a.map((function(e){return k(e.type,n[e.name],r)})))}function S(t,n,r){return(0,h.keccak)(e.concat([_(t,r),E(t,n,r)]))}t.defined=function(e){return{defined:!0,value:e}},t.noBool={defined:!1,value:!1},t.noNumber={defined:!1,value:0},t.noString={defined:!1,value:""},t.generateTypedDataHash=function(t){return(0,h.keccak)(e.concat([e.from("1901","hex"),S("EIP712Domain",t.domain,t.types),S(t.primaryType,t.message,t.types)]))},t.encodeType=w,t.typeHash=_,t.encodeData=E,t.structHash=S,t.zeroValue=function n(r,i){var o,s;if(void 0===i&&(i={}),t.EIP712_BUILTIN_TYPES.includes(r)){if(g.test(r))return e.alloc(0);if(v.test(r))return 0;if("bool"===r)return!1;if("address"===r)return l.NULL_ADDRESS;if("string"===r)return""}if(m.test(r)){var f=m.exec(r),d=null===(o=null===f||void 0===f?void 0:f.groups)||void 0===o?void 0:o.memberType,p=null===(s=null===f||void 0===f?void 0:f.groups)||void 0===s?void 0:s.fixedLength,h=void 0===p?0:parseInt(p,10);return u([],c(Array(h).keys()),!1).map((function(){return n(d,i)}))}var b=i[r];if(void 0===b)throw new Error("Unrecognized primary type for EIP-712 zero value: ".concat(r));return b.reduce((function(e,t){var r;return a(a({},e),((r={})[t.name]=n(t.type,i),r))}),{})}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},a.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:a,subscription:r}},function(e,t,n){e.exports={account:n(426),nat:n(430),bytes:n(248),hash:n(124),RLP:n(431),abi:n(1524),transaction:n(1525),rpc:n(1526),desubits:n(815),passphrase:n(1528)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newStableToken=t.ABI=void 0,t.ABI=[{inputs:[{internalType:"bool",name:"test",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"factor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"lastUpdated",type:"uint256"}],name:"InflationFactorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"rate",type:"uint256"},{indexed:!1,internalType:"uint256",name:"updatePeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"lastUpdated",type:"uint256"}],name:"InflationParametersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"registryAddress",type:"address"}],name:"RegistrySet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"comment",type:"string"}],name:"TransferComment",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"bytes",name:"blsKey",type:"bytes"},{internalType:"bytes",name:"blsPop",type:"bytes"}],name:"checkProofOfPossession",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"aNumerator",type:"uint256"},{internalType:"uint256",name:"aDenominator",type:"uint256"},{internalType:"uint256",name:"bNumerator",type:"uint256"},{internalType:"uint256",name:"bDenominator",type:"uint256"},{internalType:"uint256",name:"exponent",type:"uint256"},{internalType:"uint256",name:"_decimals",type:"uint256"}],name:"fractionMulExp",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"header",type:"bytes"}],name:"getBlockNumberFromHeader",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEpochNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getEpochNumberOfBlock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEpochSize",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getParentSealBitmap",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"header",type:"bytes"}],name:"getVerifiedSealBitmapFromHeader",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"header",type:"bytes"}],name:"hashHeader",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"initialized",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"minQuorumSize",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"minQuorumSizeInCurrentSet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"numberValidatorsInCurrentSet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"numberValidatorsInSet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"registry",outputs:[{internalType:"contract IRegistry",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"registryAddress",type:"address"}],name:"setRegistry",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"validatorSignerAddressFromCurrentSet",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"validatorSignerAddressFromSet",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getVersionNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"},{internalType:"address",name:"registryAddress",type:"address"},{internalType:"uint256",name:"inflationRate",type:"uint256"},{internalType:"uint256",name:"inflationFactorUpdatePeriod",type:"uint256"},{internalType:"address[]",name:"initialBalanceAddresses",type:"address[]"},{internalType:"uint256[]",name:"initialBalanceValues",type:"uint256[]"},{internalType:"string",name:"exchangeIdentifier",type:"string"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"rate",type:"uint256"},{internalType:"uint256",name:"updatePeriod",type:"uint256"}],name:"setInflationParameters",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"string",name:"comment",type:"string"}],name:"transferWithComment",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"accountOwner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"accountOwner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInflationParameters",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"valueToUnits",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getExchangeRegistryId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"units",type:"uint256"}],name:"unitsToValue",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"debitGasFees",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"feeRecipient",type:"address"},{internalType:"address",name:"gatewayFeeRecipient",type:"address"},{internalType:"address",name:"communityFund",type:"address"},{internalType:"uint256",name:"refund",type:"uint256"},{internalType:"uint256",name:"tipTxFee",type:"uint256"},{internalType:"uint256",name:"gatewayFee",type:"uint256"},{internalType:"uint256",name:"baseTxFee",type:"uint256"}],name:"creditGasFees",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],t.newStableToken=function(e,n){return new e.eth.Contract(t.ABI,n)}},function(e,t,n){"use strict";var r=n(286),a=n(287),i=n(1555),o=function(){var e=this;r.packageInit(this,arguments),[new a({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new a({name:"isListening",call:"net_listening",params:0}),new a({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:i.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};r.addProviders(o),e.exports=o},function(e,t,n){"use strict";var r=n(33).default,a=n(34).default,i=n(62).default,o=n(65).default;function s(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout((function(){throw r}))}}function c(e){for(var t=e.length,n=new Array(t),r=0;r1?r-1:0),i=1;i0&&(o=a[0]),o instanceof Error)throw o;var u=new Error("Unhandled error.".concat(o?" (".concat(o.message,")"):""));throw u.context=o,u}var f=n[e];if(void 0===f)return!1;if("function"===typeof f)s(f,this,a);else for(var d=f.length,l=c(f),p=0;p=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 c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=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-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=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=c(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,s=Math.min(i,i-o)+n,c=0,f=n;f1&&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")]=d}catch(M){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l=["","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?l[6-c.length]+c+n:c+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 u=p[e],f=h[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(f).toString(e);n=(d=d.idivn(f)).isZero()?b+n:l[u-b.length]+b+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 b(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,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var h=u-p|0;f+=(o=(a=0|e.words[h])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c: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,b=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],x=8191&g,w=g>>>13,_=0|o[4],k=8191&_,E=_>>>13,S=0|o[5],T=8191&S,O=S>>>13,M=0|o[6],A=8191&M,C=M>>>13,j=0|o[7],P=8191&j,I=j>>>13,N=0|o[8],R=8191&N,D=N>>>13,L=0|o[9],B=8191&L,F=L>>>13,U=0|s[0],V=8191&U,H=U>>>13,z=0|s[1],q=8191&z,W=z>>>13,G=0|s[2],K=8191&G,$=G>>>13,Y=0|s[3],J=8191&Y,Z=Y>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],he=8191&pe,be=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,V))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,V)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(h,V),a=(a=Math.imul(h,H))+Math.imul(b,V)|0,i=Math.imul(b,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,W)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,V),a=(a=Math.imul(m,H))+Math.imul(v,V)|0,i=Math.imul(v,H),r=r+Math.imul(h,q)|0,a=(a=a+Math.imul(h,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0;var ve=(u+(r=r+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,$)|0)+Math.imul(l,K)|0))<<13)|0;u=((i=i+Math.imul(l,$)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,V),a=(a=Math.imul(x,H))+Math.imul(w,V)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0,r=r+Math.imul(h,K)|0,a=(a=a+Math.imul(h,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0;var ge=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,Z)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(k,V),a=(a=Math.imul(k,H))+Math.imul(E,V)|0,i=Math.imul(E,H),r=r+Math.imul(x,q)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,r=r+Math.imul(m,K)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,r=r+Math.imul(h,J)|0,a=(a=a+Math.imul(h,Z)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Z)|0;var xe=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(T,V),a=(a=Math.imul(T,H))+Math.imul(O,V)|0,i=Math.imul(O,H),r=r+Math.imul(k,q)|0,a=(a=a+Math.imul(k,W)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,W)|0,r=r+Math.imul(x,K)|0,a=(a=a+Math.imul(x,$)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,$)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,Z)|0,r=r+Math.imul(h,Q)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,V),a=(a=Math.imul(A,H))+Math.imul(C,V)|0,i=Math.imul(C,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,W)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,W)|0,r=r+Math.imul(k,K)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,$)|0,r=r+Math.imul(x,J)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0;var _e=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,V),a=(a=Math.imul(P,H))+Math.imul(I,V)|0,i=Math.imul(I,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,W)|0,r=r+Math.imul(T,K)|0,a=(a=a+Math.imul(T,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,r=r+Math.imul(k,J)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,Z)|0,r=r+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0;var ke=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,V),a=(a=Math.imul(R,H))+Math.imul(D,V)|0,i=Math.imul(D,H),r=r+Math.imul(P,q)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,W)|0,r=r+Math.imul(A,K)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,$)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,Z)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(x,ne)|0,a=(a=a+Math.imul(x,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0;var Ee=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(B,V),a=(a=Math.imul(B,H))+Math.imul(F,V)|0,i=Math.imul(F,H),r=r+Math.imul(R,q)|0,a=(a=a+Math.imul(R,W)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,W)|0,r=r+Math.imul(P,K)|0,a=(a=a+Math.imul(P,$)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(k,ne)|0,a=(a=a+Math.imul(k,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(h,de)|0,a=(a=a+Math.imul(h,le)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,le)|0;var Se=(u+(r=r+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,be)|0)+Math.imul(l,he)|0))<<13)|0;u=((i=i+Math.imul(l,be)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,q),a=(a=Math.imul(B,W))+Math.imul(F,q)|0,i=Math.imul(F,W),r=r+Math.imul(R,K)|0,a=(a=a+Math.imul(R,$)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,$)|0,r=r+Math.imul(P,J)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Z)|0,r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(k,ie)|0,a=(a=a+Math.imul(k,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(x,ce)|0,a=(a=a+Math.imul(x,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Te=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,be)|0)+Math.imul(b,he)|0))<<13)|0;u=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,K),a=(a=Math.imul(B,$))+Math.imul(F,K)|0,i=Math.imul(F,$),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,Z)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,Z)|0,r=r+Math.imul(P,Q)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(k,ce)|0,a=(a=a+Math.imul(k,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(x,de)|0,a=(a=a+Math.imul(x,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Oe=(u+(r=r+Math.imul(m,he)|0)|0)+((8191&(a=(a=a+Math.imul(m,be)|0)+Math.imul(v,he)|0))<<13)|0;u=((i=i+Math.imul(v,be)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,J),a=(a=Math.imul(B,Z))+Math.imul(F,J)|0,i=Math.imul(F,Z),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,a=(a=a+Math.imul(P,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(k,de)|0,a=(a=a+Math.imul(k,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Me=(u+(r=r+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,be)|0)+Math.imul(w,he)|0))<<13)|0;u=((i=i+Math.imul(w,be)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,Q),a=(a=Math.imul(B,ee))+Math.imul(F,Q)|0,i=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(C,ce)|0,i=i+Math.imul(C,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Ae=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(a=(a=a+Math.imul(k,be)|0)+Math.imul(E,he)|0))<<13)|0;u=((i=i+Math.imul(E,be)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ne),a=(a=Math.imul(B,re))+Math.imul(F,ne)|0,i=Math.imul(F,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(P,ce)|0,a=(a=a+Math.imul(P,ue)|0)+Math.imul(I,ce)|0,i=i+Math.imul(I,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,le)|0;var Ce=(u+(r=r+Math.imul(T,he)|0)|0)+((8191&(a=(a=a+Math.imul(T,be)|0)+Math.imul(O,he)|0))<<13)|0;u=((i=i+Math.imul(O,be)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,ie),a=(a=Math.imul(B,oe))+Math.imul(F,ie)|0,i=Math.imul(F,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(P,de)|0,a=(a=a+Math.imul(P,le)|0)+Math.imul(I,de)|0,i=i+Math.imul(I,le)|0;var je=(u+(r=r+Math.imul(A,he)|0)|0)+((8191&(a=(a=a+Math.imul(A,be)|0)+Math.imul(C,he)|0))<<13)|0;u=((i=i+Math.imul(C,be)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ce),a=(a=Math.imul(B,ue))+Math.imul(F,ce)|0,i=Math.imul(F,ue),r=r+Math.imul(R,de)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Pe=(u+(r=r+Math.imul(P,he)|0)|0)+((8191&(a=(a=a+Math.imul(P,be)|0)+Math.imul(I,he)|0))<<13)|0;u=((i=i+Math.imul(I,be)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,de),a=(a=Math.imul(B,le))+Math.imul(F,de)|0,i=Math.imul(F,le);var Ie=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(a=(a=a+Math.imul(R,be)|0)+Math.imul(D,he)|0))<<13)|0;u=((i=i+Math.imul(D,be)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(u+(r=Math.imul(B,he))|0)+((8191&(a=(a=Math.imul(B,be))+Math.imul(F,he)|0))<<13)|0;return u=((i=Math.imul(F,be))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=xe,c[5]=we,c[6]=_e,c[7]=ke,c[8]=Ee,c[9]=Se,c[10]=Te,c[11]=Oe,c[12]=Me,c[13]=Ae,c[14]=Ce,c[15]=je,c[16]=Pe,c[17]=Ie,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function m(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]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(y=b),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?b(this,e,t):n<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},g.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),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),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)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=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 s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||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?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.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,s},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),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0===(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,b=1;0===(n.words[0]&b)&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},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),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0===(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).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,s&=67108863,this.words[o]=s}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 T(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 x={k256:null,p224:null,p192:null,p25519:null};function w(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 _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(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 O(e){T.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)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.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},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(_,w),_.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},_.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(x[e])return x[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return x[e]=t,t},T.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},T.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")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.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)},T.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},T.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)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.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 s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(s);){for(var b=p,y=0;0!==b.cmp(s);y++)b=b.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new O(e)},a(O,T),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.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)},O.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)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(100)(e))},function(e,t,n){"use strict";function r(){return function(e){return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=function(e){return e},t.AddressString=function(e){return e},t.BigIntString=function(e){return e},t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=function(e){return e},function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""}(t.ProviderType||(t.ProviderType={}))},function(e,t,n){var r=n(1637);function a(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=a=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var a=r(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n(7),a=n(26),i=n(60),o=n(37),s=n(77);function c(e,t,n,r){return function(a){return a.lift(new u(e,t,n,r))}}var u=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),f=function(e){function t(t,n,r,a,i){var o=e.call(this,t)||this;return o.keySelector=n,o.elementSelector=r,o.durationSelector=a,o.subjectSelector=i,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,a=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(c){this.error(c)}else r=e;if(!a){a=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,a);var i=new l(t,a,this);if(this.destination.next(i),this.durationSelector){var o=void 0;try{o=this.durationSelector(new l(t,a))}catch(c){return void this.error(c)}this.add(o.subscribe(new d(t,a,this)))}}a.closed||a.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(a.a),d=function(e){function t(t,n,r){var a=e.call(this,n)||this;return a.key=t,a.group=n,a.parent=r,a}return r.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(a.a),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.key=t,a.groupSubject=n,a.refCountSubscription=r,a}return r.__extends(t,e),t.prototype._subscribe=function(e){var t=new i.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new p(n)),t.add(r.subscribe(e)),t},t}(o.a),p=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(i.a)},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;t0||(o[a[s].index]=i[c].index,s++),c++)}return o},t.mapAddressListDataOnto=function(e,r,a,i){var o=n([],Array(r.length).fill(i),!0);if(0===e.length)return o;for(var s=(0,t.mapAddressListOnto)(r,a),c=0;c=0&&(o[s[c]]=e[c]);return o}}).call(this,n(23).Buffer)},function(e,t){var n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){(function(t){var n="object"===typeof t&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"})&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SENTRY_ENVIRONMENT:"production",REACT_APP_SENTRY_RELEASE:"gh-8edc4616349c91f5cb22aa267644a70d837be6da",REACT_APP_RAMP_KEY:"6f5uga4qc3pbhempzngnonwjvxa7edgep5q9uvd8",REACT_APP_SENTRY_DSN:"https://60b48d27af18468bbf7633b36c2fe0aa@o676708.ingest.sentry.io/5832897",REACT_APP_AB_HASH:"0xd7781f823242b011141a8760c960355640fc616361c33858eada0c57563c5e87"}).NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),r=0;r0}},function(e,t,n){var r=n(33).default,a=n(34).default,i=Symbol("SemVer ANY"),o=function(){"use strict";function e(t,n){if(r(this,e),n=s(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}l("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===i?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}return a(e,[{key:"parse",value:function(e){var t=this.options.loose?u[f.COMPARATORLOOSE]:u[f.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=i}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(l("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"===typeof e)try{e=new p(e,this.options)}catch(t){return!1}return d(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");if(n&&"object"===typeof n||(n={loose:!!n,includePrerelease:!1}),""===this.operator)return""===this.value||new h(t.value,n).test(this.value);if(""===t.operator)return""===t.value||new h(this.value,n).test(t.semver);var r=(">="===this.operator||">"===this.operator)&&(">="===t.operator||">"===t.operator),a=("<="===this.operator||"<"===this.operator)&&("<="===t.operator||"<"===t.operator),i=this.semver.version===t.semver.version,o=(">="===this.operator||"<="===this.operator)&&(">="===t.operator||"<="===t.operator),s=d(this.semver,"<",t.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=d(this.semver,">",t.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||a||i&&o||s||c}}],[{key:"ANY",get:function(){return i}}]),e}();e.exports=o;var s=n(452),c=n(332),u=c.re,f=c.t,d=n(872),l=n(451),p=n(145),h=n(186)},function(e,t,n){var r=n(186);e.exports=function(e,t,n){try{t=new r(t,n)}catch(a){return!1}return t.test(e)}},function(e,t,n){"use strict";(function(e){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a0||(o[a[s].index]=i[c].index,s++),c++)}return o},t.mapAddressListDataOnto=function(e,r,a,i){var o=n([],Array(r.length).fill(i),!0);if(0===e.length)return o;for(var s=(0,t.mapAddressListOnto)(r,a),c=0;c=0&&(o[s[c]]=e[c]);return o}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var r=n(334);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var n="This method only supports Buffer but input was: ".concat(t);throw new Error(n)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!==typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1791);t.decode=function(e){return[r.decode(e),r.decode.bytes]},t.encodeTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r.encode(e,t,n),t},t.encodingLength=function(e){return r.encodingLength(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asUint8Array=function(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asUint8Array=function(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}},function(e,t,n){var r=n(1887),a=n(1888),i=n(1889),o=n(1890),s=n(1891);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&(2!==t.length||!t.includes("null"))&&me(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){var n=e.self.RULES.all;for(var r in n){var a=n[r];if("object"==typeof a&&(0,Y.shouldUseRule)(e.schema,a)){var i=a.definition.type;i.length&&!i.some((function(e){return be(t,e)}))&&me(e,'missing type "'.concat(i.join(","),'" for keyword "').concat(r,'"'))}}}(e,e.dataTypes)}(e,t),a.block((function(){var e,t=W(u.rules);try{for(t.s();!(e=t.n()).done;){f(e.value)}}catch(n){t.e(n)}finally{t.f()}f(u.post)}))):a.block((function(){return ge(e,"$ref",u.all.$ref.definition)}))}function he(e,t){var n=e.gen,r=e.schema;e.opts.useDefaults&&(0,Z.assignDefaults)(e,t.type),n.block((function(){var n,a=W(t.rules);try{for(a.s();!(n=a.n()).done;){var i=n.value;(0,Y.shouldUseRule)(r,i)&&ge(e,i.keyword,i.definition,t.type)}}catch(o){a.e(o)}finally{a.f()}}))}function be(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function ye(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function me(e,t){var n=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(n,'" (strictTypes)'),(0,re.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){ue(e)&&(fe(e),ce(e))?function(e){var t=e.schema,n=e.opts,r=e.gen;ie(e,(function(){n.$comment&&t.$comment&&le(e),function(e){var t=e.schema,n=e.opts;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,re.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(te.default.vErrors,null),r.let(te.default.errors,0),n.unevaluated&&function(e){var t=e.gen,n=e.validateName;e.evaluated=t.const("evaluated",(0,ee._)(m||(m=G(["",".evaluated"])),n)),t.if((0,ee._)(v||(v=G(["",".dynamicProps"])),e.evaluated),(function(){return t.assign((0,ee._)(g||(g=G(["",".props"])),e.evaluated),(0,ee._)(x||(x=G(["undefined"]))))})),t.if((0,ee._)(w||(w=G(["",".dynamicItems"])),e.evaluated),(function(){return t.assign((0,ee._)(_||(_=G(["",".items"])),e.evaluated),(0,ee._)(k||(k=G(["undefined"]))))}))}(e),de(e),function(e){var t=e.gen,n=e.schemaEnv,r=e.validateName,a=e.ValidationError,i=e.opts;n.$async?t.if((0,ee._)(A||(A=G([""," === 0"])),te.default.errors),(function(){return t.return(te.default.data)}),(function(){return t.throw((0,ee._)(C||(C=G(["new ","(",")"])),a,te.default.vErrors))})):(t.assign((0,ee._)(j||(j=G(["",".errors"])),r),te.default.vErrors),i.unevaluated&&function(e){var t=e.gen,n=e.evaluated,r=e.props,a=e.items;r instanceof ee.Name&&t.assign((0,ee._)(I||(I=G(["",".props"])),n),r);a instanceof ee.Name&&t.assign((0,ee._)(N||(N=G(["",".items"])),n),a)}(e),t.return((0,ee._)(P||(P=G([""," === 0"])),te.default.errors)))}(e)}))}(e):ie(e,(function(){return(0,K.topBoolOrEmptySchema)(e)}))};var ve=function(){function e(t,n,r){if(z(this,e),(0,X.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,re.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",_e(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,X.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(n.schemaType)));("code"in n?n.trackErrors:!1!==n.errors)&&(this.errsCount=t.gen.const("_errs",te.default.errors))}return q(e,[{key:"result",value:function(e,t,n){this.failResult((0,ee.not)(e),t,n)}},{key:"failResult",value:function(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(e,t){this.failResult((0,ee.not)(e),void 0,t)}},{key:"fail",value:function(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(e){if(!this.$data)return this.fail(e);var t=this.schemaCode;this.fail((0,ee._)(D||(D=G([""," !== undefined && (",")"])),t,(0,ee.or)(this.invalid$data(),e)))}},{key:"error",value:function(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}},{key:"_error",value:function(e,t){(e?ae.reportExtraError:ae.reportError)(this,this.def.error,t)}},{key:"$dataError",value:function(){(0,ae.reportError)(this,this.def.$dataError||ae.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ae.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(e){this.allErrors||this.gen.if(e)}},{key:"setParams",value:function(e,t){t?Object.assign(this.params,e):this.params=e}},{key:"block$data",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee.nil;this.gen.block((function(){n.check$data(e,r),t()}))}},{key:"check$data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee.nil;if(this.$data){var n=this.gen,r=this.schemaCode,a=this.schemaType,i=this.def;n.if((0,ee.or)((0,ee._)(L||(L=G([""," === undefined"])),r),t)),e!==ee.nil&&n.assign(e,!0),(a.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&n.assign(e,!1)),n.else()}}},{key:"invalid$data",value:function(){var e=this.gen,t=this.schemaCode,n=this.schemaType,r=this.def,a=this.it;return(0,ee.or)(function(){if(n.length){if(!(t instanceof ee.Name))throw new Error("ajv implementation error");var e=Array.isArray(n)?n:[n];return(0,ee._)(B||(B=G(["",""])),(0,J.checkDataTypes)(e,t,a.opts.strictNumbers,J.DataType.Wrong))}return ee.nil}(),function(){if(r.validateSchema){var n=e.scopeValue("validate$data",{ref:r.validateSchema});return(0,ee._)(F||(F=G(["!","(",")"])),n,t)}return ee.nil}())}},{key:"subschema",value:function(e,t){var n=(0,Q.getSubschema)(this.it,e);(0,Q.extendSubschemaData)(n,this.it,e),(0,Q.extendSubschemaMode)(n,e);var r=H(H(H({},this.it),n),{},{items:void 0,props:void 0});return se(r,t),r}},{key:"mergeEvaluated",value:function(e,t){var n=this.it,r=this.gen;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=re.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=re.mergeEvaluated.items(r,e.items,n.items,t)))}},{key:"mergeValidEvaluated",value:function(e,t){var n=this,r=this.it,a=this.gen;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return a.if(t,(function(){return n.mergeEvaluated(e,ee.Name)})),!0}}]),e}();function ge(e,t,n,r){var a=new ve(e,n,t);"code"in n?n.code(a,r):a.$data&&n.validate?(0,X.funcKeywordCode)(a,n):"macro"in n?(0,X.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,X.funcKeywordCode)(a,n)}t.KeywordCxt=ve;var xe=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _e(e,t){var n,r,a=t.dataLevel,i=t.dataNames,o=t.dataPathArr;if(""===e)return te.default.rootData;if("/"===e[0]){if(!xe.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));n=e,r=te.default.rootData}else{var s=we.exec(e);if(!s)throw new Error("Invalid JSON-pointer: ".concat(e));var c=+s[1];if("#"===(n=s[2])){if(c>=a)throw new Error(h("property/index",c));return o[a-c]}if(c>a)throw new Error(h("data",c));if(r=i[a-c],!n)return r}var u,f=r,d=n.split("/"),l=W(d);try{for(l.s();!(u=l.n()).done;){var p=u.value;p&&(r=(0,ee._)(U||(U=G(["","",""])),r,(0,ee.getProperty)((0,re.unescapeJsonPointer)(p))),f=(0,ee._)(V||(V=G([""," && ",""])),f,r))}}catch(b){l.e(b)}finally{l.f()}return f;function h(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(a)}}t.getData=_e},function(e,t,n){"use strict";var r,a,i,o,s,c,u,f,d,l,p,h,b,y,m,v,g,x,w,_,k,E,S,T,O,M=n(66).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var A=n(63),C=n(80),j=n(257);function P(e,t){var n=e.const("err",t);e.if((0,A._)(y||(y=M([""," === null"])),j.default.vErrors),(function(){return e.assign(j.default.vErrors,(0,A._)(m||(m=M(["[","]"])),n))}),(0,A._)(v||(v=M(["",".push(",")"])),j.default.vErrors,n)),e.code((0,A._)(g||(g=M(["","++"])),j.default.errors))}function I(e,t){var n=e.gen,r=e.validateName;e.schemaEnv.$async?n.throw((0,A._)(x||(x=M(["new ","(",")"])),e.ValidationError,t)):(n.assign((0,A._)(w||(w=M(["",".errors"])),r),t),n.return(!1))}t.keywordError={message:function(e){var t=e.keyword;return(0,A.str)(r||(r=M(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:function(e){var t=e.keyword,n=e.schemaType;return n?(0,A.str)(a||(a=M(['"','" keyword must be '," ($data)"])),t,n):(0,A.str)(i||(i=M(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=e.it,s=i.gen,c=i.compositeRule,u=i.allErrors,f=R(e,n,r);(null!==a&&void 0!==a?a:c||u)?P(s,f):I(i,(0,A._)(o||(o=M(["[","]"])),f))},t.reportExtraError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,a=e.it,i=a.gen,o=a.compositeRule,s=a.allErrors,c=R(e,n,r);P(i,c),o||s||I(a,j.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(j.default.errors,t),e.if((0,A._)(s||(s=M([""," !== null"])),j.default.vErrors),(function(){return e.if(t,(function(){return e.assign((0,A._)(c||(c=M(["",".length"])),j.default.vErrors),t)}),(function(){return e.assign(j.default.vErrors,null)}))}))},t.extendErrors=function(e){var t=e.gen,n=e.keyword,r=e.schemaValue,a=e.data,i=e.errsCount,o=e.it;if(void 0===i)throw new Error("ajv implementation error");var s=t.name("err");t.forRange("i",i,j.default.errors,(function(e){t.const(s,(0,A._)(u||(u=M(["","[","]"])),j.default.vErrors,e)),t.if((0,A._)(f||(f=M(["",".instancePath === undefined"])),s),(function(){return t.assign((0,A._)(d||(d=M(["",".instancePath"])),s),(0,A.strConcat)(j.default.instancePath,o.errorPath))})),t.assign((0,A._)(l||(l=M(["",".schemaPath"])),s),(0,A.str)(p||(p=M(["","/",""])),o.errSchemaPath,n)),o.opts.verbose&&(t.assign((0,A._)(h||(h=M(["",".schema"])),s),r),t.assign((0,A._)(b||(b=M(["",".data"])),s),a))}))};var N={keyword:new A.Name("keyword"),schemaPath:new A.Name("schemaPath"),params:new A.Name("params"),propertyName:new A.Name("propertyName"),message:new A.Name("message"),schema:new A.Name("schema"),parentSchema:new A.Name("parentSchema")};function R(e,t,n){return!1===e.it.createErrors?(0,A._)(_||(_=M(["{}"]))):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.gen,a=[D(e.it,n),L(e,n)];return B(e,t,a),r.object.apply(r,a)}(e,t,n)}function D(e,t){var n=e.errorPath,r=t.instancePath,a=r?(0,A.str)(k||(k=M(["","",""])),n,(0,C.getErrorPath)(r,C.Type.Str)):n;return[j.default.instancePath,(0,A.strConcat)(j.default.instancePath,a)]}function L(e,t){var n=e.keyword,r=e.it.errSchemaPath,a=t.schemaPath,i=t.parentSchema?r:(0,A.str)(E||(E=M(["","/",""])),r,n);return a&&(i=(0,A.str)(S||(S=M(["","",""])),i,(0,C.getErrorPath)(a,C.Type.Str))),[N.schemaPath,i]}function B(e,t,n){var r=t.params,a=t.message,i=e.keyword,o=e.data,s=e.schemaValue,c=e.it,u=c.opts,f=c.propertyName,d=c.topSchemaRef,l=c.schemaPath;n.push([N.keyword,i],[N.params,"function"==typeof r?r(e):r||(0,A._)(T||(T=M(["{}"])))]),u.messages&&n.push([N.message,"function"==typeof a?a(e):a]),u.verbose&&n.push([N.schema,s],[N.parentSchema,(0,A._)(O||(O=M(["","",""])),d,l)],[j.default.data,o]),f&&n.push([N.propertyName,f])}},function(e,t,n){"use strict";var r,a,i=n(66).default,o=n(122).default,s=n(126).default,c=n(62).default,u=n(65).default,f=n(34).default,d=n(33).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;var l=f((function e(){d(this,e)}));t._CodeOrName=l,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var p=function(e){c(r,e);var n=u(r);function r(e){var a;if(d(this,r),a=n.call(this),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");return a.str=e,a}return f(r,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return s({},this.str,1)}}]),r}(l);t.Name=p;var h=function(e){c(n,e);var t=u(n);function n(e){var r;return d(this,n),(r=t.call(this))._items="string"===typeof e?[e]:e,r}return f(n,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var e=this._items[0];return""===e||'""'===e}},{key:"str",get:function(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((function(e,t){return"".concat(e).concat(t)}),"")}},{key:"names",get:function(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((function(e,t){return t instanceof p&&(e[t.str]=(e[t.str]||0)+1),e}),{})}}]),n}(l);function b(e){for(var t=[e[0]],n=0,r=arguments.length,a=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&!(0===O.length&&1===t.length&&(0,U.schemaHasRulesForType)(e,t[0]));if(M){var A=K(t,S,T.strictNumbers,B.Wrong);n.if(A,(function(){O.length?function(e,t,n){var S=e.gen,T=e.data,O=e.opts,M=S.let("dataType",(0,H._)(r||(r=L(["typeof ",""])),T)),A=S.let("coerced",(0,H._)(a||(a=L(["undefined"]))));"array"===O.coerceTypes&&S.if((0,H._)(i||(i=L([""," == 'object' && Array.isArray(",") && ",".length == 1"])),M,T,T),(function(){return S.assign(T,(0,H._)(o||(o=L(["","[0]"])),T)).assign(M,(0,H._)(s||(s=L(["typeof ",""])),T)).if(K(t,T,O.strictNumbers),(function(){return S.assign(A,T)}))}));S.if((0,H._)(c||(c=L([""," !== undefined"])),A));var C,j=D(n);try{for(j.s();!(C=j.n()).done;){var P=C.value;(W.has(P)||"array"===P&&"array"===O.coerceTypes)&&I(P)}}catch(N){j.e(N)}finally{j.f()}function I(e){switch(e){case"string":return void S.elseIf((0,H._)(f||(f=L(["",' == "number" || ',' == "boolean"'])),M,M)).assign(A,(0,H._)(d||(d=L(['"" + ',""])),T)).elseIf((0,H._)(l||(l=L([""," === null"])),T)).assign(A,(0,H._)(p||(p=L(['""']))));case"number":return void S.elseIf((0,H._)(h||(h=L(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),M,T,M,T,T,T)).assign(A,(0,H._)(b||(b=L(["+",""])),T));case"integer":return void S.elseIf((0,H._)(y||(y=L(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),M,T,M,T,T,T,T)).assign(A,(0,H._)(m||(m=L(["+",""])),T));case"boolean":return void S.elseIf((0,H._)(v||(v=L(["",' === "false" || '," === 0 || "," === null"])),T,T,T)).assign(A,!1).elseIf((0,H._)(g||(g=L(["",' === "true" || '," === 1"])),T,T)).assign(A,!0);case"null":return S.elseIf((0,H._)(x||(x=L(["",' === "" || '," === 0 || "," === false"])),T,T,T)),void S.assign(A,null);case"array":S.elseIf((0,H._)(w||(w=L(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),M,M,M,T)).assign(A,(0,H._)(_||(_=L(["[","]"])),T))}}S.else(),Y(e),S.endIf(),S.if((0,H._)(u||(u=L([""," !== undefined"])),A),(function(){S.assign(T,A),function(e,t){var n=e.gen,r=e.parentData,a=e.parentDataProperty;n.if((0,H._)(k||(k=L([""," !== undefined"])),r),(function(){return n.assign((0,H._)(E||(E=L(["","[","]"])),r,a),t)}))}(e,A)}))}(e,t,O):Y(e)}))}return M};var W=new Set(["string","number","integer","boolean","null"]);function G(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B.Correct,i=a===B.Correct?H.operators.EQ:H.operators.NEQ;switch(e){case"null":return(0,H._)(S||(S=L([""," "," null"])),t,i);case"array":r=(0,H._)(T||(T=L(["Array.isArray(",")"])),t);break;case"object":r=(0,H._)(O||(O=L([""," && typeof ",' == "object" && !Array.isArray(',")"])),t,t,t);break;case"integer":r=o((0,H._)(M||(M=L(["!("," % 1) && !isNaN(",")"])),t,t));break;case"number":r=o();break;default:return(0,H._)(A||(A=L(["typeof "," "," ",""])),t,i,e)}return a===B.Correct?r:(0,H.not)(r);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H.nil;return(0,H.and)((0,H._)(C||(C=L(["typeof ",' == "number"'])),t),e,n?(0,H._)(j||(j=L(["isFinite(",")"])),t):H.nil)}}function K(e,t,n,r){if(1===e.length)return G(e[0],t,n,r);var a,i=(0,z.toHash)(e);if(i.array&&i.object){var o=(0,H._)(P||(P=L(["typeof ",' != "object"'])),t);a=i.null?o:(0,H._)(I||(I=L(["!"," || ",""])),t,o),delete i.null,delete i.array,delete i.object}else a=H.nil;for(var s in i.number&&delete i.integer,i)a=(0,H.and)(a,G(s,t,n,r));return a}t.checkDataType=G,t.checkDataTypes=K;var $={message:function(e){var t=e.schema;return"must be ".concat(t)},params:function(e){var t=e.schema,n=e.schemaValue;return"string"==typeof t?(0,H._)(N||(N=L(["{type: ","}"])),t):(0,H._)(R||(R=L(["{type: ","}"])),n)}};function Y(e){var t=function(e){var t=e.gen,n=e.data,r=e.schema,a=(0,z.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:a,schemaValue:a,parentSchema:r,params:{},it:e}}(e);(0,V.reportError)(t,$)}t.reportTypeError=Y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;var r=n(80),a=n(964),i=n(2007),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};var s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(var t in e){if(s.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function u(e){var t=0;for(var n in e){if("$ref"===n)return 1/0;if(t++,!o.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(function(e){return t+=u(e)})),t===1/0))return 1/0}return t}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;!1!==n&&(t=p(t));var r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=f,t._getFullPath=d;var l=/#\/?$/;function p(e){return e?e.replace(l,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};var h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){var n=this;if("boolean"==typeof e)return{};var r=this.opts,o=r.schemaId,s=r.uriResolver,c=p(e[o]||t),u={"":c},d=f(s,c,!1),l={},b=new Set;return i(e,{allKeys:!0},(function(e,t,r,a){if(void 0!==a){var i=d+t,s=u[a];"string"==typeof e[o]&&(s=c.call(n,e[o])),f.call(n,e.$anchor),f.call(n,e.$dynamicAnchor),u[t]=s}function c(t){var n=this.opts.uriResolver.resolve;if(t=p(s?n(s,t):t),b.has(t))throw m(t);b.add(t);var r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?y(e,r.schema,t):t!==p(i)&&("#"===t[0]?(y(e,l[t],t),l[t]=e):this.refs[t]=i),t}function f(e){if("string"==typeof e){if(!h.test(e))throw new Error('invalid anchor "'.concat(e,'"'));c.call(this,"#".concat(e))}}})),l;function y(e,t,n){if(void 0!==t&&!a(e,t))throw m(n)}function m(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}}},function(e,t,n){"use strict";function r(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return null===t?null:[t[1],t[2],t[3]].map((function(e){return parseInt(e,16)}))}function a(e,t,n){return t/=255,n/=255,e=(e/=255)>.04045?Math.pow((e+.005)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.005)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.005)/1.055,2.4):n/12.92,[.4124*(e*=100)+.3576*(t*=100)+.1805*(n*=100),.2126*e+.7152*t+.0722*n,.0193*e+.1192*t+.9505*n]}function i(e,t,n){return t/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(e-t),200*(t-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]}function o(e,t,n){var r=a(e,t,n);return i(r[0],r[1],r[2])}function s(e,t){var n=e[0],r=e[1],a=e[2],i=t[0],o=t[1],s=t[2],c=n-i,u=r-o,f=a-s,d=Math.sqrt(r*r+a*a),l=i-n,p=Math.sqrt(o*o+s*s)-d,h=Math.sqrt(c*c+u*u+f*f),b=Math.sqrt(h)>Math.sqrt(Math.abs(l))+Math.sqrt(Math.abs(p))?Math.sqrt(h*h-l*l-p*p):0;return l/=1,p/=1*(1+.045*d),b/=1*(1+.015*d),Math.sqrt(l*l+p*p+b*b)}function c(e,t){return s(o.apply(void 0,e),o.apply(void 0,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.getColorIndex=t.getColorDiffStatus=t.hexDiff=t.rgbDiff=t.deltaE94=t.rgbToCIELab=t.xyzToCIELab=t.rgbToXyz=t.hslToRgb=t.rgbToHsl=t.rgbToHex=t.hexToRgb=t.defer=t.RSHIFT=t.SIGBITS=t.DELTAE94_DIFF_STATUS=void 0,t.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},t.SIGBITS=5,t.RSHIFT=8-t.SIGBITS,t.defer=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}},t.hexToRgb=r,t.rgbToHex=function(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1,7)},t.rgbToHsl=function(e,t,n){e/=255,t/=255,n/=255;var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=(i+o)/2;if(i===o)r=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:r=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===t)r=a=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return[255*r,255*a,255*i]},t.rgbToXyz=a,t.xyzToCIELab=i,t.rgbToCIELab=o,t.deltaE94=s,t.rgbDiff=c,t.hexDiff=function(e,t){return c(r(e),r(t))},t.getColorDiffStatus=function(e){return e0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(b.a),m=n(210),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,a=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(b.a),k=n(397),E=n(60),S=n(26),T=n(154),O=n(295),M=n(165),A=n(146);function C(e){return!!e&&(e instanceof r.a||"function"===typeof e.lift&&"function"===typeof e.subscribe)}var j=n(190),P=n(206),I=n(178),N=n(299),R=n(482),D=n(98),L=n(348),B=n(85),F=n(102);function U(e,t,n){if(t){if(!Object(F.a)(t))return function(){for(var r=[],a=0;a1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function re(e,t,n,r,a){var i;if(function(e){return e&&"function"===typeof e.addEventListener&&"function"===typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,a),i=function(){return o.removeEventListener(t,n,a)}}else if(function(e){return e&&"function"===typeof e.on&&"function"===typeof e.off}(e)){var s=e;e.on(t,n),i=function(){return s.off(t,n)}}else if(function(e){return e&&"function"===typeof e.addListener&&"function"===typeof e.removeListener}(e)){var c=e;e.addListener(t,n),i=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,f=e.length;u=t){r.complete();break}if(r.next(i++),r.closed)break}}))}function Ee(e){var t=e.start,n=e.index,r=e.count,a=e.subscriber;n>=r?a.complete():(a.next(t),a.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Se=n(338),Te=n(486);function Oe(e,t){return new r.a((function(n){var r,a;try{r=e()}catch(o){return void n.error(o)}try{a=t(r)}catch(o){return void n.error(o)}var i=(a?Object(X.a)(a):J.a).subscribe(n);return function(){i.unsubscribe(),r&&r.unsubscribe()}}))}var Me=n(342),Ae=n(492),Ce=n(141)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(6);function a(e){e=atob(e);for(var t=[],n=0;n1&&"number"===typeof e[e.length-1]&&(n=e.pop())):"number"===typeof c&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.a?e[0]:Object(i.a)(n)(Object(o.a)(e,s))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(7),a=n(85),i=n(209),o=n(152),s=n(140);function c(){for(var e=[],t=0;t0&&void 0!==n[0]?n[0]:this.url,e.next=3,this.register(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(){var t=this;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){"undefined"!==typeof t.socket?(t.socket.onclose=function(n){t.onClose(n),e()},t.socket.close()):n(new Error("Connection already closed"))})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=Object(a.a)(Object(r.a)().mark((function e(t,n){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!==typeof this.socket){e.next=4;break}return e.next=3,this.register();case 3:this.socket=e.sent;case 4:try{this.socket.send(Object(c.b)(t))}catch(n){this.onError(t.id,n)}case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"register",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!Object(u.isWsUrl)(t))throw new Error("Provided URL is not compatible with WebSocket connection: ".concat(t));if(this.registering){var n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((function(t,n){e.events.once("register_error",(function(t){e.resetMaxListeners(),n(t)})),e.events.once("open",(function(){if(e.resetMaxListeners(),"undefined"===typeof e.socket)return n(new Error("WebSocket connection is missing or invalid"));t(e.socket)}))}))}return this.url=t,this.registering=!0,new Promise((function(n,r){var a=Object(u.isReactNative)()?void 0:{rejectUnauthorized:!Object(u.isLocalhostUrl)(t)},i=new d(t,[],a);f()?i.onerror=function(t){var n=t;r(e.emitError(n.error))}:i.on("error",(function(t){r(e.emitError(t))})),i.onopen=function(){e.onOpen(i),n(i)}}))}},{key:"onOpen",value:function(e){var t=this;e.onmessage=function(e){return t.onPayload(e)},e.onclose=function(e){return t.onClose(e)},this.socket=e,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}},{key:"onPayload",value:function(e){if("undefined"!==typeof e.data){var t="string"===typeof e.data?Object(c.a)(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var n=this.parseError(t),r=n.message||n.toString(),a=Object(u.formatJsonRpcError)(e,r);this.events.emit("payload",a)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return Object(u.parseConnectionError)(e,t,"WS")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}},{key:"emitError",value:function(e){var t=this.parseError(new Error((null===e||void 0===e?void 0:e.message)||"WebSocket connection failed for URL: ".concat(this.url)));return this.events.emit("register_error",t),t}}]),e}();t.a=l}).call(this,n(52))},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t=0)return a(e,t,t);var n=Math.abs(t),r=a(e,n,n);return"string"===typeof r?"-"+r:-1*r},d=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return r({},e,((n={})[t]=f,n))}),{}),l=function(e){return function(t){var n={},r=a(t,"breakpoints",i),o=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var s in e){var c="function"===typeof e[s]?e[s](t):e[s];if(null!=c)if(Array.isArray(c))for(var u=0;u256||t[2]&&t[2]!==String(r))&&b.throwArgumentError("invalid numeric width","type",e);var a=x.mask(n?r-1:r),i=n?a.add(g).mul(m):v;return function(t){var n=s.a.from(t);return(n.lt(i)||n.gt(a))&&b.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(c.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var f=e.match(/^bytes(\d+)$/);if(f){var d=parseInt(f[1]);return(0===d||d>32||f[1]!==String(d))&&b.throwArgumentError("invalid bytes width","type",e),function(t){return Object(c.arrayify)(t).length!==d&&b.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(c.arrayify)(e),n=t.length%32;return n?Object(c.hexConcat)([t,y.slice(n)]):Object(c.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return Object(c.hexZeroPad)(Object(o.getAddress)(e),32)};case"bool":return function(e){return e?w:_};case"bytes":return function(e){return Object(u.keccak256)(e)};case"string":return function(e){return Object(p.a)(e)}}return null}function M(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var A=function(){function e(t){Object(a.a)(this,e),Object(f.defineReadOnly)(this,"types",Object.freeze(Object(f.deepCopy)(t))),Object(f.defineReadOnly)(this,"_encoderCache",{}),Object(f.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]&&b.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&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),O(o)||(r[o]||b.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),r[o].push(e),n[e][o]=!0)}))};for(var s in t)o(s);var c=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var u in 0===c.length?b.throwArgumentError("missing primary type","types",t):c.length>1&&b.throwArgumentError("ambiguous primary types or unused types: ".concat(c.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),Object(f.defineReadOnly)(this,"primaryType",c[0]),function e(a,o){o[a]&&b.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 d=Object.keys(i[u]);d.sort(),this._types[u]=M(u,t[u])+d.map((function(e){return M(e,t[e])})).join("")}}return Object(i.a)(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=O(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&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(i);return t._types[a]&&(n=n.map(u.keccak256)),Object(u.keccak256)(Object(c.hexConcat)(n))}}var s=this.types[e];if(s){var f=Object(p.a)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,a=n.type,i=t.getEncoder(a)(e[r]);return t._types[a]?Object(u.keccak256)(i):i}));return n.unshift(f),Object(c.hexConcat)(n)}}return b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||b.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 Object(u.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(O(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&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(i,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,a){var i=a.name,o=a.type;return e[i]=r._visit(o,t[i],n),e}),{}):b.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||b.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 E.indexOf(e.name)-E.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return Object(c.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return Object(u.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,a,i){return h(this,void 0,void 0,Object(r.a)().mark((function o(){var s,u,d;return Object(r.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=Object(f.shallowCopy)(t),s={},t.verifyingContract&&!Object(c.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(n)).visit(a,(function(e,t){return"address"!==e||Object(c.isHexString)(t,20)||(s[t]="0x"),t})),o.t0=Object(r.a)().keys(s);case 6:if((o.t1=o.t0()).done){o.next=13;break}return d=o.t1.value,o.next=10,i(d);case 10:s[d]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),a=u.visit(a,(function(e,t){return"address"===e&&s[t]?s[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=[];E.forEach((function(e){var n=t[e];null!=n&&(a[e]=T[e](n),i.push({name:e,type:k[e]}))}));var o=e.from(n),u=Object(f.shallowCopy)(n);return u.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):u.EIP712Domain=i,o.encode(r),{types:u,domain:a,primaryType:o.primaryType,message:o.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(c.hexlify)(Object(c.arrayify)(t));if(e.match(/^u?int/))return s.a.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&b.throwArgumentError("invalid string","value",t),t}return b.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="hash/5.6.1"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="0x0000000000000000000000000000000000000000000000000000000000000000"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(7),a=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n(60).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){for(var n=0,r=e.length;np)&&(F=(H=H.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0i&&a(t[o-1]);)--o;return t.slice(i,o).join("\n")}function a(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),a=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],o="\\"===e[e.length-1],s=!r||i||o||n,c="";return!s||r&&a||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";var r=n(2e3),a=n(2001),i=n(646);e.exports={formats:i,parse:a,stringify:r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="6.19.7"},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(52))},function(e,t,n){"use strict";(function(e){var r=n(115),a=n(1029),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||a.a;t.a=c}).call(this,n(335)(e))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n(22),a=n(24);function i(e,t){var n=t,i=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new a.a("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new a.a(41);"FragmentDefinition"===e.kind&&i.push(e)})),"undefined"===typeof n&&(__DEV__?Object(a.b)(1===i.length,"Found ".concat(i.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Object(a.b)(1===i.length,42),n=i[0].name.value),Object(r.a)(Object(r.a)({},e),{definitions:Object(r.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function o(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Object(a.b)(n,"No fragment named ".concat(e.name.value,".")):Object(a.b)(n,43),n;default:return null}}},function(e,t,n){"use strict";n.r(t);var r=n(21),a=n(1),i=n(509),o=n(109);var s=function(){function e(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.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=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}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t=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)},m=n(508),v=n(510),g=/[A-Z]|^ms/g,x=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w=function(e){return 45===e.charCodeAt(1)},_=function(e){return null!=e&&"boolean"!==typeof e},k=Object(v.a)((function(e){return w(e)?e:e.replace(g,"-$&").toLowerCase()})),E=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(x,(function(e,t,n){return T={name:t,styles:n,next:T},t}))}return 1===m.a[e]||w(e)||"number"!==typeof t||0===t?t:t+"px"};function S(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return T={name:n.name,styles:n.styles,next:T},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)T={name:a.name,styles:a.styles,next:T},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?R:D};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t>16&1),n[s-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);var c=n[15]>>16&1;n[14]&=65535,y(r,n,1-c)}for(var u=0;u<16;u++)e[2*u]=255&r[u],e[2*u+1]=r[u]>>8}function v(e,t){for(var n=0,r=0;r<32;r++)n|=e[r]^t[r];return(1&n-1>>>8)-1}function g(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return m(n,e),m(r,t),v(n,r)}function x(e){var t=new Uint8Array(32);return m(t,e),1&t[0]}function w(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function _(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function k(e,t,n){var r,a,i=0,o=0,s=0,c=0,u=0,f=0,d=0,l=0,p=0,h=0,b=0,y=0,m=0,v=0,g=0,x=0,w=0,_=0,k=0,E=0,S=0,T=0,O=0,M=0,A=0,C=0,j=0,P=0,I=0,N=0,R=0,D=n[0],L=n[1],B=n[2],F=n[3],U=n[4],V=n[5],H=n[6],z=n[7],q=n[8],W=n[9],G=n[10],K=n[11],$=n[12],Y=n[13],J=n[14],Z=n[15];i+=(r=t[0])*D,o+=r*L,s+=r*B,c+=r*F,u+=r*U,f+=r*V,d+=r*H,l+=r*z,p+=r*q,h+=r*W,b+=r*G,y+=r*K,m+=r*$,v+=r*Y,g+=r*J,x+=r*Z,o+=(r=t[1])*D,s+=r*L,c+=r*B,u+=r*F,f+=r*U,d+=r*V,l+=r*H,p+=r*z,h+=r*q,b+=r*W,y+=r*G,m+=r*K,v+=r*$,g+=r*Y,x+=r*J,w+=r*Z,s+=(r=t[2])*D,c+=r*L,u+=r*B,f+=r*F,d+=r*U,l+=r*V,p+=r*H,h+=r*z,b+=r*q,y+=r*W,m+=r*G,v+=r*K,g+=r*$,x+=r*Y,w+=r*J,_+=r*Z,c+=(r=t[3])*D,u+=r*L,f+=r*B,d+=r*F,l+=r*U,p+=r*V,h+=r*H,b+=r*z,y+=r*q,m+=r*W,v+=r*G,g+=r*K,x+=r*$,w+=r*Y,_+=r*J,k+=r*Z,u+=(r=t[4])*D,f+=r*L,d+=r*B,l+=r*F,p+=r*U,h+=r*V,b+=r*H,y+=r*z,m+=r*q,v+=r*W,g+=r*G,x+=r*K,w+=r*$,_+=r*Y,k+=r*J,E+=r*Z,f+=(r=t[5])*D,d+=r*L,l+=r*B,p+=r*F,h+=r*U,b+=r*V,y+=r*H,m+=r*z,v+=r*q,g+=r*W,x+=r*G,w+=r*K,_+=r*$,k+=r*Y,E+=r*J,S+=r*Z,d+=(r=t[6])*D,l+=r*L,p+=r*B,h+=r*F,b+=r*U,y+=r*V,m+=r*H,v+=r*z,g+=r*q,x+=r*W,w+=r*G,_+=r*K,k+=r*$,E+=r*Y,S+=r*J,T+=r*Z,l+=(r=t[7])*D,p+=r*L,h+=r*B,b+=r*F,y+=r*U,m+=r*V,v+=r*H,g+=r*z,x+=r*q,w+=r*W,_+=r*G,k+=r*K,E+=r*$,S+=r*Y,T+=r*J,O+=r*Z,p+=(r=t[8])*D,h+=r*L,b+=r*B,y+=r*F,m+=r*U,v+=r*V,g+=r*H,x+=r*z,w+=r*q,_+=r*W,k+=r*G,E+=r*K,S+=r*$,T+=r*Y,O+=r*J,M+=r*Z,h+=(r=t[9])*D,b+=r*L,y+=r*B,m+=r*F,v+=r*U,g+=r*V,x+=r*H,w+=r*z,_+=r*q,k+=r*W,E+=r*G,S+=r*K,T+=r*$,O+=r*Y,M+=r*J,A+=r*Z,b+=(r=t[10])*D,y+=r*L,m+=r*B,v+=r*F,g+=r*U,x+=r*V,w+=r*H,_+=r*z,k+=r*q,E+=r*W,S+=r*G,T+=r*K,O+=r*$,M+=r*Y,A+=r*J,C+=r*Z,y+=(r=t[11])*D,m+=r*L,v+=r*B,g+=r*F,x+=r*U,w+=r*V,_+=r*H,k+=r*z,E+=r*q,S+=r*W,T+=r*G,O+=r*K,M+=r*$,A+=r*Y,C+=r*J,j+=r*Z,m+=(r=t[12])*D,v+=r*L,g+=r*B,x+=r*F,w+=r*U,_+=r*V,k+=r*H,E+=r*z,S+=r*q,T+=r*W,O+=r*G,M+=r*K,A+=r*$,C+=r*Y,j+=r*J,P+=r*Z,v+=(r=t[13])*D,g+=r*L,x+=r*B,w+=r*F,_+=r*U,k+=r*V,E+=r*H,S+=r*z,T+=r*q,O+=r*W,M+=r*G,A+=r*K,C+=r*$,j+=r*Y,P+=r*J,I+=r*Z,g+=(r=t[14])*D,x+=r*L,w+=r*B,_+=r*F,k+=r*U,E+=r*V,S+=r*H,T+=r*z,O+=r*q,M+=r*W,A+=r*G,C+=r*K,j+=r*$,P+=r*Y,I+=r*J,N+=r*Z,x+=(r=t[15])*D,o+=38*(_+=r*B),s+=38*(k+=r*F),c+=38*(E+=r*U),u+=38*(S+=r*V),f+=38*(T+=r*H),d+=38*(O+=r*z),l+=38*(M+=r*q),p+=38*(A+=r*W),h+=38*(C+=r*G),b+=38*(j+=r*K),y+=38*(P+=r*$),m+=38*(I+=r*Y),v+=38*(N+=r*J),g+=38*(R+=r*Z),i=(r=(i+=38*(w+=r*L))+(a=1)+65535)-65536*(a=Math.floor(r/65536)),o=(r=o+a+65535)-65536*(a=Math.floor(r/65536)),s=(r=s+a+65535)-65536*(a=Math.floor(r/65536)),c=(r=c+a+65535)-65536*(a=Math.floor(r/65536)),u=(r=u+a+65535)-65536*(a=Math.floor(r/65536)),f=(r=f+a+65535)-65536*(a=Math.floor(r/65536)),d=(r=d+a+65535)-65536*(a=Math.floor(r/65536)),l=(r=l+a+65535)-65536*(a=Math.floor(r/65536)),p=(r=p+a+65535)-65536*(a=Math.floor(r/65536)),h=(r=h+a+65535)-65536*(a=Math.floor(r/65536)),b=(r=b+a+65535)-65536*(a=Math.floor(r/65536)),y=(r=y+a+65535)-65536*(a=Math.floor(r/65536)),m=(r=m+a+65535)-65536*(a=Math.floor(r/65536)),v=(r=v+a+65535)-65536*(a=Math.floor(r/65536)),g=(r=g+a+65535)-65536*(a=Math.floor(r/65536)),x=(r=x+a+65535)-65536*(a=Math.floor(r/65536)),i=(r=(i+=a-1+37*(a-1))+(a=1)+65535)-65536*(a=Math.floor(r/65536)),o=(r=o+a+65535)-65536*(a=Math.floor(r/65536)),s=(r=s+a+65535)-65536*(a=Math.floor(r/65536)),c=(r=c+a+65535)-65536*(a=Math.floor(r/65536)),u=(r=u+a+65535)-65536*(a=Math.floor(r/65536)),f=(r=f+a+65535)-65536*(a=Math.floor(r/65536)),d=(r=d+a+65535)-65536*(a=Math.floor(r/65536)),l=(r=l+a+65535)-65536*(a=Math.floor(r/65536)),p=(r=p+a+65535)-65536*(a=Math.floor(r/65536)),h=(r=h+a+65535)-65536*(a=Math.floor(r/65536)),b=(r=b+a+65535)-65536*(a=Math.floor(r/65536)),y=(r=y+a+65535)-65536*(a=Math.floor(r/65536)),m=(r=m+a+65535)-65536*(a=Math.floor(r/65536)),v=(r=v+a+65535)-65536*(a=Math.floor(r/65536)),g=(r=g+a+65535)-65536*(a=Math.floor(r/65536)),x=(r=x+a+65535)-65536*(a=Math.floor(r/65536)),i+=a-1+37*(a-1),e[0]=i,e[1]=o,e[2]=s,e[3]=c,e[4]=u,e[5]=f,e[6]=d,e[7]=l,e[8]=p,e[9]=h,e[10]=b,e[11]=y,e[12]=m,e[13]=v,e[14]=g,e[15]=x}function E(e,t){k(e,t,t)}function S(e,t){var n,r=o();for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)E(r,r),2!==n&&4!==n&&k(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function T(e,t){var n=o(),r=o(),a=o(),i=o(),s=o(),c=o(),u=o(),d=o(),l=o();_(n,e[1],e[0]),_(l,t[1],t[0]),k(n,n,l),w(r,e[0],e[1]),w(l,t[0],t[1]),k(r,r,l),k(a,e[3],t[3]),k(a,a,f),k(i,e[2],t[2]),w(i,i,i),_(s,r,n),_(c,i,a),w(u,i,a),w(d,r,n),k(e[0],s,c),k(e[1],d,u),k(e[2],u,c),k(e[3],s,d)}function O(e,t,n){for(var r=0;r<4;r++)y(e[r],t[r],n)}function M(e,t){var n=o(),r=o(),a=o();S(a,t[2]),k(n,t[0],a),k(r,t[1],a),m(e,r),e[31]^=x(n)<<7}function A(e,t,n){h(e[0],s),h(e[1],c),h(e[2],c),h(e[3],s);for(var r=255;r>=0;--r){var a=n[r/8|0]>>(7&r)&1;O(e,t,a),T(t,e),T(e,e),O(e,t,a)}}function C(e,t){var n=[o(),o(),o(),o()];h(n[0],d),h(n[1],l),h(n[2],c),k(n[3],d,l),A(e,n,t)}function j(e){if(e.length!==t.SEED_LENGTH)throw new Error("ed25519: seed must be ".concat(t.SEED_LENGTH," bytes"));var n=(0,a.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;var r=new Uint8Array(32),i=[o(),o(),o(),o()];C(i,n),M(r,i);var s=new Uint8Array(64);return s.set(e),s.set(r,32),{publicKey:r,secretKey:s}}t.generateKeyPairFromSeed=j,t.generateKeyPair=function(e){var t=(0,r.randomBytes)(32,e),n=j(t);return(0,i.wipe)(t),n},t.extractPublicKeyFromSecretKey=function(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be ".concat(t.SECRET_KEY_LENGTH," bytes"));return new Uint8Array(e.subarray(32))};var P=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function I(e,t){var n,r,a,i;for(r=63;r>=32;--r){for(n=0,a=r-32,i=r-12;a>4)*P[a],n=t[a]>>8,t[a]&=255;for(a=0;a<32;a++)t[a]-=n*P[a];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function N(e){for(var t=new Float64Array(64),n=0;n<64;n++)t[n]=e[n];for(var r=0;r<64;r++)e[r]=0;I(e,t)}function R(e,t){var n=o(),r=o(),a=o(),i=o(),f=o(),d=o(),l=o();return h(e[2],c),function(e,t){for(var n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(e[1],t),E(a,e[1]),k(i,a,u),_(a,a,e[2]),w(i,e[2],i),E(f,i),E(d,f),k(l,d,f),k(n,l,a),k(n,n,i),function(e,t){var n,r=o();for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)E(r,r),1!==n&&k(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(n,n),k(n,n,a),k(n,n,i),k(n,n,i),k(e[0],n,i),E(r,e[0]),k(r,r,i),g(r,a)&&k(e[0],e[0],p),E(r,e[0]),k(r,r,i),g(r,a)?-1:(x(e[0])===t[31]>>7&&_(e[0],s,e[0]),k(e[3],e[0],e[1]),0)}t.sign=function(e,t){var n=new Float64Array(64),r=[o(),o(),o(),o()],i=(0,a.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;var s=new Uint8Array(64);s.set(i.subarray(32),32);var c=new a.SHA512;c.update(s.subarray(32)),c.update(t);var u=c.digest();c.clean(),N(u),C(r,u),M(s,r),c.reset(),c.update(s.subarray(0,32)),c.update(e.subarray(32)),c.update(t);var f=c.digest();N(f);for(var d=0;d<32;d++)n[d]=u[d];for(var l=0;l<32;l++)for(var p=0;p<32;p++)n[l+p]+=f[l]*i[p];return I(s.subarray(32),n),s},t.verify=function(e,n,r){var i=new Uint8Array(32),s=[o(),o(),o(),o()],c=[o(),o(),o(),o()];if(r.length!==t.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be ".concat(t.SIGNATURE_LENGTH," bytes"));if(R(c,e))return!1;var u=new a.SHA512;u.update(r.subarray(0,32)),u.update(e),u.update(n);var f=u.digest();return N(f),A(s,c,f),C(c,r.subarray(32)),T(s,c),M(i,s),!v(r,i)},t.convertPublicKeyToX25519=function(e){var t=[o(),o(),o(),o()];if(R(t,e))throw new Error("Ed25519: invalid public key");var n=o(),r=o(),a=t[1];w(n,c,a),_(r,c,a),S(r,r),k(n,n,r);var i=new Uint8Array(32);return m(i,n),i},t.convertSecretKeyToX25519=function(e){var t=(0,a.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;var n=new Uint8Array(t.subarray(0,32));return(0,i.wipe)(t),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(383),a=n(187);t.DIGEST_LENGTH=32,t.BLOCK_SIZE=64;var i=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){a.wipe(this._buffer),a.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,o=t%64<56?64:128;this._buffer[n]=128;for(var c=n+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){a.wipe(e.state),e.buffer&&a.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA256=i;var o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,a,i){for(;i>=64;){for(var s=t[0],c=t[1],u=t[2],f=t[3],d=t[4],l=t[5],p=t[6],h=t[7],b=0;b<16;b++){var y=a+4*b;e[b]=r.readUint32BE(n,y)}for(b=16;b<64;b++){var m=e[b-2],v=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,g=((m=e[b-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;e[b]=(v+e[b-7]|0)+(g+e[b-16]|0)}for(b=0;b<64;b++){v=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&p)|0)+(h+(o[b]+e[b]|0)|0)|0,g=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&c^s&u^c&u)|0;h=p,p=l,l=d,d=f+v|0,f=u,u=c,c=s,s=v+g|0}t[0]+=s,t[1]+=c,t[2]+=u,t[3]+=f,t[4]+=d,t[5]+=l,t[6]+=p,t[7]+=h,a+=64,i-=64}return a}t.hash=function(e){var t=new i;t.update(e);var n=t.digest();return t.clean(),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f}));var r=n(7),a=n(88),i=n(219),o=n(416),s=n(119),c=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(r.__spread)(t._breadcrumbs),n._tags=Object(r.__assign)({},t._tags),n._extra=Object(r.__assign)({},t._extra),n._contexts=Object(r.__assign)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(r.__spread)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),t._tags),this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),t._extra),this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(a.i)(t)&&(this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),t.tags),this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),t.extra),this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"===typeof t?Math.min(t,100):100;if(n<=0)return this;var a=Object(r.__assign)({timestamp:Object(i.b)()},e);return this._breadcrumbs=Object(r.__spread)(this._breadcrumbs,[a]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(r.__assign)(Object(r.__assign)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(r.__assign)(Object(r.__assign)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(r.__assign)(Object(r.__assign)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(r.__assign)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=Object(r.__assign)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(r.__spread)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(r.__spread)(u(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=Object(r.__assign)(Object(r.__assign)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,i){var s=this;return void 0===i&&(i=0),new o.a((function(o,c){var u=e[i];if(null===t||"function"!==typeof u)o(t);else{var f=u(Object(r.__assign)({},t),n);Object(a.n)(f)?f.then((function(t){return s._notifyEventProcessors(e,t,n,i+1).then(o)})).then(null,c):s._notifyEventProcessors(e,f,n,i+1).then(o).then(null,c)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function u(){return Object(s.b)("globalEventProcessors",(function(){return[]}))}function f(e){u().push(e)}},function(e,t,n){e.exports&&(e.exports=function(e){"use strict";return e.prototype.toFormat=function(e,t,n){if(!this.e&&0!==this.e)return this.toString();var r,a,i,o,s,c,u,f,d,l,p,h,b,y,m,v=this.format||{},g=this.constructor.format||{};if(e!=s?"object"==typeof e?(n=e,e=s):t!=s?"object"==typeof t?(n=t,t=s):"object"!=typeof n&&(n={}):n={}:n={},f=(r=this.toFixed(e,t).split("."))[0],d=r[1],c=(u=this.s<0?f.slice(1):f).length,(l=n.decimalSeparator)==s&&(l=v.decimalSeparator)==s&&(l=g.decimalSeparator)==s&&(l="."),(p=n.groupSeparator)==s&&(p=v.groupSeparator)==s&&(p=g.groupSeparator),p&&((h=n.groupSize)==s&&(h=v.groupSize)==s&&(h=g.groupSize)==s&&(h=0),(b=n.secondaryGroupSize)==s&&(b=v.secondaryGroupSize)==s&&(b=g.secondaryGroupSize)==s&&(b=0),b?(a=+b,c-=i=+h):(a=+h,i=+b),a>0&&c>0)){for(o=c%a||a,f=u.substr(0,o);o0&&(f+=p+u.slice(o)),this.s<0&&(f="-"+f)}return d?((y=n.fractionGroupSeparator)==s&&(y=v.fractionGroupSeparator)==s&&(y=g.fractionGroupSeparator),y&&((m=n.fractionGroupSize)==s&&(m=v.fractionGroupSize)==s&&(m=g.fractionGroupSize)==s&&(m=0),(m=+m)&&(d=d.replace(new RegExp("\\d{"+m+"}\\B","g"),"$&"+y))),f+l+d):f},e.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},e})},function(e,t,n){var r=n(2089)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},,,,function(e,t,n){var r=n(683);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(47).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=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)&&a(t,e,n);return i(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumPresent=t.isEthereumFromMetamask=t.getInjectedEthereum=t.getEthereum=void 0;var c=function(){return"undefined"!==typeof window?window.ethereum:void 0};t.getEthereum=c;var u=function(){return Boolean(c())};t.isEthereumPresent=u;t.isEthereumFromMetamask=function(){var e;return Boolean(u()&&(null===(e=window.ethereum)||void 0===e?void 0:e.isMetaMask))};t.getInjectedEthereum=function(){return s(void 0,void 0,void 0,r().mark((function e(){var t,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){return o(n(535))}));case 2:if(t=e.sent,a=t.default,i=c()){e.next=7;break}return e.abrupt("return",null);case 7:return e.abrupt("return",{ethereum:i,web3:new a(i),isMetaMask:Boolean(i.isMetaMask)});case 8:case"end":return e.stop()}}),e)})))}},function(e,t,n){"use strict";var r=n(1091).version,a=n(536),i=n(1203),o=n(780),s=n(1418),c=n(1419),u=n(1434),f=n(48),d=function(){var e=this;a.packageInit(this,arguments),this.version=r,this.utils=f,this.eth=new i(this),this.shh=new c(this),this.bzz=new u(this);var t=this.setProvider;this.setProvider=function(n,r){return t.apply(e,arguments),e.eth.setRequestManager(e._requestManager),e.shh.setRequestManager(e._requestManager),e.bzz.setProvider(n),!0}};d.version=r,d.utils=f,d.modules={Eth:i,Net:o,Personal:s,Shh:c,Bzz:u},a.addProviders(d),e.exports=d},function(e,t,n){var r=n(1092),a=n(1194);e.exports={packageInit:function(e,t){if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:function(){return e._provider},set:function(t){return e.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new r.Manager(t[0],t[1]),e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=function(t,n){return e._requestManager.setProvider(t,n),e._provider=e._requestManager.provider,!0}),e.setRequestManager=function(t){e._requestManager=t,e._provider=t.provider},e.BatchRequest=r.BatchManager.bind(null,e._requestManager),e.extend=a(e)},addProviders:function(e){e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers}}},function(e,t,n){var r;function a(e){this.rand=e}if(e.exports=function(e){return r||(r=new a(null)),r.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n>>32-t}function u(e,t,n,r,a,i,o){return c(e+(t&n|~t&r)+a+i|0,o)+t|0}function f(e,t,n,r,a,i,o){return c(e+(t&r|n&~r)+a+i|0,o)+t|0}function d(e,t,n,r,a,i,o){return c(e+(t^n^r)+a+i|0,o)+t|0}function l(e,t,n,r,a,i,o){return c(e+(n^(t|~r))+a+i|0,o)+t|0}r(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,i=this._d;n=u(n,r,a,i,e[0],3614090360,7),i=u(i,n,r,a,e[1],3905402710,12),a=u(a,i,n,r,e[2],606105819,17),r=u(r,a,i,n,e[3],3250441966,22),n=u(n,r,a,i,e[4],4118548399,7),i=u(i,n,r,a,e[5],1200080426,12),a=u(a,i,n,r,e[6],2821735955,17),r=u(r,a,i,n,e[7],4249261313,22),n=u(n,r,a,i,e[8],1770035416,7),i=u(i,n,r,a,e[9],2336552879,12),a=u(a,i,n,r,e[10],4294925233,17),r=u(r,a,i,n,e[11],2304563134,22),n=u(n,r,a,i,e[12],1804603682,7),i=u(i,n,r,a,e[13],4254626195,12),a=u(a,i,n,r,e[14],2792965006,17),n=f(n,r=u(r,a,i,n,e[15],1236535329,22),a,i,e[1],4129170786,5),i=f(i,n,r,a,e[6],3225465664,9),a=f(a,i,n,r,e[11],643717713,14),r=f(r,a,i,n,e[0],3921069994,20),n=f(n,r,a,i,e[5],3593408605,5),i=f(i,n,r,a,e[10],38016083,9),a=f(a,i,n,r,e[15],3634488961,14),r=f(r,a,i,n,e[4],3889429448,20),n=f(n,r,a,i,e[9],568446438,5),i=f(i,n,r,a,e[14],3275163606,9),a=f(a,i,n,r,e[3],4107603335,14),r=f(r,a,i,n,e[8],1163531501,20),n=f(n,r,a,i,e[13],2850285829,5),i=f(i,n,r,a,e[2],4243563512,9),a=f(a,i,n,r,e[7],1735328473,14),n=d(n,r=f(r,a,i,n,e[12],2368359562,20),a,i,e[5],4294588738,4),i=d(i,n,r,a,e[8],2272392833,11),a=d(a,i,n,r,e[11],1839030562,16),r=d(r,a,i,n,e[14],4259657740,23),n=d(n,r,a,i,e[1],2763975236,4),i=d(i,n,r,a,e[4],1272893353,11),a=d(a,i,n,r,e[7],4139469664,16),r=d(r,a,i,n,e[10],3200236656,23),n=d(n,r,a,i,e[13],681279174,4),i=d(i,n,r,a,e[0],3936430074,11),a=d(a,i,n,r,e[3],3572445317,16),r=d(r,a,i,n,e[6],76029189,23),n=d(n,r,a,i,e[9],3654602809,4),i=d(i,n,r,a,e[12],3873151461,11),a=d(a,i,n,r,e[15],530742520,16),n=l(n,r=d(r,a,i,n,e[2],3299628645,23),a,i,e[0],4096336452,6),i=l(i,n,r,a,e[7],1126891415,10),a=l(a,i,n,r,e[14],2878612391,15),r=l(r,a,i,n,e[5],4237533241,21),n=l(n,r,a,i,e[12],1700485571,6),i=l(i,n,r,a,e[3],2399980690,10),a=l(a,i,n,r,e[10],4293915773,15),r=l(r,a,i,n,e[1],2240044497,21),n=l(n,r,a,i,e[8],1873313359,6),i=l(i,n,r,a,e[15],4264355552,10),a=l(a,i,n,r,e[6],2734768916,15),r=l(r,a,i,n,e[13],1309151649,21),n=l(n,r,a,i,e[4],4149444226,6),i=l(i,n,r,a,e[11],3174756917,10),a=l(a,i,n,r,e[2],718787259,15),r=l(r,a,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var r=n(313).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,n,i){if("function"===typeof n)return e(t,null,n);n||(n={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),a=0;a-1?r:i.nextTick;v.WritableState=m;var u=Object.create(n(366));u.inherits=n(43);var f={deprecate:n(363)},d=n(715),l=n(543).Buffer,p=a.Uint8Array||function(){};var h,b=n(716);function y(){}function m(e,t){s=s||n(278),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,u=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(u||0===u)?u:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,a);else{var o=_(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(x,e,n,o,a):x(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(s=s||n(278),!h.call(v,this)&&!(this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),d.call(this)}function g(e,t,n,r,a,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function x(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,g(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,f=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:u.length,u,f,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(v,d),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,l.isBuffer(r)||r instanceof p);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!==typeof n&&(n=y),a.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(r,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,a,i){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n));return t}(t,r,a);r!==o&&(n=!0,a="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(53),n(717).setImmediate,n(52))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var r,a=n(220),i=n(310),o=n(275);function s(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(r=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,o.toBuffer)(e);if(t===r.Buffer)return n;if(t===r.BN)return new a.BN(n);if(t===r.Number){var s=new a.BN(n),c=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(s.gt(c))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return s.toNumber()}return"0x".concat(n.toString("hex"))}}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,r||e,i),c=a?a+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0===--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,o=new Array(i);r1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},p.prototype.getCall=function(e){return"function"===typeof this.call?this.call(e):this.call},p.prototype.extractCallback=function(e){if("function"===typeof e[e.length-1])return e.pop()},p.prototype.validateArgs=function(e){if(e.length!==this.params)throw s.InvalidNumberOfParams(e.length,this.params,this.name)},p.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},p.prototype.formatOutput=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},p.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var a={method:t,params:r,callback:n};return this.transformPayload&&(a=this.transformPayload(a)),a},p.prototype._confirmTransaction=function(e,t,n){var r=this,a=!1,h=!0,b=0,y=0,m=null,v=null,g=null,x=n.params[0]&&"object"===typeof n.params[0]&&n.params[0].gas?n.params[0].gas:null,w=!!n.params[0]&&"object"===typeof n.params[0]&&n.params[0].data&&n.params[0].from&&!n.params[0].to,_=w&&n.params[0].data.length>2,k=[new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[c.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:c.outputBlockFormatter}),new p({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionReceiptFormatter}),new p({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[c.inputAddressFormatter,c.inputDefaultBlockNumberFormatter]}),new p({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionFormatter}),new d({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:c.outputBlockFormatter}}})],E={};k.forEach((function(e){e.attachToObject(E),e.requestManager=r.requestManager}));var S=function(d,p,k,S,T){if(!k)return T||(T={unsubscribe:function(){clearInterval(m),clearTimeout(v)}}),(d?f.resolve(d):E.getTransactionReceipt(t)).catch((function(t){T.unsubscribe(),a=!0,u._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=o(i().mark((function t(n){var a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(r.extraFormatters&&r.extraFormatters.receiptFormatter&&(n=r.extraFormatters.receiptFormatter(n)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==d&&0===y){t.next=25;break}return t.next=7,E.getBlockByNumber("latest");case 7:if(o=t.sent,s=o?o.hash:null,!p){t.next=24;break}if(!g){t.next=17;break}return t.next=13,E.getBlockByNumber(g.number+1);case 13:(a=t.sent)&&(g=a,e.eventEmitter.emit("confirmation",y,n,s)),t.next=22;break;case 17:return t.next=19,E.getBlockByNumber(n.blockNumber);case 19:a=t.sent,g=a,e.eventEmitter.emit("confirmation",y,n,s);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",y,n,s);case 25:(p&&a||!p)&&y++,h=!1,y===r.transactionConfirmationBlocks+1&&(T.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",n);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w||a){t.next=19;break}if(n.contractAddress){t.next=5;break}return h&&(T.unsubscribe(),a=!0),u._fireError(s.NoContractAddressFoundError(n),e.eventEmitter,e.reject,null,n),t.abrupt("return");case 5:return t.prev=5,t.next=8,E.getCode(n.contractAddress);case 8:o=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(o){t.next=15;break}return t.abrupt("return");case 15:!0===n.status&&_||o.length>2?(e.eventEmitter.emit("receipt",n),r.extraFormatters&&r.extraFormatters.contractDeployFormatter?e.resolve(r.extraFormatters.contractDeployFormatter(n)):e.resolve(n),h&&e.eventEmitter.removeAllListeners()):u._fireError(s.ContractCodeNotStoredError(n),e.eventEmitter,e.reject,null,n),h&&T.unsubscribe(),a=!0;case 19:return t.abrupt("return",n);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(o){var f,d,p,b;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w||a){t.next=35;break}if(o.outOfGas||x&&x===o.gasUsed||!0!==o.status&&"0x1"!==o.status&&"undefined"!==typeof o.status){t.next=7;break}e.eventEmitter.emit("receipt",o),e.resolve(o),h&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(o,null,2),!1!==o.status&&"0x0"!==o.status){t.next=32;break}if(t.prev=9,f=null,!r.handleRevert||"eth_sendTransaction"!==r.call&&"eth_sendRawTransaction"!==r.call){t.next=24;break}return d=n.params[0],"eth_sendRawTransaction"===r.call&&(p=n.params[0],b=l.parse(p),d=c.inputTransactionFormatter({data:b.data,to:b.to,from:b.from,gas:b.gasLimit.toHexString(),gasPrice:b.gasPrice.toHexString(),value:b.value.toHexString()})),t.next=16,r.getRevertReason(d,o.blockNumber);case 16:if(!(f=t.sent)){t.next=21;break}u._fireError(s.TransactionRevertInstructionError(f.reason,f.signature,o),e.eventEmitter,e.reject,null,o),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),u._fireError(s.TransactionRevertedWithoutReasonError(o),e.eventEmitter,e.reject,null,o);case 30:t.next=33;break;case 32:u._fireError(s.TransactionOutOfGasError(o),e.eventEmitter,e.reject,null,o);case 33:h&&T.unsubscribe(),a=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){b++,p?b-1>=r.transactionPollingTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):b-1>=r.transactionBlockTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));T.unsubscribe(),a=!0,u._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:k},e.eventEmitter,e.reject)},T=function(e){var t=!1,n=function(){m=setInterval(S.bind(null,e,!0),r.transactionPollingInterval)};if(!this.requestManager.provider.on)return n();E.subscribe("newBlockHeaders",(function(r,a,i){if(t=!0,r||!a)return n();S(e,!1,r,0,i)})),v=setTimeout((function(){t||n()}),1e3*this.blockHeaderTimeout)}.bind(this);E.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&T(t),S(t,!1)):a||T()})).catch((function(){a||T()}))};var h=function(e,t){return"number"===typeof e?t.wallet[e]:e&&"object"===typeof e&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};function b(e,t){return new Promise((function(n,a){try{var i=new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?u.toHex(e):"latest"},function(){return!1}]}).createFunction(e.requestManager),o=new p({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);Promise.all([i(),o()]).then((function(e){var a=r(e,2),i=a[0],o=a[1];if(("0x2"===t.type||void 0===t.type)&&i&&i.baseFeePerGas){var s,c;t.gasPrice?(s=t.gasPrice,c=t.gasPrice,delete t.gasPrice):(s=t.maxPriorityFeePerGas||"0x9502F900",c=t.maxFeePerGas||u.toHex(u.toBN(i.baseFeePerGas).mul(u.toBN(2)).add(u.toBN(s)))),n({maxFeePerGas:c,maxPriorityFeePerGas:s})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");n({gasPrice:o})}}))}catch(s){a(s)}}))}p.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,r=function(){var r=f(!t),i=e.toPayload(Array.prototype.slice.call(arguments)),o=function(a,o){var c;if(e.handleRevert&&n&&e.abiCoder&&(!a&&e.isRevertReasonString(o)?c=o.substring(10):a&&a.data&&(c=a.data.substring(10)),c)){var f=e.abiCoder.decodeParameter("string","0x"+c),d="Error(String)";return void u._fireError(s.RevertInstructionError(f,d),r.eventEmitter,r.reject,i.callback,{reason:f,signature:d})}try{o=e.formatOutput(o)}catch(l){a=l}if(o instanceof Error&&(a=o),a)return a.error&&(a=a.error),u._fireError(a,r.eventEmitter,r.reject,i.callback);i.callback&&i.callback(null,o),t?(r.eventEmitter.emit("transactionHash",o),e._confirmTransaction(r,o,i)):a||r.resolve(o)},c=function(t){var n=a(a({},i),{},{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,o)},d=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var a=e.params[0];if((n=h(a&&"object"===typeof a?a.from:null,t.accounts))&&n.privateKey)return delete(a=JSON.parse(JSON.stringify(a))).from,t.defaultChain&&!a.chain&&(a.chain=t.defaultChain),t.defaultHardfork&&!a.hardfork&&(a.hardfork=t.defaultHardfork),t.defaultCommon&&!a.common&&(a.common=t.defaultCommon),void t.accounts.signTransaction(a,n.privateKey).then(c).catch((function(e){if("function"===typeof r.eventEmitter.listeners&&r.eventEmitter.listeners("error").length){try{r.eventEmitter.emit("error",e)}catch(e){}r.eventEmitter.removeAllListeners(),r.eventEmitter.catch((function(){}))}r.reject(e)}))}else if("eth_sign"===e.method){var i=e.params[1];if((n=h(e.params[0],t.accounts))&&n.privateKey){var s=t.accounts.sign(i,n.privateKey);return e.callback&&e.callback(null,s.signature),void r.resolve(s.signature)}}return t.requestManager.send(e,o)};return t&&i.params[0]&&"object"===typeof i.params[0]&&"undefined"===typeof i.params[0].gasPrice&&("undefined"===typeof i.params[0].maxPriorityFeePerGas||"undefined"===typeof i.params[0].maxFeePerGas)?b(e,i.params[0]).then((function(n){void 0!==n.gasPrice?i.params[0].gasPrice=n.gasPrice:void 0!==n.maxPriorityFeePerGas&&void 0!==n.maxFeePerGas&&(i.params[0].maxPriorityFeePerGas=n.maxPriorityFeePerGas,i.params[0].maxFeePerGas=n.maxFeePerGas),t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)})):(t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)),t&&setTimeout((function(){r.eventEmitter.emit("sent",i)}),0),r.eventEmitter};return r.method=e,r.request=this.request.bind(this),r},p.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,a){new p({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,u.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):a(e)}))}))},p.prototype.isRevertReasonString=function(e){return"string"===typeof e&&(e.length-2)/2%32===4&&"0x08c379a0"===e.substring(0,10)},p.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=p},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,r||e,i),c=a?a+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0===--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,o=new Array(i);r1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},a.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:a,subscription:r}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,r||e,i),c=a?a+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0===--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,o=new Array(i);r 2 bytes.");var n=i.decode(e);if(!t.isValidCode(n))throw new Error("multihash unknown function code: 0x".concat(n.toString(16)));e=e.slice(i.decode.bytes);var a=i.decode(e);if(a<0)throw new Error("multihash invalid length: ".concat(a));if((e=e.slice(i.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:n,name:o.codes[n],length:a,digest:e}},t.encode=function(e,n,a){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");var o=t.coerceCode(n);if(!r.isBuffer(e))throw new Error("digest should be a Buffer");if(null==a&&(a=e.length),a&&e.length!==a)throw new Error("digest length should be equal to specified length.");return r.concat([r.from(i.encode(o)),r.from(i.encode(a)),e])},t.coerceCode=function(e){var n=e;if("string"===typeof e){if(void 0===o.names[e])throw new Error("Unrecognized hash function named: ".concat(e));n=o.names[e]}if("number"!==typeof n)throw new Error("Hash function code should be a number. Got: ".concat(n));if(void 0===o.codes[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: ".concat(n));return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!o.codes[e]},t.validate=s,t.prefix=function(e){return s(e),e.slice(0,2)}},function(e,t,n){"use strict";var r=n(59).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,f=new Uint8Array(o);e[n];){var d=t[e.charCodeAt(n)];if(255===d)return;for(var l=0,p=o-1;(0!==d||l>>0,f[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,n++}for(var h=o-i;h!==o&&0===f[h];)h++;var b=r.allocUnsafe(a+(o-h));b.fill(0,0,a);for(var y=a;h!==o;)b[y++]=f[h++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*f+1>>>0,d=new Uint8Array(u);i!==o;){for(var l=t[i],p=0,h=u-1;(0!==l||p>>0,d[h]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");a=p,i++}for(var b=u-a;b!==u&&0===d[b];)b++;for(var y=c.repeat(n);b0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,n){var a=function(e){var t=i(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),o=n.modulus.byteLength(),s=new r(e).mul(a.blinder).umod(n.modulus),c=s.toRed(r.mont(n.prime1)),u=s.toRed(r.mont(n.prime2)),f=n.coefficient,d=n.prime1,l=n.prime2,p=c.redPow(n.exponent1).fromRed(),h=u.redPow(n.exponent2).fromRed(),b=p.isub(h).imul(f).umod(d).imul(l);return h.iadd(b).imul(a.unblinder).umod(n.modulus).toArrayLike(t,"be",o)}o.getr=i,e.exports=o}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(t){var r,a=n(23),i=a.Buffer,o={};for(r in a)a.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=a[r]);var s=o.Buffer={};for(r in i)i.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=i[r]);if(o.Buffer.prototype=i.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return i(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=i(e);return t&&0!==t.length?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(c){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),e.exports=o}).call(this,n(53))},function(e,t,n){"use strict";var r=n(564).Reporter,a=n(371).EncoderBuffer,i=n(371).DecoderBuffer,o=n(169),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};f.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,a=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(o=this._peekTag(e,c,n.any),e.isError(o))return o}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(b){o=!1}e.restore(u)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var f=this._decodeTag(e,n.explicit);if(e.isError(f))return f;e=f}var d=e.offset;if(null===n.use&&null===n.choice){var l;n.any&&(l=e.save());var p=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(p))return p;n.any?a=e.raw(l):e=p}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(a=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new i(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&o&&(a=e.leaveObject(r)),null===n.key||null===a&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,a),a},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some((function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(u){return e.restore(o),!1}return!0}),this),a?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new a(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},u.prototype._encodeValue=function(e,t,n){var a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new r);var i=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}var o=null,s=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)o=this._getUse(a.contains,n)._encode(e,t),s=!0;else if(a.children)o=a.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===a.tag||"setof"===a.tag){if(!a.args||1!==a.args.length)return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==a.use?i=this._getUse(a.use,n)._encode(e,t):(o=this._encodePrimitive(a.tag,e),s=!0);if(!a.any&&null===a.choice){var u=null!==a.implicit?a.implicit:a.tag,f=null===a.implicit?"universal":"context";null===u?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(i=this._encodeComposite(u,s,f,o))}return null!==a.explicit&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,n){"use strict";var r=n(43);function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.Reporter=a,a.prototype.isError=function(e){return e instanceof i},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},a.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof i;if(t=r?e:new i(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(e,t,n){"use strict";function r(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var r=n(276),a=n(170),i=n(223),o=n(282),s=n(432);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,r.keccak224)(e);case 256:return(0,r.keccak256)(e);case 384:return(0,r.keccak384)(e);case 512:return(0,r.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(n,r){void 0===r&&(r=256),(0,s.assertIsString)(n);var a=e.from(n,"utf8");return(0,t.keccak)(a,r)};t.keccakFromHexString=function(e,n){return void 0===n&&(n=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),n)};t.keccakFromArray=function(e,n){return void 0===n&&(n=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),n)};var c=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),c(e)};t.sha256FromString=function(e){return(0,s.assertIsString)(e),c(e)};t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),c(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var n=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(n,32):n};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),u(e,t)};t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),u(e,t)};t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),u(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var r,a=n(223),i=n(321),o=n(282);function s(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(r=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,o.toBuffer)(e);if(t===r.Buffer)return n;if(t===r.BN)return new a.BN(n);if(t===r.Number){var s=new a.BN(n),c=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(s.gt(c))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return s.toNumber()}return"0x".concat(n.toString("hex"))}}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}: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},o=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var c=i(n(569)),u=n(281),f=n(322),d=function(){function e(e){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=c.Chain.Mainnet,this.DEFAULT_HARDFORK=c.Hardfork.Istanbul;var t=e.nonce,n=e.gasLimit,r=e.to,a=e.value,i=e.data,o=e.v,s=e.r,f=e.s,d=e.type;this._type=new u.BN((0,u.toBuffer)(d)).toNumber();var l=(0,u.toBuffer)(""===r?"0x":r),p=(0,u.toBuffer)(""===o?"0x":o),h=(0,u.toBuffer)(""===s?"0x":s),b=(0,u.toBuffer)(""===f?"0x":f);this.nonce=new u.BN((0,u.toBuffer)(""===t?"0x":t)),this.gasLimit=new u.BN((0,u.toBuffer)(""===n?"0x":n)),this.to=l.length>0?new u.Address(l):void 0,this.value=new u.BN((0,u.toBuffer)(""===a?"0x":a)),this.data=(0,u.toBuffer)(""===i?"0x":i),this.v=p.length>0?new u.BN(p):void 0,this.r=h.length>0?new u.BN(h):void 0,this.s=b.length>0?new u.BN(b):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),n=0,r=0;r-1&&this.activeCapabilities.splice(d,1)}return c},e.prototype._getCommon=function(e,t){var n;if(t){var r=new u.BN((0,u.toBuffer)(t));if(e){if(!e.chainIdBN().eq(r)){var a=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(a)}return e.copy()}return c.default.isSupportedChainId(r)?new c.default({chain:r,hardfork:this.DEFAULT_HARDFORK}):c.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:r,chainId:r},this.DEFAULT_HARDFORK)}return null!==(n=null===e||void 0===e?void 0:e.copy())&&void 0!==n?n:new c.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,n){var r,a;void 0===t&&(t=256),void 0===n&&(n=!1);try{for(var i=o(Object.entries(e)),c=i.next();!c.done;c=i.next()){var f=s(c.value,2),d=f[0],l=f[1];switch(t){case 64:if(n){if(null===l||void 0===l?void 0:l.gte(u.MAX_UINT64)){var p=this._errorMsg("".concat(d," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(l));throw new Error(p)}}else if(null===l||void 0===l?void 0:l.gt(u.MAX_UINT64)){p=this._errorMsg("".concat(d," cannot exceed MAX_UINT64 (2^64-1), given ").concat(l));throw new Error(p)}break;case 256:if(n){if(null===l||void 0===l?void 0:l.gte(u.MAX_INTEGER)){p=this._errorMsg("".concat(d," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(l));throw new Error(p)}}else if(null===l||void 0===l?void 0:l.gt(u.MAX_INTEGER)){p=this._errorMsg("".concat(d," cannot exceed MAX_INTEGER (2^256-1), given ").concat(l));throw new Error(p)}break;default:p=this._errorMsg("unimplemented bits value");throw new Error(p)}}}catch(h){r={error:h}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,u.bufferToHex)(this.hash()):"not available (unsigned)"}catch(a){e="error"}var t="";try{t=this.isSigned().toString()}catch(a){e="error"}var n="";try{n=this.common.hardfork()}catch(a){n="error"}var r="tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ");return r+="signed=".concat(t," hf=").concat(n)},e}();t.BaseTransaction=d},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var o,s,c=n(68),u=n(1349),f=n(1350),d=n(1356),l=n(1363),p=n(1380);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(o=t.CustomChain||(t.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(t.Chain||(t.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.Shanghai="shanghai",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge"}(s=t.Hardfork||(t.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(t.ConsensusType||(t.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(t.ConsensusAlgorithm||(t.ConsensusAlgorithm={}));var h=function(t){function c(e){var n,r,a,o,c=this;(c=t.call(this)||this)._supportedHardforks=[],c._eips=[],c._customChains=null!==(a=e.customChains)&&void 0!==a?a:[],c._chainParams=c.setChain(e.chain),c.DEFAULT_HARDFORK=null!==(o=c._chainParams.defaultHardfork)&&void 0!==o?o:s.Istanbul;try{for(var u=i(c._chainParams.hardforks),f=u.next();!f.done;f=u.next()){var d=f.value;d.forkHash||(d.forkHash=c._calcForkHash(d.name))}}catch(l){n={error:l}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return c._hardfork=c.DEFAULT_HARDFORK,e.supportedHardforks&&(c._supportedHardforks=e.supportedHardforks),e.hardfork&&c.setHardfork(e.hardfork),e.eips&&c.setEIPs(e.eips),c}return r(c,t),c.custom=function(e,t){var n;void 0===t&&(t={});var r=null!==(n=t.baseChain)&&void 0!==n?n:"mainnet",i=a({},c._getChainParams(r));if(i.name="custom-chain","string"!==typeof e)return new c(a({chain:a(a({},i),e)},t));if(e===o.PolygonMainnet)return c.custom({name:o.PolygonMainnet,chainId:137,networkId:137},t);if(e===o.PolygonMumbai)return c.custom({name:o.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===o.ArbitrumRinkebyTestnet)return c.custom({name:o.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===o.xDaiChain)return c.custom({name:o.xDaiChain,chainId:100,networkId:100},t);if(e===o.OptimisticKovan)return c.custom({name:o.OptimisticKovan,chainId:69,networkId:69},a({hardfork:s.Berlin},t));if(e===o.OptimisticEthereum)return c.custom({name:o.OptimisticEthereum,chainId:10,networkId:10},a({hardfork:s.Berlin},t));throw new Error("Custom chain ".concat(e," not supported"))},c.forCustomChain=function(e,t,n,r){var i=c._getChainParams(e);return new c({chain:a(a({},i),t),hardfork:n,supportedHardforks:r})},c.isSupportedChainId=function(e){var t=(0,d._getInitializedChains)();return Boolean(t.names[e.toString()])},c._getChainParams=function(e,t){var n=(0,d._getInitializedChains)(t);if("number"===typeof e||f.BN.isBN(e)){if(e=e.toString(),n.names[e])return n[n.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(n[e])return n[e];throw new Error("Chain with name ".concat(e," not supported"))},c.prototype.setChain=function(e){var t,n;if("number"===typeof e||"string"===typeof e||f.BN.isBN(e)){var r=void 0;r=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=c._getChainParams(e,r)}else{if("object"!==typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var a=i(["networkId","genesis","hardforks","bootstrapNodes"]),o=a.next();!o.done;o=a.next()){var s=o.value;if(void 0===e[s])throw new Error("Missing required chain parameter: ".concat(s))}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},c.prototype.setHardfork=function(e){var t,n;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var r=!1;try{for(var a=i(l.hardforks),o=a.next();!o.done;o=a.next()){o.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),r=!0)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(!r)throw new Error("Hardfork with name ".concat(e," not supported"))},c.prototype.getHardforkByBlockNumber=function(e,t){var n,r;e=(0,f.toType)(e,f.TypeOutput.BN),t=(0,f.toType)(t,f.TypeOutput.BN);var a,o,c,u=s.Chainstart;try{for(var d=i(this.hardforks()),l=d.next();!l.done;l=d.next()){var p=l.value;if(null!==p.block)e.gte(new f.BN(p.block))&&(u=p.name),t&&p.td&&(t.gte(new f.BN(p.td))?a=p.name:o=c),c=p.name;else if(void 0!==t&&null!==t&&void 0!==p.td&&null!==p.td&&t.gte(new f.BN(p.td)))return p.name}}catch(y){n={error:y}}finally{try{l&&!l.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}if(t){var h="block number: ".concat(e," (-> ").concat(u,"), ");if(a&&!this.hardforkGteHardfork(u,a)){var b="HF determined by block number is lower than the minimum total difficulty HF";throw h+="total difficulty: ".concat(t," (-> ").concat(a,")"),new Error("".concat(b,": ").concat(h))}if(o&&!this.hardforkGteHardfork(o,u)){b="Maximum HF determined by total difficulty is lower than the block number HF";throw h+="total difficulty: ".concat(t," (-> ").concat(o,")"),new Error("".concat(b,": ").concat(h))}}return u},c.prototype.setHardforkByBlockNumber=function(e,t){var n=this.getHardforkByBlockNumber(e,t);return this.setHardfork(n),n},c.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},c.prototype._getHardfork=function(e){var t,n,r=this.hardforks();try{for(var a=i(r),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.name===e)return s}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},c.prototype._isSupportedHardfork=function(e){var t,n;if(!(this._supportedHardforks.length>0))return!0;try{for(var r=i(this._supportedHardforks),a=r.next();!a.done;a=r.next()){if(e===a.value)return!0}}catch(o){t={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},c.prototype.setEIPs=function(e){var t,n,r=this;void 0===e&&(e=[]);var a=function(t){if(!(t in p.EIPs))throw new Error("".concat(t," not supported"));var n=o.gteHardfork(p.EIPs[t].minimumHardfork);if(!n)throw new Error("".concat(t," cannot be activated on hardfork ").concat(o.hardfork(),", minimumHardfork: ").concat(n));p.EIPs[t].requiredEIPs&&p.EIPs[t].requiredEIPs.forEach((function(n){if(!e.includes(n)&&!r.isActivatedEIP(n))throw new Error("".concat(t," requires EIP ").concat(n,", but is not included in the EIP list"))}))},o=this;try{for(var s=i(e),c=s.next();!c.done;c=s.next()){a(c.value)}}catch(u){t={error:u}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}this._eips=e},c.prototype.param=function(e,t){var n,r,a=null;try{for(var o=i(this._eips),s=o.next();!s.done;s=o.next()){var c=s.value;if(null!==(a=this.paramByEIP(e,t,c)))return a}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this.paramByHardfork(e,t,this._hardfork)},c.prototype.paramByHardfork=function(e,t,n){var r,a,o,s;n=this._chooseHardfork(n);var c=null;try{for(var u=i(l.hardforks),f=u.next();!f.done;f=u.next()){var d=f.value;if("eips"in d[1]){var p=d[1].eips;try{for(var h=(o=void 0,i(p)),b=h.next();!b.done;b=h.next()){var y=b.value,m=this.paramByEIP(e,t,y);c=null!==m?m:c}}catch(v){o={error:v}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}}else{if(!d[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==d[1][e][t]&&(c=d[1][e][t].v)}if(d[0]===n)break}}catch(g){r={error:g}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return c},c.prototype.paramByEIP=function(e,t,n){if(!(n in p.EIPs))throw new Error("".concat(n," not supported"));var r=p.EIPs[n];if(!(e in r))throw new Error("Topic ".concat(e," not defined"));return void 0===r[e][t]?null:r[e][t].v},c.prototype.paramByBlock=function(e,t,n){var r=this.activeHardforks(n),a=r[r.length-1].name;return this.paramByHardfork(e,t,a)},c.prototype.isActivatedEIP=function(e){var t,n;if(this.eips().includes(e))return!0;try{for(var r=i(l.hardforks),a=r.next();!a.done;a=r.next()){var o=a.value[1];if(this.gteHardfork(o.name)&&"eips"in o&&o.eips.includes(e))return!0}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},c.prototype.hardforkIsActiveOnBlock=function(e,t,n){var r;void 0===n&&(n={}),t=(0,f.toType)(t,f.TypeOutput.BN);var a=null!==(r=n.onlySupported)&&void 0!==r&&r;e=this._chooseHardfork(e,a);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},c.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},c.prototype.hardforkGteHardfork=function(e,t,n){var r,a;void 0===n&&(n={});var o,s=void 0!==n.onlyActive&&n.onlyActive;e=this._chooseHardfork(e,n.onlySupported),o=s?this.activeHardforks(null,n):this.hardforks();var c=-1,u=-1,f=0;try{for(var d=i(o),l=d.next();!l.done;l=d.next()){var p=l.value;p.name===e&&(c=f),p.name===t&&(u=f),f+=1}}catch(h){r={error:h}}finally{try{l&&!l.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}return c>=u&&-1!==u},c.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},c.prototype.hardforkIsActiveOnChain=function(e,t){var n,r,a;void 0===t&&(t={});var o=null!==(a=t.onlySupported)&&void 0!==a&&a;e=this._chooseHardfork(e,o);try{for(var s=i(this.hardforks()),c=s.next();!c.done;c=s.next()){var u=c.value;if(u.name===e&&null!==u.block)return!0}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!1},c.prototype.activeHardforks=function(e,t){var n,r;void 0===t&&(t={});var a=[],o=this.hardforks();try{for(var s=i(o),c=s.next();!c.done;c=s.next()){var u=c.value;if(null!==u.block){if(void 0!==e&&null!==e&&e0)return n[n.length-1].name;throw new Error("No (supported) active hardfork found")},c.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,f.toType)(t,f.TypeOutput.Number)},c.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return void 0===t||null===t?null:new f.BN(t)},c.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return void 0===t||null===t?null:new f.BN(t)},c.prototype.isHardforkBlock=function(e,t){e=(0,f.toType)(e,f.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.hardforkBlockBN(t);return!!n&&n.eq(e)},c.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,f.toType)(t,f.TypeOutput.Number)},c.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,n){var r=new f.BN(n.block);return r.gt(t)&&null===e?r:e}),null)},c.prototype.isNextHardforkBlock=function(e,t){e=(0,f.toType)(e,f.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.nextHardforkBlockBN(t);return null!==n&&n.eq(e)},c.prototype._calcForkHash=function(t){var n,r,a=e.from(this.genesis().hash.substr(2),"hex"),o=e.alloc(0),s=0;try{for(var c=i(this.hardforks()),d=c.next();!d.done;d=c.next()){var l=d.value,p=l.block;if(0!==p&&null!==p&&p!==s){var h=e.from(p.toString(16).padStart(16,"0"),"hex");o=e.concat([o,h])}if(l.name===t)break;null!==p&&(s=p)}}catch(m){n={error:m}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var b=e.concat([a,o]),y=(0,f.intToBuffer)((0,u.buf)(b)>>>0).toString("hex");return"0x".concat(y)},c.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td){throw new Error("No fork hash calculation possible for future hardfork")}return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},c.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},c.prototype.genesis=function(){return this._chainParams.genesis},c.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return n(1402);case"ropsten":return n(1403);case"rinkeby":return n(1404);case"kovan":return n(1405);case"goerli":return n(1406);case"sepolia":return n(1407)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var r=i(this._customChains),a=r.next();!a.done;a=r.next()){var o=a.value;if(o[0].name===this.chainName())return o[1]}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return{}},c.prototype.hardforks=function(){return this._chainParams.hardforks},c.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},c.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},c.prototype.hardfork=function(){return this._hardfork},c.prototype.chainId=function(){return(0,f.toType)(this.chainIdBN(),f.TypeOutput.Number)},c.prototype.chainIdBN=function(){return new f.BN(this._chainParams.chainId)},c.prototype.chainName=function(){return this._chainParams.name},c.prototype.networkId=function(){return(0,f.toType)(this.networkIdBN(),f.TypeOutput.Number)},c.prototype.networkIdBN=function(){return new f.BN(this._chainParams.networkId)},c.prototype.eips=function(){return this._eips},c.prototype.consensusType=function(){var e,t,n,r=this.hardfork();try{for(var a=i(l.hardforks),o=a.next();!o.done;o=a.next()){var s=o.value;if("consensus"in s[1]&&(n=s[1].consensus.type),s[0]===r)break}}catch(c){e={error:c}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.type},c.prototype.consensusAlgorithm=function(){var e,t,n,r=this.hardfork();try{for(var a=i(l.hardforks),o=a.next();!o.done;o=a.next()){var s=o.value;if("consensus"in s[1]&&(n=s[1].consensus.algorithm),s[0]===r)break}}catch(c){e={error:c}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.algorithm},c.prototype.consensusConfig=function(){var e,t,n,r=this.hardfork();try{for(var a=i(l.hardforks),o=a.next();!o.done;o=a.next()){var s=o.value;if("consensus"in s[1]&&(n=s[1].consensus[s[1].consensus.algorithm]),s[0]===r)break}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(n)return n;var c=this.consensusAlgorithm();return this._chainParams.consensus[c]},c.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},c}(c.EventEmitter);t.default=h}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var r=n(276),a=n(170),i=n(224),o=n(283),s=n(433);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,r.keccak224)(e);case 256:return(0,r.keccak256)(e);case 384:return(0,r.keccak384)(e);case 512:return(0,r.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(n,r){void 0===r&&(r=256),(0,s.assertIsString)(n);var a=e.from(n,"utf8");return(0,t.keccak)(a,r)};t.keccakFromHexString=function(e,n){return void 0===n&&(n=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),n)};t.keccakFromArray=function(e,n){return void 0===n&&(n=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),n)};var c=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),c(e)};t.sha256FromString=function(e){return(0,s.assertIsString)(e),c(e)};t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),c(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var n=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(n,32):n};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),u(e,t)};t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),u(e,t)};t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),u(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var r,a=n(224),i=n(323),o=n(283);function s(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(r=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,o.toBuffer)(e);if(t===r.Buffer)return n;if(t===r.BN)return new a.BN(n);if(t===r.Number){var s=new a.BN(n),c=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(s.gt(c))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return s.toNumber()}return"0x".concat(n.toString("hex"))}}}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var r=n(281),a=n(322);t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,n;if(e&&(0,a.isAccessList)(e)){t=e;for(var i=[],o=0;o1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},p.prototype.getCall=function(e){return"function"===typeof this.call?this.call(e):this.call},p.prototype.extractCallback=function(e){if("function"===typeof e[e.length-1])return e.pop()},p.prototype.validateArgs=function(e){if(e.length!==this.params)throw s.InvalidNumberOfParams(e.length,this.params,this.name)},p.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},p.prototype.formatOutput=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},p.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var a={method:t,params:r,callback:n};return this.transformPayload&&(a=this.transformPayload(a)),a},p.prototype._confirmTransaction=function(e,t,n){var r=this,a=!1,h=!0,b=0,y=0,m=null,v=null,g=null,x=n.params[0]&&"object"===typeof n.params[0]&&n.params[0].gas?n.params[0].gas:null,w=!!n.params[0]&&"object"===typeof n.params[0]&&n.params[0].data&&n.params[0].from&&!n.params[0].to,_=w&&n.params[0].data.length>2,k=[new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[c.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:c.outputBlockFormatter}),new p({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionReceiptFormatter}),new p({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[c.inputAddressFormatter,c.inputDefaultBlockNumberFormatter]}),new p({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:c.outputTransactionFormatter}),new d({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:c.outputBlockFormatter}}})],E={};k.forEach((function(e){e.attachToObject(E),e.requestManager=r.requestManager}));var S=function(d,p,k,S,T){if(!k)return T||(T={unsubscribe:function(){clearInterval(m),clearTimeout(v)}}),(d?f.resolve(d):E.getTransactionReceipt(t)).catch((function(t){T.unsubscribe(),a=!0,u._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=o(i().mark((function t(n){var a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(r.extraFormatters&&r.extraFormatters.receiptFormatter&&(n=r.extraFormatters.receiptFormatter(n)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==d&&0===y){t.next=25;break}return t.next=7,E.getBlockByNumber("latest");case 7:if(o=t.sent,s=o?o.hash:null,!p){t.next=24;break}if(!g){t.next=17;break}return t.next=13,E.getBlockByNumber(g.number+1);case 13:(a=t.sent)&&(g=a,e.eventEmitter.emit("confirmation",y,n,s)),t.next=22;break;case 17:return t.next=19,E.getBlockByNumber(n.blockNumber);case 19:a=t.sent,g=a,e.eventEmitter.emit("confirmation",y,n,s);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",y,n,s);case 25:(p&&a||!p)&&y++,h=!1,y===r.transactionConfirmationBlocks+1&&(T.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",n);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w||a){t.next=19;break}if(n.contractAddress){t.next=5;break}return h&&(T.unsubscribe(),a=!0),u._fireError(s.NoContractAddressFoundError(n),e.eventEmitter,e.reject,null,n),t.abrupt("return");case 5:return t.prev=5,t.next=8,E.getCode(n.contractAddress);case 8:o=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(o){t.next=15;break}return t.abrupt("return");case 15:!0===n.status&&_||o.length>2?(e.eventEmitter.emit("receipt",n),r.extraFormatters&&r.extraFormatters.contractDeployFormatter?e.resolve(r.extraFormatters.contractDeployFormatter(n)):e.resolve(n),h&&e.eventEmitter.removeAllListeners()):u._fireError(s.ContractCodeNotStoredError(n),e.eventEmitter,e.reject,null,n),h&&T.unsubscribe(),a=!0;case 19:return t.abrupt("return",n);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=o(i().mark((function t(o){var f,d,p,b;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w||a){t.next=35;break}if(o.outOfGas||x&&x===o.gasUsed||!0!==o.status&&"0x1"!==o.status&&"undefined"!==typeof o.status){t.next=7;break}e.eventEmitter.emit("receipt",o),e.resolve(o),h&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(o,null,2),!1!==o.status&&"0x0"!==o.status){t.next=32;break}if(t.prev=9,f=null,!r.handleRevert||"eth_sendTransaction"!==r.call&&"eth_sendRawTransaction"!==r.call){t.next=24;break}return d=n.params[0],"eth_sendRawTransaction"===r.call&&(p=n.params[0],b=l.parse(p),d=c.inputTransactionFormatter({data:b.data,to:b.to,from:b.from,gas:b.gasLimit.toHexString(),gasPrice:b.gasPrice.toHexString(),value:b.value.toHexString()})),t.next=16,r.getRevertReason(d,o.blockNumber);case 16:if(!(f=t.sent)){t.next=21;break}u._fireError(s.TransactionRevertInstructionError(f.reason,f.signature,o),e.eventEmitter,e.reject,null,o),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),u._fireError(s.TransactionRevertedWithoutReasonError(o),e.eventEmitter,e.reject,null,o);case 30:t.next=33;break;case 32:u._fireError(s.TransactionOutOfGasError(o),e.eventEmitter,e.reject,null,o);case 33:h&&T.unsubscribe(),a=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){b++,p?b-1>=r.transactionPollingTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):b-1>=r.transactionBlockTimeout&&(T.unsubscribe(),a=!0,u._fireError(s.TransactionError("Transaction was not mined within "+r.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));T.unsubscribe(),a=!0,u._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:k},e.eventEmitter,e.reject)},T=function(e){var t=!1,n=function(){m=setInterval(S.bind(null,e,!0),r.transactionPollingInterval)};if(!this.requestManager.provider.on)return n();E.subscribe("newBlockHeaders",(function(r,a,i){if(t=!0,r||!a)return n();S(e,!1,r,0,i)})),v=setTimeout((function(){t||n()}),1e3*this.blockHeaderTimeout)}.bind(this);E.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&T(t),S(t,!1)):a||T()})).catch((function(){a||T()}))};var h=function(e,t){return"number"===typeof e?t.wallet[e]:e&&"object"===typeof e&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};function b(e,t){return new Promise((function(n,a){try{var i=new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?u.toHex(e):"latest"},function(){return!1}]}).createFunction(e.requestManager),o=new p({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);Promise.all([i(),o()]).then((function(e){var a=r(e,2),i=a[0],o=a[1];if(("0x2"===t.type||void 0===t.type)&&i&&i.baseFeePerGas){var s,c;t.gasPrice?(s=t.gasPrice,c=t.gasPrice,delete t.gasPrice):(s=t.maxPriorityFeePerGas||"0x9502F900",c=t.maxFeePerGas||u.toHex(u.toBN(i.baseFeePerGas).mul(u.toBN(2)).add(u.toBN(s)))),n({maxFeePerGas:c,maxPriorityFeePerGas:s})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");n({gasPrice:o})}}))}catch(s){a(s)}}))}p.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,r=function(){var r=f(!t),i=e.toPayload(Array.prototype.slice.call(arguments)),o=function(a,o){var c;if(e.handleRevert&&n&&e.abiCoder&&(!a&&e.isRevertReasonString(o)?c=o.substring(10):a&&a.data&&(c=a.data.substring(10)),c)){var f=e.abiCoder.decodeParameter("string","0x"+c),d="Error(String)";return void u._fireError(s.RevertInstructionError(f,d),r.eventEmitter,r.reject,i.callback,{reason:f,signature:d})}try{o=e.formatOutput(o)}catch(l){a=l}if(o instanceof Error&&(a=o),a)return a.error&&(a=a.error),u._fireError(a,r.eventEmitter,r.reject,i.callback);i.callback&&i.callback(null,o),t?(r.eventEmitter.emit("transactionHash",o),e._confirmTransaction(r,o,i)):a||r.resolve(o)},c=function(t){var n=a(a({},i),{},{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,o)},d=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var a=e.params[0];if((n=h(a&&"object"===typeof a?a.from:null,t.accounts))&&n.privateKey)return delete(a=JSON.parse(JSON.stringify(a))).from,t.defaultChain&&!a.chain&&(a.chain=t.defaultChain),t.defaultHardfork&&!a.hardfork&&(a.hardfork=t.defaultHardfork),t.defaultCommon&&!a.common&&(a.common=t.defaultCommon),void t.accounts.signTransaction(a,n.privateKey).then(c).catch((function(e){if("function"===typeof r.eventEmitter.listeners&&r.eventEmitter.listeners("error").length){try{r.eventEmitter.emit("error",e)}catch(e){}r.eventEmitter.removeAllListeners(),r.eventEmitter.catch((function(){}))}r.reject(e)}))}else if("eth_sign"===e.method){var i=e.params[1];if((n=h(e.params[0],t.accounts))&&n.privateKey){var s=t.accounts.sign(i,n.privateKey);return e.callback&&e.callback(null,s.signature),void r.resolve(s.signature)}}return t.requestManager.send(e,o)};return t&&i.params[0]&&"object"===typeof i.params[0]&&"undefined"===typeof i.params[0].gasPrice&&("undefined"===typeof i.params[0].maxPriorityFeePerGas||"undefined"===typeof i.params[0].maxFeePerGas)?b(e,i.params[0]).then((function(n){void 0!==n.gasPrice?i.params[0].gasPrice=n.gasPrice:void 0!==n.maxPriorityFeePerGas&&void 0!==n.maxFeePerGas&&(i.params[0].maxPriorityFeePerGas=n.maxPriorityFeePerGas,i.params[0].maxFeePerGas=n.maxFeePerGas),t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)})):(t&&setTimeout((function(){r.eventEmitter.emit("sending",i)}),0),d(i,e)),t&&setTimeout((function(){r.eventEmitter.emit("sent",i)}),0),r.eventEmitter};return r.method=e,r.request=this.request.bind(this),r},p.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,a){new p({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,u.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):a(e)}))}))},p.prototype.isRevertReasonString=function(e){return"string"===typeof e&&(e.length-2)/2%32===4&&"0x08c379a0"===e.substring(0,10)},p.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,a=n(1466);var i=((r=a)&&r.__esModule?r:{default:r}).default,o=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=o},function(e,t,n){"use strict";var r=n(46).default,a=n(33).default,i=n(34).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fixTheme=t.contrastCheck=t.contrast=t.luminance=t.RGBToHex=t.hexToRGB=t.Color=void 0;var s,c=o(n(793)),u=n(132),f=function(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.max(t,Math.min(n,e))},d=function(e){return Math.round(100*(e+Number.EPSILON))/100};!function(e){e[e.Hex=0]="Hex",e[e.Rgb=1]="Rgb"}(s||(s={}));var l=function(){function e(t){if(a(this,e),this.a=null,t.startsWith("#"))4===t.length?(this.r=parseInt(t.slice(1,2)+t.slice(1,2),16),this.g=parseInt(t.slice(2,3)+t.slice(2,3),16),this.b=parseInt(t.slice(3,4)+t.slice(3,4),16)):(this.r=parseInt(t.slice(1,3),16),this.g=parseInt(t.slice(3,5),16),this.b=parseInt(t.slice(5,7),16),9===t.length&&(this.a=d(f(parseInt(t.slice(7,9),16)/255))));else if(t.startsWith("rgb")){var n=t.split("(")[1].split(")")[0].split(",");this.r=parseInt(n[0].trim(),10),this.g=parseInt(n[1].trim(),10),this.b=parseInt(n[2].trim(),10),n[3]&&(this.a=d(f(parseFloat(n[3])))),(0,u.getApplicationLogger)().warn("[colors]","RGB(A) values not officially supported, but were translated to hex (".concat(t," -> ").concat(this.toHex(),")"))}else{if(!t.startsWith("hsl"))throw new Error("Malformed color (".concat(t,")"));var r=t.split("(")[1].split(")")[0].split(","),i=parseInt(r[0].trim().replace("deg",""),10),o=parseInt(r[1].trim().replace("%",""),10),s=parseFloat(r[2].trim().replace("%",""));s>1&&(s/=100);var c=o*Math.min(s,1-s)/100,l=function(e){var t=(e+i/30)%12,n=s-c*Math.max(Math.min(t-3,9-t,1),-1);return Math.round(255*n+Number.EPSILON)};this.r=l(0),this.g=l(8),this.b=l(4),r[3]&&(this.a=d(f(parseFloat(r[3])))),(0,u.getApplicationLogger)().warn("[colors]","HSL(A) values not officially supported, but were translated to hex (".concat(t," -> ").concat(this.toHex(),")"))}}return i(e,[{key:"opacity",value:function(e){return null!=e&&(this.a=d(f(e))),this}},{key:"toRGB",value:function(){return null!==this.a?"rgba(".concat(this.r,", ").concat(this.g,", ").concat(this.b,", ").concat(this.a,")"):"rgb(".concat(this.r,", ").concat(this.g,", ").concat(this.b,")")}},{key:"toHex",value:function(){var e=[this.r.toString(16).padStart(2,"0"),this.g.toString(16).padStart(2,"0"),this.b.toString(16).padStart(2,"0")].join("");if(null!==this.a){var t=Math.round(256*this.a).toString(16).padStart(2,"0");return"#".concat(e).concat(t)}return"#".concat(e)}},{key:"toString",value:function(e){switch(e){case s.Hex:return this.toHex();case s.Rgb:return this.toRGB()}}}]),e}();function p(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]}function h(e,t){var n=p(e),r=p(t),a=Math.max(n,r),i=Math.min(n,r);return d((a+.05)/(i+.05))}t.Color=l,t.hexToRGB=function(e,t){return new l(e).opacity(t).toRGB()},t.RGBToHex=function(e){return new l(e).toHex()},t.luminance=p,t.contrast=h,t.contrastCheck=function(e){var t=h(new l(e.background),new l(e.text));t<=4&&(0,u.getApplicationLogger)().warn("[colors]","Potential accessibility issue between text and background colors (".concat(t,")"));var n=h(new l(e.background),new l(e.textSecondary));n<=4&&(0,u.getApplicationLogger)().warn("[colors]","Potential accessibility issue between textSecondary and background colors (".concat(n,")"));var r=h(new l(e.background),new l(e.secondary));r<=3&&(0,u.getApplicationLogger)().warn("[colors]","Potential accessibility issue between primary and secondary colors (".concat(r,")"))},t.fixTheme=function(e){Object.entries(e).forEach((function(t){var n=r(t,2),a=n[0],i=n[1];a in c.default.light||(0,u.getApplicationLogger)().error("[colors]","Theme key ".concat(a," is not valid."));var o=a;try{var s=new l(i);e[o]=s.toHex()}catch(f){e[o]="#FF0000",(0,u.getApplicationLogger)().error("[colors]","Could not parse theme. ".concat(o," with value ").concat(i,". Replaced it with red!"))}}))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&e.topics.length!==r+1&&(t={anonymous:!0,inputs:[]})}var a=t.anonymous?e.topics:e.topics.slice(1);return n.returnValues=d.decodeLog(t.inputs,e.data,a),delete n.returnValues.__length__,n.event=t.name,n.signature=t.anonymous||!e.topics[0]?null:e.topics[0],n.raw={data:n.data,topics:n.topics},delete n.data,delete n.topics,n},l.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],n=!1,a=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var a=r.isArray(e.inputs)?e.inputs.length:0;if(a!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+a+" arguments.");return"function"===e.type&&(n=e.signature),r.isArray(e.inputs)?e.inputs:[]})).map((function(e){return d.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+a}var i=n?n+a:a;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},l.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var n=d.decodeParameters(e,t);return 1===n.__length__?n[0]:(delete n.__length__,n)},l.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"===typeof t)return t(u.ContractMissingDeployDataError());throw u.ContractMissingDeployDataError()}var n=r.find(this.options.jsonInterface,(function(e){return"constructor"===e.type}))||{};return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},l.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),n=r.isObject(e[e.length-1])?e.pop():{},a=r.isString(e[0])?e[0]:"allevents",i="allevents"===a.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===a||e.signature==="0x"+a.replace("0x",""))}));if(!i)throw u.ContractEventDoesNotExistError(a);if(!o.isAddress(this.options.address))throw u.ContractNoAddressDefinedError();return{params:this._encodeEventABI(i,n),event:i,callback:t}},l.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},l.prototype.once=function(e,t,n){var a=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(a)))throw u.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,a){a.unsubscribe(),r.isFunction(n)&&n(e,t,a)}))},l.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new s({subscription:{params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},l.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new i({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var n=t.buildCall();return t=null,n(e.params,e.callback)},l.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw u.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},l.prototype._processExecuteArguments=function(e,t){var n={};if(n.type=e.shift(),n.callback=this._parent._getCallback(e),"call"===n.type&&!0!==e[e.length-1]&&(r.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(n.defaultBlock=e.pop()),n.options=r.isObject(e[e.length-1])?e.pop():{},n.generateRequest=!0===e[e.length-1]&&e.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!o.isAddress(this._parent.options.address))throw u.ContractNoAddressDefinedError();return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:o._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,n.callback)},l.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=f("send"!==t.type),a=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var s={params:[c.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(s.params.push(c.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),s.method="eth_call",s.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):s.method="eth_sendTransaction",s}switch(t.type){case"estimate":var l=new i({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[c.inputCallFormatter],outputFormatter:o.hexToNumber,requestManager:e._parent._requestManager,accounts:a,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return l(t.options,t.callback);case"call":var p=new i({name:"call",call:"eth_call",params:2,inputFormatter:[c.inputCallFormatter,c.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:a,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:d}).createFunction();return p(t.options,t.defaultBlock,t.callback);case"send":if(!o.isAddress(t.options.from))return o._fireError(u.ContractNoFromAddressDefinedError(),n.eventEmitter,n.reject,t.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&t.options.value>0)return o._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,t.callback);var h={receiptFormatter:function(t){if(r.isArray(t.logs)){var n=r.map(t.logs,(function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var a=0;n.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[a]=e,a++)})),delete t.logs}return t},contractDeployFormatter:function(t){var n=e._parent.clone();return n.options.address=t.contractAddress,n}},b=new i({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[c.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:h,abiCoder:d}).createFunction();return b(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&t.initializeRelay(),window.addEventListener("message",(function(e){var n;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("defaultChainChanged"===e.data.data.action||"dappChainSwitched"===e.data.data.action){var r=e.data.data.chainId,a=null!==(n=e.data.data.jsonRpcUrl)&&void 0!==n?n:t.jsonRpcUrl;t.updateProviderInfo(a,Number(r))}"addressChanged"===e.data.data.action&&t._setAddresses([e.data.data.address])}})),t}return s(d,[{key:"selectedAddress",get:function(){return this._addresses[0]||void 0}},{key:"networkVersion",get:function(){return this.getChainId().toString(10)}},{key:"chainId",get:function(){return(0,v.prepend0x)(this.getChainId().toString(16))}},{key:"isWalletLink",get:function(){return!0}},{key:"isMetaMask",get:function(){return this._overrideIsMetaMask}},{key:"host",get:function(){return this.jsonRpcUrl}},{key:"connected",get:function(){return!0}},{key:"isConnected",value:function(){return!0}},{key:"jsonRpcUrl",get:function(){var e;return null!==(e=this._storage.getItem(E))&&void 0!==e?e:this._jsonRpcUrlFromOpts},set:function(e){this._storage.setItem(E,e)}},{key:"disableReloadOnDisconnect",value:function(){this.reloadOnDisconnect=!1}},{key:"setProviderInfo",value:function(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}},{key:"updateProviderInfo",value:function(e,t){this.jsonRpcUrl=e;var n=this.getChainId();this._storage.setItem(k,t.toString(10)),!((0,v.ensureIntNumber)(t)!==n)&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}},{key:"watchAsset",value:function(){var e=i(a().mark((function e(t,n,r,i,o,s){var c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return c=e.sent,e.next=5,c.watchAsset(t,n,r,i,o,null===s||void 0===s?void 0:s.toString()).promise;case 5:return u=e.sent,e.abrupt("return",!!u.result);case 7:case"end":return e.stop()}}),e,this)})));return function(t,n,r,a,i,o){return e.apply(this,arguments)}}()},{key:"addEthereumChain",value:function(){var e=i(a().mark((function e(t,n,r,i,o,s){var c,u,f,d,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,v.ensureIntNumber)(t)!==this.getChainId()){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this.initializeRelay();case 4:if(f=e.sent,d=f.inlineAddEthereumChain(t.toString()),this._isAuthorized()||d){e.next=9;break}return e.next=9,f.requestEthereumAccounts().promise;case 9:return e.next=11,f.addEthereumChain(t.toString(),n,o,r,i,s).promise;case 11:return l=e.sent,!0===(null===(c=l.result)||void 0===c?void 0:c.isApproved)&&this.updateProviderInfo(n[0],t),e.abrupt("return",!0===(null===(u=l.result)||void 0===u?void 0:u.isApproved));case 14:case"end":return e.stop()}}),e,this)})));return function(t,n,r,a,i,o){return e.apply(this,arguments)}}()},{key:"switchEthereumChain",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return n=e.sent,e.next=5,n.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;case 5:if(!(r=e.sent).errorCode){e.next=8;break}throw h.ethErrors.provider.custom({code:r.errorCode});case 8:(i=r.result).isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setAppInfo",value:function(e,t){this.initializeRelay().then((function(n){return n.setAppInfo(e,t)}))}},{key:"enable",value:function(){var e=i(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this.diagnostic)||void 0===t||t.log(b.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?y.Session.hash(this._relay.session.id):void 0}),!(this._addresses.length>0)){e.next=3;break}return e.abrupt("return",r(this._addresses));case 3:return e.next=5,this._send(w.JSONRPCMethod.eth_requestAccounts);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){var e=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:e.sent.resetAndReload();case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"send",value:function(e,t){var n=this;if("string"===typeof e){var r={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(t)?t:void 0!==t?[t]:[]};return this._sendRequestAsync(r).then((function(e){return e.result}))}if("function"===typeof t){var a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map((function(e){return n._sendRequest(e)}));var o=e;return this._sendRequest(o)}},{key:"sendAsync",value:function(){var e=i(a().mark((function e(t,n){var r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"===typeof n){e.next=2;break}throw new Error("callback is required");case 2:if(!Array.isArray(t)){e.next=6;break}return r=n,this._sendMultipleRequestsAsync(t).then((function(e){return r(null,e)})).catch((function(e){return r(e,null)})),e.abrupt("return");case 6:return i=n,e.abrupt("return",this._sendRequestAsync(t).then((function(e){return i(null,e)})).catch((function(e){return i(e,null)})));case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=i(a().mark((function e(t){var n,r,i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"object"===typeof t&&!Array.isArray(t)){e.next=2;break}throw h.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});case 2:if(n=t.method,r=t.params,"string"===typeof n&&0!==n.length){e.next=5;break}throw h.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});case 5:if(void 0===r||Array.isArray(r)||"object"===typeof r&&null!==r){e.next=7;break}throw h.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});case 7:return i=void 0===r?[]:r,o=this._relayEventManager.makeRequestId(),e.next=11,this._sendRequestAsync({method:n,params:i,jsonrpc:"2.0",id:o});case 11:return s=e.sent,e.abrupt("return",s.result);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"scanQRCode",value:function(){var e=i(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return n=e.sent,e.next=5,n.scanQRCode((0,v.ensureRegExpString)(t)).promise;case 5:if("string"===typeof(r=e.sent).result){e.next=8;break}throw new Error("result was not a string");case 8:return e.abrupt("return",r.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"genericRequest",value:function(){var e=i(a().mark((function e(t,n){var r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return r=e.sent,e.next=5,r.genericRequest(t,n).promise;case 5:if("string"===typeof(i=e.sent).result){e.next=8;break}throw new Error("result was not a string");case 8:return e.abrupt("return",i.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"selectProvider",value:function(){var e=i(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return n=e.sent,e.next=5,n.selectProvider(t).promise;case 5:if("string"===typeof(r=e.sent).result){e.next=8;break}throw new Error("result was not a string");case 8:return e.abrupt("return",r.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"supportsSubscriptions",value:function(){return!1}},{key:"subscribe",value:function(){throw new Error("Subscriptions are not supported")}},{key:"unsubscribe",value:function(){throw new Error("Subscriptions are not supported")}},{key:"disconnect",value:function(){return!0}},{key:"_sendRequest",value:function(e){var t={jsonrpc:"2.0",id:e.id},n=e.method;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw new Error("Coinbase Wallet does not support calling ".concat(n," synchronously without ")+"a callback. Please provide a callback parameter to call ".concat(n," ")+"asynchronously.");return t}},{key:"_setAddresses",value:function(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");var n=e.map((function(e){return(0,v.ensureAddressString)(e)}));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(m.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}},{key:"_sendRequestAsync",value:function(e){var t=this;return new Promise((function(n,r){try{var a=t._handleSynchronousMethods(e);if(void 0!==a)return n({jsonrpc:"2.0",id:e.id,result:a});var i=t._handleAsynchronousFilterMethods(e);if(void 0!==i)return void i.then((function(t){return n(Object.assign(Object.assign({},t),{id:e.id}))})).catch((function(e){return r(e)}));var o=t._handleSubscriptionMethods(e);if(void 0!==o)return void o.then((function(t){return n({jsonrpc:"2.0",id:e.id,result:t.result})})).catch((function(e){return r(e)}))}catch(s){return r(s)}t._handleAsynchronousMethods(e).then((function(t){return t&&n(Object.assign(Object.assign({},t),{id:e.id}))})).catch((function(e){return r(e)}))}))}},{key:"_sendMultipleRequestsAsync",value:function(e){var t=this;return Promise.all(e.map((function(e){return t._sendRequestAsync(e)})))}},{key:"_handleSynchronousMethods",value:function(e){var t=e.method,n=e.params||[];switch(t){case w.JSONRPCMethod.eth_accounts:return this._eth_accounts();case w.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case w.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case w.JSONRPCMethod.net_version:return this._net_version();case w.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}},{key:"_handleAsynchronousMethods",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.method,r=t.params||[],e.t0=n,e.next=e.t0===w.JSONRPCMethod.eth_requestAccounts?5:e.t0===w.JSONRPCMethod.eth_sign?6:e.t0===w.JSONRPCMethod.eth_ecRecover?7:e.t0===w.JSONRPCMethod.personal_sign?8:e.t0===w.JSONRPCMethod.personal_ecRecover?9:e.t0===w.JSONRPCMethod.eth_signTransaction?10:e.t0===w.JSONRPCMethod.eth_sendRawTransaction?11:e.t0===w.JSONRPCMethod.eth_sendTransaction?12:e.t0===w.JSONRPCMethod.eth_signTypedData_v1?13:e.t0===w.JSONRPCMethod.eth_signTypedData_v2?14:e.t0===w.JSONRPCMethod.eth_signTypedData_v3?15:e.t0===w.JSONRPCMethod.eth_signTypedData_v4||e.t0===w.JSONRPCMethod.eth_signTypedData?16:e.t0===w.JSONRPCMethod.cbWallet_arbitrary?17:e.t0===w.JSONRPCMethod.wallet_addEthereumChain?18:e.t0===w.JSONRPCMethod.wallet_switchEthereumChain?19:e.t0===w.JSONRPCMethod.wallet_watchAsset?20:21;break;case 5:return e.abrupt("return",this._eth_requestAccounts());case 6:return e.abrupt("return",this._eth_sign(r));case 7:return e.abrupt("return",this._eth_ecRecover(r));case 8:return e.abrupt("return",this._personal_sign(r));case 9:return e.abrupt("return",this._personal_ecRecover(r));case 10:return e.abrupt("return",this._eth_signTransaction(r));case 11:return e.abrupt("return",this._eth_sendRawTransaction(r));case 12:return e.abrupt("return",this._eth_sendTransaction(r));case 13:return e.abrupt("return",this._eth_signTypedData_v1(r));case 14:return e.abrupt("return",this._throwUnsupportedMethodError());case 15:return e.abrupt("return",this._eth_signTypedData_v3(r));case 16:return e.abrupt("return",this._eth_signTypedData_v4(r));case 17:return e.abrupt("return",this._cbwallet_arbitrary(r));case 18:return e.abrupt("return",this._wallet_addEthereumChain(r));case 19:return e.abrupt("return",this._wallet_switchEthereumChain(r));case 20:return e.abrupt("return",this._wallet_watchAsset(r));case 21:return e.next=23,this.initializeRelay();case 23:return i=e.sent,e.abrupt("return",i.makeEthereumJSONRPCRequest(t,this.jsonRpcUrl));case 25:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_handleAsynchronousFilterMethods",value:function(e){var t=e.method,n=e.params||[];switch(t){case w.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case w.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case w.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case w.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case w.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}},{key:"_handleSubscriptionMethods",value:function(e){switch(e.method){case w.JSONRPCMethod.eth_subscribe:case w.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}},{key:"_isKnownAddress",value:function(e){try{var t=(0,v.ensureAddressString)(e);return this._addresses.map((function(e){return(0,v.ensureAddressString)(e)})).includes(t)}catch(n){}return!1}},{key:"_ensureKnownAddress",value:function(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(b.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}},{key:"_prepareTransactionParams",value:function(t){var n=t.from?(0,v.ensureAddressString)(t.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:t.to?(0,v.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,v.ensureBN)(t.value):new p.default(0),data:t.data?(0,v.ensureBuffer)(t.data):e.alloc(0),nonce:null!=t.nonce?(0,v.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,v.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,v.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,v.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,v.ensureBN)(t.gas):null,chainId:this.getChainId()}}},{key:"_isAuthorized",value:function(){return this._addresses.length>0}},{key:"_requireAuthorization",value:function(){if(!this._isAuthorized())throw h.ethErrors.provider.unauthorized({})}},{key:"_throwUnsupportedMethodError",value:function(){throw h.ethErrors.provider.unsupportedMethod({})}},{key:"_signEthereumMessage",value:function(){var e=i(a().mark((function e(t,n,r,i){var o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ensureKnownAddress(n),e.prev=1,e.next=4,this.initializeRelay();case 4:return o=e.sent,e.next=7,o.signEthereumMessage(t,n,r,i).promise;case 7:return s=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:s.result});case 11:if(e.prev=11,e.t0=e.catch(1),"string"!==typeof e.t0.message||!e.t0.message.match(/(denied|rejected)/i)){e.next=15;break}throw h.ethErrors.provider.userRejectedRequest("User denied message signature");case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(t,n,r,a){return e.apply(this,arguments)}}()},{key:"_ethereumAddressFromSignedMessage",value:function(){var e=i(a().mark((function e(t,n,r){var i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializeRelay();case 2:return i=e.sent,e.next=5,i.ethereumAddressFromSignedMessage(t,n,r).promise;case 5:return o=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:o.result});case 7:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_eth_accounts",value:function(){return r(this._addresses)}},{key:"_eth_coinbase",value:function(){return this.selectedAddress||null}},{key:"_net_version",value:function(){return this.getChainId().toString(10)}},{key:"_eth_chainId",value:function(){return(0,v.hexStringFromIntNumber)(this.getChainId())}},{key:"getChainId",value:function(){var e=this._storage.getItem(k);if(!e)return(0,v.ensureIntNumber)(this._chainIdFromOpts);var t=parseInt(e,10);return(0,v.ensureIntNumber)(t)}},{key:"_eth_requestAccounts",value:function(){var e=i(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this.diagnostic)||void 0===t||t.log(b.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?y.Session.hash(this._relay.session.id):void 0}),!(this._addresses.length>0)){e.next=3;break}return e.abrupt("return",Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses}));case 3:return e.prev=3,e.next=6,this.initializeRelay();case 6:return r=e.sent,e.next=9,r.requestEthereumAccounts().promise;case 9:n=e.sent,e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),"string"!==typeof e.t0.message||!e.t0.message.match(/(denied|rejected)/i)){e.next=16;break}throw h.ethErrors.provider.userRejectedRequest("User denied account authorization");case 16:throw e.t0;case 17:if(n.result){e.next=19;break}throw new Error("accounts received is empty");case 19:if(this._setAddresses(n.result),this.isLedger||this.isCoinbaseBrowser){e.next=23;break}return e.next=23,this.switchEthereumChain(this.getChainId());case 23:return e.abrupt("return",{jsonrpc:"2.0",id:0,result:this._addresses});case 24:case"end":return e.stop()}}),e,this,[[3,12]])})));return function(){return e.apply(this,arguments)}}()},{key:"_eth_sign",value:function(e){this._requireAuthorization();var t=(0,v.ensureAddressString)(e[0]),n=(0,v.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}},{key:"_eth_ecRecover",value:function(e){var t=(0,v.ensureBuffer)(e[0]),n=(0,v.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}},{key:"_personal_sign",value:function(e){this._requireAuthorization();var t=(0,v.ensureBuffer)(e[0]),n=(0,v.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}},{key:"_personal_ecRecover",value:function(e){var t=(0,v.ensureBuffer)(e[0]),n=(0,v.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}},{key:"_eth_signTransaction",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._requireAuthorization(),n=this._prepareTransactionParams(t[0]||{}),e.prev=2,e.next=5,this.initializeRelay();case 5:return r=e.sent,e.next=8,r.signEthereumTransaction(n).promise;case 8:return i=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 12:if(e.prev=12,e.t0=e.catch(2),"string"!==typeof e.t0.message||!e.t0.message.match(/(denied|rejected)/i)){e.next=16;break}throw h.ethErrors.provider.userRejectedRequest("User denied transaction signature");case 16:throw e.t0;case 17:case"end":return e.stop()}}),e,this,[[2,12]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_sendRawTransaction",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,v.ensureBuffer)(t[0]),e.next=3,this.initializeRelay();case 3:return r=e.sent,e.next=6,r.submitEthereumTransaction(n,this.getChainId()).promise;case 6:return i=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_sendTransaction",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._requireAuthorization(),n=this._prepareTransactionParams(t[0]||{}),e.prev=2,e.next=5,this.initializeRelay();case 5:return r=e.sent,e.next=8,r.signAndSubmitEthereumTransaction(n).promise;case 8:return i=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 12:if(e.prev=12,e.t0=e.catch(2),"string"!==typeof e.t0.message||!e.t0.message.match(/(denied|rejected)/i)){e.next=16;break}throw h.ethErrors.provider.userRejectedRequest("User denied transaction signature");case 16:throw e.t0;case 17:case"end":return e.stop()}}),e,this,[[2,12]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_signTypedData_v1",value:function(){var e=i(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._requireAuthorization(),n=(0,v.ensureParsedJSONObject)(t[0]),r=(0,v.ensureAddressString)(t[1]),this._ensureKnownAddress(r),i=g.default.hashForSignTypedDataLegacy({data:n}),o=JSON.stringify(n,null,2),e.abrupt("return",this._signEthereumMessage(i,r,!1,o));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_signTypedData_v3",value:function(){var e=i(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._requireAuthorization(),n=(0,v.ensureAddressString)(t[0]),r=(0,v.ensureParsedJSONObject)(t[1]),this._ensureKnownAddress(n),i=g.default.hashForSignTypedData_v3({data:r}),o=JSON.stringify(r,null,2),e.abrupt("return",this._signEthereumMessage(i,n,!1,o));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_signTypedData_v4",value:function(){var e=i(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._requireAuthorization(),n=(0,v.ensureAddressString)(t[0]),r=(0,v.ensureParsedJSONObject)(t[1]),this._ensureKnownAddress(n),i=g.default.hashForSignTypedData_v4({data:r}),o=JSON.stringify(r,null,2),e.abrupt("return",this._signEthereumMessage(i,n,!1,o));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_cbwallet_arbitrary",value:function(){var e=i(a().mark((function e(t){var n,r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t[0],"string"===typeof(r=t[1])){e.next=4;break}throw new Error("parameter must be a string");case 4:if("object"===typeof n&&null!==n){e.next=6;break}throw new Error("parameter must be an object");case 6:return e.next=8,this.genericRequest(n,r);case 8:return i=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:i});case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wallet_addEthereumChain",value:function(){var e=i(a().mark((function e(t){var n,r,i,o,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t[0],0!==(null===(n=s.rpcUrls)||void 0===n?void 0:n.length)){e.next=3;break}return e.abrupt("return",{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}});case 3:if(s.chainName&&""!==s.chainName.trim()){e.next=5;break}throw h.ethErrors.provider.custom({code:0,message:"chainName is a required field"});case 5:if(s.nativeCurrency){e.next=7;break}throw h.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});case 7:return c=parseInt(s.chainId,16),e.next=10,this.addEthereumChain(c,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(i=s.blockExplorerUrls)&&void 0!==i?i:[],s.chainName,null!==(o=s.iconUrls)&&void 0!==o?o:[],s.nativeCurrency);case 10:if(!e.sent){e.next=15;break}return e.abrupt("return",{jsonrpc:"2.0",id:0,result:null});case 15:return e.abrupt("return",{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wallet_switchEthereumChain",value:function(){var e=i(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t[0],e.next=3,this.switchEthereumChain(parseInt(n.chainId,16));case 3:return e.abrupt("return",{jsonrpc:"2.0",id:0,result:null});case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wallet_watchAsset",value:function(){var e=i(a().mark((function e(t){var n,r,i,o,s,c,u,f;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Array.isArray(t)?t[0]:t).type){e.next=3;break}throw h.ethErrors.rpc.invalidParams({message:"Type is required"});case 3:if("ERC20"===(null===n||void 0===n?void 0:n.type)){e.next=5;break}throw h.ethErrors.rpc.invalidParams({message:"Asset of type '".concat(n.type,"' is not supported")});case 5:if(null===n||void 0===n?void 0:n.options){e.next=7;break}throw h.ethErrors.rpc.invalidParams({message:"Options are required"});case 7:if(null===n||void 0===n?void 0:n.options.address){e.next=9;break}throw h.ethErrors.rpc.invalidParams({message:"Address is required"});case 9:return r=this.getChainId(),i=n.options,o=i.address,s=i.symbol,c=i.image,u=i.decimals,e.next=13,this.watchAsset(n.type,o,s,u,c,r);case 13:return f=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:f});case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_uninstallFilter",value:function(e){var t=(0,v.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}},{key:"_eth_newFilter",value:function(){var e=i(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t[0],e.next=3,this._filterPolyfill.newFilter(n);case 3:return r=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:r});case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_eth_newBlockFilter",value:function(){var e=i(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._filterPolyfill.newBlockFilter();case 2:return t=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:t});case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_eth_newPendingTransactionFilter",value:function(){var e=i(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._filterPolyfill.newPendingTransactionFilter();case 2:return t=e.sent,e.abrupt("return",{jsonrpc:"2.0",id:0,result:t});case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_eth_getFilterChanges",value:function(e){var t=(0,v.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}},{key:"_eth_getFilterLogs",value:function(e){var t=(0,v.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}},{key:"initializeRelay",value:function(){var e=this;return this._relay?Promise.resolve(this._relay):this._relayProvider().then((function(t){return t.setAccountsCallback((function(t,n){return e._setAddresses(t,n)})),t.setChainCallback((function(t,n){e.updateProviderInfo(n,parseInt(t,10))})),t.setDappDefaultChainCallback(e._chainIdFromOpts),e._relay=t,t}))}}]),d}(l.default);t.CoinbaseWalletProvider=S}).call(this,n(23).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;var r=n(597);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});var a=n(841);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return a.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return a.getMessageFromCode}});var i=n(1605);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});var o=n(598);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},function(e,t,n){"use strict";var r=n(33).default,a=n(34).default,i=n(62).default,o=n(65).default,s=n(251).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;var c=n(840),u=function(e){i(n,e);var t=o(n);function n(e,a,i){var o;if(r(this,n),!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!a||"string"!==typeof a)throw new Error('"message" must be a nonempty string.');return(o=t.call(this,a)).code=e,void 0!==i&&(o.data=i),o}return a(n,[{key:"serialize",value:function(){var e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}},{key:"toString",value:function(){return c.default(this.serialize(),d,2)}}]),n}(s(Error));t.EthereumRpcError=u;var f=function(e){i(n,e);var t=o(n);function n(e,a,i){if(r(this,n),!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return t.call(this,e,a,i)}return a(n)}(u);function d(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},function(e,t,n){"use strict";var r=n(33).default,a=n(34).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var i=n(421),o=n(252),s="session:id",c="session:secret",u="session:linked",f=function(){function e(t,n,a,s){r(this,e),this._storage=t,this._id=n||(0,o.randomBytesHex)(16),this._secret=a||(0,o.randomBytesHex)(32),this._key=(new i.sha256).update("".concat(this._id,", ").concat(this._secret," WalletLink")).digest("hex"),this._linked=!!s}return a(e,[{key:"id",get:function(){return this._id}},{key:"secret",get:function(){return this._secret}},{key:"key",get:function(){return this._key}},{key:"linked",get:function(){return this._linked},set:function(e){this._linked=e,this.persistLinked()}},{key:"save",value:function(){return this._storage.setItem(s,this._id),this._storage.setItem(c,this._secret),this.persistLinked(),this}},{key:"persistLinked",value:function(){this._storage.setItem(u,this._linked?"1":"0")}}],[{key:"load",value:function(t){var n=t.getItem(s),r=t.getItem(u),a=t.getItem(c);return n&&a?new e(t,n,a,"1"===r):null}},{key:"hash",value:function(e){return(new i.sha256).update(e).digest("hex")}}]),e}();t.Session=f},function(e,t,n){"use strict";var r,a=SyntaxError,i=Function,o=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(M){c=null}var u=function(){throw new o},f=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,d=n(1608)(),l=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"===typeof Uint8Array?r:l(Uint8Array),b={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?l(l([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?l((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?l((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?l(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(n=l(a.prototype))}return b[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(602),g=n(1611),x=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),k=v.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,T=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,E,(function(e,t,n,a){r[r.length]=n?_(a,S,"$1"):t||e})),r},O=function(e,t){var n,r=e;if(g(m,r)&&(r="%"+(n=m[r])[0]+"%"),g(b,r)){var i=b[r];if(i===p&&(i=y(r)),"undefined"===typeof i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",i=O("%"+r+"%",t),s=i.name,u=i.value,f=!1,d=i.alias;d&&(r=d[0],w(n,x([0,1],d)));for(var l=1,p=!0;l=n.length){var v=c(u,h);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else p=g(u,h),u=u[h];p&&!f&&(b[s]=u)}}return u}},function(e,t,n){"use strict";var r=n(1610);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,a=/%20/g,i="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:o}},function(e,t,n){"use strict";var r=n(330).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,n,i){if("function"===typeof n)return e(t,null,n);n||(n={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),a=0;a=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return t.call(this,e,a,i)}return a(n)}(u);function d(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},function(e,t,n){var r=n(47).default,a=n(83).default,i=n(33).default,o=n(34).default,s=n(62).default,c=n(65).default,u=function(e){"use strict";s(n,e);var t=c(n);function n(){var e;return i(this,n),(e=t.call(this)).updates=[],e}return o(n,[{key:"initialize",value:function(){var e=a(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=a(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("BaseFilter - no update method specified");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"addResults",value:function(e){var t=this;this.updates=this.updates.concat(e),e.forEach((function(e){return t.emit("update",e)}))}},{key:"addInitialResults",value:function(e){}},{key:"getChangesAndClear",value:function(){var e=this.updates;return this.updates=[],e}}]),n}(n(443).default);e.exports=u},function(e,t,n){var r=n(47).default,a=n(83).default;function i(){return(i=a(r().mark((function e(t){var n,a,i,c,f,d,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.provider,a=t.fromBlock,i=t.toBlock,a||(a=i),c=o(a),f=o(i),d=Array(f-c+1).fill().map((function(e,t){return c+t})).map(s),e.next=8,Promise.all(d.map((function(e){return u(n,"eth_getBlockByNumber",[e,!1])})));case 8:return l=e.sent,e.abrupt("return",l);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function o(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function s(e){return void 0===e||null===e?e:"0x"+e.toString(16)}function c(e,t){return new Promise((function(n,r){e.sendAsync(t,(function(e,t){e?r(e):t.error?r(t.error):t.result?n(t.result):r(new Error("Result was empty"))}))}))}function u(e,t,n){return f.apply(this,arguments)}function f(){return(f=a(r().mark((function e(t,n,a){var i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<3)){e.next=14;break}return e.prev=2,e.next=5,c(t,{id:1,jsonrpc:"2.0",method:n,params:a});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),console.error("provider.sendAsync failed: ".concat(e.t0.stack||e.t0.message||e.t0));case 11:i++,e.next=1;break;case 14:throw new Error("Block not found for params: ".concat(JSON.stringify(a)));case 15:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}e.exports=function(e){return i.apply(this,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,function(e){e.SESSION_ID_REQUEST="SESSION_ID_REQUEST",e.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",e.LINKED="LINKED",e.UNLINKED="UNLINKED",e.WEB3_REQUEST="WEB3_REQUEST",e.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",e.WEB3_RESPONSE="WEB3_RESPONSE"}(t.RelayMessageType||(t.RelayMessageType={}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(866),t),a(n(1711),t)},function(e,t,n){"use strict";(function(e){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a0||(o[a[s].index]=i[c].index,s++),c++)}return o},t.mapAddressListDataOnto=function(e,r,a,i){var o=n([],Array(r.length).fill(i),!0);if(0===e.length)return o;for(var s=(0,t.mapAddressListOnto)(r,a),c=0;c=0&&(o[s[c]]=e[c]);return o}}).call(this,n(23).Buffer)},function(e,t){var n=/^[0-9]+$/,r=function(e,t){var r=n.test(e),a=n.test(t);return r&&a&&(e=+e,t=+t),e===t?0:r&&!a?-1:a&&!r?1:e=0}},function(e,t,n){var r=n(185);e.exports=function(e,t,n){return r(e,t,n)<=0}},function(e,t,n){var r=n(145),a=n(454),i=a.ANY,o=n(186),s=n(455),c=n(453),u=n(615),f=n(617),d=n(616);e.exports=function(e,t,n,l){var p,h,b,y,m;switch(e=new r(e,l),t=new o(t,l),n){case">":p=c,h=f,b=u,y=">",m=">=";break;case"<":p=u,h=d,b=c,y="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,l))return!1;for(var v=function(n){var r=t.set[n],o=null,s=null;return r.forEach((function(e){e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,l)?o=e:b(e.semver,s.semver,l)&&(s=e)})),o.operator===y||o.operator===m?{v:!1}:s.operator&&s.operator!==y||!h(e,s.semver)?s.operator===m&&b(e,s.semver)?{v:!1}:void 0:{v:!1}},g=0;g>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(459);t.alloc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},t.allocUnsafe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(460);t.alloc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},t.allocUnsafe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=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}}},function(e,t,n){var r=n(907);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){(function(e){var r=n(203),a=n(1881),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c}).call(this,n(100)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(909),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s}).call(this,n(100)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(1885),a=n(1924),i=n(643),o=n(188),s=n(1934);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(461),a=n(1892),i=n(1893),o=n(1894),s=n(1895),c=n(1896);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(291)(n(203),"Map");e.exports=r},function(e,t,n){var r=n(1897),a=n(1904),i=n(1906),o=n(1907),s=n(1908);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t31)throw new Error("bytes32 string must be less than 32 bytes");return Object(a.hexlify)(Object(a.concat)([t,r.a]).slice(0,32))}function s(e){var t=Object(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 Object(i.h)(t.slice(0,n))}},function(e,t,n){"use strict";var r=String.prototype.replace,a=/%20/g,i="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:o}},function(e,t,n){"use strict";var r,a,i=n(79).default,o=n(66).default,s=n(34).default,c=n(33).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;var u=n(63),f=n(965),d=n(257),l=n(472),p=n(80),h=n(468),b=s((function e(t){var n,r;c(this,e),this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(n=t.baseId)&&void 0!==n?n:(0,l.normalizeId)(null===r||void 0===r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}));function y(e){var t=v.call(this,e);if(t)return t;var n,i=(0,l.getFullPath)(this.opts.uriResolver,e.root.baseId),s=this.opts.code,c=s.es5,p=s.lines,b=this.opts.ownProperties,y=new u.CodeGen(this.scope,{es5:c,lines:p,ownProperties:b});e.$async&&(n=y.scopeValue("Error",{ref:f.default,code:(0,u._)(r||(r=o(['require("ajv/dist/runtime/validation_error").default'])))}));var m=y.scopeName("validate");e.validateName=m;var g,x={gen:y,allErrors:this.opts.allErrors,data:d.default.data,parentData:d.default.parentData,parentDataProperty:d.default.parentDataProperty,dataNames:[d.default.data],dataPathArr:[u.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:y.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,u.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:u.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,u._)(a||(a=o(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,h.validateFunctionCode)(x),y.optimize(this.opts.code.optimize);var w=y.toString();g="".concat(y.scopeRefs(d.default.scope),"return ").concat(w),this.opts.code.process&&(g=this.opts.code.process(g,e));var _=new Function("".concat(d.default.self),"".concat(d.default.scope),g)(this,this.scope.get());if(this.scope.value(m,{ref:_}),_.errors=null,_.schema=e.schema,_.schemaEnv=e,e.$async&&(_.$async=!0),!0===this.opts.code.source&&(_.source={validateName:m,validateCode:w,scopeValues:y._values}),this.opts.unevaluated){var k=x.props,E=x.items;_.evaluated={props:k instanceof u.Name?void 0:k,items:E instanceof u.Name?void 0:E,dynamicProps:k instanceof u.Name,dynamicItems:E instanceof u.Name},_.source&&(_.source.evaluated=(0,u.stringify)(_.evaluated))}return e.validate=_,e}catch(S){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),S}finally{this._compilations.delete(e)}}function m(e){return(0,l.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:y.call(this,e)}function v(e){var t,n,r,a=i(this._compilations);try{for(a.s();!(t=a.n()).done;){var o=t.value;if(r=e,(n=o).schema===r.schema&&n.root===r.root&&n.baseId===r.baseId)return o}}catch(s){a.e(s)}finally{a.f()}}function g(e,t){for(var n;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||x.call(this,e,t)}function x(e,t){var n=this.opts.uriResolver.parse(t),r=(0,l._getFullPath)(this.opts.uriResolver,n),a=(0,l.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return _.call(this,n,e);var i=(0,l.normalizeId)(r),o=this.refs[i]||this.schemas[i];if("string"==typeof o){var s=x.call(this,e,o);if("object"!==typeof(null===s||void 0===s?void 0:s.schema))return;return _.call(this,n,s)}if("object"===typeof(null===o||void 0===o?void 0:o.schema)){if(o.validate||y.call(this,o),i===(0,l.normalizeId)(t)){var c=o.schema,u=this.opts.schemaId,f=c[u];return f&&(a=(0,l.resolveUrl)(this.opts.uriResolver,a,f)),new b({schema:c,schemaId:u,root:e,baseId:a})}return _.call(this,n,o)}}t.SchemaEnv=b,t.compileSchema=y,t.resolveRef=function(e,t,n){var r;n=(0,l.resolveUrl)(this.opts.uriResolver,t,n);var a=e.refs[n];if(a)return a;var i=g.call(this,e,n);if(void 0===i){var o=null===(r=e.localRefs)||void 0===r?void 0:r[n],s=this.opts.schemaId;o&&(i=new b({schema:o,schemaId:s,root:e,baseId:t}))}return void 0!==i?e.refs[n]=m.call(this,i):void 0},t.getCompilingSchema=v,t.resolveSchema=x;var w=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _(e,t){var n,r=t.baseId,a=t.schema,o=t.root;if("/"===(null===(n=e.fragment)||void 0===n?void 0:n[0])){var s,c,u=i(e.fragment.slice(1).split("/"));try{for(u.s();!(s=u.n()).done;){var f=s.value;if("boolean"===typeof a)return;var d=a[(0,p.unescapeFragment)(f)];if(void 0===d)return;var h="object"===typeof(a=d)&&a[this.opts.schemaId];!w.has(f)&&h&&(r=(0,l.resolveUrl)(this.opts.uriResolver,r,h))}}catch(v){u.e(v)}finally{u.f()}if("boolean"!=typeof a&&a.$ref&&!(0,p.schemaHasRulesButRef)(a,this.RULES)){var y=(0,l.resolveUrl)(this.opts.uriResolver,r,a.$ref);c=x.call(this,o,y)}var m=this.opts.schemaId;return(c=c||new b({schema:a,schemaId:m,root:o,baseId:r})).schema!==c.root.schema?c:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(964);r.code='require("ajv/dist/runtime/equal").default',t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=n(473),a=n(2049),i=function(){function e(e,t){this._rgb=e,this._population=t}return e.applyFilter=function(e,t){return"function"===typeof t?a(e,(function(e){var n=e.r,r=e.g,a=e.b;return t(n,r,a,255)})):e},Object.defineProperty(e.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rgb",{get:function(){return this._rgb},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hsl",{get:function(){if(!this._hsl){var e=this._rgb,t=e[0],n=e[1],a=e[2];this._hsl=r.rgbToHsl(t,n,a)}return this._hsl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hex",{get:function(){if(!this._hex){var e=this._rgb,t=e[0],n=e[1],a=e[2];this._hex=r.rgbToHex(t,n,a)}return this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"population",{get:function(){return this._population},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},e.prototype.getRgb=function(){return this._rgb},e.prototype.getHsl=function(){return this.hsl},e.prototype.getPopulation=function(){return this._population},e.prototype.getHex=function(){return this.hex},e.prototype.getYiq=function(){if(!this._yiq){var e=this._rgb;this._yiq=(299*e[0]+587*e[1]+114*e[2])/1e3}return this._yiq},Object.defineProperty(e.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!1,configurable:!0}),e.prototype.getTitleTextColor=function(){return this.titleTextColor},e.prototype.getBodyTextColor=function(){return this.bodyTextColor},e}();t.Swatch=i},function(e,t,n){var r=n(919);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return i})),n.d(t,"auditTime",(function(){return f})),n.d(t,"buffer",(function(){return d})),n.d(t,"bufferCount",(function(){return b})),n.d(t,"bufferTime",(function(){return x})),n.d(t,"bufferToggle",(function(){return C})),n.d(t,"bufferWhen",(function(){return I})),n.d(t,"catchError",(function(){return D})),n.d(t,"combineAll",(function(){return U})),n.d(t,"combineLatest",(function(){return z})),n.d(t,"concat",(function(){return W})),n.d(t,"concatAll",(function(){return G.a})),n.d(t,"concatMap",(function(){return $})),n.d(t,"concatMapTo",(function(){return Y})),n.d(t,"count",(function(){return J})),n.d(t,"debounce",(function(){return Q})),n.d(t,"debounceTime",(function(){return ne})),n.d(t,"defaultIfEmpty",(function(){return oe})),n.d(t,"delay",(function(){return de})),n.d(t,"delayWhen",(function(){return ye})),n.d(t,"dematerialize",(function(){return we})),n.d(t,"distinct",(function(){return Ee})),n.d(t,"distinctUntilChanged",(function(){return Oe})),n.d(t,"distinctUntilKeyChanged",(function(){return Ce})),n.d(t,"elementAt",(function(){return He})),n.d(t,"endWith",(function(){return qe})),n.d(t,"every",(function(){return We})),n.d(t,"exhaust",(function(){return $e})),n.d(t,"exhaustMap",(function(){return Xe})),n.d(t,"expand",(function(){return tt})),n.d(t,"filter",(function(){return Pe.a})),n.d(t,"finalize",(function(){return at})),n.d(t,"find",(function(){return st})),n.d(t,"findIndex",(function(){return ft})),n.d(t,"first",(function(){return lt})),n.d(t,"groupBy",(function(){return pt.b})),n.d(t,"ignoreElements",(function(){return ht})),n.d(t,"isEmpty",(function(){return mt})),n.d(t,"last",(function(){return kt})),n.d(t,"map",(function(){return Ze.a})),n.d(t,"mapTo",(function(){return Et})),n.d(t,"materialize",(function(){return Ot})),n.d(t,"max",(function(){return Rt})),n.d(t,"merge",(function(){return Lt})),n.d(t,"mergeAll",(function(){return Bt.a})),n.d(t,"mergeMap",(function(){return K.b})),n.d(t,"flatMap",(function(){return K.a})),n.d(t,"mergeMapTo",(function(){return Ft})),n.d(t,"mergeScan",(function(){return Ut})),n.d(t,"min",(function(){return zt})),n.d(t,"multicast",(function(){return Wt})),n.d(t,"observeOn",(function(){return Kt.b})),n.d(t,"onErrorResumeNext",(function(){return $t})),n.d(t,"pairwise",(function(){return Zt})),n.d(t,"partition",(function(){return tn})),n.d(t,"pluck",(function(){return nn})),n.d(t,"publish",(function(){return on})),n.d(t,"publishBehavior",(function(){return cn})),n.d(t,"publishLast",(function(){return fn})),n.d(t,"publishReplay",(function(){return ln})),n.d(t,"race",(function(){return hn})),n.d(t,"reduce",(function(){return Nt})),n.d(t,"repeat",(function(){return bn})),n.d(t,"repeatWhen",(function(){return vn})),n.d(t,"retry",(function(){return wn})),n.d(t,"retryWhen",(function(){return En})),n.d(t,"refCount",(function(){return On.a})),n.d(t,"sample",(function(){return Mn})),n.d(t,"sampleTime",(function(){return jn})),n.d(t,"scan",(function(){return Ct})),n.d(t,"sequenceEqual",(function(){return Rn})),n.d(t,"share",(function(){return Un})),n.d(t,"shareReplay",(function(){return Vn})),n.d(t,"single",(function(){return Hn})),n.d(t,"skip",(function(){return Wn})),n.d(t,"skipLast",(function(){return $n})),n.d(t,"skipUntil",(function(){return Zn})),n.d(t,"skipWhile",(function(){return er})),n.d(t,"startWith",(function(){return rr})),n.d(t,"subscribeOn",(function(){return sr})),n.d(t,"switchAll",(function(){return lr})),n.d(t,"switchMap",(function(){return ur})),n.d(t,"switchMapTo",(function(){return pr})),n.d(t,"take",(function(){return Fe})),n.d(t,"takeLast",(function(){return xt})),n.d(t,"takeUntil",(function(){return hr})),n.d(t,"takeWhile",(function(){return mr})),n.d(t,"tap",(function(){return _r})),n.d(t,"throttle",(function(){return Tr})),n.d(t,"throttleTime",(function(){return Ar})),n.d(t,"throwIfEmpty",(function(){return Ne})),n.d(t,"timeInterval",(function(){return Nr})),n.d(t,"timeout",(function(){return Vr})),n.d(t,"timeoutWith",(function(){return Lr})),n.d(t,"timestamp",(function(){return Hr})),n.d(t,"toArray",(function(){return Wr})),n.d(t,"window",(function(){return Gr})),n.d(t,"windowCount",(function(){return Yr})),n.d(t,"windowTime",(function(){return Xr})),n.d(t,"windowToggle",(function(){return ia})),n.d(t,"windowWhen",(function(){return ca})),n.d(t,"withLatestFrom",(function(){return da})),n.d(t,"zip",(function(){return ba})),n.d(t,"zipAll",(function(){return ya}));var r=n(7),a=n(32);function i(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(r){return this.destination.error(r)}var n=Object(a.c)(t,new a.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this,t=e.value,n=e.hasValue,r=e.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(a.b),c=n(84),u=n(486);function f(e,t){return void 0===t&&(t=c.a),i((function(){return Object(u.a)(e,t)}))}function d(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.closingNotifier))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(a.c)(n,new a.a(r))),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(a.b),h=n(26);function b(e,t){return void 0===t&&(t=null),function(n){return n.lift(new y(e,t))}}var y=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?v:m}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(h.a),v=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.bufferSize=n,a.startBufferEvery=r,a.buffers=[],a.count=0,a}return r.__extends(t,e),t.prototype._next=function(e){var t=this,n=t.bufferSize,r=t.startBufferEvery,a=t.buffers,i=t.count;this.count++,i%r===0&&a.push([]);for(var o=a.length;o--;){var s=a[o];s.push(e),s.length===n&&(a.splice(o,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(h.a),g=n(102);function x(e){var t=arguments.length,n=c.a;Object(g.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var a=Number.POSITIVE_INFINITY;return t>=3&&(a=arguments[2]),function(t){return t.lift(new w(e,r,a,n))}}var w=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new k(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),_=function(){return function(){this.buffer=[]}}(),k=function(e){function t(t,n,r,a,i){var o=e.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=r,o.maxBufferSize=a,o.scheduler=i,o.contexts=[];var s=o.openContext();if(o.timespanOnly=null==r||r<0,o.timespanOnly){var c={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=i.schedule(E,n,c))}else{var u={subscriber:o,context:s},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:i};o.add(s.closeAction=i.schedule(T,n,u)),o.add(i.schedule(S,r,f))}return o}return r.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,a=0;a0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(E,n,r))}},t.prototype.openContext=function(){var e=new _;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(h.a);function E(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function S(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,a=e.scheduler,i=r.openContext();r.closed||(r.add(i.closeAction=a.schedule(T,n,{subscriber:r,context:i})),this.schedule(e,t))}function T(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var O=n(60),M=n(140),A=n(152);function C(e,t){return function(n){return n.lift(new j(e,t))}}var j=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new P(e,this.openings,this.closingSelector))},e}(),P=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.closingSelector=r,a.contexts=[],a.add(Object(M.a)(a,n)),a}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new O.a,r={buffer:[],subscription:n};t.push(r);var a=Object(M.a)(this,e,r);!a||a.closed?this.closeBuffer(r):(a.context=r,this.add(a),n.add(a))},t}(A.a);function I(e){return function(t){return t.lift(new N(e))}}var N=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new R(e,this.closingSelector))},e}(),R=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(r){return this.error(r)}e=new O.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(a.c)(t,new a.a(this))),this.subscribing=!1},t}(a.b);function D(e){return function(t){var n=new L(e),r=t.lift(n);return n.caught=r}}var L=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new B(e,this.selector,this.caught))},e}(),B=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.selector=n,a.caught=r,a}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(o){return void e.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new a.a(this);this.add(r);var i=Object(a.c)(n,r);i!==r&&this.add(i)}},t}(a.b),F=n(339);function U(e){return function(t){return t.lift(new F.a(e))}}var V=n(85),H=n(114);function z(){for(var e=[],t=0;t0&&n[0].time-r.now()<=0;)n.shift().notification.observe(a);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new he(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(fe.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(fe.a.createComplete()),this.unsubscribe()},t}(h.a),he=function(){return function(e,t){this.time=e,this.notification=t}}(),be=n(37);function ye(e,t){return t?function(n){return new ge(n,t).lift(new me(e))}:function(t){return t.lift(new me(e))}}var me=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.delayDurationSelector))},e}(),ve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,a){this.destination.next(e),this.removeSubscription(a),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(r){this.destination.error(r)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=Object(M.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(A.a),ge=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new xe(e,this.source))},t}(be.a),xe=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(h.a);function we(){return function(e){return e.lift(new _e)}}var _e=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ke(e))},e}(),ke=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(h.a);function Ee(e,t){return function(n){return n.lift(new Se(e,t))}}var Se=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new Te(e,this.keySelector,this.flushes))},e}(),Te=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Object(a.c)(r,new a.a(i))),i}return r.__extends(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(a.b);function Oe(e,t){return function(n){return n.lift(new Me(e,t))}}var Me=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Ae(e,this.compare,this.keySelector))},e}(),Ae=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.keySelector=r,a.hasKey=!1,"function"===typeof n&&(a.compare=n),a}return r.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(a){return this.destination.error(a)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(a){return this.destination.error(a)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(h.a);function Ce(e,t){return Oe((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}var je=n(190),Pe=n(153),Ie=n(206);function Ne(e){return void 0===e&&(e=Le),function(t){return t.lift(new Re(e))}}var Re=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new De(e,this.errorFactory))},e}(),De=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(h.a);function Le(){return new Ie.a}var Be=n(111);function Fe(e){return function(t){return 0===e?Object(Be.b)():t.lift(new Ue(e))}}var Ue=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.total))},e}(),Ve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(h.a);function He(e,t){if(e<0)throw new je.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Pe.a)((function(t,n){return n===e})),Fe(1),n?oe(t):Ne((function(){return new je.a})))}}var ze=n(260);function qe(){for(var e=[],t=0;t0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(a.b);function at(e){return function(t){return t.lift(new it(e))}}var it=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new ot(e,this.callback))},e}(),ot=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new O.a(n)),r}return r.__extends(t,e),t}(h.a);function st(e,t){if("function"!==typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ct(e,n,!1,t))}}var ct=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new ut(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),ut=function(e){function t(t,n,r,a,i){var o=e.call(this,t)||this;return o.predicate=n,o.source=r,o.yieldIndex=a,o.thisArg=i,o.index=0,o}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(a){this.destination.error(a)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(h.a);function ft(e,t){return function(n){return n.lift(new ct(e,n,!0,t))}}var dt=n(146);function lt(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Pe.a)((function(t,n){return e(t,n,r)})):dt.a,Fe(1),n?oe(t):Ne((function(){return new Ie.a})))}}var pt=n(447);function ht(){return function(e){return e.lift(new bt)}}var bt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new yt(e))},e}(),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype._next=function(e){},t}(h.a);function mt(){return function(e){return e.lift(new vt)}}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new gt(e))},e}(),gt=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(h.a);function xt(e){return function(t){return 0===e?Object(Be.b)():t.lift(new wt(e))}}var wt=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new _t(e,this.total))},e}(),_t=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,a=0;a=2;return function(r){return r.pipe(e?Object(Pe.a)((function(t,n){return e(t,n,r)})):dt.a,xt(1),n?oe(t):Ne((function(){return new Ie.a})))}}function Et(e){return function(t){return t.lift(new St(e))}}var St=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Tt(e,this.value))},e}(),Tt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(h.a);function Ot(){return function(e){return e.lift(new Mt)}}var Mt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new At(e))},e}(),At=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(fe.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(fe.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(fe.a.createComplete()),e.complete()},t}(h.a);function Ct(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new jt(e,t,n))}}var jt=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Pt(e,this.accumulator,this.seed,this.hasSeed))},e}(),Pt=function(e){function t(t,n,r,a){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=a,i.index=0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(h.a),It=n(295);function Nt(e,t){return arguments.length>=2?function(n){return Object(It.a)(Ct(e,t),xt(1),oe(t))(n)}:function(t){return Object(It.a)(Ct((function(t,n,r){return e(t,n,r+1)})),xt(1))(t)}}function Rt(e){return Nt("function"===typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var Dt=n(484);function Lt(){for(var e=[],t=0;t0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(a.b);function zt(e){return Nt("function"===typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(h.a);function vn(e){return function(t){return t.lift(new gn(e))}}var gn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new xn(e,this.notifier,t))},e}(),xn=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.notifier=n,a.source=r,a.sourceIsBeingSubscribedTo=!0,a}return r.__extends(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new an.a;try{t=(0,this.notifier)(this.notifications)}catch(n){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Object(a.c)(t,new a.a(this))},t}(a.b);function wn(e){return void 0===e&&(e=-1),function(t){return t.lift(new _n(e,t))}}var _n=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new kn(e,this.count,this.source))},e}(),kn=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.count=n,a.source=r,a}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(h.a);function En(e){return function(t){return t.lift(new Sn(e,t))}}var Sn=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Tn(e,this.notifier,this.source))},e}(),Tn=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.notifier=n,a.source=r,a}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new an.a;try{r=(0,this.notifier)(n)}catch(o){return e.prototype.error.call(this,o)}i=Object(a.c)(r,new a.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(a.b),On=n(336);function Mn(e){return function(t){return t.lift(new An(e))}}var An=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Cn(e),r=t.subscribe(n);return r.add(Object(a.c)(this.notifier,new a.a(n))),r},e}(),Cn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(a.b);function jn(e,t){return void 0===t&&(t=c.a),function(n){return n.lift(new Pn(e,t))}}var Pn=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new In(e,this.period,this.scheduler))},e}(),In=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.period=n,a.scheduler=r,a.hasValue=!1,a.add(r.schedule(Nn,n,{subscriber:a,period:n})),a}return r.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(h.a);function Nn(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function Rn(e,t){return function(n){return n.lift(new Dn(e,t))}}var Dn=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Ln(e,this.compareTo,this.comparator))},e}(),Ln=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.compareTo=n,a.comparator=r,a._a=[],a._b=[],a._oneComplete=!1,a.destination.add(n.subscribe(new Bn(t,a))),a}return r.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this,t=e._a,n=e._b,r=e.comparator;t.length>0&&n.length>0;){var a=t.shift(),i=n.shift(),o=!1;try{o=r?r(a,i):a===i}catch(s){this.destination.error(s)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(h.a),Bn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(h.a);function Fn(){return new an.a}function Un(){return function(e){return Object(On.a)()(Wt(Fn)(e))}}function Vn(e,t,n){var r;return r=e&&"object"===typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,a=void 0===r?Number.POSITIVE_INFINITY:r,i=e.windowTime,o=void 0===i?Number.POSITIVE_INFINITY:i,s=e.refCount,c=e.scheduler,u=0,f=!1,d=!1;return function(e){var r;u++,!t||f?(f=!1,t=new dn.a(a,o,c),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){f=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):r=t.subscribe(this),this.add((function(){u--,r.unsubscribe(),r=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}function Hn(e){return function(t){return t.lift(new zn(e,t))}}var zn=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new qn(e,this.predicate,this.source))},e}(),qn=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.seenValue=!1,a.index=0,a}return r.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Ie.a)},t}(h.a);function Wn(e){return function(t){return t.lift(new Gn(e))}}var Gn=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Kn(e,this.total))},e}(),Kn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(h.a);function $n(e){return function(t){return t.lift(new Yn(e))}}var Yn=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new je.a}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new h.a(e)):t.subscribe(new Jn(e,this._skipCount))},e}(),Jn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,a=this.windows,i=a.length,o=0;o=0&&s%t===0&&!this.closed&&a.shift().complete(),++this.count%t===0&&!this.closed){var c=new an.a;a.push(c),n.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(h.a);function Xr(e){var t=c.a,n=null,r=Number.POSITIVE_INFINITY;return Object(g.a)(arguments[3])&&(t=arguments[3]),Object(g.a)(arguments[2])?t=arguments[2]:Object(ir.a)(arguments[2])&&(r=Number(arguments[2])),Object(g.a)(arguments[1])?t=arguments[1]:Object(ir.a)(arguments[1])&&(n=Number(arguments[1])),function(a){return a.lift(new Qr(e,n,r,t))}}var Qr=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ta(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(an.a),ta=function(e){function t(t,n,r,a,i){var o=e.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=r,o.maxWindowSize=a,o.scheduler=i,o.windows=[];var s=o.openWindow();if(null!==r&&r>=0){var c={subscriber:o,window:s,context:null},u={windowTimeSpan:n,windowCreationInterval:r,subscriber:o,scheduler:i};o.add(i.schedule(aa,n,c)),o.add(i.schedule(ra,r,u))}else{var f={subscriber:o,window:s,windowTimeSpan:n};o.add(i.schedule(na,n,f))}return o}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(a))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new ea;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(h.a);function na(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function ra(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,a=e.windowCreationInterval,i=n.openWindow(),o=this,s={action:o,subscription:null},c={subscriber:n,window:i,context:s};s.subscription=r.schedule(aa,t,c),o.add(s.subscription),o.schedule(e,a)}function aa(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function ia(e,t){return function(n){return n.lift(new oa(e,t))}}var oa=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new sa(e,this.openings,this.closingSelector))},e}(),sa=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.openings=n,a.closingSelector=r,a.contexts=[],a.add(a.openSubscription=Object(M.a)(a,n,n)),a}return r.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0){var a=r.indexOf(n);-1!==a&&r.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(A.a),ha=n(342);function ba(){for(var e=[],t=0;t>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 c(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=s(t)^r>>5}for(t=s(t),n=0;nt)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var i=(e=n).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var o=e.slice(0,i),u=e.slice(i+1);if(u.length<6)return"Data too short";var f=c(o);if("string"===typeof f)return f;for(var d=[],l=0;l=u.length||d.push(h)}return 1!==f?"Invalid checksum for "+e:{prefix:o,words:d}}function f(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<n)throw new TypeError("Exceeds length limit");var a=c(e=e.toLowerCase());if("string"===typeof a)throw new Error(a);for(var i=e+"1",o=0;o>5!==0)throw new Error("Non 5-bit word");a=s(a)^u,i+=r.charAt(u)}for(o=0;o<6;++o)a=s(a);for(a^=1,o=0;o<6;++o){i+=r.charAt(a>>5*(5-o)&31)}return i},toWordsUnsafe:function(e){var t=f(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=f(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=f(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=f(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},function(e,t,n){var r=n(332);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(450).SEMVER_SPEC_VERSION,SemVer:n(145),compareIdentifiers:n(612).compareIdentifiers,rcompareIdentifiers:n(612).rcompareIdentifiers,parse:n(333),valid:n(1716),clean:n(1717),inc:n(1718),diff:n(1719),major:n(1720),minor:n(1721),patch:n(1722),prerelease:n(1723),compare:n(185),rcompare:n(1724),compareLoose:n(1725),compareBuild:n(614),sort:n(1726),rsort:n(1727),gt:n(453),lt:n(615),eq:n(613),neq:n(871),gte:n(616),lte:n(617),cmp:n(872),coerce:n(1728),Comparator:n(454),Range:n(186),satisfies:n(455),toComparators:n(1732),maxSatisfying:n(1733),minSatisfying:n(1734),minVersion:n(1735),validRange:n(1736),outside:n(618),gtr:n(1737),ltr:n(1738),intersects:n(1739),simplifyRange:n(1740),subset:n(1741)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=0,a=[],i=function(e,t,n){var i={type:e,id:String(++r),date:new Date};t&&(i.message=t),n&&(i.data=n),function(e){for(var t=0;t16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var s=new Uint8Array(32);r.stream(this._key,o,s,4);var c,u=t.length+this.tagLength;if(a){if(a.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(u);return r.streamXOR(this._key,o,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),i.wipe(o),c},e.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(c.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(c.subarray(n.length%16));var u=new Uint8Array(8);r&&o.writeUint64LE(r.length,u),s.update(u),o.writeUint64LE(n.length,u),s.update(u);for(var f=s.digest(),d=0;d=0;--x){var w=n[x>>>3]>>>(7&x)&1;u(a,o,w),u(h,b,w),f(y,a,h),d(a,a,h),f(h,o,b),d(o,o,b),p(b,y),p(m,a),l(a,h,a),l(h,o,y),f(y,a,h),d(a,a,h),p(o,a),d(h,b,m),l(a,h,s),f(a,a,b),l(h,h,a),l(a,b,m),l(b,o,r),p(o,y),u(a,o,w),u(h,b,w)}for(var _=0;_<16;_++)r[_+16]=a[_],r[_+32]=h[_],r[_+48]=o[_],r[_+64]=b[_];var k=r.subarray(32),E=r.subarray(16);!function(e,t){for(var n=i(),r=0;r<16;r++)n[r]=t[r];for(var a=253;a>=0;a--)p(n,n),2!==a&&4!==a&&l(n,n,t);for(var o=0;o<16;o++)e[o]=n[o]}(k,k),l(E,E,k);var S=new Uint8Array(32);return function(e,t){for(var n=i(),r=i(),a=0;a<16;a++)r[a]=t[a];c(r),c(r),c(r);for(var o=0;o<2;o++){n[0]=r[0]-65517;for(var s=1;s<15;s++)n[s]=r[s]-65535-(n[s-1]>>16&1),n[s-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);var f=n[15]>>16&1;n[14]&=65535,u(r,n,1-f)}for(var d=0;d<16;d++)e[2*d]=255&r[d],e[2*d+1]=r[d]>>8}(S,E),S}function b(e){return h(e,o)}function y(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error("x25519: seed must be ".concat(t.SECRET_KEY_LENGTH," bytes"));var n=new Uint8Array(e);return{publicKey:b(n),secretKey:n}}t.scalarMult=h,t.scalarMultBase=b,t.generateKeyPairFromSeed=y,t.generateKeyPair=function(e){var t=(0,r.randomBytes)(32,e),n=y(t);return(0,a.wipe)(t),n},t.sharedKey=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(n.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");var a=h(e,n);if(r){for(var i=0,o=0;o=5||2===n&&(a[0]>5||5===a[0]&&(r||a[1]!==p))),a.length=1,r?(e.e=e.e-t+1,a[0]=1):a[0]=e.e=0;else if(t=5||2===n&&(a[t]>5||5===a[t]&&(r||a[t+1]!==p||1&a[t-1]))||3===n&&(r||!!a[0]),a.length=t--,r)for(;++a[t]>9;)a[t]=0,t--||(++e.e,a.unshift(1));for(t=a.length;!a[--t];)a.pop()}return e}function y(e,t,n){var r=e.e,a=e.c.join(""),i=a.length;if(t)a=a.charAt(0)+(i>1?"."+a.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)a="0"+a;a="0."+a}else if(r>0)if(++r>i)for(r-=i;r--;)a+="0";else r1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&n?"-"+a:a}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,n=this,r=n.c,a=(e=new n.constructor(e)).c,i=n.s,o=e.s,s=n.e,c=e.e;if(!r[0]||!a[0])return r[0]?i:a[0]?-o:0;if(i!=o)return i;if(t=i<0,s!=c)return s>c^t?1:-1;for(o=(s=r.length)<(c=a.length)?s:c,i=-1;++ia[i]^t?1:-1;return s==c?0:s>c^t?1:-1},l.div=function(e){var t=this,n=t.constructor,r=t.c,a=(e=new n(e)).c,i=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>o)throw Error(f);if(!a[0])throw Error(d);if(!r[0])return e.s=i,e.c=[e.e=0],e;var c,u,l,h,y,m=a.slice(),v=c=a.length,g=r.length,x=r.slice(0,c),w=x.length,_=e,k=_.c=[],E=0,S=s+(_.e=t.e-e.e)+1;for(_.s=i,i=S<0?0:S,m.unshift(0);w++w?1:-1;else for(y=-1,h=0;++yx[y]?1:-1;break}if(!(h<0))break;for(u=w==c?a:m;w;){if(x[--w]S&&b(_,S,n.RM,x[0]!==p),_},l.eq=function(e){return 0===this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return this.cmp(e)<0},l.lte=function(e){return this.cmp(e)<1},l.minus=l.sub=function(e){var t,n,r,a,i=this,o=i.constructor,s=i.s,c=(e=new o(e)).s;if(s!=c)return e.s=-c,i.plus(e);var u=i.c.slice(),f=i.e,d=e.c,l=e.e;if(!u[0]||!d[0])return d[0]?e.s=-c:u[0]?e=new o(i):e.s=1,e;if(s=f-l){for((a=s<0)?(s=-s,r=u):(l=f,r=d),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((a=u.length0)for(;c--;)u[t++]=0;for(c=t;n>s;){if(u[--n]0?(c=o,r=u):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-u.length<0&&(r=u,u=s,s=r),t=u.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+u[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=c,e},l.pow=function(e){var t=this,n=new t.constructor("1"),r=n,a=e<0;if(e!==~~e||e<-1e6||e>s)throw Error(u+"exponent");for(a&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return a?n.div(r):r},l.prec=function(e,t){if(e!==~~e||e<1||e>o)throw Error(u+"precision");return b(new this.constructor(this),e,t)},l.round=function(e,t){if(e===p)e=0;else if(e!==~~e||e<-o||e>o)throw Error(f);return b(new this.constructor(this),e+this.e+1,t)},l.sqrt=function(){var e,t,n,r=this,a=r.constructor,i=r.s,o=r.e,s=new a("0.5");if(!r.c[0])return new a(r);if(i<0)throw Error(c+"No square root");0===(i=Math.sqrt(r+""))||i===1/0?((t=r.c.join("")).length+o&1||(t+="0"),o=((o+1)/2|0)-(o<0||1&o),e=new a(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+o)):e=new a(i+""),o=e.e+(a.DP+=4);do{n=e,e=s.times(n.plus(r.div(n)))}while(n.c.slice(0,o).join("")!==e.c.slice(0,o).join(""));return b(e,(a.DP-=4)+e.e+1,a.RM)},l.times=l.mul=function(e){var t,n=this,r=n.constructor,a=n.c,i=(e=new r(e)).c,o=a.length,s=i.length,c=n.e,u=e.e;if(e.s=n.s==e.s?1:-1,!a[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+u,oc;)s=t[u]+i[c]*a[u-c-1]+s,t[u--]=s%10,s=s/10|0;t[u]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},l.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==p){if(e!==~~e||e<0||e>o)throw Error(f);for(n=b(new n.constructor(n),++e,t);n.c.lengtho)throw Error(f);for(e=e+(n=b(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length=t.PE,!!e.c[0])},l.toNumber=function(){var e=Number(y(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(c+"Imprecise conversion");return e},l.toPrecision=function(e,t){var n=this,r=n.constructor,a=n.c[0];if(e!==p){if(e!==~~e||e<1||e>o)throw Error(u+"precision");for(n=b(new r(n),e,t);n.c.length=r.PE,!!a)},l.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(c+"valueOf disallowed");return y(e,e.e<=t.NE||e.e>=t.PE,!0)},i=function e(){function t(n){var r=this;if(!(r instanceof t))return n===p?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice();else{if("string"!==typeof n){if(!0===t.strict)throw TypeError(u+"number");n=0===n&&1/n<0?"-0":String(n)}!function(e,t){var n,r,a;if(!h.test(t))throw Error(u+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(a=t.length,r=0;r0&&"0"==t.charAt(--a););for(e.e=n-r-1,e.c=[],n=0;r<=a;)e.c[n++]=+t.charAt(r++)}}(r,n)}r.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),i.default=i.Big=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},function(e){e.exports=JSON.parse('{"name":"Uniswap Labs List","timestamp":"2021-12-21T23:59:15.901Z","version":{"major":2,"minor":3,"patch":0},"tags":{},"logoURI":"ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir","keywords":["uniswap","default"],"tokens":[{"chainId":1,"address":"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9","name":"Aave","symbol":"AAVE","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110"},{"chainId":1,"address":"0xfF20817765cB7f73d4bde2e66e067E58D11095C2","name":"Amp","symbol":"AMP","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/12409/thumb/amp-200x200.png?1599625397"},{"name":"Aragon Network Token","address":"0x960b236A07cf122663c4303350609A66A7B288C0","symbol":"ANT","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x960b236A07cf122663c4303350609A66A7B288C0/logo.png"},{"name":"Balancer","address":"0xba100000625a3754423978a60c9317c58a424e3D","symbol":"BAL","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xba100000625a3754423978a60c9317c58a424e3D/logo.png"},{"chainId":1,"address":"0xBA11D00c5f74255f56a5E366F4F77f5A186d7f55","name":"Band Protocol","symbol":"BAND","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/9545/thumb/band-protocol.png?1568730326"},{"name":"Bancor Network Token","address":"0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C","symbol":"BNT","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C/logo.png"},{"name":"Compound","address":"0xc00e94Cb662C3520282E6f5717214004A7f26888","symbol":"COMP","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc00e94Cb662C3520282E6f5717214004A7f26888/logo.png"},{"name":"Curve DAO Token","address":"0xD533a949740bb3306d119CC777fa900bA034cd52","symbol":"CRV","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xD533a949740bb3306d119CC777fa900bA034cd52/logo.png"},{"chainId":1,"address":"0x41e5560054824eA6B0732E656E3Ad64E20e94E45","name":"Civic","symbol":"CVC","decimals":8,"logoURI":"https://assets.coingecko.com/coins/images/788/thumb/civic.png?1547034556"},{"name":"Dai Stablecoin","address":"0x6B175474E89094C44Da98b954EedeAC495271d0F","symbol":"DAI","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"},{"chainId":1,"address":"0x0AbdAce70D3790235af448C88547603b945604ea","name":"district0x","symbol":"DNT","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/849/thumb/district0x.png?1547223762"},{"chainId":1,"address":"0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72","name":"Ethereum Name Service","symbol":"ENS","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/19785/thumb/acatxTm8_400x400.jpg?1635850140"},{"name":"Gnosis Token","address":"0x6810e776880C02933D47DB1b9fc05908e5386b96","symbol":"GNO","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6810e776880C02933D47DB1b9fc05908e5386b96/logo.png"},{"chainId":1,"address":"0xc944E90C64B2c07662A292be6244BDf05Cda44a7","name":"The Graph","symbol":"GRT","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/13397/thumb/Graph_Token.png?1608145566"},{"chainId":1,"address":"0x85Eee30c52B0b379b046Fb0F85F4f3Dc3009aFEC","name":"Keep Network","symbol":"KEEP","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/3373/thumb/IuNzUb5b_400x400.jpg?1589526336"},{"name":"Kyber Network Crystal","address":"0xdd974D5C2e2928deA5F71b9825b8b646686BD200","symbol":"KNC","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdd974D5C2e2928deA5F71b9825b8b646686BD200/logo.png"},{"name":"ChainLink Token","address":"0x514910771AF9Ca656af840dff83E8264EcF986CA","symbol":"LINK","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x514910771AF9Ca656af840dff83E8264EcF986CA/logo.png"},{"name":"Loom Network","address":"0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0","symbol":"LOOM","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0/logo.png"},{"name":"LoopringCoin V2","address":"0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD","symbol":"LRC","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD/logo.png"},{"chainId":1,"address":"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942","name":"Decentraland","symbol":"MANA","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/878/thumb/decentraland-mana.png?1550108745"},{"chainId":1,"address":"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0","name":"Polygon","symbol":"MATIC","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"},{"name":"Maker","address":"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2","symbol":"MKR","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2/logo.png"},{"chainId":1,"address":"0xec67005c4E498Ec7f55E092bd1d35cbC47C91892","name":"Melon","symbol":"MLN","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/605/thumb/melon.png?1547034295"},{"name":"Numeraire","address":"0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671","symbol":"NMR","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671/logo.png"},{"chainId":1,"address":"0x4fE83213D56308330EC302a8BD641f1d0113A4Cc","name":"NuCypher","symbol":"NU","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/3318/thumb/photo1198982838879365035.jpg?1547037916"},{"name":"Orchid","address":"0x4575f41308EC1483f3d399aa9a2826d74Da13Deb","symbol":"OXT","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4575f41308EC1483f3d399aa9a2826d74Da13Deb/logo.png"},{"name":"Republic Token","address":"0x408e41876cCCDC0F92210600ef50372656052a38","symbol":"REN","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x408e41876cCCDC0F92210600ef50372656052a38/logo.png"},{"name":"Reputation Augur v1","address":"0x1985365e9f78359a9B6AD760e32412f4a445E862","symbol":"REP","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1985365e9f78359a9B6AD760e32412f4a445E862/logo.png"},{"name":"Reputation Augur v2","address":"0x221657776846890989a759BA2973e427DfF5C9bB","symbol":"REPv2","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x221657776846890989a759BA2973e427DfF5C9bB/logo.png"},{"name":"Synthetix Network Token","address":"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F","symbol":"SNX","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F/logo.png"},{"name":"Storj Token","address":"0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC","symbol":"STORJ","decimals":8,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC/logo.png"},{"name":"Synth sUSD","address":"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51","symbol":"sUSD","decimals":18,"chainId":1,"logoURI":"https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1616150765"},{"chainId":1,"address":"0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa","name":"tBTC","symbol":"TBTC","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/11224/thumb/tBTC.png?1589620754"},{"name":"UMA Voting Token v1","address":"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828","symbol":"UMA","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828/logo.png"},{"name":"Uniswap","address":"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984","symbol":"UNI","decimals":18,"chainId":1,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"USDCoin","address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC","decimals":6,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"},{"name":"Tether USD","address":"0xdAC17F958D2ee523a2206206994597C13D831ec7","symbol":"USDT","decimals":6,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"},{"name":"Wrapped BTC","address":"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599","symbol":"WBTC","decimals":8,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"},{"name":"Wrapped Ether","address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","symbol":"WETH","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"},{"chainId":1,"address":"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e","name":"yearn finance","symbol":"YFI","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/11849/thumb/yfi-192x192.png?1598325330"},{"name":"0x Protocol Token","address":"0xE41d2489571d322189246DaFA5ebDe1F4699F498","symbol":"ZRX","decimals":18,"chainId":1,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xE41d2489571d322189246DaFA5ebDe1F4699F498/logo.png"},{"name":"Dai Stablecoin","address":"0xaD6D458402F60fD3Bd25163575031ACDce07538D","symbol":"DAI","decimals":18,"chainId":3,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xaD6D458402F60fD3Bd25163575031ACDce07538D/logo.png"},{"name":"Uniswap","address":"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984","symbol":"UNI","decimals":18,"chainId":3,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"Wrapped Ether","address":"0xc778417E063141139Fce010982780140Aa0cD5Ab","symbol":"WETH","decimals":18,"chainId":3,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc778417E063141139Fce010982780140Aa0cD5Ab/logo.png"},{"name":"Dai Stablecoin","address":"0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735","symbol":"DAI","decimals":18,"chainId":4,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735/logo.png"},{"name":"Maker","address":"0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85","symbol":"MKR","decimals":18,"chainId":4,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85/logo.png"},{"name":"Uniswap","address":"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984","symbol":"UNI","decimals":18,"chainId":4,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"Wrapped Ether","address":"0xc778417E063141139Fce010982780140Aa0cD5Ab","symbol":"WETH","decimals":18,"chainId":4,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc778417E063141139Fce010982780140Aa0cD5Ab/logo.png"},{"name":"Uniswap","address":"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984","symbol":"UNI","decimals":18,"chainId":5,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"Wrapped Ether","address":"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6","symbol":"WETH","decimals":18,"chainId":5,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6/logo.png"},{"name":"Dai Stablecoin","address":"0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa","symbol":"DAI","decimals":18,"chainId":42,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa/logo.png"},{"name":"Maker","address":"0xAaF64BFCC32d0F15873a02163e7E500671a4ffcD","symbol":"MKR","decimals":18,"chainId":42,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xAaF64BFCC32d0F15873a02163e7E500671a4ffcD/logo.png"},{"name":"Uniswap","address":"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984","symbol":"UNI","decimals":18,"chainId":42,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"Wrapped Ether","address":"0xd0A1E359811322d97991E03f863a0C30C2cF029C","symbol":"WETH","decimals":18,"chainId":42,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xd0A1E359811322d97991E03f863a0C30C2cF029C/logo.png"},{"chainId":137,"address":"0xD6DF932A45C0f255f85145f286eA0b292B21C90B","name":"Aave","symbol":"AAVE","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110"},{"chainId":137,"address":"0x0621d647cecbFb64b79E44302c1933cB4f27054d","name":"Amp","symbol":"AMP","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/12409/thumb/amp-200x200.png?1599625397"},{"name":"Balancer","address":"0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3","symbol":"BAL","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xba100000625a3754423978a60c9317c58a424e3D/logo.png"},{"chainId":137,"address":"0xA8b1E0764f85f53dfe21760e8AfE5446D82606ac","name":"Band Protocol","symbol":"BAND","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/9545/thumb/band-protocol.png?1568730326"},{"name":"Bancor Network Token","address":"0xc26D47d5c33aC71AC5CF9F776D63Ba292a4F7842","symbol":"BNT","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C/logo.png"},{"name":"Compound","address":"0x8505b9d2254A7Ae468c0E9dd10Ccea3A837aef5c","symbol":"COMP","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc00e94Cb662C3520282E6f5717214004A7f26888/logo.png"},{"name":"Curve DAO Token","address":"0x172370d5Cd63279eFa6d502DAB29171933a610AF","symbol":"CRV","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xD533a949740bb3306d119CC777fa900bA034cd52/logo.png"},{"chainId":137,"address":"0x66Dc5A08091d1968e08C16aA5b27BAC8398b02Be","name":"Civic","symbol":"CVC","decimals":8,"logoURI":"https://assets.coingecko.com/coins/images/788/thumb/civic.png?1547034556"},{"name":"Dai Stablecoin","address":"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063","symbol":"DAI","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"},{"chainId":137,"address":"0xbD7A5Cf51d22930B8B3Df6d834F9BCEf90EE7c4f","name":"Ethereum Name Service","symbol":"ENS","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/19785/thumb/acatxTm8_400x400.jpg?1635850140"},{"name":"Gnosis Token","address":"0x5FFD62D3C3eE2E81C00A7b9079FB248e7dF024A8","symbol":"GNO","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6810e776880C02933D47DB1b9fc05908e5386b96/logo.png"},{"chainId":137,"address":"0x5fe2B58c013d7601147DcdD68C143A77499f5531","name":"The Graph","symbol":"GRT","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/13397/thumb/Graph_Token.png?1608145566"},{"chainId":137,"address":"0x42f37A1296b2981F7C3cAcEd84c5096b2Eb0C72C","name":"Keep Network","symbol":"KEEP","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/3373/thumb/IuNzUb5b_400x400.jpg?1589526336"},{"name":"Kyber Network Crystal","address":"0x324b28d6565f784d596422B0F2E5aB6e9CFA1Dc7","symbol":"KNC","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdd974D5C2e2928deA5F71b9825b8b646686BD200/logo.png"},{"name":"ChainLink Token","address":"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39","symbol":"LINK","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x514910771AF9Ca656af840dff83E8264EcF986CA/logo.png"},{"name":"Loom Network","address":"0x66EfB7cC647e0efab02eBA4316a2d2941193F6b3","symbol":"LOOM","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0/logo.png"},{"name":"LoopringCoin V2","address":"0x84e1670F61347CDaeD56dcc736FB990fBB47ddC1","symbol":"LRC","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD/logo.png"},{"chainId":137,"address":"0xA1c57f48F0Deb89f569dFbE6E2B7f46D33606fD4","name":"Decentraland","symbol":"MANA","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/878/thumb/decentraland-mana.png?1550108745"},{"name":"Maker","address":"0x6f7C932e7684666C9fd1d44527765433e01fF61d","symbol":"MKR","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2/logo.png"},{"name":"Numeraire","address":"0x0Bf519071b02F22C17E7Ed5F4002ee1911f46729","symbol":"NMR","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671/logo.png"},{"name":"Orchid","address":"0x9880e3dDA13c8e7D4804691A45160102d31F6060","symbol":"OXT","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4575f41308EC1483f3d399aa9a2826d74Da13Deb/logo.png"},{"name":"Republic Token","address":"0x19782D3Dc4701cEeeDcD90f0993f0A9126ed89d0","symbol":"REN","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x408e41876cCCDC0F92210600ef50372656052a38/logo.png"},{"name":"Reputation Augur v2","address":"0x6563c1244820CfBd6Ca8820FBdf0f2847363F733","symbol":"REPv2","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x221657776846890989a759BA2973e427DfF5C9bB/logo.png"},{"name":"Synthetix Network Token","address":"0x50B728D8D964fd00C2d0AAD81718b71311feF68a","symbol":"SNX","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F/logo.png"},{"name":"Storj Token","address":"0xd72357dAcA2cF11A5F155b9FF7880E595A3F5792","symbol":"STORJ","decimals":8,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC/logo.png"},{"name":"Synth sUSD","address":"0xF81b4Bec6Ca8f9fe7bE01CA734F55B2b6e03A7a0","symbol":"sUSD","decimals":18,"chainId":137,"logoURI":"https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1616150765"},{"chainId":137,"address":"0x50a4a434247089848991DD8f09b889D4e2870aB6","name":"tBTC","symbol":"TBTC","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/11224/thumb/tBTC.png?1589620754"},{"name":"UMA Voting Token v1","address":"0x3066818837c5e6eD6601bd5a91B0762877A6B731","symbol":"UMA","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828/logo.png"},{"name":"Uniswap","address":"0xb33EaAd8d922B1083446DC23f610c2567fB5180f","symbol":"UNI","decimals":18,"chainId":137,"logoURI":"ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"},{"name":"USDCoin","address":"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174","symbol":"USDC","decimals":6,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"},{"name":"Tether USD","address":"0xc2132D05D31c914a87C6611C10748AEb04B58e8F","symbol":"USDT","decimals":6,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"},{"name":"Wrapped BTC","address":"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6","symbol":"WBTC","decimals":8,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"},{"name":"Wrapped Ether","address":"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619","symbol":"WETH","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"},{"name":"Wrapped Matic","address":"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270","symbol":"WMATIC","decimals":18,"chainId":137,"logoURI":"https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"},{"chainId":137,"address":"0xDA537104D6A5edd53c6fBba9A898708E465260b6","name":"yearn finance","symbol":"YFI","decimals":18,"logoURI":"https://assets.coingecko.com/coins/images/11849/thumb/yfi-192x192.png?1598325330"},{"name":"0x Protocol Token","address":"0x5559Edb74751A0edE9DeA4DC23aeE72cCA6bE3D5","symbol":"ZRX","decimals":18,"chainId":137,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xE41d2489571d322189246DaFA5ebDe1F4699F498/logo.png"},{"name":"Wrapped Ether","address":"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa","symbol":"WETH","decimals":18,"chainId":80001,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"},{"name":"Wrapped Matic","address":"0xd0A1E359811322d97991E03f863a0C30C2cF029C","symbol":"WMATIC","decimals":18,"chainId":80001,"logoURI":"https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"}]}')},function(e,t,n){var r=n(1936);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=l;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,o=0,s="",f=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],l=n[1],p=n.index;if(s+=e.slice(o,p),o=p+d.length,l)s+=l[1];else{var h=e[o],b=n[2],y=n[3],m=n[4],v=n[5],g=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=b&&null!=h&&h!==b,_="+"===g||"*"===g,k="?"===g||"*"===g,E=n[2]||f,S=m||v;r.push({name:y||i++,prefix:b||"",delimiter:E,optional:k,repeat:_,partial:w,asterisk:!!x,pattern:S?u(S):x?".*":"[^"+c(E)+"]+?"})}}return o>16,n>>8&255,255&n,t]}function s(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(i(e),i(t))}function c(e,t){return s(o(e),o(t))}},function(e,t,n){var r=n(2088);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function f(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[],a=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function U(e,t,n,r){var a=r;"string"===typeof r&&(a=function(){return this[r]()}),e&&(F[e]=a),t&&(F[t[0]]=function(){return R(a.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(D);for(t=0,n=r.length;t=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function $(){return this._invalidDate}var Y="%d",J=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var a=this._relativeTime[n];return A(a)?a(e,t,n,r):a.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={};function oe(e,t){ie[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4===0&&e%100!==0||e%400===0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function fe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function de(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):le(this,e)}}function le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=fe(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return A(this[e=re(e)])?this[e]():this}function be(e,t){if("object"===typeof e){var n,r=se(e=ae(e)),a=r.length;for(n=0;n68?1900:2e3)};var yt=de("FullYear",!0);function mt(){return ce(this.year())}function vt(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function gt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+gt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+xt(e,r,a);return s<=0?o=bt(i=e-1)+s:s>bt(e)?(i=e+1,o=s-bt(e)):(i=e,o=s),{year:i,dayOfYear:o}}function _t(e,t,n){var r,a,i=xt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+kt(a=e.year()-1,t,n):o>kt(e.year(),t,n)?(r=o-kt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function kt(e,t,n){var r=xt(e,t,n),a=xt(e+1,t,n);return(bt(e)-r+a)/7}function Et(e){return _t(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ne("w",_e),Ne("ww",_e,ve),Ne("W",_e),Ne("WW",_e,ve),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=fe(e)}));var St={dow:0,doy:6};function Tt(){return this._week.dow}function Ot(){return this._week.doy}function Mt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function At(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ct(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function jt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ne("d",_e),Ne("e",_e),Ne("E",_e),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=fe(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dt=Ie,Lt=Ie,Bt=Ie;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Vt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=He.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=He.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=He.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=He.call(this._weekdaysParse,o))||-1!==(a=He.call(this._shortWeekdaysParse,o))||-1!==(a=He.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=He.call(this._shortWeekdaysParse,o))||-1!==(a=He.call(this._weekdaysParse,o))||-1!==(a=He.call(this._minWeekdaysParse,o))?a:null:-1!==(a=He.call(this._minWeekdaysParse,o))||-1!==(a=He.call(this._weekdaysParse,o))||-1!==(a=He.call(this._shortWeekdaysParse,o))?a:null}function zt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=jt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Dt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),a=Le(this.weekdaysShort(n,"")),i=Le(this.weekdays(n,"")),o.push(r),s.push(a),c.push(i),u.push(r),u.push(a),u.push(i);o.sort(e),s.sort(e),c.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Qt(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Zt),U("k",["kk",2],0,Xt),U("hmm",0,0,(function(){return""+Zt.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Zt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),oe("hour",13),Ne("a",en),Ne("A",en),Ne("H",_e),Ne("h",_e),Ne("k",_e),Ne("HH",_e,ve),Ne("hh",_e,ve),Ne("kk",_e,ve),Ne("hmm",ke),Ne("hmmss",Ee),Ne("Hmm",ke),Ne("Hmmss",Ee),Fe(["H","HH"],Ge),Fe(["k","kk"],(function(e,t,n){var r=fe(e);t[Ge]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ge]=fe(e),y(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=fe(e.substr(0,r)),t[Ke]=fe(e.substr(r)),y(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ge]=fe(e.substr(0,r)),t[Ke]=fe(e.substr(r,2)),t[$e]=fe(e.substr(a)),y(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=fe(e.substr(0,r)),t[Ke]=fe(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ge]=fe(e.substr(0,r)),t[Ke]=fe(e.substr(r,2)),t[$e]=fe(e.substr(a))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,sn={calendar:I,longDateFormat:W,invalidDate:K,ordinal:Y,dayOfMonthOrdinalParse:J,relativeTime:X,months:et,monthsShort:tt,week:St,weekdays:It,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:nn},cn={},un={};function fn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=hn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&fn(a,n)>=t-1)break;t--}i++}return on}function pn(e){return null!=e.match("^[^/\\\\]*$")}function hn(t){var n=null;if(void 0===cn[t]&&"undefined"!==typeof e&&e&&e.exports&&pn(t))try{n=on._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),bn(n)}catch(r){cn[t]=null}return cn[t]}function bn(e,t){var n;return e&&((n=u(t)?vn(e):yn(e,t))?on=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function yn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=cn[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new P(j(r,t)),un[e]&&un[e].forEach((function(e){yn(e.name,e.config)})),bn(e),cn[e]}return delete cn[e],null}function mn(e,t){if(null!=t){var n,r,a=sn;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(j(cn[e]._config,t)):(null!=(r=hn(e))&&(a=r._config),t=j(a,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=cn[e],cn[e]=n),bn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===bn()&&bn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!i(e)){if(t=hn(e))return t;e=[e]}return ln(e)}function gn(){return T(cn)}function xn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[qe]<0||n[qe]>11?qe:n[We]<1||n[We]>Qe(n[ze],n[qe])?We:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ke]||0!==n[$e]||0!==n[Ye])?Ge:n[Ke]<0||n[Ke]>59?Ke:n[$e]<0||n[$e]>59?$e:n[Ye]<0||n[Ye]>999?Ye:-1,y(e)._overflowDayOfYear&&(tWe)&&(t=We),y(e)._overflowWeeks&&-1===t&&(t=Je),y(e)._overflowWeekday&&-1===t&&(t=Ze),y(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function An(e){var t,n,r,a,i,o,s=e._i,c=wn.exec(s)||_n.exec(s),u=En.length,f=Sn.length;if(c){for(y(e).iso=!0,t=0,n=u;tbt(i)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=gt(i,0,e._dayOfYear),e._a[qe]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[Ke]&&0===e._a[$e]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?gt:vt).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(y(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,a,i,o,s,c,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Ln(t.GG,e._a[ze],_t(Yn(),1,4).year),r=Ln(t.W,1),((a=Ln(t.E,1))<1||a>7)&&(c=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=_t(Yn(),i,o),n=Ln(t.gg,e._a[ze],u.year),r=Ln(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i),r<1||r>kt(n,i,o)?y(e)._overflowWeeks=!0:null!=c?y(e)._overflowWeekday=!0:(s=wt(n,r,a,i,o),e._a[ze]=s.year,e._dayOfYear=s.dayOfYear)}function Vn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;var t,n,a,i,o,s,c,u=""+e._i,f=u.length,d=0;for(c=(a=q(e._f,e._locale).match(D)||[]).length,t=0;t0&&y(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),F[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),Ve(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=f-d,u.length>0&&y(e).unusedInput.push(u),e._a[Ge]<=12&&!0===y(e).bigHour&&e._a[Ge]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(s=y(e).era)&&(e._a[ze]=e._locale.erasConvertYear(s,e._a[ze])),Fn(e),xn(e)}else Rn(e);else An(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function zn(e){var t,n,r,a,i,o,s=!1,c=e._f.length;if(0===c)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:v()}));function Xn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Yn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Gn(t))._a?(e=t._isUTC?h(t._a):Yn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Er(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(e,t){var n,r,a,i=e,o=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:f(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Tr.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:fe(o[We])*n,h:fe(o[Ge])*n,m:fe(o[Ke])*n,s:fe(o[$e])*n,ms:fe(cr(1e3*o[Ye]))*n}):(o=Or.exec(e))?(n="-"===o[1]?-1:1,i={y:Ar(o[2],n),M:Ar(o[3],n),w:Ar(o[4],n),d:Ar(o[5],n),h:Ar(o[6],n),m:Ar(o[7],n),s:Ar(o[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(a=jr(Yn(i.from),Yn(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new or(i),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Ar(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function jr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Cr(e,t):((n=Cr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Ir(this,Mr(n,r),e),this}}function Ir(e,t,n,a){var i=t._milliseconds,o=cr(t._days),s=cr(t._months);e.isValid()&&(a=null==a||a,s&&ut(e,le(e,"Month")+s*n),o&&pe(e,"Date",le(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&r.updateOffset(e,o||s))}Mr.fn=or.prototype,Mr.invalid=ir;var Nr=Pr(1,"add"),Rr=Pr(-1,"subtract");function Dr(e){return"string"===typeof e||e instanceof String}function Lr(e){return k(e)||d(e)||Dr(e)||f(e)||Fr(e)||Br(e)||null===e||void 0===e}function Br(e){var t,n,r=o(e)&&!c(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(t=0;tn.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",i="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ta(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function na(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yn(e).isValid())?Mr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.from(Yn(),e)}function aa(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yn(e).isValid())?Mr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ia(e){return this.to(Yn(),e)}function oa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ca(){return this._locale}var ua=1e3,fa=60*ua,da=60*fa,la=3506328*da;function pa(e,t){return(e%t+t)%t}function ha(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-la:new Date(e,t,n).valueOf()}function ba(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-la:Date.UTC(e,t,n)}function ya(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ba:ha,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pa(t+(this._isUTC?0:this.utcOffset()*fa),da);break;case"minute":t=this._d.valueOf(),t-=pa(t,fa);break;case"second":t=this._d.valueOf(),t-=pa(t,ua)}return this._d.setTime(t),r.updateOffset(this,!0),this}function ma(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ba:ha,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=da-pa(t+(this._isUTC?0:this.utcOffset()*fa),da)-1;break;case"minute":t=this._d.valueOf(),t+=fa-pa(t,fa)-1;break;case"second":t=this._d.valueOf(),t+=ua-pa(t,ua)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function va(){return this._d.valueOf()-6e4*(this._offset||0)}function ga(){return Math.floor(this.valueOf()/1e3)}function xa(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _a(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ka(){return this.isValid()?this.toISOString():null}function Ea(){return m(this)}function Sa(){return p({},y(this))}function Ta(){return y(this).overflow}function Oa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ma(e,t){var n,a,i,o=this._eras||vn("en")._eras;for(n=0,a=o.length;n=0)return c[r]}function Ca(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function ja(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(i=kt(e,r,a))&&(t=i),Za.call(this,e,t,n,r,a))}function Za(e,t,n,r,a){var i=wt(e,t,n,r,a),o=gt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ne("N",Ba),Ne("NN",Ba),Ne("NNN",Ba),Ne("NNNN",Fa),Ne("NNNNN",Ua),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?y(n).era=a:y(n).invalidEra=e})),Ne("y",Me),Ne("yy",Me),Ne("yyy",Me),Ne("yyyy",Me),Ne("yo",Va),Fe(["y","yy","yyy","yyyy"],ze),Fe(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ze]=n._locale.eraYearOrdinalParse(e,a):t[ze]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),za("gggg","weekYear"),za("ggggg","weekYear"),za("GGGG","isoWeekYear"),za("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ne("G",Ae),Ne("g",Ae),Ne("GG",_e,ve),Ne("gg",_e,ve),Ne("GGGG",Te,xe),Ne("gggg",Te,xe),Ne("GGGGG",Oe,we),Ne("ggggg",Oe,we),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=fe(e)})),Ue(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ne("quarter","Q"),oe("quarter",7),Ne("Q",me),Fe("Q",(function(e,t){t[qe]=3*(fe(e)-1)})),U("D",["DD",2],"Do","date"),ne("date","D"),oe("date",9),Ne("D",_e),Ne("DD",_e,ve),Ne("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],We),Fe("Do",(function(e,t){t[We]=fe(e.match(_e)[0])}));var Qa=de("Date",!0);function ei(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),oe("dayOfYear",4),Ne("DDD",Se),Ne("DDDD",ge),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=fe(e)})),U("m",["mm",2],0,"minute"),ne("minute","m"),oe("minute",14),Ne("m",_e),Ne("mm",_e,ve),Fe(["m","mm"],Ke);var ti=de("Minutes",!1);U("s",["ss",2],0,"second"),ne("second","s"),oe("second",15),Ne("s",_e),Ne("ss",_e,ve),Fe(["s","ss"],$e);var ni,ri,ai=de("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),oe("millisecond",16),Ne("S",Se,me),Ne("SS",Se,ve),Ne("SSS",Se,ge),ni="SSSS";ni.length<=9;ni+="S")Ne(ni,Me);function ii(e,t){t[Ye]=fe(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Fe(ni,ii);function oi(){return this._isUTC?"UTC":""}function si(){return this._isUTC?"Coordinated Universal Time":""}ri=de("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ci=_.prototype;function ui(e){return Yn(1e3*e)}function fi(){return Yn.apply(null,arguments).parseZone()}function di(e){return e}ci.add=Nr,ci.calendar=Hr,ci.clone=zr,ci.diff=Jr,ci.endOf=ma,ci.format=ta,ci.from=na,ci.fromNow=ra,ci.to=aa,ci.toNow=ia,ci.get=he,ci.invalidAt=Ta,ci.isAfter=qr,ci.isBefore=Wr,ci.isBetween=Gr,ci.isSame=Kr,ci.isSameOrAfter=$r,ci.isSameOrBefore=Yr,ci.isValid=Ea,ci.lang=sa,ci.locale=oa,ci.localeData=ca,ci.max=Zn,ci.min=Jn,ci.parsingFlags=Sa,ci.set=be,ci.startOf=ya,ci.subtract=Rr,ci.toArray=wa,ci.toObject=_a,ci.toDate=xa,ci.toISOString=Qr,ci.inspect=ea,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ci[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ci.toJSON=ka,ci.toString=Xr,ci.unix=ga,ci.valueOf=va,ci.creationData=Oa,ci.eraName=ja,ci.eraNarrow=Pa,ci.eraAbbr=Ia,ci.eraYear=Na,ci.year=yt,ci.isLeapYear=mt,ci.weekYear=qa,ci.isoWeekYear=Wa,ci.quarter=ci.quarters=Xa,ci.month=ft,ci.daysInMonth=dt,ci.week=ci.weeks=Mt,ci.isoWeek=ci.isoWeeks=At,ci.weeksInYear=$a,ci.weeksInWeekYear=Ya,ci.isoWeeksInYear=Ga,ci.isoWeeksInISOWeekYear=Ka,ci.date=Qa,ci.day=ci.days=qt,ci.weekday=Wt,ci.isoWeekday=Gt,ci.dayOfYear=ei,ci.hour=ci.hours=rn,ci.minute=ci.minutes=ti,ci.second=ci.seconds=ai,ci.millisecond=ci.milliseconds=ri,ci.utcOffset=br,ci.utc=mr,ci.local=vr,ci.parseZone=gr,ci.hasAlignedHourOffset=xr,ci.isDST=wr,ci.isLocal=kr,ci.isUtcOffset=Er,ci.isUtc=Sr,ci.isUTC=Sr,ci.zoneAbbr=oi,ci.zoneName=si,ci.dates=S("dates accessor is deprecated. Use date instead.",Qa),ci.months=S("months accessor is deprecated. Use month instead",ft),ci.years=S("years accessor is deprecated. Use year instead",yt),ci.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ci.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var li=P.prototype;function pi(e,t,n,r){var a=vn(),i=h().set(r,t);return a[n](i,e)}function hi(e,t,n){if(f(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=pi(e,r,n,"month");return a}function bi(e,t,n,r){"boolean"===typeof e?(f(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,f(t)&&(n=t,t=void 0),t=t||"");var a,i=vn(),o=e?i._week.dow:0,s=[];if(null!=n)return pi(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=pi(t,(a+o)%7,r,"day");return s}function yi(e,t){return hi(e,t,"months")}function mi(e,t){return hi(e,t,"monthsShort")}function vi(e,t,n){return bi(e,t,n,"weekdays")}function gi(e,t,n){return bi(e,t,n,"weekdaysShort")}function xi(e,t,n){return bi(e,t,n,"weekdaysMin")}li.calendar=N,li.longDateFormat=G,li.invalidDate=$,li.ordinal=Z,li.preparse=di,li.postformat=di,li.relativeTime=Q,li.pastFuture=ee,li.set=C,li.eras=Ma,li.erasParse=Aa,li.erasConvertYear=Ca,li.erasAbbrRegex=Da,li.erasNameRegex=Ra,li.erasNarrowRegex=La,li.months=it,li.monthsShort=ot,li.monthsParse=ct,li.monthsRegex=pt,li.monthsShortRegex=lt,li.week=Et,li.firstDayOfYear=Ot,li.firstDayOfWeek=Tt,li.weekdays=Ft,li.weekdaysMin=Vt,li.weekdaysShort=Ut,li.weekdaysParse=zt,li.weekdaysRegex=Kt,li.weekdaysShortRegex=$t,li.weekdaysMinRegex=Yt,li.isPM=tn,li.meridiem=an,bn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===fe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",bn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vn);var wi=Math.abs;function _i(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function ki(e,t,n,r){var a=Mr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Ei(e,t){return ki(this,e,t,1)}function Si(e,t){return ki(this,e,t,-1)}function Ti(e){return e<0?Math.floor(e):Math.ceil(e)}function Oi(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,c=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Ti(Ai(s)+o),o=0,s=0),c.milliseconds=i%1e3,e=ue(i/1e3),c.seconds=e%60,t=ue(e/60),c.minutes=t%60,n=ue(t/60),c.hours=n%24,o+=ue(n/24),s+=a=ue(Mi(o)),o-=Ti(Ai(a)),r=ue(s/12),s%=12,c.days=o,c.months=s,c.years=r,this}function Mi(e){return 4800*e/146097}function Ai(e){return 146097*e/4800}function Ci(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Mi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ai(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ji(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN}function Pi(e){return function(){return this.as(e)}}var Ii=Pi("ms"),Ni=Pi("s"),Ri=Pi("m"),Di=Pi("h"),Li=Pi("d"),Bi=Pi("w"),Fi=Pi("M"),Ui=Pi("Q"),Vi=Pi("y");function Hi(){return Mr(this)}function zi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function qi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wi=qi("milliseconds"),Gi=qi("seconds"),Ki=qi("minutes"),$i=qi("hours"),Yi=qi("days"),Ji=qi("months"),Zi=qi("years");function Xi(){return ue(this.days()/7)}var Qi=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function no(e,t,n,r){var a=Mr(e).abs(),i=Qi(a.as("s")),o=Qi(a.as("m")),s=Qi(a.as("h")),c=Qi(a.as("d")),u=Qi(a.as("M")),f=Qi(a.as("w")),d=Qi(a.as("y")),l=i<=n.ss&&["s",i]||i0,l[4]=r,to.apply(null,l)}function ro(e){return void 0===e?Qi:"function"===typeof e&&(Qi=e,!0)}function ao(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function io(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=eo;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(i=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=no(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function co(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,c=oo(this._milliseconds)/1e3,u=oo(this._days),f=oo(this._months),d=this.asSeconds();return d?(e=ue(c/60),t=ue(e/60),c%=60,e%=60,n=ue(f/12),f%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=so(this._months)!==so(d)?"-":"",o=so(this._days)!==so(d)?"-":"",s=so(this._milliseconds)!==so(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(f?i+f+"M":"")+(u?o+u+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var uo=or.prototype;return uo.isValid=ar,uo.abs=_i,uo.add=Ei,uo.subtract=Si,uo.as=Ci,uo.asMilliseconds=Ii,uo.asSeconds=Ni,uo.asMinutes=Ri,uo.asHours=Di,uo.asDays=Li,uo.asWeeks=Bi,uo.asMonths=Fi,uo.asQuarters=Ui,uo.asYears=Vi,uo.valueOf=ji,uo._bubble=Oi,uo.clone=Hi,uo.get=zi,uo.milliseconds=Wi,uo.seconds=Gi,uo.minutes=Ki,uo.hours=$i,uo.days=Yi,uo.weeks=Xi,uo.months=Ji,uo.years=Zi,uo.humanize=io,uo.toISOString=co,uo.toString=co,uo.toJSON=co,uo.locale=oa,uo.localeData=ca,uo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),uo.lang=sa,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ne("x",Ae),Ne("X",Pe),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(fe(e))})),r.version="2.29.4",a(Yn),r.fn=ci,r.min=Qn,r.max=er,r.now=tr,r.utc=h,r.unix=ui,r.months=yi,r.isDate=d,r.locale=bn,r.invalid=v,r.duration=Mr,r.isMoment=k,r.weekdays=vi,r.parseZone=fi,r.localeData=vn,r.isDuration=sr,r.monthsShort=mi,r.weekdaysMin=xi,r.defineLocale=yn,r.updateLocale=mn,r.locales=gn,r.weekdaysShort=gi,r.normalizeUnits=re,r.relativeTimeRounding=ro,r.relativeTimeThreshold=ao,r.calendarFormat=Vr,r.prototype=ci,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(100)(e))},function(e,t,n){"use strict";var r,a=(r=n(2093))&&r.__esModule?r:{default:r};function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:i,s=void 0,u=Array.isArray(e),f=[e],d=-1,l=[],p=void 0,h=void 0,b=void 0,y=[],m=[],v=e;do{var g=++d===f.length,x=g&&0!==l.length;if(g){if(h=0===m.length?void 0:y[y.length-1],p=b,b=m.pop(),x){if(u)p=p.slice();else{for(var w={},_=0,k=Object.keys(p);_e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function p(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function h(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}var b=n(82),y=n(28),m="data-focus-lock",v="data-focus-lock-disabled";function g(e,t){return function(e,t){var n=Object(r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var x={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},w=function(e){var t=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:x}),t,t&&r.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:x}))};w.propTypes={},w.defaultProps={children:null};var _=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0})).sort(Z)},Q=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),ee="".concat(Q,", [data-focus-guard]"),te=function e(t,n){var r;return L((null===(r=t.shadowRoot)||void 0===r?void 0:r.children)||t.children).reduce((function(t,r){return t.concat(r.matches(n?ee:Q)?[r]:[],e(r))}),[])},ne=function(e,t){return e.reduce((function(e,n){return e.concat(te(n,t),n.parentNode?L(n.parentNode.querySelectorAll(Q)).filter((function(e){return e===n})):[])}),[])},re=function(e,t){return L(e).filter((function(e){return H(t,e)})).filter((function(e){return function(e){return!((W(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},ae=function(e,t){return void 0===t&&(t=new Map),L(e).filter((function(e){return z(t,e)}))},ie=function(e,t,n){return X(re(ne(e,n),t),!0,n)},oe=function(e,t){return X(re(ne(e),t),!1)},se=function(e,t){return re(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return L(t).map((function(e){return ne([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},ce=function e(t,n){return(t.shadowRoot?e(t.shadowRoot,n):Object.getPrototypeOf(t).contains.call(t,n))||L(t.children).some((function(t){return e(t,n)}))},ue=function e(t){return t.activeElement?t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement:void 0},fe=function(){return document.activeElement?document.activeElement.shadowRoot?ue(document.activeElement.shadowRoot):document.activeElement:void 0},de=function e(t){return t.parentNode?e(t.parentNode):t},le=function(e){return B(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(m);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(a),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(L(de(t).querySelectorAll("[".concat(m,'="').concat(n,'"]:not([').concat(v,'="disabled"])')))):[t]),e}),[])},pe=function(e){return Boolean(L(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},he=function(e){var t=document&&fe();return!(!t||t.dataset&&t.dataset.focusGuard)&&le(e).some((function(e){return ce(e,t)||pe(e)}))},be=function(e,t){return G(e)&&e.name?function(e,t){return t.filter(G).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ye=function(e){return e[0]&&e.length>1?be(e[0],e):e[0]},me=function(e,t){return e.length>1?e.indexOf(be(e[t],e)):t},ve="NEW_FOCUS",ge=function(e,t,n,r){var a=e.length,i=e[0],o=e[a-1],s=$(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?t.indexOf(n):-1,u=r?t.indexOf(r):c,f=r?e.indexOf(r):-1,d=c-u,l=t.indexOf(i),p=t.indexOf(o),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(be(n,e))})),e.filter((function(e){return t.has(e)}))}(t),b=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):c),y=me(e,0),m=me(e,a-1);return-1===c||-1===f?ve:!d&&f>=0?f:c<=l&&s&&Math.abs(d)>1?m:c>=p&&s&&Math.abs(d)>1?y:d&&Math.abs(b)>1?f:c<=l?m:c>p?y:d?Math.abs(d)>1?f:(a+f+d)%a:void 0}},xe=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode.host||t.parentNode,n),n},we=function(e,t){for(var n=xe(e),r=xe(t),a=0;a=0)return i}return!1},_e=function(e,t,n){var r=B(e),a=B(t),i=r[0],o=!1;return a.filter(Boolean).forEach((function(e){o=we(o||e,e)||o,n.filter(Boolean).forEach((function(e){var t=we(i,e);t&&(o=!o||ce(t,o)?t:we(t,o))}))})),o},ke=function(e,t){var n=document&&fe(),r=le(e).filter(Y),a=_e(n||e,e,r),i=new Map,o=oe(r,i),s=ie(r,i).filter((function(e){var t=e.node;return Y(t)}));if(s[0]||(s=o)[0]){var c,u=oe([a],i).map((function(e){return e.node})),f=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(J)}(u,s),d=f.map((function(e){return e.node})),l=ge(d,u,n,t);if(l===ve){var p=ae(o.map((function(e){return e.node}))).filter((c=function(e,t){return e.reduce((function(e,n){return e.concat(se(n,t))}),[])}(r,i),function(e){var t;return e.autofocus||!!(null===(t=q(e))||void 0===t?void 0:t.autofocus)||c.indexOf(e)>=0}));return{node:p&&p.length?ye(p):ye(ae(d))}}return void 0===l?l:f[l]}},Ee=0,Se=!1,Te=function(e,t,n){void 0===n&&(n={});var r,a,i=ke(e,t);if(!Se&&i){if(Ee>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Se=!0,void setTimeout((function(){Se=!1}),1);Ee++,r=i.node,a=n.focusOptions,"focus"in r&&r.focus(a),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),Ee--}},Oe=function(e){var t=le(e).filter(Y),n=_e(e,e,t),r=new Map,a=ie([n],r,!0),i=ie(t,r).filter((function(e){var t=e.node;return Y(t)})).map((function(e){return e.node}));return a.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:$(t)}}))};function Me(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var Ae=function(){return document&&document.activeElement===document.body||function(){var e=document&&fe();return!!e&&L(document.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(t){return ce(t,e)}))}()},Ce=null,je=null,Pe=null,Ie=!1,Ne=function(){return!0};function Re(e,t,n,r){var a=null,i=e;do{var o=r[i];if(o.guard)o.node.dataset.focusAutoGuard&&(a=o);else{if(!o.lockItem)break;if(i!==e)return;a=null}}while((i+=n)!==t);a&&(a.node.tabIndex=0)}var De=function(e){return e&&"current"in e?e.current:e},Le=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Be=function(){var e,t=!1;if(Ce){var n=Ce,r=n.observed,a=n.persistentFocus,i=n.autoFocus,o=n.shards,s=n.crossFrame,c=n.focusOptions,u=r||Pe&&Pe.portaledElement,f=document&&document.activeElement;if(u){var d=[u].concat(o.map(De).filter(Boolean));if(f&&!function(e){return(Ce.whiteList||Ne)(e)}(f)||(a||(s?Boolean(Ie):"meanwhile"===Ie)||!Ae()||!je&&i)&&(u&&!(he(d)||f&&function(e,t){return t.some((function(t){return Le(e,t,t)}))}(f,d)||(e=f,Pe&&Pe.portaledElement===e))&&(document&&!je&&f&&!i?(f.blur&&f.blur(),document.body.focus()):(t=Te(d,je,{focusOptions:c}),Pe={})),Ie=!1,je=document&&document.activeElement),document){var l=document&&document.activeElement,p=Oe(d),h=p.map((function(e){return e.node})).indexOf(l);h>-1&&(p.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Re(h,p.length,1,p),Re(h,-1,-1,p))}}}return t},Fe=function(e){Be()&&e&&(e.stopPropagation(),e.preventDefault())},Ue=function(){return Me(Be)},Ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Pe={observerNode:n,portaledElement:t})},He=function(){Ie="just",setTimeout((function(){Ie="meanwhile"}),0)};O.assignSyncMedium(Ve),M.assignMedium(Ue),A.assignMedium((function(e){return e({moveFocusInside:Te,focusInside:he})}));var ze=D((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Ce&&(document.addEventListener("focusin",Fe),document.addEventListener("focusout",Ue),window.addEventListener("blur",He));var n=Ce,r=n&&t&&t.id===n.id;Ce=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(je=null,r&&n.observed===t.observed||t.onActivation(),Be(),Me(Be)):(document.removeEventListener("focusin",Fe),document.removeEventListener("focusout",Ue),window.removeEventListener("blur",He),je=null)}))((function(){return null})),qe=r.forwardRef((function(e,t){return r.createElement(I,Object(y.a)({sideCar:ze,ref:t},e))})),We=I.propTypes||{};We.sideCar,Object(b.a)(We,["sideCar"]);qe.propTypes={};var Ge=qe;var Ke=function(){return Ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n