(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7657],{20640:(t,i,r)=>{"use strict";var e=r(25108),n=r(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"},s="Copy to clipboard: #{key}, Enter";t.exports=function(t,i){var r,h,a,u,l,f,m=!1;i||(i={}),r=i.debug||!1;try{if(a=n(),u=document.createRange(),l=document.getSelection(),(f=document.createElement("span")).textContent=t,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",(function(n){if(n.stopPropagation(),i.format)if(n.preventDefault(),void 0===n.clipboardData){r&&e.warn("unable to use e.clipboardData"),r&&e.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=o[i.format]||o.default;window.clipboardData.setData(s,t)}else n.clipboardData.clearData(),n.clipboardData.setData(i.format,t);i.onCopy&&(n.preventDefault(),i.onCopy(n.clipboardData))})),document.body.appendChild(f),u.selectNodeContents(f),l.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");m=!0}catch(n){r&&e.error("unable to copy using execCommand: ",n),r&&e.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",t),i.onCopy&&i.onCopy(window.clipboardData),m=!0}catch(n){r&&e.error("unable to copy using clipboardData: ",n),r&&e.error("falling back to prompt"),h=function(t){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,i)}("message"in i?i.message:s),window.prompt(h,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),f&&document.body.removeChild(f),a()}return m}},112:(t,i,r)=>{"use strict";var e=r(94470),n=r(89539).isArray,o=r(89539).isDate,s=r(8975).sprintf,h=r(17187),a=r(27569),u=r(39125),l="counterpart";function f(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)}function m(t){return f(t)&&":"===t[0]}function p(t,i){return i.reduce((function(t,i){return null!==(r=t)&&"[object Object]"===Object.prototype.toString.call(r)&&function(t,i){return Object.prototype.hasOwnProperty.call(t,i)}(t,i)?t[i]:null;var r}),t)}function c(){h.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(t){return t},generateMissingEntry:function(t){return"missing translation: "+t}},this.registerTranslations("en",r(63398)),this.setMaxListeners(0)}c.prototype=h.EventEmitter.prototype,c.prototype.constructor=h.EventEmitter,c.prototype.getLocale=function(){return this._registry.locale},c.prototype.setLocale=function(t){var i=this._registry.locale;return i!=t&&(this._registry.locale=t,this.emit("localechange",t,i)),i},c.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},c.prototype.setFallbackLocale=function(t){var i=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(t||[]),i},c.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},c.prototype.setAvailableLocales=function(t){var i=this.getAvailableLocales();return this._registry.availableLocales=t,i},c.prototype.getSeparator=function(){return this._registry.separator},c.prototype.setSeparator=function(t){var i=this._registry.separator;return this._registry.separator=t,i},c.prototype.setInterpolate=function(t){var i=this._registry.interpolate;return this._registry.interpolate=t,i},c.prototype.getInterpolate=function(){return this._registry.interpolate},c.prototype.setKeyTransformer=function(t){var i=this._registry.keyTransformer;return this._registry.keyTransformer=t,i},c.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},c.prototype.setMissingEntryGenerator=function(t){var i=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=t,i},c.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},c.prototype.registerTranslations=function(t,i){var r={};return r[t]=i,e(!0,this._registry.translations,r),r},c.prototype.registerInterpolations=function(t){return e(!0,this._registry.interpolations,t)},c.prototype.onLocaleChange=c.prototype.addLocaleChangeListener=function(t){this.addListener("localechange",t)},c.prototype.offLocaleChange=c.prototype.removeLocaleChangeListener=function(t){this.removeListener("localechange",t)},c.prototype.onTranslationNotFound=c.prototype.addTranslationNotFoundListener=function(t){this.addListener("translationnotfound",t)},c.prototype.offTranslationNotFound=c.prototype.removeTranslationNotFoundListener=function(t){this.removeListener("translationnotfound",t)},c.prototype.onError=c.prototype.addErrorListener=function(t){this.addListener("error",t)},c.prototype.offError=c.prototype.removeErrorListener=function(t){this.removeListener("error",t)},c.prototype.translate=function(t,i){if(!n(t)&&!f(t)||!t.length)throw new Error("invalid argument: key");m(t)&&(t=t.substr(1)),t=this._registry.keyTransformer(t,i);var r=(i=e(!0,{},i)).locale||this._registry.locale;delete i.locale;var o=i.scope||this._registry.scope;delete i.scope;var s=i.separator||this._registry.separator;delete i.separator;var h=[].concat(i.fallbackLocale||this._registry.fallbackLocales);delete i.fallbackLocale;var a=this._normalizeKeys(r,o,t,s),u=p(this._registry.translations,a);if(null===u&&(this.emit("translationnotfound",r,t,i.fallback,o),i.fallback&&(u=this._fallback(r,o,t,i.fallback,i))),null===u&&h.length>0&&-1===h.indexOf(r))for(var l=0,c=h.length;l<c;l++){var d=h[l],g=this._normalizeKeys(d,o,t,s);if(u=p(this._registry.translations,g)){r=d;break}}return null===u&&(u=this._registry.generateMissingEntry(a.join(s))),u=this._pluralize(r,u,i.count),!1!==this._registry.interpolate&&!1!==i.interpolate&&(u=this._interpolate(u,i)),u},c.prototype.localize=function(t,i){if(!o(t))throw new Error("invalid argument: object must be a date");var r=(i=e(!0,{},i)).locale||this._registry.locale,n=i.scope||l,s=i.type||"datetime",h=i.format||"default";return i={locale:r,scope:n,interpolate:!1},h=this.translate(["formats",s,h],e(!0,{},i)),u(t,h,this.translate("names",i))},c.prototype._pluralize=function(t,i,r){if("object"!=typeof i||null===i||"number"!=typeof r)return i;var e=this.translate("pluralize",{locale:t,scope:l});return"[object Function]"!==Object.prototype.toString.call(e)?e:e(i,r)},c.prototype.withLocale=function(t,i,r){var e=this._registry.locale;this._registry.locale=t;var n=i.call(r);return this._registry.locale=e,n},c.prototype.withScope=function(t,i,r){var e=this._registry.scope;this._registry.scope=t;var n=i.call(r);return this._registry.scope=e,n},c.prototype.withSeparator=function(t,i,r){var e=this.setSeparator(t),n=i.call(r);return this.setSeparator(e),n},c.prototype._normalizeKeys=function(t,i,r,e){var n=[];return n=(n=(n=n.concat(this._normalizeKey(t,e))).concat(this._normalizeKey(i,e))).concat(this._normalizeKey(r,e))},c.prototype._normalizeKey=function(t,i){return this._registry.normalizedKeys[i]=this._registry.normalizedKeys[i]||{},this._registry.normalizedKeys[i][t]=this._registry.normalizedKeys[i][t]||function(t){if(n(t)){var r=t.map(function(t){return this._normalizeKey(t,i)}.bind(this));return[].concat.apply([],r)}if(null==t)return[];for(var e=t.split(i),o=e.length-1;o>=0;o--)""===e[o]&&(e.splice(o,1),!0===this._registry.keepTrailingDot&&o==e.length&&(e[e.length-1]+=""+i));return e}.bind(this)(t),this._registry.normalizedKeys[i][t]},c.prototype._interpolate=function(t,i){if("string"!=typeof t)return t;try{return s(t,e({},this._registry.interpolations,i))}catch(r){if(!(this.listenerCount("error")>0))throw r;return this.emit("error",r,t,i),null}},c.prototype._resolve=function(t,i,r,n,o){if(!1===(o=o||{}).resolve)return n;var s,h;if(m(n))s=this.translate(n,e({},o,{locale:t,scope:i}));else if("function"==typeof(h=n)||"[object Function]"===Object.prototype.toString.call(h)){var a;o.object?(a=o.object,delete o.object):a=r,s=this._resolve(t,i,r,n(a,o))}else s=n;return/^missing translation:/.test(s)?null:s},c.prototype._fallback=function(t,i,r,e,o){if(o=a(o,"fallback"),n(e)){for(var s=0,h=e.length;s<h;s++){var u=this._resolve(t,i,r,e[s],o);if(u)return u}return null}return this._resolve(t,i,r,e,o)};var d=new c;function g(){return d.translate.apply(d,arguments)}e(g,d,{Instance:c,Translator:c}),t.exports=g},63398:(t,i,r)=>{"use strict";t.exports={counterpart:{names:r(54925),pluralize:r(6183),formats:{date:{default:"%a, %e %b %Y",long:"%A, %B %o, %Y",short:"%b %e"},time:{default:"%H:%M",long:"%H:%M:%S %z",short:"%H:%M"},datetime:{default:"%a, %e %b %Y %H:%M",long:"%A, %B %o, %Y %H:%M:%S %z",short:"%e %b %H:%M"}}}}},39125:(t,i,r)=>{"use strict";var e=r(3182);function n(t,i,r){"number"==typeof i&&(r=i,i="0"),null===i&&(i="0"),r=r||2;var e=String(t);if(i)for(;e.length<r;)e=i+e;return e}function o(t){var i=t.getHours();return 0===i?i=12:i>12&&(i-=12),i}function s(t,i){i=i||"sunday";var r=t.getDay();"monday"==i&&(0===r?r=6:r--);var e=new Date(t.getFullYear(),0,1),n=((t-e)/864e5+7-r)/7;return Math.floor(n)}t.exports=function t(i,r,h){var a=i.getTime();return h=h||e,r.replace(/%([-_0]?.)/g,(function(r,e){var u=null;if(2==e.length){switch(e[0]){case"-":u="";break;case"_":u=" ";break;case"0":u="0";break;default:return r}e=e[1]}switch(e){case"A":return h.days[i.getDay()];case"a":return h.abbreviated_days[i.getDay()];case"B":return h.months[i.getMonth()];case"b":case"h":return h.abbreviated_months[i.getMonth()];case"C":return n(Math.floor(i.getFullYear()/100),u);case"D":return t(i,"%m/%d/%y");case"d":return n(i.getDate(),u);case"e":return i.getDate();case"F":return t(i,"%Y-%m-%d");case"H":return n(i.getHours(),u);case"I":return n(o(i),u);case"j":return n(Math.ceil((i.getTime()-new Date(i.getFullYear(),0,1).getTime())/864e5),3);case"k":return n(i.getHours(),null===u?" ":u);case"L":return n(Math.floor(a%1e3),3);case"l":return n(o(i),null===u?" ":u);case"M":return n(i.getMinutes(),u);case"m":return n(i.getMonth()+1,u);case"n":return"\n";case"o":return String(i.getDate())+function(t){var i=t%10,r=t%100;if(r>=11&&r<=13||0===i||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(i.getDate());case"P":return i.getHours()<12?h.am.toLowerCase():h.pm.toLowerCase();case"p":return i.getHours()<12?h.am.toUpperCase():h.pm.toUpperCase();case"R":return t(i,"%H:%M");case"r":return t(i,"%I:%M:%S %p");case"S":return n(i.getSeconds(),u);case"s":return Math.floor(a/1e3);case"T":return t(i,"%H:%M:%S");case"t":return"\t";case"U":return n(s(i,"sunday"),u);case"u":return 0===i.getDay()?7:i.getDay();case"v":return t(i,"%e-%b-%Y");case"W":return n(s(i,"monday"),u);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":var l=String(i.getFullYear());return l.slice(l.length-2);case"Z":var f=i.toString().match(/\((\w+)\)/);return f&&f[1]||"";case"z":var m=i.getTimezoneOffset();return(m>0?"-":"+")+n(Math.round(Math.abs(m/60)),2)+":"+n(m%60,2);default:return e}}))}},76393:(t,i,r)=>{var e=r(48764).Buffer,n=r(86266),o=r(16426);t.exports=function(t){return new h(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function h(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(t,i,r){Array.isArray(t)||(t=t.toArray());var n=new e(t);if(r&&n.length<r){var o=new e(r-n.length);o.fill(0),n=e.concat([o,n])}return i?n.toString(i):n}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,h.prototype.generateKeys=function(t,i){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,i)},h.prototype.computeSecret=function(t,i,r){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),a(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},h.prototype.getPublicKey=function(t,i){var r=this.keys.getPublic("compressed"===i,!0);return"hybrid"===i&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,t)},h.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},h.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},h.prototype.setPrivateKey=function(t,i){i=i||"utf8",e.isBuffer(t)||(t=new e(t,i));var r=new o(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},16426:function(t,i,r){!function(t,i){"use strict";function e(t,i){if(!t)throw new Error(i||"Assertion failed")}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,i,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==i&&"be"!==i||(r=i,i=10),this._init(t||0,i||10,r||"be"))}var s;"object"==typeof t?t.exports=o:i.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8623).Buffer}catch(t){}function h(t,i){var r=t.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(t,i,r){var e=h(t,r);return r-1>=i&&(e|=h(t,r-1)<<4),e}function u(t,i,r,e){for(var n=0,o=Math.min(t.length,r),s=i;s<o;s++){var h=t.charCodeAt(s)-48;n*=e,n+=h>=49?h-49+10:h>=17?h-17+10:h}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,i){return t.cmp(i)>0?t:i},o.min=function(t,i){return t.cmp(i)<0?t:i},o.prototype._init=function(t,i,r){if("number"==typeof t)return this._initNumber(t,i,r);if("object"==typeof t)return this._initArray(t,i,r);"hex"===i&&(i=16),e(i===(0|i)&&i>=2&&i<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===i?this._parseHex(t,n,r):(this._parseBase(t,i,n),"le"===r&&this._initArray(this.toArray(),i,r)))},o.prototype._initNumber=function(t,i,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(e(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),i,r)},o.prototype._initArray=function(t,i,r){if(e("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,h=0;if("be"===r)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<h&67108863,this.words[o+1]=s>>>26-h&67108863,(h+=24)>=26&&(h-=26,o++);else if("le"===r)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<h&67108863,this.words[o+1]=s>>>26-h&67108863,(h+=24)>=26&&(h-=26,o++);return this.strip()},o.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var n,o=0,s=0;if("be"===r)for(e=t.length-1;e>=i;e-=2)n=a(t,i,e)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(e=(t.length-i)%2==0?i+1:i;e<t.length;e+=2)n=a(t,i,e)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var e=0,n=1;n<=67108863;n*=i)e++;e--,n=n/i|0;for(var o=t.length-r,s=o%e,h=Math.min(o,o-s)+r,a=0,l=r;l<h;l+=e)a=u(t,l,l+e,i),this.imuln(n),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var f=1;for(a=u(t,l,t.length,i),l=0;l<s;l++)f*=i;this.imuln(f),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],f=[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],m=[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(t,i,r){r.negative=i.negative^t.negative;var e=t.length+i.length|0;r.length=e,e=e-1|0;var n=0|t.words[0],o=0|i.words[0],s=n*o,h=67108863&s,a=s/67108864|0;r.words[0]=h;for(var u=1;u<e;u++){for(var l=a>>>26,f=67108863&a,m=Math.min(u,i.length-1),p=Math.max(0,u-t.length+1);p<=m;p++){var c=u-p|0;l+=(s=(n=0|t.words[c])*(o=0|i.words[p])+f)/67108864|0,f=67108863&s}r.words[u]=0|f,a=0|l}return 0!==a?r.words[u]=0|a:r.length--,r.strip()}o.prototype.toString=function(t,i){var r;if(i=0|i||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,s=0;s<this.length;s++){var h=this.words[s],a=(16777215&(h<<n|o)).toString(16);r=0!==(o=h>>>24-n&16777215)||s!==this.length-1?l[6-a.length]+a+r:a+r,(n+=2)>=26&&(n-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%i!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],p=m[t];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var d=c.modn(p).toString(t);r=(c=c.idivn(p)).isZero()?d+r:l[u-d.length]+d+r}for(this.isZero()&&(r="0"+r);r.length%i!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}e(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,i){return e(void 0!==s),this.toArrayLike(s,t,i)},o.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)},o.prototype.toArrayLike=function(t,i,r){var n=this.byteLength(),o=r||Math.max(1,n);e(n<=o,"byte array longer than desired length"),e(o>0,"Requested array length <= 0"),this.strip();var s,h,a="le"===i,u=new t(o),l=this.clone();if(a){for(h=0;!l.isZero();h++)s=l.andln(255),l.iushrn(8),u[h]=s;for(;h<o;h++)u[h]=0}else{for(h=0;h<o-n;h++)u[h]=0;for(h=0;!l.isZero();h++)s=l.andln(255),l.iushrn(8),u[o-h-1]=s}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},o.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 0==(8191&i)&&(r+=13,i>>>=13),0==(127&i)&&(r+=7,i>>>=7),0==(15&i)&&(r+=4,i>>>=4),0==(3&i)&&(r+=2,i>>>=2),0==(1&i)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var r=this._zeroBits(this.words[i]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},o.prototype.ior=function(t){return e(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;r<i.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=i.length,this.strip()},o.prototype.iand=function(t){return e(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var e=0;e<r.length;e++)this.words[e]=i.words[e]^r.words[e];if(this!==i)for(;e<i.length;e++)this.words[e]=i.words[e];return this.length=i.length,this.strip()},o.prototype.ixor=function(t){return e(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){e("number"==typeof t&&t>=0);var i=0|Math.ceil(t/26),r=t%26;this._expand(i),r>0&&i--;for(var n=0;n<i;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,i){e("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=i?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},o.prototype.iadd=function(t){var i,r,e;if(0!==this.negative&&0===t.negative)return this.negative=0,i=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,i=this.isub(t),t.negative=1,i._normSign();this.length>t.length?(r=this,e=t):(r=t,e=this);for(var n=0,o=0;o<e.length;o++)i=(0|r.words[o])+(0|e.words[o])+n,this.words[o]=67108863&i,n=i>>>26;for(;0!==n&&o<r.length;o++)i=(0|r.words[o])+n,this.words[o]=67108863&i,n=i>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var i;return 0!==t.negative&&0===this.negative?(t.negative=0,i=this.sub(t),t.negative^=1,i):0===t.negative&&0!==this.negative?(this.negative=0,i=t.sub(this),this.negative=1,i):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,e,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,e=t):(r=t,e=this);for(var o=0,s=0;s<e.length;s++)o=(i=(0|r.words[s])-(0|e.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<r.length;s++)o=(i=(0|r.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var c=function(t,i,r){var e,n,o,s=t.words,h=i.words,a=r.words,u=0,l=0|s[0],f=8191&l,m=l>>>13,p=0|s[1],c=8191&p,d=p>>>13,g=0|s[2],v=8191&g,y=g>>>13,M=0|s[3],w=8191&M,b=M>>>13,_=0|s[4],k=8191&_,L=_>>>13,S=0|s[5],A=8191&S,x=S>>>13,D=0|s[6],E=8191&D,T=D>>>13,z=0|s[7],B=8191&z,R=z>>>13,K=0|s[8],C=8191&K,Z=K>>>13,N=0|s[9],j=8191&N,q=N>>>13,O=0|h[0],P=8191&O,I=O>>>13,F=0|h[1],H=8191&F,Y=F>>>13,U=0|h[2],G=8191&U,J=U>>>13,W=0|h[3],X=8191&W,Q=W>>>13,V=0|h[4],$=8191&V,tt=V>>>13,it=0|h[5],rt=8191&it,et=it>>>13,nt=0|h[6],ot=8191&nt,st=nt>>>13,ht=0|h[7],at=8191&ht,ut=ht>>>13,lt=0|h[8],ft=8191&lt,mt=lt>>>13,pt=0|h[9],ct=8191&pt,dt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(u+(e=Math.imul(f,P))|0)+((8191&(n=(n=Math.imul(f,I))+Math.imul(m,P)|0))<<13)|0;u=((o=Math.imul(m,I))+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,e=Math.imul(c,P),n=(n=Math.imul(c,I))+Math.imul(d,P)|0,o=Math.imul(d,I);var vt=(u+(e=e+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(m,H)|0))<<13)|0;u=((o=o+Math.imul(m,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,e=Math.imul(v,P),n=(n=Math.imul(v,I))+Math.imul(y,P)|0,o=Math.imul(y,I),e=e+Math.imul(c,H)|0,n=(n=n+Math.imul(c,Y)|0)+Math.imul(d,H)|0,o=o+Math.imul(d,Y)|0;var yt=(u+(e=e+Math.imul(f,G)|0)|0)+((8191&(n=(n=n+Math.imul(f,J)|0)+Math.imul(m,G)|0))<<13)|0;u=((o=o+Math.imul(m,J)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(w,P),n=(n=Math.imul(w,I))+Math.imul(b,P)|0,o=Math.imul(b,I),e=e+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,Y)|0,e=e+Math.imul(c,G)|0,n=(n=n+Math.imul(c,J)|0)+Math.imul(d,G)|0,o=o+Math.imul(d,J)|0;var Mt=(u+(e=e+Math.imul(f,X)|0)|0)+((8191&(n=(n=n+Math.imul(f,Q)|0)+Math.imul(m,X)|0))<<13)|0;u=((o=o+Math.imul(m,Q)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,e=Math.imul(k,P),n=(n=Math.imul(k,I))+Math.imul(L,P)|0,o=Math.imul(L,I),e=e+Math.imul(w,H)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,Y)|0,e=e+Math.imul(v,G)|0,n=(n=n+Math.imul(v,J)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,J)|0,e=e+Math.imul(c,X)|0,n=(n=n+Math.imul(c,Q)|0)+Math.imul(d,X)|0,o=o+Math.imul(d,Q)|0;var wt=(u+(e=e+Math.imul(f,$)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(m,$)|0))<<13)|0;u=((o=o+Math.imul(m,tt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(A,P),n=(n=Math.imul(A,I))+Math.imul(x,P)|0,o=Math.imul(x,I),e=e+Math.imul(k,H)|0,n=(n=n+Math.imul(k,Y)|0)+Math.imul(L,H)|0,o=o+Math.imul(L,Y)|0,e=e+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,J)|0,e=e+Math.imul(v,X)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Q)|0,e=e+Math.imul(c,$)|0,n=(n=n+Math.imul(c,tt)|0)+Math.imul(d,$)|0,o=o+Math.imul(d,tt)|0;var bt=(u+(e=e+Math.imul(f,rt)|0)|0)+((8191&(n=(n=n+Math.imul(f,et)|0)+Math.imul(m,rt)|0))<<13)|0;u=((o=o+Math.imul(m,et)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,e=Math.imul(E,P),n=(n=Math.imul(E,I))+Math.imul(T,P)|0,o=Math.imul(T,I),e=e+Math.imul(A,H)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,Y)|0,e=e+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,J)|0,e=e+Math.imul(w,X)|0,n=(n=n+Math.imul(w,Q)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,Q)|0,e=e+Math.imul(v,$)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,e=e+Math.imul(c,rt)|0,n=(n=n+Math.imul(c,et)|0)+Math.imul(d,rt)|0,o=o+Math.imul(d,et)|0;var _t=(u+(e=e+Math.imul(f,ot)|0)|0)+((8191&(n=(n=n+Math.imul(f,st)|0)+Math.imul(m,ot)|0))<<13)|0;u=((o=o+Math.imul(m,st)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,e=Math.imul(B,P),n=(n=Math.imul(B,I))+Math.imul(R,P)|0,o=Math.imul(R,I),e=e+Math.imul(E,H)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,Y)|0,e=e+Math.imul(A,G)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,J)|0,e=e+Math.imul(k,X)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,Q)|0,e=e+Math.imul(w,$)|0,n=(n=n+Math.imul(w,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0,e=e+Math.imul(v,rt)|0,n=(n=n+Math.imul(v,et)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,et)|0,e=e+Math.imul(c,ot)|0,n=(n=n+Math.imul(c,st)|0)+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var kt=(u+(e=e+Math.imul(f,at)|0)|0)+((8191&(n=(n=n+Math.imul(f,ut)|0)+Math.imul(m,at)|0))<<13)|0;u=((o=o+Math.imul(m,ut)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,e=Math.imul(C,P),n=(n=Math.imul(C,I))+Math.imul(Z,P)|0,o=Math.imul(Z,I),e=e+Math.imul(B,H)|0,n=(n=n+Math.imul(B,Y)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,Y)|0,e=e+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,J)|0,e=e+Math.imul(A,X)|0,n=(n=n+Math.imul(A,Q)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,Q)|0,e=e+Math.imul(k,$)|0,n=(n=n+Math.imul(k,tt)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,e=e+Math.imul(w,rt)|0,n=(n=n+Math.imul(w,et)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,et)|0,e=e+Math.imul(v,ot)|0,n=(n=n+Math.imul(v,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,e=e+Math.imul(c,at)|0,n=(n=n+Math.imul(c,ut)|0)+Math.imul(d,at)|0,o=o+Math.imul(d,ut)|0;var Lt=(u+(e=e+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(n>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,e=Math.imul(j,P),n=(n=Math.imul(j,I))+Math.imul(q,P)|0,o=Math.imul(q,I),e=e+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(Z,H)|0,o=o+Math.imul(Z,Y)|0,e=e+Math.imul(B,G)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,J)|0,e=e+Math.imul(E,X)|0,n=(n=n+Math.imul(E,Q)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,Q)|0,e=e+Math.imul(A,$)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,e=e+Math.imul(k,rt)|0,n=(n=n+Math.imul(k,et)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,et)|0,e=e+Math.imul(w,ot)|0,n=(n=n+Math.imul(w,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,e=e+Math.imul(v,at)|0,n=(n=n+Math.imul(v,ut)|0)+Math.imul(y,at)|0,o=o+Math.imul(y,ut)|0,e=e+Math.imul(c,ft)|0,n=(n=n+Math.imul(c,mt)|0)+Math.imul(d,ft)|0,o=o+Math.imul(d,mt)|0;var St=(u+(e=e+Math.imul(f,ct)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(m,ct)|0))<<13)|0;u=((o=o+Math.imul(m,dt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,e=Math.imul(j,H),n=(n=Math.imul(j,Y))+Math.imul(q,H)|0,o=Math.imul(q,Y),e=e+Math.imul(C,G)|0,n=(n=n+Math.imul(C,J)|0)+Math.imul(Z,G)|0,o=o+Math.imul(Z,J)|0,e=e+Math.imul(B,X)|0,n=(n=n+Math.imul(B,Q)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,Q)|0,e=e+Math.imul(E,$)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,e=e+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,et)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,et)|0,e=e+Math.imul(k,ot)|0,n=(n=n+Math.imul(k,st)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,e=e+Math.imul(w,at)|0,n=(n=n+Math.imul(w,ut)|0)+Math.imul(b,at)|0,o=o+Math.imul(b,ut)|0,e=e+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,mt)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,mt)|0;var At=(u+(e=e+Math.imul(c,ct)|0)|0)+((8191&(n=(n=n+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;u=((o=o+Math.imul(d,dt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,e=Math.imul(j,G),n=(n=Math.imul(j,J))+Math.imul(q,G)|0,o=Math.imul(q,J),e=e+Math.imul(C,X)|0,n=(n=n+Math.imul(C,Q)|0)+Math.imul(Z,X)|0,o=o+Math.imul(Z,Q)|0,e=e+Math.imul(B,$)|0,n=(n=n+Math.imul(B,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,e=e+Math.imul(E,rt)|0,n=(n=n+Math.imul(E,et)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,et)|0,e=e+Math.imul(A,ot)|0,n=(n=n+Math.imul(A,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,e=e+Math.imul(k,at)|0,n=(n=n+Math.imul(k,ut)|0)+Math.imul(L,at)|0,o=o+Math.imul(L,ut)|0,e=e+Math.imul(w,ft)|0,n=(n=n+Math.imul(w,mt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,mt)|0;var xt=(u+(e=e+Math.imul(v,ct)|0)|0)+((8191&(n=(n=n+Math.imul(v,dt)|0)+Math.imul(y,ct)|0))<<13)|0;u=((o=o+Math.imul(y,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,e=Math.imul(j,X),n=(n=Math.imul(j,Q))+Math.imul(q,X)|0,o=Math.imul(q,Q),e=e+Math.imul(C,$)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(Z,$)|0,o=o+Math.imul(Z,tt)|0,e=e+Math.imul(B,rt)|0,n=(n=n+Math.imul(B,et)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,et)|0,e=e+Math.imul(E,ot)|0,n=(n=n+Math.imul(E,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,e=e+Math.imul(A,at)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(x,at)|0,o=o+Math.imul(x,ut)|0,e=e+Math.imul(k,ft)|0,n=(n=n+Math.imul(k,mt)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,mt)|0;var Dt=(u+(e=e+Math.imul(w,ct)|0)|0)+((8191&(n=(n=n+Math.imul(w,dt)|0)+Math.imul(b,ct)|0))<<13)|0;u=((o=o+Math.imul(b,dt)|0)+(n>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,e=Math.imul(j,$),n=(n=Math.imul(j,tt))+Math.imul(q,$)|0,o=Math.imul(q,tt),e=e+Math.imul(C,rt)|0,n=(n=n+Math.imul(C,et)|0)+Math.imul(Z,rt)|0,o=o+Math.imul(Z,et)|0,e=e+Math.imul(B,ot)|0,n=(n=n+Math.imul(B,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,e=e+Math.imul(E,at)|0,n=(n=n+Math.imul(E,ut)|0)+Math.imul(T,at)|0,o=o+Math.imul(T,ut)|0,e=e+Math.imul(A,ft)|0,n=(n=n+Math.imul(A,mt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,mt)|0;var Et=(u+(e=e+Math.imul(k,ct)|0)|0)+((8191&(n=(n=n+Math.imul(k,dt)|0)+Math.imul(L,ct)|0))<<13)|0;u=((o=o+Math.imul(L,dt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,e=Math.imul(j,rt),n=(n=Math.imul(j,et))+Math.imul(q,rt)|0,o=Math.imul(q,et),e=e+Math.imul(C,ot)|0,n=(n=n+Math.imul(C,st)|0)+Math.imul(Z,ot)|0,o=o+Math.imul(Z,st)|0,e=e+Math.imul(B,at)|0,n=(n=n+Math.imul(B,ut)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,ut)|0,e=e+Math.imul(E,ft)|0,n=(n=n+Math.imul(E,mt)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,mt)|0;var Tt=(u+(e=e+Math.imul(A,ct)|0)|0)+((8191&(n=(n=n+Math.imul(A,dt)|0)+Math.imul(x,ct)|0))<<13)|0;u=((o=o+Math.imul(x,dt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,e=Math.imul(j,ot),n=(n=Math.imul(j,st))+Math.imul(q,ot)|0,o=Math.imul(q,st),e=e+Math.imul(C,at)|0,n=(n=n+Math.imul(C,ut)|0)+Math.imul(Z,at)|0,o=o+Math.imul(Z,ut)|0,e=e+Math.imul(B,ft)|0,n=(n=n+Math.imul(B,mt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,mt)|0;var zt=(u+(e=e+Math.imul(E,ct)|0)|0)+((8191&(n=(n=n+Math.imul(E,dt)|0)+Math.imul(T,ct)|0))<<13)|0;u=((o=o+Math.imul(T,dt)|0)+(n>>>13)|0)+(zt>>>26)|0,zt&=67108863,e=Math.imul(j,at),n=(n=Math.imul(j,ut))+Math.imul(q,at)|0,o=Math.imul(q,ut),e=e+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,mt)|0)+Math.imul(Z,ft)|0,o=o+Math.imul(Z,mt)|0;var Bt=(u+(e=e+Math.imul(B,ct)|0)|0)+((8191&(n=(n=n+Math.imul(B,dt)|0)+Math.imul(R,ct)|0))<<13)|0;u=((o=o+Math.imul(R,dt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,e=Math.imul(j,ft),n=(n=Math.imul(j,mt))+Math.imul(q,ft)|0,o=Math.imul(q,mt);var Rt=(u+(e=e+Math.imul(C,ct)|0)|0)+((8191&(n=(n=n+Math.imul(C,dt)|0)+Math.imul(Z,ct)|0))<<13)|0;u=((o=o+Math.imul(Z,dt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Kt=(u+(e=Math.imul(j,ct))|0)+((8191&(n=(n=Math.imul(j,dt))+Math.imul(q,ct)|0))<<13)|0;return u=((o=Math.imul(q,dt))+(n>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,a[0]=gt,a[1]=vt,a[2]=yt,a[3]=Mt,a[4]=wt,a[5]=bt,a[6]=_t,a[7]=kt,a[8]=Lt,a[9]=St,a[10]=At,a[11]=xt,a[12]=Dt,a[13]=Et,a[14]=Tt,a[15]=zt,a[16]=Bt,a[17]=Rt,a[18]=Kt,0!==u&&(a[19]=u,r.length++),r};function d(t,i,r){return(new g).mulp(t,i,r)}function g(t,i){this.x=t,this.y=i}Math.imul||(c=p),o.prototype.mulTo=function(t,i){var r,e=this.length+t.length;return r=10===this.length&&10===t.length?c(this,t,i):e<63?p(this,t,i):e<1024?function(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var e=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var h=67108863&e,a=Math.min(o,i.length-1),u=Math.max(0,o-t.length+1);u<=a;u++){var l=o-u,f=(0|t.words[l])*(0|i.words[u]),m=67108863&f;h=67108863&(m=m+h|0),n+=(s=(s=s+(f/67108864|0)|0)+(m>>>26)|0)>>>26,s&=67108863}r.words[o]=h,e=s,s=n}return 0!==e?r.words[o]=e:r.length--,r.strip()}(this,t,i):d(this,t,i),r},g.prototype.makeRBT=function(t){for(var i=new Array(t),r=o.prototype._countBits(t)-1,e=0;e<t;e++)i[e]=this.revBin(e,r,t);return i},g.prototype.revBin=function(t,i,r){if(0===t||t===r-1)return t;for(var e=0,n=0;n<i;n++)e|=(1&t)<<i-n-1,t>>=1;return e},g.prototype.permute=function(t,i,r,e,n,o){for(var s=0;s<o;s++)e[s]=i[t[s]],n[s]=r[t[s]]},g.prototype.transform=function(t,i,r,e,n,o){this.permute(o,t,i,r,e,n);for(var s=1;s<n;s<<=1)for(var h=s<<1,a=Math.cos(2*Math.PI/h),u=Math.sin(2*Math.PI/h),l=0;l<n;l+=h)for(var f=a,m=u,p=0;p<s;p++){var c=r[l+p],d=e[l+p],g=r[l+p+s],v=e[l+p+s],y=f*g-m*v;v=f*v+m*g,g=y,r[l+p]=c+g,e[l+p]=d+v,r[l+p+s]=c-g,e[l+p+s]=d-v,p!==h&&(y=a*f-u*m,m=a*m+u*f,f=y)}},g.prototype.guessLen13b=function(t,i){var r=1|Math.max(i,t),e=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+e},g.prototype.conjugate=function(t,i,r){if(!(r<=1))for(var e=0;e<r/2;e++){var n=t[e];t[e]=t[r-e-1],t[r-e-1]=n,n=i[e],i[e]=-i[r-e-1],i[r-e-1]=-n}},g.prototype.normalize13b=function(t,i){for(var r=0,e=0;e<i/2;e++){var n=8192*Math.round(t[2*e+1]/i)+Math.round(t[2*e]/i)+r;t[e]=67108863&n,r=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,i,r,n){for(var o=0,s=0;s<i;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*i;s<n;++s)r[s]=0;e(0===o),e(0==(-8192&o))},g.prototype.stub=function(t){for(var i=new Array(t),r=0;r<t;r++)i[r]=0;return i},g.prototype.mulp=function(t,i,r){var e=2*this.guessLen13b(t.length,i.length),n=this.makeRBT(e),o=this.stub(e),s=new Array(e),h=new Array(e),a=new Array(e),u=new Array(e),l=new Array(e),f=new Array(e),m=r.words;m.length=e,this.convert13b(t.words,t.length,s,e),this.convert13b(i.words,i.length,u,e),this.transform(s,o,h,a,e,n),this.transform(u,o,l,f,e,n);for(var p=0;p<e;p++){var c=h[p]*l[p]-a[p]*f[p];a[p]=h[p]*f[p]+a[p]*l[p],h[p]=c}return this.conjugate(h,a,e),this.transform(h,a,m,o,e,n),this.conjugate(m,o,e),this.normalize13b(m,e),r.negative=t.negative^i.negative,r.length=t.length+i.length,r.strip()},o.prototype.mul=function(t){var i=new o(null);return i.words=new Array(this.length+t.length),this.mulTo(t,i)},o.prototype.mulf=function(t){var i=new o(null);return i.words=new Array(this.length+t.length),d(this,t,i)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){e("number"==typeof t),e(t<67108864);for(var i=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,o=(67108863&n)+(67108863&i);i>>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var i=function(t){for(var i=new Array(t.bitLength()),r=0;r<i.length;r++){var e=r/26|0,n=r%26;i[r]=(t.words[e]&1<<n)>>>n}return i}(t);if(0===i.length)return new o(1);for(var r=this,e=0;e<i.length&&0===i[e];e++,r=r.sqr());if(++e<i.length)for(var n=r.sqr();e<i.length;e++,n=n.sqr())0!==i[e]&&(r=r.mul(n));return r},o.prototype.iushln=function(t){e("number"==typeof t&&t>=0);var i,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(i=0;i<this.length;i++){var h=this.words[i]&o,a=(0|this.words[i])-h<<r;this.words[i]=a|s,s=h>>>26-r}s&&(this.words[i]=s,this.length++)}if(0!==n){for(i=this.length-1;i>=0;i--)this.words[i+n]=this.words[i];for(i=0;i<n;i++)this.words[i]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(t){return e(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,i,r){var n;e("number"==typeof t&&t>=0),n=i?(i-i%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),h=67108863^67108863>>>o<<o,a=r;if(n-=s,n=Math.max(0,n),a){for(var u=0;u<s;u++)a.words[u]=this.words[u];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=n);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&h}return a&&0!==l&&(a.words[a.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,i,r){return e(0===this.negative),this.iushrn(t,i,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){e("number"==typeof t&&t>=0);var i=t%26,r=(t-i)/26,n=1<<i;return!(this.length<=r)&&!!(this.words[r]&n)},o.prototype.imaskn=function(t){e("number"==typeof t&&t>=0);var i=t%26,r=(t-i)/26;if(e(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==i&&r++,this.length=Math.min(r,this.length),0!==i){var n=67108863^67108863>>>i<<i;this.words[this.length-1]&=n}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return e("number"==typeof t),e(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},o.prototype.isubn=function(t){if(e("number"==typeof t),e(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,i,r){var n,o,s=t.length+r;this._expand(s);var h=0;for(n=0;n<t.length;n++){o=(0|this.words[n+r])+h;var a=(0|t.words[n])*i;h=((o-=67108863&a)>>26)-(a/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)h=(o=(0|this.words[n+r])+h)>>26,this.words[n+r]=67108863&o;if(0===h)return this.strip();for(e(-1===h),h=0,n=0;n<this.length;n++)h=(o=-(0|this.words[n])+h)>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,i){var r=(this.length,t.length),e=this.clone(),n=t,s=0|n.words[n.length-1];0!==(r=26-this._countBits(s))&&(n=n.ushln(r),e.iushln(r),s=0|n.words[n.length-1]);var h,a=e.length-n.length;if("mod"!==i){(h=new o(null)).length=a+1,h.words=new Array(h.length);for(var u=0;u<h.length;u++)h.words[u]=0}var l=e.clone()._ishlnsubmul(n,1,a);0===l.negative&&(e=l,h&&(h.words[a]=1));for(var f=a-1;f>=0;f--){var m=67108864*(0|e.words[n.length+f])+(0|e.words[n.length+f-1]);for(m=Math.min(m/s|0,67108863),e._ishlnsubmul(n,m,f);0!==e.negative;)m--,e.negative=0,e._ishlnsubmul(n,1,f),e.isZero()||(e.negative^=1);h&&(h.words[f]=m)}return h&&h.strip(),e.strip(),"div"!==i&&0!==r&&e.iushrn(r),{div:h||null,mod:e}},o.prototype.divmod=function(t,i,r){return e(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(h=this.neg().divmod(t,i),"mod"!==i&&(n=h.div.neg()),"div"!==i&&(s=h.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(h=this.divmod(t.neg(),i),"mod"!==i&&(n=h.div.neg()),{div:n,mod:h.mod}):0!=(this.negative&t.negative)?(h=this.neg().divmod(t.neg(),i),"div"!==i&&(s=h.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:h.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===i?{div:this.divn(t.words[0]),mod:null}:"mod"===i?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,i);var n,s,h},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,e=t.ushrn(1),n=t.andln(1),o=r.cmp(e);return o<0||1===n&&0===o?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},o.prototype.modn=function(t){e(t<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(i*r+(0|this.words[n]))%t;return r},o.prototype.idivn=function(t){e(t<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){e(0===t.negative),e(!t.isZero());var i=this,r=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var n=new o(1),s=new o(0),h=new o(0),a=new o(1),u=0;i.isEven()&&r.isEven();)i.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=i.clone();!i.isZero();){for(var m=0,p=1;0==(i.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(i.iushrn(m);m-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(l),s.isub(f)),n.iushrn(1),s.iushrn(1);for(var c=0,d=1;0==(r.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(r.iushrn(c);c-- >0;)(h.isOdd()||a.isOdd())&&(h.iadd(l),a.isub(f)),h.iushrn(1),a.iushrn(1);i.cmp(r)>=0?(i.isub(r),n.isub(h),s.isub(a)):(r.isub(i),h.isub(n),a.isub(s))}return{a:h,b:a,gcd:r.iushln(u)}},o.prototype._invmp=function(t){e(0===t.negative),e(!t.isZero());var i=this,r=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var n,s=new o(1),h=new o(0),a=r.clone();i.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(i.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)h.isOdd()&&h.iadd(a),h.iushrn(1);i.cmp(r)>=0?(i.isub(r),s.isub(h)):(r.isub(i),h.isub(s))}return(n=0===i.cmpn(1)?s:h).cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var e=0;i.isEven()&&r.isEven();e++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=i.cmp(r);if(n<0){var o=i;i=r,r=o}else if(0===n||0===r.cmpn(1))break;i.isub(r)}return r.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){e("number"==typeof t);var i=t%26,r=(t-i)/26,n=1<<i;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var h=0|this.words[s];o=(h+=o)>>>26,h&=67108863,this.words[s]=h}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var i,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)i=1;else{r&&(t=-t),e(t<=67108863,"Number is too big");var n=0|this.words[0];i=n===t?0:n<t?-1:1}return 0!==this.negative?0|-i:i},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var i=this.ucmp(t);return 0!==this.negative?0|-i:i},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var i=0,r=this.length-1;r>=0;r--){var e=0|this.words[r],n=0|t.words[r];if(e!==n){e<n?i=-1:e>n&&(i=1);break}}return i},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return e(!this.red,"Already a number in reduction context"),e(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return e(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return e(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function y(t,i){this.name=t,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var i=o._prime(t);this.m=i.p,this.prime=i}else e(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var e=i<this.n?-1:r.ucmp(this.p);return 0===e?(r.words[0]=0,r.length=1):e>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,i){t.iushrn(this.n,0,i)},y.prototype.imulK=function(t){return t.imul(this.k)},n(M,y),M.prototype.split=function(t,i){for(var r=4194303,e=Math.min(t.length,9),n=0;n<e;n++)i.words[n]=t.words[n];if(i.length=e,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(i.words[i.length++]=o&r,n=10;n<t.length;n++){var s=0|t.words[n];t.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[n-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r<t.length;r++){var e=0|t.words[r];i+=977*e,t.words[r]=67108863&i,i=64*e+(i/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(w,y),n(b,y),n(_,y),_.prototype.imulK=function(t){for(var i=0,r=0;r<t.length;r++){var e=19*(0|t.words[r])+i,n=67108863&e;e>>>=26,t.words[r]=n,i=e}return 0!==i&&(t.words[t.length++]=i),t},o._prime=function(t){if(v[t])return v[t];var i;if("k256"===t)i=new M;else if("p224"===t)i=new w;else if("p192"===t)i=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);i=new _}return v[t]=i,i},k.prototype._verify1=function(t){e(0===t.negative,"red works only with positives"),e(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,i){e(0==(t.negative|i.negative),"red works only with positives"),e(t.red&&t.red===i.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},k.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},k.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(e(i%2==1),3===i){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);e(!n.isZero());var h=new o(1).toRed(this),a=h.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(a);)l.redIAdd(a);for(var f=this.pow(l,n),m=this.pow(t,n.addn(1).iushrn(1)),p=this.pow(t,n),c=s;0!==p.cmp(h);){for(var d=p,g=0;0!==d.cmp(h);g++)d=d.redSqr();e(g<c);var v=this.pow(f,new o(1).iushln(c-g-1));m=m.redMul(v),f=v.redSqr(),p=p.redMul(f),c=g}return m},k.prototype.invm=function(t){var i=t._invmp(this.m);return 0!==i.negative?(i.negative=0,this.imod(i).redNeg()):this.imod(i)},k.prototype.pow=function(t,i){if(i.isZero())return new o(1).toRed(this);if(0===i.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var e=2;e<r.length;e++)r[e]=this.mul(r[e-1],t);var n=r[0],s=0,h=0,a=i.bitLength()%26;for(0===a&&(a=26),e=i.length-1;e>=0;e--){for(var u=i.words[e],l=a-1;l>=0;l--){var f=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!==f||0!==s?(s<<=1,s|=f,(4===++h||0===e&&0===l)&&(n=this.mul(n,r[s]),h=0,s=0)):h=0}a=26}return n},k.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},k.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},o.mont=function(t){return new L(t)},n(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},L.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),e=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(e).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},L.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new o(0)._forceRed(this);var r=t.mul(i),e=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(e).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},23482:(t,i,r)=>{"use strict";var e=r(35717),n=r(62318),o=r(79785),s=r(89072),h=r(71027);function a(t){h.call(this,"digest"),this._hash=t}e(a,h),a.prototype._update=function(t){this._hash.update(t)},a.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new n:"rmd160"===t||"ripemd160"===t?new o:new a(s(t))}},78028:(t,i,r)=>{var e=r(62318);t.exports=function(t){return(new e).update(t).digest()}}}]);