(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8961],{176987(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var r=__webpack_require__(448589);var t=__webpack_require__(790438);function n(r){this.rand=r||new t.Rand}module.exports=n,n.create=function(r){return new n(r)},n.prototype._randbelow=function(t){var n=Math.ceil(t.bitLength()/8);do var e=new r(this.rand.generate(n));while(e.cmp(t)>=0)return e},n.prototype._randrange=function(r,t){var n=t.sub(r);return r.add(this._randbelow(n))},n.prototype.test=function(t,n,e){var i=t.bitLength();var a=r.mont(t);var o=new r(1).toRed(a);!n&&(n=Math.max(1,i/48|0));var s=t.subn(1);for(var u=0;!s.testn(u);u++);var c=t.shrn(u);var h=s.toRed(a);for(;n>0;n--){var f=this._randrange(new r(2),s);e&&e(f);var l=f.toRed(a).redPow(c);if(l.cmp(o)===0||l.cmp(h)===0)continue;for(var v=1;v<u;v++){if((l=l.redSqr()).cmp(o)===0)return!1;if(l.cmp(h)===0)break}if(v===u)return!1}return!0},n.prototype.getDivisor=function(t,n){var e=t.bitLength();var i=r.mont(t);var a=new r(1).toRed(i);!n&&(n=Math.max(1,e/48|0));var o=t.subn(1);for(var s=0;!o.testn(s);s++);var u=t.shrn(s);var c=o.toRed(i);for(;n>0;n--){var h=this._randrange(new r(2),o);var f=t.gcd(h);if(f.cmpn(1)!==0)return f;var l=h.toRed(i).redPow(u);if(l.cmp(a)===0||l.cmp(c)===0)continue;for(var v=1;v<s;v++){if((l=l.redSqr()).cmp(a)===0)return l.fromRed().subn(1).gcd(t);if(l.cmp(c)===0)break}if(v===s)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}return!1}}}).call(__webpack_require__._LM_("crypto-browserify>diffie-hellman>miller-rabin",{module,__webpack_require__}))()},374242(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function r(r,t){if(!r)throw new Error(t||"Assertion failed")}module.exports=r,r.equal=function(r,t,n){if(r!=t)throw new Error(n||"Assertion failed: "+r+" != "+t)}}}).call(__webpack_require__._LM_("@toruslabs/eccrypto>elliptic>minimalistic-assert",{module,__webpack_require__}))()},434864(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function r(r){return r.length===1?"0"+r:(0,r)}function t(t){var n="";for(var e=0;e<t.length;e++)n+=r(t[e].toString(16));return n}exports.toArray=function(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var n=[];if(typeof r!=="string"){for(var e=0;e<r.length;e++)n[e]=r[e]|0;return n}if(t==="hex"){(r=r.replace(/[^a-z0-9]+/ig,"")).length%2!==0&&(r="0"+r);for(var e=0;e<r.length;e+=2)n.push(parseInt(r[e]+r[e+1],16))}else for(var e=0;e<r.length;e++){var i=r.charCodeAt(e);var a=i>>8;var o=i&255;a?n.push(a,o):n.push(o)}return n},exports.zero2=r,exports.toHex=t,exports.encode=function(r,n){return n==="hex"?t(r):(0,r)}}}).call(__webpack_require__._LM_("@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils",{exports,__webpack_require__}))()}}]);