diff --git a/README.md b/README.md index 65129bd..7df7b7f 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,43 @@ -# Shopping List with React.js, Redux and ES2015 +# Shopping List with React.js, Redux and ES2015. -Basic shopping list implemented with React.js (`v15`), Redux, ES2015 and Twitter Bootstrap (`v3`). +Basic shopping list implemented with React.js (`v15`) and Twitter Bootstrap (`v3`). -### Live +Uses Webpack, [Yarn](https://code.facebook.com/posts/1840075619545360). -https://fedosejev.github.io/shopping-list-react-redux/ +### Live -### Other versions - -+ [React.js and ES5](https://github.com/fedosejev/shopping-list-react) -+ [React.js and ES2015](https://github.com/fedosejev/shopping-list-react-es2015) -+ [React.js, Flux and ES5](https://github.com/fedosejev/shopping-list-react-flux) +http://fedosejev.github.io/shopping-list-react-redux/ ## Install -`npm install` +1. `npm install -g yarn` +2. `yarn install` -## Build +#### What is Yarn? ++ https://code.facebook.com/posts/1840075619545360 ++ https://scotch.io/tutorials/yarn-package-manager-an-improvement-over-npm -#### In development environment: +## Run -`npm run build-for-development` +1. `npm start` +2. Open `http://localhost:8080` in a web browser. -#### In production environment: +## Build -`npm run build-for-production` +`npm run build` -## Run +## Other versions -1. `./serve.sh` -2. Open `http://localhost:8080` in a web browser. ++ [React.js and ES5](https://github.com/fedosejev/shopping-list-react) ++ [React.js and ES2015](https://github.com/fedosejev/shopping-list-react-es2015) ++ [React.js and Flux (ES5)](https://github.com/fedosejev/shopping-list-react-flux) ## Author -[Artemij Fedosejev](http://artemij.com) +Artemij Fedosejev ++ [Website](http://artemij.com) ++ [LinkedIn](https://www.linkedin.com/in/artemij) ++ [React.Tips](http://react.tips) ## License diff --git a/build/index.html b/build/index.html index 6193552..a13f99c 100644 --- a/build/index.html +++ b/build/index.html @@ -1,3 +1,3 @@ -Shopping List
Loading application...
\ No newline at end of file + }
Loading application...
\ No newline at end of file diff --git a/build/js/shopping-list.js b/build/js/shopping-list.js index ad4038b..eea6b1f 100644 --- a/build/js/shopping-list.js +++ b/build/js/shopping-list.js @@ -1,19 +1,19 @@ -!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[a]={exports:{}};t[a][0].call(f.exports,function(e){var n=t[a][1][e];return i(n?n:e)},f,f.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a>6],i=0===(32&n);if(31===(31&n)){var o=n;for(n=0;128===(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;n<<=7,n|=127&o}}else n&=31;var a=d.tag[n];return{cls:r,primitive:i,tag:n,tagStr:a}}function a(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0===(128&r))return r;var i=127&r;if(i>=4)return e.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=d.tagClassByName[n||"universal"]<<6)}var s=e("inherits"),c=e("buffer").Buffer,u=e("../../asn1"),f=u.base,d=u.constants.der;t.exports=r,r.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},s(i,f.Node),i.prototype._encodeComposite=function(e,t,n,r){var i=a(e,t,n,this.reporter);if(r.length<128){var o=new c(2);return o[0]=i,o[1]=r.length,this._createEncoderBuffer([o,r])}for(var s=1,u=r.length;u>=256;u>>=8)s++;var o=new c(2+s);o[0]=i,o[1]=128|s;for(var u=1+s,f=r.length;f>0;u--,f>>=8)o[u]=255&f;return this._createEncoderBuffer([o,r])},i.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new c(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,r=0;r=128;o>>=7)i++}for(var a=new c(i),s=a.length-1,r=e.length-1;r>=0;r--){var o=e[r];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},i.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[o(r.getFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[o(r.getFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!c.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new c(n)}if(c.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=new c(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var r=1,o=e;o>=256;o>>=8)r++;for(var i=new Array(r),o=i.length-1;o>=0;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-r(e)}function o(e){var t,n,i,o,a,s,c=e.length;a=r(e),s=new d(3*c/4-a),i=a>0?c-4:c;var u=0;for(t=0,n=0;t>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===a?(o=f[e.charCodeAt(t)]<<2|f[e.charCodeAt(t+1)]>>4,s[u++]=255&o):1===a&&(o=f[e.charCodeAt(t)]<<10|f[e.charCodeAt(t+1)]<<4|f[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,n){for(var r,i=[],o=t;of?f:c+a));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=i,n.toByteArray=o,n.fromByteArray=c;for(var u=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=l.length;p=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function s(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}function c(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}function u(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/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;i=0|e.words[h],o=0|t.words[p],a=i*o+d,f+=a/67108864|0,d=67108863&a}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function f(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function d(e,t,n){var r=new l;return r.mulp(e,t,n)}function l(e,t){this.x=e,this.y=t}function p(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function h(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function m(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function g(e){if("string"==typeof e){var t=o._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 y(e){g.call(this,e),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)}"object"==typeof t?t.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=e("buffer").Buffer}catch(e){}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.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),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=a(e,n,n+6),this.words[r]|=i<>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==t&&(i=a(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,c=Math.min(o,o-a)+n,u=0,f=n;f1&&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?""};var E=["","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"],w=[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],C=[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]; -o.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,n=0!==o||a!==this.length-1?E[6-c.length]+c+n:c+n,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(n=o.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=w[e],f=C[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var l=d.modn(f).toString(e);d=d.idivn(f),n=d.isZero()?l+n:E[u-l.length]+l+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")},o.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},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!=typeof _),this.toArrayLike(_,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),f=this.clone();if(c){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),u[s]=a;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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.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)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.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)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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 i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.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=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=e):(r=e,i=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],h=8191&p,b=p>>>13,v=0|a[2],m=8191&v,g=v>>>13,y=0|a[3],_=8191&y,E=y>>>13,w=0|a[4],C=8191&w,N=w>>>13,S=0|a[5],M=8191&S,O=S>>>13,R=0|a[6],D=8191&R,k=R>>>13,I=0|a[7],x=8191&I,P=I>>>13,T=0|a[8],A=8191&T,j=T>>>13,B=0|a[9],L=8191&B,U=B>>>13,V=0|s[0],F=8191&V,q=V>>>13,H=0|s[1],z=8191&H,W=H>>>13,K=0|s[2],Y=8191&K,X=K>>>13,G=0|s[3],Q=8191&G,J=G>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>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,r=Math.imul(d,F),i=Math.imul(d,q),i=i+Math.imul(l,F)|0,o=Math.imul(l,q);var ve=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(h,F),i=Math.imul(h,q),i=i+Math.imul(b,F)|0,o=Math.imul(b,q),r=r+Math.imul(d,z)|0,i=i+Math.imul(d,W)|0,i=i+Math.imul(l,z)|0,o=o+Math.imul(l,W)|0;var me=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),i=Math.imul(m,q),i=i+Math.imul(g,F)|0,o=Math.imul(g,q),r=r+Math.imul(h,z)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(d,Y)|0,i=i+Math.imul(d,X)|0,i=i+Math.imul(l,Y)|0,o=o+Math.imul(l,X)|0;var ge=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),i=Math.imul(_,q),i=i+Math.imul(E,F)|0,o=Math.imul(E,q),r=r+Math.imul(m,z)|0,i=i+Math.imul(m,W)|0,i=i+Math.imul(g,z)|0,o=o+Math.imul(g,W)|0,r=r+Math.imul(h,Y)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(d,Q)|0,i=i+Math.imul(d,J)|0,i=i+Math.imul(l,Q)|0,o=o+Math.imul(l,J)|0;var ye=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,F),i=Math.imul(C,q),i=i+Math.imul(N,F)|0,o=Math.imul(N,q),r=r+Math.imul(_,z)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(E,z)|0,o=o+Math.imul(E,W)|0,r=r+Math.imul(m,Y)|0,i=i+Math.imul(m,X)|0,i=i+Math.imul(g,Y)|0,o=o+Math.imul(g,X)|0,r=r+Math.imul(h,Q)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(d,$)|0,i=i+Math.imul(d,ee)|0,i=i+Math.imul(l,$)|0,o=o+Math.imul(l,ee)|0;var _e=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,F),i=Math.imul(M,q),i=i+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(C,z)|0,i=i+Math.imul(C,W)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,W)|0,r=r+Math.imul(_,Y)|0,i=i+Math.imul(_,X)|0,i=i+Math.imul(E,Y)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(m,Q)|0,i=i+Math.imul(m,J)|0,i=i+Math.imul(g,Q)|0,o=o+Math.imul(g,J)|0,r=r+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0,i=i+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(d,ne)|0,i=i+Math.imul(d,re)|0,i=i+Math.imul(l,ne)|0,o=o+Math.imul(l,re)|0;var Ee=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,F),i=Math.imul(D,q),i=i+Math.imul(k,F)|0,o=Math.imul(k,q),r=r+Math.imul(M,z)|0,i=i+Math.imul(M,W)|0,i=i+Math.imul(O,z)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(C,Y)|0,i=i+Math.imul(C,X)|0,i=i+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(_,Q)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0,i=i+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0,i=i+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(d,oe)|0,i=i+Math.imul(d,ae)|0,i=i+Math.imul(l,oe)|0,o=o+Math.imul(l,ae)|0;var we=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,F),i=Math.imul(x,q),i=i+Math.imul(P,F)|0,o=Math.imul(P,q),r=r+Math.imul(D,z)|0,i=i+Math.imul(D,W)|0,i=i+Math.imul(k,z)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=i+Math.imul(M,X)|0,i=i+Math.imul(O,Y)|0,o=o+Math.imul(O,X)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,J)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(_,$)|0,i=i+Math.imul(_,ee)|0,i=i+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0,i=i+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=i+Math.imul(h,ae)|0,i=i+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(d,ce)|0,i=i+Math.imul(d,ue)|0,i=i+Math.imul(l,ce)|0,o=o+Math.imul(l,ue)|0;var Ce=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(A,F),i=Math.imul(A,q),i=i+Math.imul(j,F)|0,o=Math.imul(j,q),r=r+Math.imul(x,z)|0,i=i+Math.imul(x,W)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,W)|0,r=r+Math.imul(D,Y)|0,i=i+Math.imul(D,X)|0,i=i+Math.imul(k,Y)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,J)|0,i=i+Math.imul(O,Q)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,$)|0,i=i+Math.imul(C,ee)|0,i=i+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(_,ne)|0,i=i+Math.imul(_,re)|0,i=i+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(m,oe)|0,i=i+Math.imul(m,ae)|0,i=i+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0,i=i+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,r=r+Math.imul(d,de)|0,i=i+Math.imul(d,le)|0,i=i+Math.imul(l,de)|0,o=o+Math.imul(l,le)|0;var Ne=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(L,F),i=Math.imul(L,q),i=i+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(A,z)|0,i=i+Math.imul(A,W)|0,i=i+Math.imul(j,z)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(x,Y)|0,i=i+Math.imul(x,X)|0,i=i+Math.imul(P,Y)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,Q)|0,i=i+Math.imul(D,J)|0,i=i+Math.imul(k,Q)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(M,ee)|0,i=i+Math.imul(O,$)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,i=i+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(_,oe)|0,i=i+Math.imul(_,ae)|0,i=i+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(m,ce)|0,i=i+Math.imul(m,ue)|0,i=i+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0,r=r+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0,i=i+Math.imul(b,de)|0,o=o+Math.imul(b,le)|0,r=r+Math.imul(d,he)|0,i=i+Math.imul(d,be)|0,i=i+Math.imul(l,he)|0,o=o+Math.imul(l,be)|0;var Se=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,z),i=Math.imul(L,W),i=i+Math.imul(U,z)|0,o=Math.imul(U,W),r=r+Math.imul(A,Y)|0,i=i+Math.imul(A,X)|0,i=i+Math.imul(j,Y)|0,o=o+Math.imul(j,X)|0,r=r+Math.imul(x,Q)|0,i=i+Math.imul(x,J)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,J)|0,r=r+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,i=i+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,i=i+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(C,oe)|0,i=i+Math.imul(C,ae)|0,i=i+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(_,ce)|0,i=i+Math.imul(_,ue)|0,i=i+Math.imul(E,ce)|0,o=o+Math.imul(E,ue)|0,r=r+Math.imul(m,de)|0,i=i+Math.imul(m,le)|0,i=i+Math.imul(g,de)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,he)|0,i=i+Math.imul(h,be)|0,i=i+Math.imul(b,he)|0,o=o+Math.imul(b,be)|0;var Me=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,Y),i=Math.imul(L,X),i=i+Math.imul(U,Y)|0,o=Math.imul(U,X),r=r+Math.imul(A,Q)|0,i=i+Math.imul(A,J)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(x,$)|0,i=i+Math.imul(x,ee)|0,i=i+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,i=i+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(M,oe)|0,i=i+Math.imul(M,ae)|0,i=i+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(C,ce)|0,i=i+Math.imul(C,ue)|0,i=i+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,r=r+Math.imul(_,de)|0,i=i+Math.imul(_,le)|0,i=i+Math.imul(E,de)|0,o=o+Math.imul(E,le)|0,r=r+Math.imul(m,he)|0,i=i+Math.imul(m,be)|0,i=i+Math.imul(g,he)|0,o=o+Math.imul(g,be)|0;var Oe=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,Q),i=Math.imul(L,J),i=i+Math.imul(U,Q)|0,o=Math.imul(U,J),r=r+Math.imul(A,$)|0,i=i+Math.imul(A,ee)|0,i=i+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,i=i+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(D,oe)|0,i=i+Math.imul(D,ae)|0,i=i+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,i=i+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(C,de)|0,i=i+Math.imul(C,le)|0,i=i+Math.imul(N,de)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(_,he)|0,i=i+Math.imul(_,be)|0,i=i+Math.imul(E,he)|0,o=o+Math.imul(E,be)|0;var Re=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(L,$),i=Math.imul(L,ee),i=i+Math.imul(U,$)|0,o=Math.imul(U,ee),r=r+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,i=i+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(x,oe)|0,i=i+Math.imul(x,ae)|0,i=i+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,i=i+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(M,de)|0,i=i+Math.imul(M,le)|0,i=i+Math.imul(O,de)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(C,he)|0,i=i+Math.imul(C,be)|0,i=i+Math.imul(N,he)|0,o=o+Math.imul(N,be)|0;var De=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(L,ne),i=Math.imul(L,re),i=i+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(A,oe)|0,i=i+Math.imul(A,ae)|0,i=i+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(x,ce)|0,i=i+Math.imul(x,ue)|0,i=i+Math.imul(P,ce)|0,o=o+Math.imul(P,ue)|0,r=r+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0,i=i+Math.imul(k,de)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(M,he)|0,i=i+Math.imul(M,be)|0,i=i+Math.imul(O,he)|0,o=o+Math.imul(O,be)|0;var ke=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,oe),i=Math.imul(L,ae),i=i+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(A,ce)|0,i=i+Math.imul(A,ue)|0,i=i+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,r=r+Math.imul(x,de)|0,i=i+Math.imul(x,le)|0,i=i+Math.imul(P,de)|0,o=o+Math.imul(P,le)|0,r=r+Math.imul(D,he)|0,i=i+Math.imul(D,be)|0,i=i+Math.imul(k,he)|0,o=o+Math.imul(k,be)|0;var Ie=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,ce),i=Math.imul(L,ue),i=i+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(A,de)|0,i=i+Math.imul(A,le)|0,i=i+Math.imul(j,de)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(x,he)|0,i=i+Math.imul(x,be)|0,i=i+Math.imul(P,he)|0,o=o+Math.imul(P,be)|0;var xe=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,de),i=Math.imul(L,le),i=i+Math.imul(U,de)|0,o=Math.imul(U,le),r=r+Math.imul(A,he)|0,i=i+Math.imul(A,be)|0,i=i+Math.imul(j,he)|0,o=o+Math.imul(j,be)|0;var Pe=(u+r|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,he),i=Math.imul(L,be),i=i+Math.imul(U,he)|0,o=Math.imul(U,be);var Te=(u+r|0)+((8191&i)<<13)|0;return u=(o+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ve,c[1]=me,c[2]=ge,c[3]=ye,c[4]=_e,c[5]=Ee,c[6]=we,c[7]=Ce,c[8]=Ne,c[9]=Se,c[10]=Me,c[11]=Oe,c[12]=Re,c[13]=De,c[14]=ke,c[15]=Ie,c[16]=xe,c[17]=Pe,c[18]=Te,0!==u&&(c[19]=u,n.length++),n};Math.imul||(N=u),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?N(this,e,t):r<63?u(this,e,t):r<1024?f(this,e,t):d(this,e,t)},l.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},l.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=c(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0);var i;i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==f||u>=i);u--){var d=0|this.words[u];this.words[u]=f<<26-o|d>>>o,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=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 i=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},o.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[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(s===-1),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var c,u=r.length-i.length;if("mod"!==t){c=new o(null),c.length=u+1,c.words=new Array(c.length);for(var f=0;f=0;l--){var p=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(p=Math.min(p/a|0,67108863),r._ishlnsubmul(i,p,l);0!==r.negative;)p--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);c&&(c.words[l]=p)}return c&&c.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:c||null,mod:r}},o.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.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 i=new o(1),a=new o(0),s=new o(0),c=new o(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;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(d)),i.iushrn(1),a.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),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.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 i=new o(1),a=new o(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a)):(n.isub(t),a.isub(i))}var l;return l=0===t.cmpn(1)?i:a,l.cmpn(0)<0&&l.iadd(e),l},o.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 i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];n=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return this.cmpn(e)===-1},o.prototype.lt=function(e){return this.cmp(e)===-1},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new g(e)},o.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)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength();while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},i(h,p),h.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},h.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]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function e(t){if(S[t])return S[t];var e;if("k256"===t)e=new h;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new m}return S[t]=e,e},g.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},g.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")},g.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},g.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},g.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)},g.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},g.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)},g.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},g.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},g.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},g.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},g.prototype.isqr=function(e){return this.imul(e,e.clone())},g.prototype.sqr=function(e){return this.mul(e,e)},g.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 o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,i),l=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var b=p,v=0;0!==b.cmp(s);v++)b=b.redSqr();r(v=0;i--){for(var f=t.words[i],d=u-1;d>=0;d--){var l=f>>d&1;a!==r[0]&&(a=this.sqr(a)),0!==l||0!==s?(s<<=1,s|=l,c++,(c===n||0===i&&0===d)&&(a=this.mul(a,r[s]),c=0,s=0)):c=0}u=26}return a},g.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},g.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new y(e)},i(y,g),y.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},y.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},y.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),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},y.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},y.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}("undefined"==typeof t||t,this)},{}],17:[function(e,t,n){function r(e){this.rand=e}var i;if(t.exports=function(e){return i||(i=new r(null)),i.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},"object"==typeof window)window.crypto&&window.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return window.crypto.getRandomValues(t),t}:window.msCrypto&&window.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return window.msCrypto.getRandomValues(t),t}:r.prototype._rand=function(){throw new Error("Not implemented yet")};else try{var o=e("crypto");r.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){r.prototype._rand=function(e){for(var t=new Uint8Array(e),n=0;ns||e<0?(n=Math.abs(e)%s,e<0?s-n:n):e}function r(e){for(var t=0;t>>8^255&n^99,this.SBOX[i]=n,this.INV_SBOX[n]=i,o=e[i],a=e[o],s=e[a],r=257*e[n]^16843008*n,this.SUB_MIX[0][i]=r<<24|r>>>8,this.SUB_MIX[1][i]=r<<16|r>>>16,this.SUB_MIX[2][i]=r<<8|r>>>24,this.SUB_MIX[3][i]=r,r=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][n]=r<<24|r>>>8,this.INV_SUB_MIX[1][n]=r<<16|r>>>16,this.INV_SUB_MIX[2][n]=r<<8|r>>>24,this.INV_SUB_MIX[3][n]=r,0===i?i=c=1:(i=o^e[e[e[s^o]]],c^=e[e[c]]);return!0};var c=new i;a.blockSize=16,a.prototype.blockSize=a.blockSize,a.keySize=32,a.prototype.keySize=a.keySize,a.prototype._doReset=function(){var e,t,n,r,i,o;for(n=this._key,t=n.length,this._nRounds=t+6,i=4*(this._nRounds+1),this._keySchedule=[],r=0;r>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=c.RCON[r/t|0]<<24):t>6&&r%t===4?o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]:void 0,this._keySchedule[r-t]^o);for(this._invKeySchedule=[],e=0;e>>24]]^c.INV_SUB_MIX[1][c.SBOX[o>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[o>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&o]];return!0},a.prototype.encryptBlock=function(t){t=o(new e(t));var n=this._doCryptBlock(t,this._keySchedule,c.SUB_MIX,c.SBOX),r=new e(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[1],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[3],12),r},a.prototype.decryptBlock=function(t){t=o(new e(t));var n=[t[3],t[1]];t[1]=n[0],t[3]=n[1];var r=this._doCryptBlock(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX),i=new e(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},a.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},a.prototype._doCryptBlock=function(e,n,r,i){var o,a,s,c,u,f,d,l,p;a=e[0]^n[0],s=e[1]^n[1],c=e[2]^n[2],u=e[3]^n[3],o=4;for(var h=1;h>>24]^r[1][s>>>16&255]^r[2][c>>>8&255]^r[3][255&u]^n[o++],d=r[0][s>>>24]^r[1][c>>>16&255]^r[2][u>>>8&255]^r[3][255&a]^n[o++],l=r[0][c>>>24]^r[1][u>>>16&255]^r[2][a>>>8&255]^r[3][255&s]^n[o++],p=r[0][u>>>24]^r[1][a>>>16&255]^r[2][s>>>8&255]^r[3][255&c]^n[o++],a=f,s=d,c=l,u=p;return f=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[c>>>8&255]<<8|i[255&u])^n[o++],d=(i[s>>>24]<<24|i[c>>>16&255]<<16|i[u>>>8&255]<<8|i[255&a])^n[o++],l=(i[c>>>24]<<24|i[u>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^n[o++],p=(i[u>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&c])^n[o++],[t(f),t(d),t(l),t(p)]},n.AES=a}).call(this,e("buffer").Buffer)},{buffer:45}],20:[function(e,t,n){(function(n){function r(e,t,i,s){if(!(this instanceof r))return new r(e,t,i);a.call(this),this._finID=n.concat([i,new n([0,0,0,1])]),i=n.concat([i,new n([0,0,0,2])]),this._cipher=new o.AES(t),this._prev=new n(i.length),this._cache=new n(""),this._secCache=new n(""),this._decrypt=s,this._alen=0,this._len=0,i.copy(this._prev),this._mode=e;var u=new n(4);u.fill(0),this._ghash=new c(this._cipher.encryptBlock(u)),this._authTag=null,this._called=!1}function i(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=-1;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache};var b={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};n.createDecipher=s,n.createDecipheriv=a}).call(this,e("buffer").Buffer)},{"./aes":19,"./authCipher":20,"./modes":25,"./modes/cbc":26,"./modes/cfb":27,"./modes/cfb1":28,"./modes/cfb8":29,"./modes/ctr":30,"./modes/ecb":31,"./modes/ofb":32,"./streamCipher":33,buffer:45,"cipher-base":46,evp_bytestokey:82,inherits:117}],23:[function(e,t,n){(function(t){function r(e,n,o){return this instanceof r?(c.call(this),this._cache=new i,this._cipher=new s.AES(n),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,void(this._autopadding=!0)):new r(e,n,o)}function i(){return this instanceof i?void(this.cache=new t("")):new i}function o(e,n,i){var o=f[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=new t(i)),"string"==typeof n&&(n=new t(n)),n.length!==o.key/8)throw new TypeError("invalid key length "+n.length);if(i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new l(h[o.mode],n,i):"auth"===o.type?new p(h[o.mode],n,i):new r(h[o.mode],n,i)}function a(e,t){var n=f[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=d(t,!1,n.key,n.iv);return o(e,r.key,r.iv)}var s=e("./aes"),c=e("cipher-base"),u=e("inherits"),f=e("./modes"),d=e("evp_bytestokey"),l=e("./streamCipher"),p=e("./authCipher");u(r,c),r.prototype._update=function(e){this._cache.add(e);for(var n,r,i=[];n=this._cache.get();)r=this._mode.encrypt(this,n),i.push(r);return t.concat(i)},r.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if("10101010101010101010101010101010"!==e.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},i.prototype.add=function(e){this.cache=t.concat([this.cache,e])},i.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},i.prototype.flush=function(){for(var e=16-this.cache.length,n=new t(e),r=-1;++rc||e<0?(n=Math.abs(e)%c,e<0?c-n:n):e}function a(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}var s=new e(16);s.fill(0),t.exports=n,n.prototype.ghash=function(e){for(var t=-1;++t0;e--)o[e]=o[e]>>>1|(1&o[e-1])<<31;o[0]=o[0]>>>1,n&&(o[0]=o[0]^225<<24)}this.state=i(s)},n.prototype.update=function(t){this.cache=e.concat([this.cache,t]);for(var n;this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},n.prototype.final=function(t,n){return this.cache.length&&this.ghash(e.concat([this.cache,s],16)),this.ghash(i([0,t,0,n])),this.state};var c=Math.pow(2,32)}).call(this,e("buffer").Buffer)},{buffer:45}],25:[function(e,t,n){n["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},n["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},n["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},n["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},n["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},n["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},n.aes128=n["aes-128-cbc"],n.aes192=n["aes-192-cbc"],n.aes256=n["aes-256-cbc"],n["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},n["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},n["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},n["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},n["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},n["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},n["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},n["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},n["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},n["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},n["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},n["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},n["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},n["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},n["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},n["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},n["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},n["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},{}],26:[function(e,t,n){var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},{"buffer-xor":44}],27:[function(e,t,n){(function(t){function r(e,n,r){var o=n.length,a=i(n,e._cache);return e._cache=e._cache.slice(o),e._prev=t.concat([e._prev,r?n:a]),a}var i=e("buffer-xor");n.encrypt=function(e,n,i){for(var o,a=new t("");n.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=new t("")),!(e._cache.length<=n.length)){a=t.concat([a,r(e,n,i)]);break}o=e._cache.length,a=t.concat([a,r(e,n.slice(0,o),i)]),n=n.slice(o)}return a}}).call(this,e("buffer").Buffer)},{buffer:45,"buffer-xor":44}],28:[function(e,t,n){(function(e){function t(e,t,n){for(var i,o,a,s=-1,c=8,u=0;++s>s%8,e._prev=r(e._prev,n?o:a);return u}function r(t,n){var r=t.length,i=-1,o=new e(t.length);for(t=e.concat([t,new e([n])]);++i>7;return o}n.encrypt=function(n,r,i){for(var o=r.length,a=new e(o),s=-1;++s=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new a(s(t));return n}var a=e("bn.js"),s=e("randombytes");t.exports=i,i.getr=o}).call(this,e("buffer").Buffer)},{"bn.js":16,buffer:45,randombytes:143}],38:[function(e,t,n){(function(e){"use strict";n["RSA-SHA224"]=n.sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:new e("302d300d06096086480165030402040500041c","hex")},n["RSA-SHA256"]=n.sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:new e("3031300d060960864801650304020105000420","hex")},n["RSA-SHA384"]=n.sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:new e("3041300d060960864801650304020205000430","hex")},n["RSA-SHA512"]=n.sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:new e("3051300d060960864801650304020305000440","hex")},n["RSA-SHA1"]={sign:"rsa",hash:"sha1",id:new e("3021300906052b0e03021a05000414","hex")},n["ecdsa-with-SHA1"]={sign:"ecdsa",hash:"sha1",id:new e("","hex")},n.DSA=n["DSA-SHA1"]=n["DSA-SHA"]={sign:"dsa",hash:"sha1",id:new e("","hex")},n["DSA-SHA224"]=n["DSA-WITH-SHA224"]={sign:"dsa",hash:"sha224",id:new e("","hex")},n["DSA-SHA256"]=n["DSA-WITH-SHA256"]={sign:"dsa",hash:"sha256",id:new e("","hex")},n["DSA-SHA384"]=n["DSA-WITH-SHA384"]={sign:"dsa",hash:"sha384",id:new e("","hex")},n["DSA-SHA512"]=n["DSA-WITH-SHA512"]={sign:"dsa",hash:"sha512",id:new e("","hex")},n["DSA-RIPEMD160"]={sign:"dsa",hash:"rmd160",id:new e("","hex")},n["RSA-RIPEMD160"]=n.ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:new e("3021300906052b2403020105000414","hex")},n["RSA-MD5"]=n.md5WithRSAEncryption={sign:"rsa",hash:"md5",id:new e("3020300c06082a864886f70d020505000410","hex")}}).call(this,e("buffer").Buffer)},{buffer:45}],39:[function(e,t,n){(function(n){function r(e){d.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=c(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){d.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hash=c(t.hash),this._tag=t.id,this._signType=t.sign}function o(e){return new r(e)}function a(e){return new i(e)}var s=e("./algos"),c=e("create-hash"),u=e("inherits"),f=e("./sign"),d=e("stream"),l=e("./verify"),p={};Object.keys(s).forEach(function(e){p[e]=p[e.toLowerCase()]=s[e]}),u(r,d.Writable),r.prototype._write=function(e,t,n){this._hash.update(e),n()},r.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},r.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),i=f(n.concat([this._tag,r]),e,this._hashType,this._signType);return t?i.toString(t):i},u(i,d.Writable),i.prototype._write=function(e,t,n){this._hash.update(e),n()},i.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},i.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new n(t,r)),this.end();var i=this._hash.digest();return l(t,n.concat([this._tag,i]),e,this._signType)},t.exports={Sign:o,Verify:a,createSign:o,createVerify:a}}).call(this,e("buffer").Buffer)},{"./algos":38,"./sign":41,"./verify":42,buffer:45,"create-hash":49,inherits:117,stream:322}],40:[function(e,t,n){"use strict";n["1.3.132.0.10"]="secp256k1",n["1.3.132.0.33"]="p224",n["1.2.840.10045.3.1.1"]="p192",n["1.2.840.10045.3.1.7"]="p256",n["1.3.132.0.34"]="p384",n["1.3.132.0.35"]="p521"},{}],41:[function(e,t,n){(function(n){function r(e,t,n,r){var a=v(t);if(a.curve){if("ecdsa"!==r)throw new Error("wrong private key type");return i(e,a)}if("dsa"===a.type){if("dsa"!==r)throw new Error("wrong private key type");return o(e,a,n)}if("rsa"!==r)throw new Error("wrong private key type");for(var s=a.modulus.byteLength(),c=[0,1];e.length+c.length+10&&n.ishrn(r),n}function u(e,t){e=c(e,t),e=e.mod(t);var r=new n(e.toArray());if(r.length=t)throw new Error("invalid sig")}var s=e("./curves"),c=e("elliptic"),u=e("parse-asn1"),f=e("bn.js"),d=c.ec;t.exports=r}).call(this,e("buffer").Buffer)},{"./curves":40,"bn.js":16,buffer:45,elliptic:64,"parse-asn1":132}],43:[function(e,t,n){(function(t){"use strict";var r=e("buffer"),i=r.Buffer,o=r.SlowBuffer,a=r.kMaxLength||2147483647;n.alloc=function(e,t,n){if("function"==typeof i.alloc)return i.alloc(e,t,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof e)throw new TypeError("size must be a number"); -if(e>a)throw new RangeError("size is too large");var r=n,o=t;void 0===o&&(r=void 0,o=0);var s=new i(e);if("string"==typeof o)for(var c=new i(o,r),u=c.length,f=-1;++fa)throw new RangeError("size is too large");return new i(e)},n.from=function(e,n,r){if("function"==typeof i.from&&(!t.Uint8Array||Uint8Array.from!==i.from))return i.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new i(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var o=n;if(1===arguments.length)return new i(e);"undefined"==typeof o&&(o=0);var a=r;if("undefined"==typeof a&&(a=e.byteLength-o),o>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(a>e.byteLength-o)throw new RangeError("'length' is out of bounds");return new i(e.slice(o,o+a))}if(i.isBuffer(e)){var s=new i(e.length);return e.copy(s,0,0,e.length),s}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new i(e);if("Buffer"===e.type&&Array.isArray(e.data))return new i(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeof i.allocUnsafeSlow)return i.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=a)throw new RangeError("size is too large");return new o(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:45}],44:[function(e,t,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.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 W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(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 _(e,t,n,r,i){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=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,i);if("number"==typeof t)return t=255&t,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}var u;if(i){var f=-1;for(u=n;us&&(n=s-c),u=n;u>=0;u--){for(var d=!0,l=0;li&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var c,u,f,d;switch(s){case 1:o<128&&(a=o);break;case 2:c=e[i+1],128===(192&c)&&(d=(31&o)<<6|63&c,d>127&&(a=d));break;case 3:c=e[i+1],u=e[i+2],128===(192&c)&&128===(192&u)&&(d=(15&o)<<12|(63&c)<<6|63&u,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:c=e[i+1],u=e[i+2],f=e[i+3],128===(192&c)&&128===(192&u)&&128===(192&f)&&(d=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&f,d>65535&&d<1114112&&(a=d))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return k(r)}function k(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return i||U(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||U(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,r,52,8),n+8}function q(e){if(e=H(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function X(e){return J.toByteArray(q(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e){return e!==e}var J=e("base64-js"),Z=e("ieee754"),$=e("isarray");n.Buffer=a,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return u(null,e,t,n)},a.allocUnsafe=function(e){return f(null,e)},a.allocUnsafeSlow=function(e){return f(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.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===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,c=Math.min(o,s),u=this.slice(r,i),f=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return N(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||A(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},a.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;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o>5]|=128<>>9<<4)+14]=t;for(var n=1732584193,r=-271733879,i=-1732584194,f=271733878,d=0;d>16)+(t>>16)+(n>>16);return r<<16|65535&n}function f(e,t){return e<>>32-t}var d=e("./helpers");t.exports=function(e){return d.hash(e,r,16)}},{"./helpers":50}],52:[function(e,t,n){(function(n){"use strict";function r(e,t){a.call(this),e=e.toLowerCase(),"string"==typeof t&&(t=new n(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=i(e).update(t).digest():t.length0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},r.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=c.r28shl(n,a),r=c.r28shl(r,a),c.pc2(n,r,e.keys,i)}},i.prototype._update=function(e,t,n,r){var i=this._desState,o=c.readUInt32BE(e,t),a=c.readUInt32BE(e,t+4);c.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],c.writeUInt32BE(n,o,r),c.writeUInt32BE(n,a,r+4)},i.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,o=p}c.rip(a,o,r,i)},i.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],f=e.keys[s+1];c.expand(o,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var d=c.substitute(u,f),l=c.permute(d),p=o;o=(a^l)>>>0,a=p}c.rip(o,a,r,i)}},{"../des":54,inherits:117,"minimalistic-assert":126}],58:[function(e,t,n){"use strict";function r(e,t){o.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),r=t.slice(8,16),i=t.slice(16,24);"encrypt"===e?this.ciphers=[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:i})]:this.ciphers=[u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n})]}function i(e){c.call(this,e);var t=new r(this.type,this.options.key);this._edeState=t}var o=e("minimalistic-assert"),a=e("inherits"),s=e("../des"),c=s.Cipher,u=s.DES;a(i,c),t.exports=i,i.create=function(e){return new i(e)},i.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},i.prototype._pad=u.prototype._pad,i.prototype._unpad=u.prototype._unpad},{"../des":54,inherits:117,"minimalistic-assert":126}],59:[function(e,t,n){"use strict";n.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},n.rip=function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.pc1=function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(var c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++){var o=e>>>18-6*r&63,a=i[64*r+o];n<<=4,n|=a}for(var r=0;r<4;r++){var o=t>>>18-6*r&63,a=i[256+64*r+o];n<<=4,n|=a}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n>>o[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.lengthe;)n.ishrn(1);if(n.isEven()&&n.iadd(l),n.testn(1)||n.iadd(p),t.cmp(p)){if(!t.cmp(h))for(;n.mod(b).cmp(v);)n.iadd(g)}else for(;n.mod(u).cmp(m);)n.iadd(g);if(r=n.shrn(1),i(r)&&i(n)&&o(r)&&o(n)&&d.test(r)&&d.test(n))return n}}var s=e("randombytes");t.exports=a,a.simpleSieve=i,a.fermatTest=o;var c=e("bn.js"),u=new c(24),f=e("miller-rabin"),d=new f,l=new c(1),p=new c(2),h=new c(5),b=(new c(16),new c(8),new c(10)),v=new c(3),m=(new c(7),new c(11)),g=new c(4),y=(new c(12),null)},{"bn.js":16,"miller-rabin":125,randombytes:143}],63:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],64:[function(e,t,n){"use strict";var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.hmacDRBG=e("./elliptic/hmac-drbg"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":80,"./elliptic/curve":67,"./elliptic/curves":70,"./elliptic/ec":71,"./elliptic/eddsa":74,"./elliptic/hmac-drbg":77,"./elliptic/utils":79,brorand:17}],65:[function(e,t,n){"use strict";function r(e,t){this.type=e,this.p=new o(t.p,16),this.red=t.prime?o.red(t.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=t.n&&new o(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);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 i(e,t){this.curve=e,this.type=t,this.precomputed=null}var o=e("bn.js"),a=e("../../elliptic"),s=a.utils,c=s.getNAF,u=s.getJSF,f=s.assert;t.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(e,t){f(e.precomputed);var n=e._getDoubles(),r=c(t,1),i=(1<=a;t--)s=(s<<1)+r[t];o.push(s)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),l=i;l>0;l--){for(var a=0;a=0;s--){for(var t=0;s>=0&&0===o[s];s--)t++;if(s>=0&&t++,a=a.dblp(t),s<0)break;var u=o[s];f(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},r.prototype._wnafMulAdd=function(e,t,n,r,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,f=0,d=0;d=1;d-=2){var h=d-1,b=d;if(1===o[h]&&1===o[b]){var v=[t[h],null,null,t[b]];0===t[h].y.cmp(t[b].y)?(v[1]=t[h].add(t[b]),v[2]=t[h].toJ().mixedAdd(t[b].neg())):0===t[h].y.cmp(t[b].y.redNeg())?(v[1]=t[h].toJ().mixedAdd(t[b]),v[2]=t[h].add(t[b].neg())):(v[1]=t[h].toJ().mixedAdd(t[b]),v[2]=t[h].toJ().mixedAdd(t[b].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=u(n[h],n[b]);f=Math.max(g[0].length,f),s[h]=new Array(f),s[b]=new Array(f);for(var y=0;y=0;d--){for(var N=0;d>=0;){for(var S=!0,y=0;y=0&&N++,w=w.dblp(N),d<0)break;for(var y=0;y0?l=a[y][M-1>>1]:M<0&&(l=a[y][-M-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(var d=0;d=Math.ceil((e.bitLength()+1)/t.step)},i.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i":""},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),c=i.redMul(a),u=o.redMul(s),f=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,f)},i.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=r.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),n=s.redSqr().redSub(s).redSub(s);else{var c=this.z.redSqr(),u=s.redSub(c).redISub(c);e=r.redSub(i).redISub(o).redMul(u),t=s.redMul(a.redSub(o)),n=s.redMul(u)}}else{var a=i.redAdd(o),c=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=a.redSub(c).redSub(c);e=this.curve._mulC(r.redISub(a)).redMul(u),t=this.curve._mulC(a).redMul(i.redISub(o)),n=a.redMul(u)}return this.curve.point(e,t,n)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),u=o.redMul(a),f=s.redMul(c),d=o.redMul(c),l=a.redMul(s);return this.curve.point(u,f,l,d)},i.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(c).redMul(f);return this.curve.twisted?(t=r.redMul(u).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(u)):(t=r.redMul(u).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,n)},i.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},i.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},i.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},i.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},i.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},{"../../elliptic":64,"../curve":67,"bn.js":16,inherits:117}],67:[function(e,t,n){"use strict";var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":65,"./edwards":66,"./mont":68,"./short":69 -}],68:[function(e,t,n){"use strict";function r(e){c.call(this,"mont",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(e,t,n){c.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(t,16),this.z=new a(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=e("../curve"),a=e("bn.js"),s=e("inherits"),c=o.base,u=e("../../elliptic"),f=u.utils;s(r,c),t.exports=r,r.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=r.redSqrt();return 0===i.redSqr().cmp(r)},s(i,c.BasePoint),r.prototype.decodePoint=function(e,t){return this.point(f.toArray(e,t),1)},r.prototype.point=function(e,t){return new i(this,e,t)},r.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(e,t){return new i(e,t[0],t[1]||e.one)},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),r=n.redSqr(),i=t.redSub(r),o=t.redMul(r),a=i.redMul(r.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z),a=o.redMul(n),s=i.redMul(r),c=t.z.redMul(a.redAdd(s).redSqr()),u=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(c,u)},i.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":64,"../curve":67,"bn.js":16,inherits:117}],69:[function(e,t,n){"use strict";function r(e){f.call(this,"short",e),this.a=new c(e.a,16).toRed(this.red),this.b=new c(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function i(e,t,n,r){f.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(t,16),this.y=new c(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(e,t,n,r){f.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(t,16),this.y=new c(n,16),this.z=new c(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var a=e("../curve"),s=e("../../elliptic"),c=e("bn.js"),u=e("inherits"),f=a.base,d=s.utils.assert;u(r,f),t.exports=r,r.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new c(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=r[0].cmp(r[1])<0?r[0]:r[1],t=t.toRed(this.red)}if(e.lambda)n=new c(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],d(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}var o;return o=e.basis?e.basis.map(function(e){return{a:new c(e.a,16),b:new c(e.b,16)}}):this._getEndoBasis(n),{beta:t,lambda:n,basis:o}}},r.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:c.mont(e),n=new c(2).toRed(t).redInvm(),r=n.redNeg(),i=new c(3).toRed(t).redNeg().redSqrt().redMul(n),o=r.redAdd(i).fromRed(),a=r.redSub(i).fromRed();return[o,a]},r.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,a,s,u,f,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,p=this.n.clone(),h=new c(1),b=new c(0),v=new c(0),m=new c(1),g=0;0!==l.cmpn(0);){var y=p.div(l);u=p.sub(y.mul(l)),f=v.sub(y.mul(h));var _=m.sub(y.mul(b));if(!r&&u.cmp(d)<0)t=s.neg(),n=h,r=u.neg(),i=f;else if(r&&2===++g)break;s=u,p=l,l=u,v=h,h=f,m=b,b=_}o=u.neg(),a=f;var E=r.sqr().add(i.sqr()),w=o.sqr().add(a.sqr());return w.cmp(E)>=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},r.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b),f=e.sub(a).sub(s),d=c.add(u).neg();return{k1:f,k2:d}},r.prototype.pointFromX=function(e,t){e=new c(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},r.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},r.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},i.prototype.isInfinity=function(){return this.inf},i.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},i.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(e){return e=new c(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},i.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},i.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},i.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},i.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},u(o,f.BasePoint),r.prototype.jpoint=function(e,t,n){return new o(this,e,t,n)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(l)).redISub(o.redMul(f)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,p,h)},o.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(i.redMul(u)),p=this.z.redMul(a);return this.curve.jpoint(d,l,p)},o.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"":""},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":64,"../curve":67,"bn.js":16,inherits:117}],70:[function(e,t,n){"use strict";function r(e){"short"===e.type?this.curve=new s.curve.short(e):"edwards"===e.type?this.curve=new s.curve.edwards(e):this.curve=new s.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new r(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}var o=n,a=e("hash.js"),s=e("../elliptic"),c=s.utils.assert;o.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"0",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=e("./precomputed/secp256k1")}catch(e){u=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},{"../elliptic":64,"./precomputed/secp256k1":78,"hash.js":108}],71:[function(e,t,n){"use strict";function r(e){return this instanceof r?("string"==typeof e&&(s(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),void(this.hash=e.hash||e.curve.hash)):new r(e)}var i=e("bn.js"),o=e("../../elliptic"),a=o.utils,s=a.assert,c=e("./key"),u=e("./signature");t.exports=r,r.prototype.keyPair=function(e){return new c(this,e)},r.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},r.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},r.prototype.genKeyPair=function(e){e||(e={});for(var t=new o.hmacDRBG({hash:this.hash,pers:e.pers,entropy:e.entropy||o.rand(this.hash.hmacStrength),nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var a=new i(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},r.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},r.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),f=new o.hmacDRBG({hash:this.hash,entropy:s,nonce:c,pers:r.pers,persEnc:r.persEnc}),d=this.n.sub(new i(1)),l=0;!0;l++){var p=r.k?r.k(l):new i(f.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(d)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var b=h.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var m=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(m=m.umod(this.n),0!==m.cmpn(0)){var g=(h.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new u({r:v,s:m,recoveryParam:g})}}}}}},r.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i(e,16)),n=this.keyFromPublic(n,r),t=new u(t,"hex");var o=t.r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),c=s.mul(e).umod(this.n),f=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(c,n.getPublic(),f);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(o)}var d=this.g.jmulAdd(c,n.getPublic(),f);return!d.isInfinity()&&d.eqXToP(o)},r.prototype.recoverPubKey=function(e,t,n,r){s((3&n)===n,"The recovery param is more than two bits"),t=new u(t,r);var o=this.n,a=new i(e),c=t.r,f=t.s,d=1&n,l=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");c=l?this.curve.pointFromX(c.add(this.curve.n),d):this.curve.pointFromX(c,d);var p=t.r.invm(o),h=o.sub(a).mul(p).umod(o),b=f.mul(p).umod(o);return this.g.mulAdd(h,c,b)},r.prototype.getKeyRecoveryParam=function(e,t,n,r){if(t=new u(t,r),null!==t.recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":64,"./key":72,"./signature":73,"bn.js":16}],72:[function(e,t,n){"use strict";function r(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var i=e("bn.js");t.exports=r,r.fromPublic=function(e,t,n){return t instanceof r?t:new r(e,{pub:t,pubEnc:n})},r.fromPrivate=function(e,t,n){return t instanceof r?t:new r(e,{priv:t,privEnc:n})},r.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},r.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){return e.x||e.y?void(this.pub=this.ec.curve.point(e.x,e.y)):void(this.pub=this.ec.curve.decodePoint(e,t))},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return""}},{"bn.js":16}],73:[function(e,t,n){"use strict";function r(e,t){return e instanceof r?e:void(this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam))}function i(){this.place=0}function o(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,a=t.place;o>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}var c=e("bn.js"),u=e("../../elliptic"),f=u.utils,d=f.assert;t.exports=r,r.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new i;if(48!==e[n.place++])return!1;var r=o(e,n);if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=o(e,n),s=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=o(e,n);if(e.length!==u+n.place)return!1;var d=e.slice(n.place,u+n.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new c(s),this.s=new c(d),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=a(t),n=a(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),r=r.concat(t),r.push(2),s(r,n.length);var i=r.concat(n),o=[48];return s(o,i.length),o=o.concat(i),f.encode(o,e)}},{"../../elliptic":64,"bn.js":16}],74:[function(e,t,n){"use strict";function r(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=o.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}var i=e("hash.js"),o=e("../../elliptic"),a=o.utils,s=a.assert,c=a.parseBytes,u=e("./key"),f=e("./signature");t.exports=r,r.prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},r.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S()),a=t.R().add(r.pub().mul(i));return a.eq(o)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,i)}var i=e("hash.js"),o=e("../elliptic"),a=o.utils,s=a.assert;t.exports=r,r.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this.reseed=1},r.prototype.generate=function(e,t,n,r){if(this.reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=a.toArray(n,r),this._update(n));for(var i=[];i.length>8,a=255&i;o?n.push(o,a):n.push(a)}return n}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n=0;){var o;if(i.isOdd()){var a=i.andln(r-1);o=a>(r>>1)-1?(r>>1)-a:a,i.isubn(o)}else o=0;n.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(r-1)?t+1:1,c=1;c0||t.cmpn(-i)>0;){var o=e.andln(3)+r&3,a=t.andln(3)+i&3;3===o&&(o=-1),3===a&&(a=-1);var s;if(0===(1&o))s=0;else{var c=e.andln(7)+r&7;s=3!==c&&5!==c||2!==a?o:-o}n[0].push(s);var u;if(0===(1&a))u=0;else{var c=t.andln(7)+i&7;u=3!==c&&5!==c||2!==o?a:-a}n[1].push(u),2*r===s+1&&(r=1-r),2*i===u+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n}function c(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function u(e){return"string"==typeof e?d.toArray(e,"hex"):e}function f(e){return new l(e,"hex","le")}var d=n,l=e("bn.js");d.assert=function(e,t){if(!e)throw new Error(t||"Assertion failed")},d.toArray=r,d.zero2=i,d.toHex=o,d.encode=function(e,t){return"hex"===t?o(e):e},d.getNAF=a,d.getJSF=s,d.cachedProperty=c,d.parseBytes=u,d.intFromLE=f},{"bn.js":16}],80:[function(e,t,n){t.exports={name:"elliptic",version:"6.3.2",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0",inherits:"^2.0.1"}}},{}],81:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(n=this._events[e],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(a(n))for(o=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,c=0;c0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function"); -if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],82:[function(e,t,n){(function(n){function r(e,t,r,o){n.isBuffer(e)||(e=new n(e,"binary")),t&&!n.isBuffer(t)&&(t=new n(t,"binary")),r/=8,o=o||0;for(var a,s,c=0,u=0,f=new n(r),d=new n(o),l=0,p=[];;){if(l++>0&&p.push(a),p.push(e),t&&p.push(t),a=i(n.concat(p)),p=[],s=0,r>0)for(;;){if(0===r)break;if(s===a.length)break;f[c++]=a[s],r--,s++}if(o>0&&s!==a.length)for(;;){if(0===o)break;if(s===a.length)break;d[u++]=a[s],o--,s++}if(0===r&&0===o)break}for(s=0;s element rendered."):c(!1),a(l).forEach(t));for(var p=Array.from(i.childNodes);i.lastChild;)i.removeChild(i.lastChild);return p}var o=e("./ExecutionEnvironment"),a=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),c=e("./invariant"),u=o.canUseDOM?document.createElement("div"):null,f=/^\s*<(\w+)/;t.exports=i}).call(this,e("_process"))},{"./ExecutionEnvironment":84,"./createArrayFromMixed":88,"./getMarkupWrap":94,"./invariant":98,_process:136}],90:[function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},t.exports=i},{}],91:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(this,e("_process"))},{_process:136}],92:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}t.exports=r},{}],93:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],94:[function(e,t,n){(function(n){"use strict";function r(e){return a?void 0:"production"!==n.env.NODE_ENV?o(!1,"Markup wrapping node not initialized"):o(!1),l.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?l[e]:null}var i=e("./ExecutionEnvironment"),o=e("./invariant"),a=i.canUseDOM?document.createElement("div"):null,s={},c=[1,'"],u=[1,"","
"],f=[3,"","
"],d=[1,'',""],l={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:f,th:f},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){l[e]=d,s[e]=!0}),t.exports=r}).call(this,e("_process"))},{"./ExecutionEnvironment":84,"./invariant":98,_process:136}],95:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],96:[function(e,t,n){"use strict";function r(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=r},{}],97:[function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=e("./hyphenate"),o=/^ms-/;t.exports=r},{"./hyphenate":96}],98:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i,o,a,s,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,i,o,a,s,c],d=0;u=new Error(n.replace(/%s/g,function(){return f[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=n}).call(this,e("_process"))},{_process:136}],99:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],100:[function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=e("./isNode");t.exports=r},{"./isNode":99}],101:[function(e,t,n){(function(n){"use strict";var r=e("./invariant"),i=function(e){var t,i={};e instanceof Object&&!Array.isArray(e)?void 0:"production"!==n.env.NODE_ENV?r(!1,"keyMirror(...): Argument must be an object."):r(!1);for(t in e)e.hasOwnProperty(t)&&(i[t]=t);return i};t.exports=i}).call(this,e("_process"))},{"./invariant":98,_process:136}],102:[function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],103:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],104:[function(e,t,n){"use strict";var r,i=e("./ExecutionEnvironment");i.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":84}],105:[function(e,t,n){"use strict";var r,i=e("./performance");r=i.now?function(){return i.now()}:function(){return Date.now()},t.exports=r},{"./performance":104}],106:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a1?t-1:0),r=1;r2?r-2:0),o=2;o=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else{r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0;for(var o=8;othis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3}function h(e){return I(e,17)^I(e,19)^e>>>10}function b(e,t,n,r){return 0===e?c(t,n,r):1===e||3===e?f(t,n,r):2===e?u(t,n,r):void 0}function v(e,t,n,r,i,o){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function m(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function g(e,t,n,r,i,o){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function y(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function _(e,t){var n=j(e,t,28),r=j(t,e,2),i=j(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function E(e,t){var n=B(e,t,28),r=B(t,e,2),i=B(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function w(e,t){var n=j(e,t,14),r=j(e,t,18),i=j(t,e,9),o=n^r^i;return o<0&&(o+=4294967296),o}function C(e,t){var n=B(e,t,14),r=B(e,t,18),i=B(t,e,9),o=n^r^i;return o<0&&(o+=4294967296),o}function N(e,t){var n=j(e,t,1),r=j(e,t,8),i=L(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function S(e,t){var n=B(e,t,1),r=B(e,t,8),i=U(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function M(e,t){var n=j(e,t,19),r=j(t,e,29),i=L(e,t,6),o=n^r^i;return o<0&&(o+=4294967296),o}function O(e,t){var n=B(e,t,19),r=B(t,e,29),i=U(e,t,6),o=n^r^i;return o<0&&(o+=4294967296),o}var R=e("../hash"),D=R.utils,k=D.assert,I=D.rotr32,x=D.rotl32,P=D.sum32,T=D.sum32_4,A=D.sum32_5,j=D.rotr64_hi,B=D.rotr64_lo,L=D.shr64_hi,U=D.shr64_lo,V=D.sum64,F=D.sum64_hi,q=D.sum64_lo,H=D.sum64_4_hi,z=D.sum64_4_lo,W=D.sum64_5_hi,K=D.sum64_5_lo,Y=R.common.BlockHash,X=[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],G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Q=[1518500249,1859775393,2400959708,3395469782];D.inherits(r,Y),n.sha256=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r>8,a=255&i;o?n.push(o,a):n.push(a)}else for(var r=0;r>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function a(e,t){for(var n="",r=0;r>>0}return o}function f(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function d(e,t){return e>>>t|e<<32-t}function l(e,t){return e<>>32-t}function p(e,t){return e+t>>>0}function h(e,t,n){return e+t+n>>>0}function b(e,t,n,r){return e+t+n+r>>>0}function v(e,t,n,r,i){return e+t+n+r+i>>>0}function m(e,t){if(!e)throw new Error(t||"Assertion failed")}function g(e,t,n,r){var i=e[t],o=e[t+1],a=r+o>>>0,s=(a>>0,e[t+1]=a}function y(e,t,n,r){var i=t+r>>>0,o=(i>>0}function _(e,t,n,r){var i=t+r;return i>>>0}function E(e,t,n,r,i,o,a,s){var c=0,u=t;u=u+r>>>0,c+=u>>0,c+=u>>0,c+=u>>0}function w(e,t,n,r,i,o,a,s){var c=t+r+o+s;return c>>>0}function C(e,t,n,r,i,o,a,s,c,u){var f=0,d=t;d=d+r>>>0,f+=d>>0,f+=d>>0,f+=d>>0,f+=d>>0}function N(e,t,n,r,i,o,a,s,c,u){var f=t+r+o+s+u;return f>>>0}function S(e,t,n){var r=t<<32-n|e>>>n;return r>>>0}function M(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}function O(e,t,n){return e>>>n}function R(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}var D=n,k=e("inherits");D.toArray=r,D.toHex=i,D.htonl=o,D.toHex32=a,D.zero2=s,D.zero8=c,D.join32=u,D.split32=f,D.rotr32=d,D.rotl32=l,D.sum32=p,D.sum32_3=h,D.sum32_4=b,D.sum32_5=v,D.assert=m,D.inherits=k,n.sum64=g,n.sum64_hi=y,n.sum64_lo=_,n.sum64_4_hi=E,n.sum64_4_lo=w,n.sum64_5_hi=C,n.sum64_5_lo=N,n.rotr64_hi=S,n.rotr64_lo=M,n.shr64_hi=O,n.shr64_lo=R},{inherits:117}],114:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s>1,f=-7,d=n?i-1:0,l=n?-1:1,p=e[t+d];for(d+=l,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+d],d+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+d],d+=l,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,f=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+d>=1?l/c:l*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=f?(s=0,a=f):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*b}},{}],116:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n>=7-r),new i(n)},r.prototype.test=function(e,t,n){var r=e.bitLength(),o=i.mont(e),a=new i(1).toRed(o);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),c=s.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),d=s.toRed(o),l=!0;t>0;t--){var p=this._rand(c);n&&n(p);var h=p.toRed(o).redPow(f);if(0!==h.cmp(a)&&0!==h.cmp(d)){for(var b=1;b0;t--){var d=this._rand(s),l=e.gcd(d);if(0!==l.cmpn(1))return l;var p=d.toRed(r).redPow(u);if(0!==p.cmp(o)&&0!==p.cmp(f)){for(var h=1;h>>((3&t)<<3)&255;return n},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()"); -}}function o(){if("function"==typeof e)try{var t=e("crypto").randomBytes;l=f=t&&function(){return t(16)},f()}catch(e){}}function a(e,t,n){var r=t&&n||0,i=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){i<16&&(t[r+i++]=m[e])});i<16;)t[r+i++]=0;return t}function s(e,t){var n=t||0,r=v;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}function c(e,t,n){var r=t&&n||0,i=t||[];e=e||{};var o=null!=e.clockseq?e.clockseq:E,a=null!=e.msecs?e.msecs:(new Date).getTime(),c=null!=e.nsecs?e.nsecs:C+1,u=a-w+(c-C)/1e4;if(u<0&&null==e.clockseq&&(o=o+1&16383),(u<0||a>w)&&null==e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=a,C=c,E=o,a+=122192928e5;var f=(1e4*(268435455&a)+c)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var d=a/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var l=e.node||_,p=0;p<6;p++)i[r+p]=l[p];return t?t:s(i)}function u(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new b(16):null,e=null),e=e||{};var i=e.random||(e.rng||f)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;o++)t[r+o]=i[o];return t||s(i)}var f,d,l,p,h;r?i():o();for(var b="function"==typeof n?n:Array,v=[],m={},g=0;g<256;g++)v[g]=(g+256).toString(16).substr(1),m[v[g]]=g;var y=f(),_=[1|y[0],y[1],y[2],y[3],y[4],y[5]],E=16383&(y[6]<<8|y[7]),w=0,C=0,N=u;N.v1=c,N.v4=u,N.parse=a,N.unparse=s,N.BufferClass=b,N._rng=f,N._mathRNG=d,N._nodeRNG=l,N._whatwgRNG=p,"undefined"!=typeof t&&t.exports?t.exports=N:"function"==typeof define&&define.amd?define(function(){return N}):(h=r.uuid,N.noConflict=function(){return r.uuid=h,N},r.uuid=N)}("undefined"!=typeof window?window:null)}).call(this,e("buffer").Buffer)},{buffer:45,crypto:53}],128:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=i()?Object.assign:function(e,t){for(var n,i,s=r(e),c=1;c=6?"utf-8":"binary"}n.pbkdf2Sync=function(e,t,n,s,c){r.isBuffer(e)||(e=new r(e,a)),r.isBuffer(t)||(t=new r(t,a)),o(n,s),c=c||"sha1";var u,f=1,d=new r(s),l=new r(t.length+4);t.copy(l,0,0,t.length);for(var p,h,b=1;b<=f;b++){l.writeUInt32BE(b,t.length);var v=i(c,e).update(l).digest();u||(u=v.length,h=new r(u),f=Math.ceil(s/u),p=s-(f-1)*u),v.copy(h,0,0,u);for(var m=1;mr||t!==t)throw new TypeError("Bad key length")}},{}],135:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a1)for(var n=1;n=t.length){o++;break}var a=t.slice(2,i-1);t.slice(i-1,i);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}function o(e,t){e=new n(e),t=new n(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var o=-1;++od||new u(t).cmp(c.modulus)>=0)throw new Error("decryption error");var p;p=o?l(new u(t),c):f(t,c);var h=new n(d-p.length);if(h.fill(0),p=n.concat([h,p],d),4===s)return r(c,p);if(1===s)return i(c,p,o);if(3===s)return p;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":138,"./withPublic":141,"./xor":142,"bn.js":16,"browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":132}],140:[function(e,t,n){(function(n){function r(e,t){var r=e.modulus.byteLength(),i=t.length,o=c("sha1").update(new n("")).digest(),a=o.length,l=2*a;if(i>r-l-2)throw new Error("message too long");var p=new n(r-i-l-2);p.fill(0);var h=r-a-1,b=s(a),v=f(n.concat([o,p,new n([1]),t],h),u(b,h)),m=f(b,u(v,a));return new d(n.concat([new n([0]),m,v],r))}function i(e,t,r){var i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");var s;return r?(s=new n(a-i-3),s.fill(255)):s=o(a-i-3),new d(n.concat([new n([0,r?1:2]),s,new n([0]),t],a))}function o(e,t){for(var r,i=new n(e),o=0,a=s(2*e),c=0;o=0)throw new Error("data too long for modulus")}return n?p(s,c):l(s,c)}}).call(this,e("buffer").Buffer)},{"./mgf":138,"./withPublic":141,"./xor":142,"bn.js":16,"browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":132,randombytes:143}],141:[function(e,t,n){(function(n){function r(e,t){return new n(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}var i=e("bn.js");t.exports=r}).call(this,e("buffer").Buffer)},{"bn.js":16,buffer:45}],142:[function(e,t,n){t.exports=function(e,t){for(var n=e.length,r=-1;++r65536)throw new Error("requested too many random bytes");var o=new n.Uint8Array(t);t>0&&a.getRandomValues(o);var s=new r(o.buffer);return"function"==typeof i?e.nextTick(function(){i(null,s)}):s}var a=n.crypto||n.msCrypto;a&&a.getRandomValues?t.exports=o:t.exports=i}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{_process:136,buffer:45}],144:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":189}],145:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){p||(p=!0,(0,l.default)(" does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}n.__esModule=!0,n.default=void 0;var c=e("react"),u=e("../utils/storeShape"),f=r(u),d=e("../utils/warning"),l=r(d),p=!1,h=function(e){function t(n,r){i(this,t);var a=o(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return c.Children.only(e)},t}(c.Component);n.default=h,"production"!==t.env.NODE_ENV&&(h.prototype.componentWillReceiveProps=function(e){var t=this.store,n=e.store;t!==n&&s()}),h.propTypes={store:f.default.isRequired,children:c.PropTypes.element.isRequired},h.childContextTypes={store:f.default.isRequired}}).call(this,e("_process"))},{"../utils/storeShape":149,"../utils/warning":150,_process:136,react:294}],146:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function c(e,t){try{return e.apply(t)}catch(e){return D.value=e,D}}function u(e,n,r){var u=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],l=Boolean(e),h=e||M,v=void 0;v="function"==typeof n?n:n?(0,m.default)(n):O;var g=r||R,_=u.pure,w=void 0===_||_,N=u.withRef,I=void 0!==N&&N,x=w&&g!==R,P=k++;return function(e){function n(e,t){(0,E.default)(e)||(0,y.default)(t+"() in "+u+" must return a plain object. "+("Instead received "+e+"."))}function r(e,r,i){var o=g(e,r,i);return"production"!==t.env.NODE_ENV&&n(o,"mergeProps"),o}var u="Connect("+s(e)+")",m=function(s){function p(e,t){i(this,p);var n=o(this,s.call(this,e,t));n.version=P,n.store=e.store||t.store,(0,S.default)(n.store,'Could not find "store" in either the context or '+('props of "'+u+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+u+'".'));var r=n.store.getState();return n.state={storeState:r},n.clearCache(),n}return a(p,s),p.prototype.shouldComponentUpdate=function(){return!w||this.haveOwnPropsChanged||this.hasStoreStateChanged},p.prototype.computeStateProps=function(e,r){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,r);var i=e.getState(),o=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(i,r):this.finalMapStateToProps(i);return"production"!==t.env.NODE_ENV&&n(o,"mapStateToProps"),o},p.prototype.configureFinalMapState=function(e,r){var i=h(e.getState(),r),o="function"==typeof i;return this.finalMapStateToProps=o?i:h,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,o?this.computeStateProps(e,r):("production"!==t.env.NODE_ENV&&n(i,"mapStateToProps"),i)},p.prototype.computeDispatchProps=function(e,r){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,r);var i=e.dispatch,o=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(i,r):this.finalMapDispatchToProps(i);return"production"!==t.env.NODE_ENV&&n(o,"mapDispatchToProps"),o},p.prototype.configureFinalMapDispatch=function(e,r){var i=v(e.dispatch,r),o="function"==typeof i;return this.finalMapDispatchToProps=o?i:v,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,o?this.computeDispatchProps(e,r):("production"!==t.env.NODE_ENV&&n(i,"mapDispatchToProps"),i)},p.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,b.default)(e,this.stateProps))&&(this.stateProps=e,!0)},p.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,b.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},p.prototype.updateMergedPropsIfNeeded=function(){var e=r(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&x&&(0,b.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},p.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},p.prototype.trySubscribe=function(){l&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},p.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},p.prototype.componentDidMount=function(){this.trySubscribe()},p.prototype.componentWillReceiveProps=function(e){w&&(0,b.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},p.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},p.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},p.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!w||t!==e){if(w&&!this.doStatePropsDependOnOwnProps){var n=c(this.updateStatePropsIfNeeded,this);if(!n)return;n===D&&(this.statePropsPrecalculationError=D.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},p.prototype.getWrappedInstance=function(){return(0,S.default)(I,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},p.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,i=this.statePropsPrecalculationError,o=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,i)throw i;var a=!0,s=!0;w&&o&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var c=!1,u=!1;r?c=!0:a&&(c=this.updateStatePropsIfNeeded()),s&&(u=this.updateDispatchPropsIfNeeded());var l=!0;return l=!!(c||u||t)&&this.updateMergedPropsIfNeeded(),!l&&o?o:(I?this.renderedElement=(0,d.createElement)(e,f({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(e,this.mergedProps),this.renderedElement)},p}(d.Component);return m.displayName=u,m.WrappedComponent=e,m.contextTypes={store:p.default},m.propTypes={store:p.default},"production"!==t.env.NODE_ENV&&(m.prototype.componentWillUpdate=function(){this.version!==P&&(this.version=P,this.trySubscribe(),this.clearCache())}),(0,C.default)(m,e)}}var f=Object.assign||function(e){for(var t=1;t8&&C<=11),M=32,O=String.fromCharCode(M),R=p.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:y({onBeforeInput:null}),captured:y({onBeforeInputCapture:null})},dependencies:[R.topCompositionEnd,R.topKeyPress,R.topTextInput,R.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:y({onCompositionEnd:null}),captured:y({onCompositionEndCapture:null})},dependencies:[R.topBlur,R.topCompositionEnd,R.topKeyDown,R.topKeyPress,R.topKeyUp,R.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:y({onCompositionStart:null}),captured:y({onCompositionStartCapture:null})},dependencies:[R.topBlur,R.topCompositionStart,R.topKeyDown,R.topKeyPress,R.topKeyUp,R.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:y({onCompositionUpdate:null}),captured:y({onCompositionUpdateCapture:null})},dependencies:[R.topBlur,R.topCompositionUpdate,R.topKeyDown,R.topKeyPress,R.topKeyUp,R.topMouseDown]}},k=!1,I=null,x={eventTypes:D,extractEvents:function(e,t,n,r){return[u(e,t,n,r),l(e,t,n,r)]}};t.exports=x},{"./EventConstants":167,"./EventPropagators":171,"./FallbackCompositionState":172,"./SyntheticCompositionEvent":250,"./SyntheticInputEvent":254,"fbjs/lib/ExecutionEnvironment":84,"fbjs/lib/keyOf":102}],154:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},o=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){o.forEach(function(t){i[r(t,e)]=i[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:i,shorthandPropertyExpansions:a};t.exports=s},{}],155:[function(e,t,n){(function(n){"use strict";var r=e("./CSSProperty"),i=e("fbjs/lib/ExecutionEnvironment"),o=e("./ReactInstrumentation"),a=e("fbjs/lib/camelizeStyleName"),s=e("./dangerousStyleValue"),c=e("fbjs/lib/hyphenateStyleName"),u=e("fbjs/lib/memoizeStringOnly"),f=e("fbjs/lib/warning"),d=u(function(e){ -return c(e)}),l=!1,p="cssFloat";if(i.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(p="styleFloat")}if("production"!==n.env.NODE_ENV)var b=/^(?:webkit|moz|o)[A-Z]/,v=/;\s*$/,m={},g={},y=!1,_=function(e,t){m.hasOwnProperty(e)&&m[e]||(m[e]=!0,"production"!==n.env.NODE_ENV?f(!1,"Unsupported style property %s. Did you mean %s?%s",e,a(e),N(t)):void 0)},E=function(e,t){m.hasOwnProperty(e)&&m[e]||(m[e]=!0,"production"!==n.env.NODE_ENV?f(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",e,e.charAt(0).toUpperCase()+e.slice(1),N(t)):void 0)},w=function(e,t,r){g.hasOwnProperty(t)&&g[t]||(g[t]=!0,"production"!==n.env.NODE_ENV?f(!1,'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.',N(r),e,t.replace(v,"")):void 0)},C=function(e,t,r){y||(y=!0,"production"!==n.env.NODE_ENV?f(!1,"`NaN` is an invalid value for the `%s` css style property.%s",e,N(r)):void 0)},N=function(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""},S=function(e,t,n){var r;n&&(r=n._currentElement._owner),e.indexOf("-")>-1?_(e,r):b.test(e)?E(e,r):v.test(t)&&w(e,t,r),"number"==typeof t&&isNaN(t)&&C(e,t,r)};var M={createMarkupForStyles:function(e,t){var r="";for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];"production"!==n.env.NODE_ENV&&S(i,o,t),null!=o&&(r+=d(i)+":",r+=s(i,o,t)+";")}return r||null},setValueForStyles:function(e,t,i){"production"!==n.env.NODE_ENV&&o.debugTool.onHostOperation(i._debugID,"update styles",t);var a=e.style;for(var c in t)if(t.hasOwnProperty(c)){"production"!==n.env.NODE_ENV&&S(c,t[c],i);var u=s(c,t[c],i);if("float"!==c&&"cssFloat"!==c||(c=p),u)a[c]=u;else{var f=l&&r.shorthandPropertyExpansions[c];if(f)for(var d in f)a[d]="";else a[c]=""}}}};t.exports=M}).call(this,e("_process"))},{"./CSSProperty":154,"./ReactInstrumentation":223,"./dangerousStyleValue":268,_process:136,"fbjs/lib/ExecutionEnvironment":84,"fbjs/lib/camelizeStyleName":86,"fbjs/lib/hyphenateStyleName":97,"fbjs/lib/memoizeStringOnly":103,"fbjs/lib/warning":107}],156:[function(e,t,n){(function(n){"use strict";function r(){this._callbacks=null,this._contexts=null}var i=e("./reactProdInvariant"),o=e("object-assign"),a=e("./PooledClass"),s=e("fbjs/lib/invariant");o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?"production"!==n.env.NODE_ENV?s(!1,"Mismatched list of contexts in callback queue"):i("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r8));var j=!1;E.canUseDOM&&(j=M("input")&&(!document.documentMode||document.documentMode>11));var B={get:function(){return T.get.call(this)},set:function(e){P=""+e,T.set.call(this,e)}},L={eventTypes:k,extractEvents:function(e,t,n,i){var o,a,s=t?w.getNodeFromInstance(t):window;if(r(s)?A?o=c:a=u:O(s)?j?o=p:(o=b,a=h):v(s)&&(o=m),o){var f=o(e,t);if(f){var d=N.getPooled(k.change,f,n,i);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t)}};t.exports=L},{"./EventConstants":167,"./EventPluginHub":168,"./EventPropagators":171,"./ReactDOMComponentTree":193,"./ReactUpdates":243,"./SyntheticEvent":252,"./getEventTarget":276,"./isEventSupported":283,"./isTextInputElement":284,"fbjs/lib/ExecutionEnvironment":84,"fbjs/lib/keyOf":102}],158:[function(e,t,n){(function(n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function i(e,t,n){f.insertTreeBefore(e,t,n)}function o(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],c(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var i=t;;){var o=i.nextSibling;if(g(e,i,r),i===n)break;i=o}}function c(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,r){var i=e.parentNode,o=e.nextSibling;o===t?r&&g(i,document.createTextNode(r),o):r?(m(o,r),c(i,o,t)):c(i,e,t),"production"!==n.env.NODE_ENV&&h.debugTool.onHostOperation(p.getInstanceFromNode(e)._debugID,"replace text",r)}var f=e("./DOMLazyTree"),d=e("./Danger"),l=e("./ReactMultiChildUpdateTypes"),p=e("./ReactDOMComponentTree"),h=e("./ReactInstrumentation"),b=e("./createMicrosoftUnsafeLocalFunction"),v=e("./setInnerHTML"),m=e("./setTextContent"),g=b(function(e,t,n){e.insertBefore(t,n)}),y=d.dangerouslyReplaceNodeWithMarkup;"production"!==n.env.NODE_ENV&&(y=function(e,t,n){if(d.dangerouslyReplaceNodeWithMarkup(e,t),0!==n._debugID)h.debugTool.onHostOperation(n._debugID,"replace with",t.toString());else{var r=p.getInstanceFromNode(t.node);0!==r._debugID&&h.debugTool.onHostOperation(r._debugID,"mount",t.toString())}});var _={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:u,processUpdates:function(e,t){if("production"!==n.env.NODE_ENV)var s=p.getInstanceFromNode(e)._debugID;for(var c=0;c node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."):r("58"):void 0,"string"==typeof t){var u=a(t,s)[0];e.parentNode.replaceChild(u,e)}else i.replaceChildWithTree(e,t)}};t.exports=u}).call(this,e("_process"))},{"./DOMLazyTree":159,"./reactProdInvariant":287,_process:136,"fbjs/lib/ExecutionEnvironment":84,"fbjs/lib/createNodesFromMarkup":89,"fbjs/lib/emptyFunction":90,"fbjs/lib/invariant":98}],164:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyOf"),i=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=i},{"fbjs/lib/keyOf":102}],165:[function(e,t,n){"use strict";var r={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},i={getHostProps:function(e,t){if(!t.disabled)return t;var n={};for(var i in t)!r[i]&&t.hasOwnProperty(i)&&(n[i]=t[i]);return n}};t.exports=i},{}],166:[function(e,t,n){"use strict";var r=e("./EventConstants"),i=e("./EventPropagators"),o=e("./ReactDOMComponentTree"),a=e("./SyntheticMouseEvent"),s=e("fbjs/lib/keyOf"),c=r.topLevelTypes,u={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[c.topMouseOut,c.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[c.topMouseOut,c.topMouseOver]}},f={eventTypes:u,extractEvents:function(e,t,n,r){if(e===c.topMouseOver&&(n.relatedTarget||n.fromElement))return null;if(e!==c.topMouseOut&&e!==c.topMouseOver)return null;var s;if(r.window===r)s=r;else{var f=r.ownerDocument;s=f?f.defaultView||f.parentWindow:window}var d,l;if(e===c.topMouseOut){d=t;var p=n.relatedTarget||n.toElement;l=p?o.getClosestInstanceFromNode(p):null}else d=null,l=t;if(d===l)return null;var h=null==d?s:o.getNodeFromInstance(d),b=null==l?s:o.getNodeFromInstance(l),v=a.getPooled(u.mouseLeave,d,n,r);v.type="mouseleave",v.target=h,v.relatedTarget=b;var m=a.getPooled(u.mouseEnter,l,n,r);return m.type="mouseenter",m.target=b,m.relatedTarget=h,i.accumulateEnterLeaveDispatches(v,m,d,l),[v,m]}};t.exports=f},{"./EventConstants":167,"./EventPropagators":171,"./ReactDOMComponentTree":193,"./SyntheticMouseEvent":256,"fbjs/lib/keyOf":102}],167:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),i=r({bubbled:null,captured:null}),o=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:o,PropagationPhases:i};t.exports=a},{"fbjs/lib/keyMirror":101}],168:[function(e,t,n){(function(n){"use strict";var r=e("./reactProdInvariant"),i=e("./EventPluginRegistry"),o=e("./EventPluginUtils"),a=e("./ReactErrorUtils"),s=e("./accumulateInto"),c=e("./forEachAccumulated"),u=e("fbjs/lib/invariant"),f={},d=null,l=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return l(e,!0)},h=function(e){return l(e,!1)},b=function(e){return"."+e._rootNodeID},v={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,o){"function"!=typeof o?"production"!==n.env.NODE_ENV?u(!1,"Expected %s listener to be a function, instead got type %s",t,typeof o):r("94",t,typeof o):void 0;var a=b(e),s=f[t]||(f[t]={});s[a]=o;var c=i.registrationNameModules[t];c&&c.didPutListener&&c.didPutListener(e,t,o)},getListener:function(e,t){var n=f[t],r=b(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=f[t];if(r){var o=b(e);delete r[o]}},deleteAllListeners:function(e){var t=b(e);for(var n in f)if(f.hasOwnProperty(n)&&f[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete f[n][t]}},extractEvents:function(e,t,n,r){for(var o,a=i.plugins,c=0;c-1?void 0:"production"!==n.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e):a("96",e),!f.plugins[r]){t.extractEvents?void 0:"production"!==n.env.NODE_ENV?s(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e):a("97",e),f.plugins[r]=t;var o=t.eventTypes;for(var d in o)i(o[d],t,d)?void 0:"production"!==n.env.NODE_ENV?s(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",d,e):a("98",d,e)}}}function i(e,t,r){f.eventNameDispatchConfigs.hasOwnProperty(r)?"production"!==n.env.NODE_ENV?s(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):a("99",r):void 0,f.eventNameDispatchConfigs[r]=e;var i=e.phasedRegistrationNames;if(i){for(var c in i)if(i.hasOwnProperty(c)){var u=i[c];o(u,t,r)}return!0}return!!e.registrationName&&(o(e.registrationName,t,r),!0)}function o(e,t,r){if(f.registrationNameModules[e]?"production"!==n.env.NODE_ENV?s(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e):a("100",e):void 0,f.registrationNameModules[e]=t,f.registrationNameDependencies[e]=t.eventTypes[r].dependencies,"production"!==n.env.NODE_ENV){var i=e.toLowerCase();f.possibleRegistrationNames[i]=e,"onDoubleClick"===e&&(f.possibleRegistrationNames.ondblclick=e)}}var a=e("./reactProdInvariant"),s=e("fbjs/lib/invariant"),c=null,u={},f={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:"production"!==n.env.NODE_ENV?{}:null,injectEventPluginOrder:function(e){c?"production"!==n.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):a("101"):void 0,c=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];u.hasOwnProperty(i)&&u[i]===o||(u[i]?"production"!==n.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",i):a("102",i):void 0,u[i]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return f.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=f.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){c=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];f.plugins.length=0;var t=f.eventNameDispatchConfigs;for(var r in t)t.hasOwnProperty(r)&&delete t[r];var i=f.registrationNameModules;for(var o in i)i.hasOwnProperty(o)&&delete i[o];if("production"!==n.env.NODE_ENV){var a=f.possibleRegistrationNames;for(var s in a)a.hasOwnProperty(s)&&delete a[s]}}};t.exports=f}).call(this,e("_process"))},{"./reactProdInvariant":287,_process:136,"fbjs/lib/invariant":98}],170:[function(e,t,n){(function(n){"use strict";function r(e){return e===E.topMouseUp||e===E.topTouchEnd||e===E.topTouchCancel}function i(e){return e===E.topMouseMove||e===E.topTouchMove}function o(e){return e===E.topMouseDown||e===E.topTouchStart}function a(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=w.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(i,n,e):m.invokeGuardedCallback(i,n,e),e.currentTarget=null}function s(e,t){var r=e._dispatchListeners,i=e._dispatchInstances;if("production"!==n.env.NODE_ENV&&h(e),Array.isArray(r))for(var o=0;o1?1-t:void 0;return this._fallbackText=i.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./PooledClass":176,"./getTextContentAccessor":280,"object-assign":128}],173:[function(e,t,n){"use strict";var r=e("./DOMProperty"),i=r.injection.MUST_USE_PROPERTY,o=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,c=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,as:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:i|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:c,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:i|o,muted:i|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,playsInline:o,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,referrerPolicy:0, -rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:i|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=u},{"./DOMProperty":161}],174:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function i(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:r,unescape:i};t.exports=o},{}],175:[function(e,t,n){(function(n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?"production"!==n.env.NODE_ENV?d(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):s("87"):void 0}function i(e){r(e),null!=e.value||null!=e.onChange?"production"!==n.env.NODE_ENV?d(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):s("88"):void 0}function o(e){r(e),null!=e.checked||null!=e.onChange?"production"!==n.env.NODE_ENV?d(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):s("89"):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./reactProdInvariant"),c=e("./ReactPropTypes"),u=e("./ReactPropTypeLocations"),f=e("./ReactPropTypesSecret"),d=e("fbjs/lib/invariant"),l=e("fbjs/lib/warning"),p={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},h={value:function(e,t,n){return!e[t]||p[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:c.func},b={},v={checkPropTypes:function(e,t,r){for(var i in h){if(h.hasOwnProperty(i))var o=h[i](t,i,e,u.prop,null,f);if(o instanceof Error&&!(o.message in b)){b[o.message]=!0;var s=a(r);"production"!==n.env.NODE_ENV?l(!1,"Failed form propType: %s%s",o.message,s):void 0}}},getValue:function(e){return e.valueLink?(i(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(o(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(i(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(o(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=v}).call(this,e("_process"))},{"./ReactPropTypeLocations":233,"./ReactPropTypes":234,"./ReactPropTypesSecret":235,"./reactProdInvariant":287,_process:136,"fbjs/lib/invariant":98,"fbjs/lib/warning":107}],176:[function(e,t,n){(function(n){"use strict";var r=e("./reactProdInvariant"),i=e("fbjs/lib/invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},s=function(e,t,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n),i}return new r(e,t,n)},c=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},u=function(e,t,n,r,i){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r,i),a}return new o(e,t,n,r,i)},f=function(e){var t=this;e instanceof t?void 0:"production"!==n.env.NODE_ENV?i(!1,"Trying to release an instance into a pool of a different type."):r("25"),e.destructor(),t.instancePool.length1?s-1:0),u=1;u-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var b=window.location.protocol.indexOf("http")===-1&&navigator.userAgent.indexOf("Firefox")===-1;console.debug("Download the React DevTools "+(b?"and use an HTTP server (instead of a file: URL) ":"")+"for a better development experience: https://fb.me/react-devtools")}var v=function(){};"production"!==n.env.NODE_ENV?l((v.name||v.toString()).indexOf("testFn")!==-1,"It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details."):void 0;var m=document.documentMode&&document.documentMode<8;"production"!==n.env.NODE_ENV?l(!m,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: '):void 0;for(var g=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim],y=0;y",i(e),i(t)):void 0)}}function a(e,t){t&&(ce[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?"production"!==n.env.NODE_ENV?F(!1,"%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):m("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?"production"!==n.env.NODE_ENV?F(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):m("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&ee in t.dangerouslySetInnerHTML?void 0:"production"!==n.env.NODE_ENV?F(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):m("61")),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?K(null==t.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==n.env.NODE_ENV?K(t.suppressContentEditableWarning||!t.contentEditable||null==t.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):void 0,"production"!==n.env.NODE_ENV?K(null==t.onFocusIn&&null==t.onFocusOut,"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."):void 0),null!=t.style&&"object"!=typeof t.style?"production"!==n.env.NODE_ENV?F(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",r(e)):m("62",r(e)):void 0)}function s(e,t,r,i){if(!(i instanceof L)){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?K("onScroll"!==t||q("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var o=e._hostContainerInfo,a=o._node&&o._node.nodeType===ne,s=a?o._node:o._ownerDocument;Q(t,s),i.getReactMountReady().enqueue(c,{inst:e,registrationName:t,listener:r})}}function c(){var e=this;M.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;x.postMountWrapper(e)}function f(){var e=this;A.postMountWrapper(e)}function d(){var e=this;P.postMountWrapper(e)}function l(){var e=this;e._rootNodeID?void 0:"production"!==n.env.NODE_ENV?F(!1,"Must be mounted to trap events"):m("63");var t=G(e);switch(t?void 0:"production"!==n.env.NODE_ENV?F(!1,"trapBubbledEvent(...): Requires node to be rendered."):m("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[R.trapBubbledEvent(S.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var r in oe)oe.hasOwnProperty(r)&&e._wrapperState.listeners.push(R.trapBubbledEvent(S.topLevelTypes[r],oe[r],t));break;case"source":e._wrapperState.listeners=[R.trapBubbledEvent(S.topLevelTypes.topError,"error",t)];break;case"img":e._wrapperState.listeners=[R.trapBubbledEvent(S.topLevelTypes.topError,"error",t),R.trapBubbledEvent(S.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[R.trapBubbledEvent(S.topLevelTypes.topReset,"reset",t),R.trapBubbledEvent(S.topLevelTypes.topSubmit,"submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[R.trapBubbledEvent(S.topLevelTypes.topInvalid,"invalid",t)]}}function p(){T.postUpdateWrapper(this)}function h(e){de.call(fe,e)||(ue.test(e)?void 0:"production"!==n.env.NODE_ENV?F(!1,"Invalid tag: %s",e):m("65",e),fe[e]=!0)}function b(e,t){return e.indexOf("-")>=0||null!=t.is}function v(e){var t=e.type;h(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0,"production"!==n.env.NODE_ENV&&(this._ancestorInfo=null,ie.call(this,null))}var m=e("./reactProdInvariant"),g=e("object-assign"),y=e("./AutoFocusUtils"),_=e("./CSSPropertyOperations"),E=e("./DOMLazyTree"),w=e("./DOMNamespaces"),C=e("./DOMProperty"),N=e("./DOMPropertyOperations"),S=e("./EventConstants"),M=e("./EventPluginHub"),O=e("./EventPluginRegistry"),R=e("./ReactBrowserEventEmitter"),D=e("./ReactDOMButton"),k=e("./ReactDOMComponentFlags"),I=e("./ReactDOMComponentTree"),x=e("./ReactDOMInput"),P=e("./ReactDOMOption"),T=e("./ReactDOMSelect"),A=e("./ReactDOMTextarea"),j=e("./ReactInstrumentation"),B=e("./ReactMultiChild"),L=e("./ReactServerRenderingTransaction"),U=e("fbjs/lib/emptyFunction"),V=e("./escapeTextContentForBrowser"),F=e("fbjs/lib/invariant"),q=e("./isEventSupported"),H=e("fbjs/lib/keyOf"),z=e("fbjs/lib/shallowEqual"),W=e("./validateDOMNesting"),K=e("fbjs/lib/warning"),Y=k,X=M.deleteListener,G=I.getNodeFromInstance,Q=R.listenTo,J=O.registrationNameModules,Z={string:!0,number:!0},$=H({style:null}),ee=H({__html:null}),te={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},ne=11,re={},ie=U;"production"!==n.env.NODE_ENV&&(ie=function(e){var t=null!=this._contentDebugID,n=this._debugID,r=-n;return null==e?(t&&j.debugTool.onUnmountComponent(this._contentDebugID),void(this._contentDebugID=null)):(W(null,String(e),this,this._ancestorInfo),this._contentDebugID=r,void(t?(j.debugTool.onBeforeUpdateComponent(r,e),j.debugTool.onUpdateComponent(r)):(j.debugTool.onBeforeMountComponent(r,e,n),j.debugTool.onMountComponent(r),j.debugTool.onSetChildren(n,[r]))))});var oe={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ae={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},se={listing:!0,pre:!0,textarea:!0},ce=g({menuitem:!0},ae),ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fe={},de={}.hasOwnProperty,le=1;v.displayName="ReactDOMComponent",v.Mixin={mountComponent:function(e,t,r,i){this._rootNodeID=le++,this._domID=r._idCounter++,this._hostParent=t,this._hostContainerInfo=r;var o=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(l,this);break;case"button":o=D.getHostProps(this,o,t);break;case"input":x.mountWrapper(this,o,t),o=x.getHostProps(this,o),e.getReactMountReady().enqueue(l,this);break;case"option":P.mountWrapper(this,o,t),o=P.getHostProps(this,o);break;case"select":T.mountWrapper(this,o,t),o=T.getHostProps(this,o),e.getReactMountReady().enqueue(l,this);break;case"textarea":A.mountWrapper(this,o,t),o=A.getHostProps(this,o),e.getReactMountReady().enqueue(l,this)}a(this,o);var s,c;if(null!=t?(s=t._namespaceURI,c=t._tag):r._tag&&(s=r._namespaceURI,c=r._tag),(null==s||s===w.svg&&"foreignobject"===c)&&(s=w.html),s===w.html&&("svg"===this._tag?s=w.svg:"math"===this._tag&&(s=w.mathml)),this._namespaceURI=s,"production"!==n.env.NODE_ENV){var p;null!=t?p=t._ancestorInfo:r._tag&&(p=r._ancestorInfo),p&&W(this._tag,null,this,p),this._ancestorInfo=W.updatedAncestorInfo(p,this._tag,this)}var h;if(e.useCreateElement){var b,v=r._ownerDocument;if(s===w.html)if("script"===this._tag){var m=v.createElement("div"),g=this._currentElement.type;m.innerHTML="<"+g+">",b=m.removeChild(m.firstChild)}else b=o.is?v.createElement(this._currentElement.type,o.is):v.createElement(this._currentElement.type);else b=v.createElementNS(s,this._currentElement.type);I.precacheNode(this,b),this._flags|=Y.hasCachedChildNodes,this._hostParent||N.setAttributeForRoot(b),this._updateDOMProperties(null,o,e);var _=E(b);this._createInitialChildren(e,o,i,_),h=_}else{var C=this._createOpenTagMarkupAndPutListeners(e,o),S=this._createContentMarkup(e,o,i);h=!S&&ae[this._tag]?C+"/>":C+">"+S+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(f,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(d,this)}return h},_createOpenTagMarkupAndPutListeners:function(e,t){var r="<"+this._currentElement.type;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(null!=o)if(J.hasOwnProperty(i))o&&s(this,i,o,e);else{i===$&&(o&&("production"!==n.env.NODE_ENV&&(this._previousStyle=o),o=this._previousStyleCopy=g({},t.style)),o=_.createMarkupForStyles(o,this));var a=null;null!=this._tag&&b(this._tag,t)?te.hasOwnProperty(i)||(a=N.createMarkupForCustomAttribute(i,o)):a=N.createMarkupForProperty(i,o),a&&(r+=" "+a)}}return e.renderToStaticMarkup?r:(this._hostParent||(r+=" "+N.createMarkupForRoot()),r+=" "+N.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,r){var i="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(i=o.__html);else{var a=Z[typeof t.children]?t.children:null,s=null!=a?null:t.children;if(null!=a)i=V(a),"production"!==n.env.NODE_ENV&&ie.call(this,a);else if(null!=s){var c=this.mountChildren(s,e,r);i=c.join("")}}return se[this._tag]&&"\n"===i.charAt(0)?"\n"+i:i},_createInitialChildren:function(e,t,r,i){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&E.queueHTML(i,o.__html);else{var a=Z[typeof t.children]?t.children:null,s=null!=a?null:t.children;if(null!=a)"production"!==n.env.NODE_ENV&&ie.call(this,a),E.queueText(i,a);else if(null!=s)for(var c=this.mountChildren(s,e,r),u=0;u tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg , , and ) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag):m("66",this._tag)}this.unmountChildren(e),I.uncacheNode(this),M.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null,"production"!==n.env.NODE_ENV&&ie.call(this,null)},getPublicInstance:function(){return G(this)}},g(v.prototype,v.Mixin,B.Mixin),t.exports=v}).call(this,e("_process"))},{"./AutoFocusUtils":152,"./CSSPropertyOperations":155,"./DOMLazyTree":159,"./DOMNamespaces":160,"./DOMProperty":161,"./DOMPropertyOperations":162,"./EventConstants":167,"./EventPluginHub":168,"./EventPluginRegistry":169,"./ReactBrowserEventEmitter":178,"./ReactDOMButton":190,"./ReactDOMComponentFlags":192, -"./ReactDOMComponentTree":193,"./ReactDOMInput":199,"./ReactDOMOption":201,"./ReactDOMSelect":202,"./ReactDOMTextarea":205,"./ReactInstrumentation":223,"./ReactMultiChild":227,"./ReactServerRenderingTransaction":240,"./escapeTextContentForBrowser":269,"./isEventSupported":283,"./reactProdInvariant":287,"./validateDOMNesting":293,_process:136,"fbjs/lib/emptyFunction":90,"fbjs/lib/invariant":98,"fbjs/lib/keyOf":102,"fbjs/lib/shallowEqual":106,"fbjs/lib/warning":107,"object-assign":128}],192:[function(e,t,n){"use strict";var r={hasCachedChildNodes:1};t.exports=r},{}],193:[function(e,t,n){(function(n){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=r(e);n._hostNode=t,t[v]=n}function o(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function a(e,t){if(!(e._flags&b.hasCachedChildNodes)){var o=e._renderedChildren,a=t.firstChild;e:for(var s in o)if(o.hasOwnProperty(s)){var c=o[s],u=r(c)._domID;if(0!==u){for(;null!==a;a=a.nextSibling)if(1===a.nodeType&&a.getAttribute(h)===String(u)||8===a.nodeType&&a.nodeValue===" react-text: "+u+" "||8===a.nodeType&&a.nodeValue===" react-empty: "+u+" "){i(c,a);continue e}"production"!==n.env.NODE_ENV?p(!1,"Unable to find element with ID %s.",u):f("32",u)}}e._flags|=b.hasCachedChildNodes}}function s(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[v]);e=t.pop())n=r,t.length&&a(r,e);return n}function c(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function u(e){if(void 0===e._hostNode?"production"!==n.env.NODE_ENV?p(!1,"getNodeFromInstance: Invalid argument."):f("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:"production"!==n.env.NODE_ENV?p(!1,"React DOM tree root should always have a node reference."):f("34"),e=e._hostParent;for(;t.length;e=t.pop())a(e,e._hostNode);return e._hostNode}var f=e("./reactProdInvariant"),d=e("./DOMProperty"),l=e("./ReactDOMComponentFlags"),p=e("fbjs/lib/invariant"),h=d.ID_ATTRIBUTE_NAME,b=l,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),m={getClosestInstanceFromNode:s,getInstanceFromNode:c,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:i,uncacheNode:o};t.exports=m}).call(this,e("_process"))},{"./DOMProperty":161,"./ReactDOMComponentFlags":192,"./reactProdInvariant":287,_process:136,"fbjs/lib/invariant":98}],194:[function(e,t,n){(function(n){"use strict";function r(e,t){var r={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return"production"!==n.env.NODE_ENV&&(r._ancestorInfo=t?i.updatedAncestorInfo(null,r._tag,null):null),r}var i=e("./validateDOMNesting"),o=9;t.exports=r}).call(this,e("_process"))},{"./validateDOMNesting":293,_process:136}],195:[function(e,t,n){"use strict";var r=e("object-assign"),i=e("./DOMLazyTree"),o=e("./ReactDOMComponentTree"),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var c=n._ownerDocument,u=c.createComment(s);return o.precacheNode(this,u),i(u)}return e.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=a},{"./DOMLazyTree":159,"./ReactDOMComponentTree":193,"object-assign":128}],196:[function(e,t,n){(function(n){"use strict";var r=e("./ReactElement"),i=r.createFactory;if("production"!==n.env.NODE_ENV){var o=e("./ReactElementValidator");i=o.createFactory}var a={a:i("a"),abbr:i("abbr"),address:i("address"),area:i("area"),article:i("article"),aside:i("aside"),audio:i("audio"),b:i("b"),base:i("base"),bdi:i("bdi"),bdo:i("bdo"),big:i("big"),blockquote:i("blockquote"),body:i("body"),br:i("br"),button:i("button"),canvas:i("canvas"),caption:i("caption"),cite:i("cite"),code:i("code"),col:i("col"),colgroup:i("colgroup"),data:i("data"),datalist:i("datalist"),dd:i("dd"),del:i("del"),details:i("details"),dfn:i("dfn"),dialog:i("dialog"),div:i("div"),dl:i("dl"),dt:i("dt"),em:i("em"),embed:i("embed"),fieldset:i("fieldset"),figcaption:i("figcaption"),figure:i("figure"),footer:i("footer"),form:i("form"),h1:i("h1"),h2:i("h2"),h3:i("h3"),h4:i("h4"),h5:i("h5"),h6:i("h6"),head:i("head"),header:i("header"),hgroup:i("hgroup"),hr:i("hr"),html:i("html"),i:i("i"),iframe:i("iframe"),img:i("img"),input:i("input"),ins:i("ins"),kbd:i("kbd"),keygen:i("keygen"),label:i("label"),legend:i("legend"),li:i("li"),link:i("link"),main:i("main"),map:i("map"),mark:i("mark"),menu:i("menu"),menuitem:i("menuitem"),meta:i("meta"),meter:i("meter"),nav:i("nav"),noscript:i("noscript"),object:i("object"),ol:i("ol"),optgroup:i("optgroup"),option:i("option"),output:i("output"),p:i("p"),param:i("param"),picture:i("picture"),pre:i("pre"),progress:i("progress"),q:i("q"),rp:i("rp"),rt:i("rt"),ruby:i("ruby"),s:i("s"),samp:i("samp"),script:i("script"),section:i("section"),select:i("select"),small:i("small"),source:i("source"),span:i("span"),strong:i("strong"),style:i("style"),sub:i("sub"),summary:i("summary"),sup:i("sup"),table:i("table"),tbody:i("tbody"),td:i("td"),textarea:i("textarea"),tfoot:i("tfoot"),th:i("th"),thead:i("thead"),time:i("time"),title:i("title"),tr:i("tr"),track:i("track"),u:i("u"),ul:i("ul"),var:i("var"),video:i("video"),wbr:i("wbr"),circle:i("circle"),clipPath:i("clipPath"),defs:i("defs"),ellipse:i("ellipse"),g:i("g"),image:i("image"),line:i("line"),linearGradient:i("linearGradient"),mask:i("mask"),path:i("path"),pattern:i("pattern"),polygon:i("polygon"),polyline:i("polyline"),radialGradient:i("radialGradient"),rect:i("rect"),stop:i("stop"),svg:i("svg"),text:i("text"),tspan:i("tspan")};t.exports=a}).call(this,e("_process"))},{"./ReactElement":211,"./ReactElementValidator":212,_process:136}],197:[function(e,t,n){"use strict";var r={useCreateElement:!0};t.exports=r},{}],198:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),i=e("./ReactDOMComponentTree"),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=i.getNodeFromInstance(e);r.processUpdates(n,t)}};t.exports=o},{"./DOMChildrenOperations":158,"./ReactDOMComponentTree":193}],199:[function(e,t,n){(function(n){"use strict";function r(){this._rootNodeID&&E.updateWrapper(this)}function i(e){var t="checkbox"===e.type||"radio"===e.type;return t?null!=e.checked:null!=e.value}function o(e){var t=this._currentElement.props,i=f.executeOnChange(t,e);l.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var s=d.getNodeFromInstance(this),c=s;c.parentNode;)c=c.parentNode;for(var u=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),h=0;h children."):void 0))}),t}var i=e("object-assign"),o=e("./ReactChildren"),a=e("./ReactDOMComponentTree"),s=e("./ReactDOMSelect"),c=e("fbjs/lib/warning"),u=!1,f={mountWrapper:function(e,t,i){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?c(null==t.selected,"Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",a,i(r)):void 0)}}}function a(e,t,n){var r,i,o=d.getNodeFromInstance(e).options;if(t){for(r={},i=0;it.end?(n=t.end,r=t.start):(n=t.start,r=t.end),i.moveToElementText(e),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[f()].length,i=Math.min(t.start,r),o=void 0===t.end?i:Math.min(t.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=u(e,i),c=u(e,o);if(s&&c){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(d),n.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),n.addRange(d))}}}var c=e("fbjs/lib/ExecutionEnvironment"),u=e("./getNodeForCharacterOffset"),f=e("./getTextContentAccessor"),d=c.canUseDOM&&"selection"in document&&!("getSelection"in window),l={getOffsets:d?i:o,setOffsets:d?a:s};t.exports=l},{"./getNodeForCharacterOffset":279,"./getTextContentAccessor":280,"fbjs/lib/ExecutionEnvironment":84}],204:[function(e,t,n){(function(n){"use strict";var r=e("./reactProdInvariant"),i=e("object-assign"),o=e("./DOMChildrenOperations"),a=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),c=e("./escapeTextContentForBrowser"),u=e("fbjs/lib/invariant"),f=e("./validateDOMNesting"),d=function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null};i(d.prototype,{mountComponent:function(e,t,r,i){if("production"!==n.env.NODE_ENV){var o;null!=t?o=t._ancestorInfo:null!=r&&(o=r._ancestorInfo),o&&f(null,this._stringText,this,o)}var u=r._idCounter++,d=" react-text: "+u+" ",l=" /react-text ";if(this._domID=u,this._hostParent=t,e.useCreateElement){var p=r._ownerDocument,h=p.createComment(d),b=p.createComment(l),v=a(p.createDocumentFragment());return a.queueChild(v,a(h)),this._stringText&&a.queueChild(v,a(p.createTextNode(this._stringText))),a.queueChild(v,a(b)),s.precacheNode(this,h),this._closingComment=b,v}var m=c(this._stringText);return e.renderToStaticMarkup?m:""+m+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();o.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),i=t.nextSibling;;){if(null==i?"production"!==n.env.NODE_ENV?u(!1,"Missing closing comment for text component %s",this._domID):r("67",this._domID):void 0,8===i.nodeType&&" /react-text "===i.nodeValue){this._closingComment=i;break}i=i.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=d}).call(this,e("_process"))},{"./DOMChildrenOperations":158,"./DOMLazyTree":159,"./ReactDOMComponentTree":193,"./escapeTextContentForBrowser":269,"./reactProdInvariant":287,"./validateDOMNesting":293,_process:136,"fbjs/lib/invariant":98,"object-assign":128}],205:[function(e,t,n){(function(n){"use strict";function r(){this._rootNodeID&&b.updateWrapper(this)}function i(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);return f.asap(r,this),n}var o=e("./reactProdInvariant"),a=e("object-assign"),s=e("./DisabledInputUtils"),c=e("./LinkedValueUtils"),u=e("./ReactDOMComponentTree"),f=e("./ReactUpdates"),d=e("fbjs/lib/invariant"),l=e("fbjs/lib/warning"),p=!1,h=!1,b={getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?"production"!==n.env.NODE_ENV?d(!1,"`dangerouslySetInnerHTML` does not make sense on