From cddda9ec4fe41241e0578e12468d51e51043ed89 Mon Sep 17 00:00:00 2001 From: jeff ward Date: Tue, 22 Jul 2014 13:46:18 -0400 Subject: [PATCH] add gulp build for bower prep --- Gulpfile.js | 14 ++++++++++++++ README.md | 8 ++++++++ dist/bitcoinjs-lib.min.js | 6 ++++++ package.json | 5 +++++ 4 files changed, 33 insertions(+) create mode 100644 Gulpfile.js create mode 100644 dist/bitcoinjs-lib.min.js diff --git a/Gulpfile.js b/Gulpfile.js new file mode 100644 index 000000000..84fa0dfd3 --- /dev/null +++ b/Gulpfile.js @@ -0,0 +1,14 @@ +'use strict'; + +var gulp = require('gulp'); +var $ = require('gulp-load-plugins')(); + +gulp.task('scripts', function () { + return gulp.src('./src/index.js') + .pipe($.browserify()) + .pipe($.uglify()) + .pipe($.rename('bitcoinjs-lib.min.js')) + .pipe(gulp.dest('./dist/')) +}); + +gulp.task('build', ['scripts']); \ No newline at end of file diff --git a/README.md b/README.md index 1689f0969..e22899722 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,14 @@ From the repo: ### Browser +From Bower: + + $ bower install bitcoinjs-lib + +then include in HTML + + + From the repository: Compile `bitcoinjs-min.js` with the following command: $ npm run-script compile diff --git a/dist/bitcoinjs-lib.min.js b/dist/bitcoinjs-lib.min.js new file mode 100644 index 000000000..330f39706 --- /dev/null +++ b/dist/bitcoinjs-lib.min.js @@ -0,0 +1,6 @@ +!function t(e,r,n){function i(f,s){if(!r[f]){if(!e[f]){var a="function"==typeof require&&require;if(!s&&a)return a(f,!0);if(o)return o(f,!0);throw new Error("Cannot find module '"+f+"'")}var u=r[f]={exports:{}};e[f][0].call(u.exports,function(t){var r=e[f][1][t];return i(r?r:t)},u,u.exports,t,e,r,n)}return r[f].exports}for(var o="function"==typeof require&&require,f=0;f=0;){var f=e*this[t++]+r[n]+i;i=Math.floor(f/67108864),r[n++]=67108863&f}return i}function o(t){return rr.charAt(t)}function f(t,e){var r=nr[t.charCodeAt(e)];return null==r?-1:r}function s(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function a(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+Qe:this.t=0}function u(t){var e=n();return e.fromInt(t),e}function c(t,e){var n,i=this;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void i.fromRadix(t,e);n=2}i.t=0,i.s=0;for(var o=t.length,s=!1,a=0;--o>=0;){var u=8==n?255&t[o]:f(t,o);0>u?"-"==t.charAt(o)&&(s=!0):(s=!1,0==a?i[i.t++]=u:a+n>i.DB?(i[i.t-1]|=(u&(1<>i.DB-a):i[i.t-1]|=u<=i.DB&&(a-=i.DB))}8==n&&0!=(128&t[0])&&(i.s=-1,a>0&&(i[i.t-1]|=(1<0&&this[this.t-1]==t;)--this.t}function p(t){var e=this;if(e.s<0)return"-"+e.negate().toString(t);var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return e.toRadix(t);r=2}var n,i=(1<0)for(u>u)>0&&(f=!0,s=o(n));a>=0;)r>u?(n=(e[a]&(1<>(u+=e.DB-r)):(n=e[a]>>(u-=r)&i,0>=u&&(u+=e.DB,--a)),n>0&&(f=!0),f&&(s+=o(n));return f?s:"0"}function l(){var t=n();return r.ZERO.subTo(this,t),t}function d(){return this.s<0?this.negate():this}function v(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(e=r-t.t,0!=e)return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0}function y(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function g(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)}function m(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s}function b(t,e){for(var r=t;r=0;--r)e[r+s+1]=n[r]>>o|a,a=(n[r]&f)<=0;--r)e[r]=0;e[s]=a,e.t=n.t+s+1,e.s=n.s,e.clamp()}function _(t,e){var r=this;e.s=r.s;var n=Math.floor(t/r.DB);if(n>=r.t)return void(e.t=0);var i=t%r.DB,o=r.DB-i,f=(1<>i;for(var s=n+1;s>i;i>0&&(e[r.t-n-1]|=(r.s&f)<n;)i+=r[n]-t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i-=t.s}e.s=0>i?-1:0,-1>i?e[n++]=r.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()}function E(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[r]=0;for(r=0;r=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()}function I(t,e,i){var o=this,f=t.abs();if(!(f.t<=0)){var s=o.abs();if(s.t0?(f.lShiftTo(h,a),s.lShiftTo(h,i)):(f.copyTo(a),s.copyTo(i));var p=a.t,l=a[p-1];if(0!=l){var d=l*(1<1?a[p-2]>>o.F2:0),v=o.FV/d,g=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),r.ONE.dlShiftTo(p,_),_.subTo(a,a);a.t=0;){var B=i[--b]==l?o.DM:Math.floor(i[b]*v+(i[b-1]+m)*g);if((i[b]+=a.am(0,B,i,w,0,p))0&&i.rShiftTo(h,i),0>u&&r.ZERO.subTo(i,i)}}}function x(t){var e=n();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e}function A(t){this.m=t}function k(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function O(t){return t}function P(t){t.divRemTo(this.m,null,t)}function T(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function H(t,e){t.squareTo(e),this.reduce(e)}function D(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function C(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e}function R(t){var e=n();return t.copyTo(e),this.reduce(e),e}function L(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t[r]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function z(t,e){t.squareTo(e),this.reduce(e)}function M(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function N(){return 0==(this.t>0?1&this[0]:this.s)}function F(t,e){if(t>4294967295||1>t)return r.ONE;var i=n(),o=n(),f=e.convert(this),s=y(t)-1;for(f.copyTo(i);--s>=0;)if(e.sqrTo(i,o),(t&1<0)e.mulTo(o,f,i);else{var a=i;i=o,o=a}return e.revert(i)}function j(t,e){var r;return r=256>t||e.isEven()?new A(e):new C(e),this.exp(t,r)}function n(){return new r(null)}function q(){var t=n();return this.copyTo(t),t}function K(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function V(){return 0==this.t?this.s:this[0]<<16>>16}function J(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function W(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function Y(t){if(null==t&&(t=10),0==this.signum()||2>t||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=u(r),o=n(),f=n(),s="";for(this.divRemTo(i,o,f);o.signum()>0;)s=(r+f.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,f);return f.intValue().toString(t)+s}function X(t,e){var n=this;n.fromInt(0),null==e&&(e=10);for(var i=n.chunkSize(e),o=Math.pow(e,i),s=!1,a=0,u=0,c=0;ch?"-"==t.charAt(c)&&0==n.signum()&&(s=!0):(u=e*u+h,++a>=i&&(n.dMultiply(o),n.dAddOffset(u,0),a=0,u=0))}a>0&&(n.dMultiply(Math.pow(e,a)),n.dAddOffset(u,0)),s&&r.ZERO.subTo(n,n)}function Z(t,e,n){var i=this;if("number"==typeof e)if(2>t)i.fromInt(1);else for(i.fromNumber(t,n),i.testBit(t-1)||i.bitwiseTo(r.ONE.shiftLeft(t-1),oe,i),i.isEven()&&i.dAddOffset(1,0);!i.isProbablePrime(e);)i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(r.ONE.shiftLeft(t-1),i);else{var o=new Array,f=7&t;o.length=(t>>3)+1,e.nextBytes(o),f>0?o[0]&=(1<0)for(i>i)!=(t.s&t.DM)>>i&&(r[o++]=n|t.s<=0;)8>i?(n=(t[e]&(1<>(i+=t.DB-8)):(n=t[e]>>(i-=8)&255,0>=i&&(i+=t.DB,--e)),0!=(128&n)&&(n|=-256),0===o&&(128&t.s)!=(128&n)&&++o,(o>0||n!=t.s)&&(r[o++]=n);return r}function $(t){return 0==this.compareTo(t)}function te(t){return this.compareTo(t)<0?this:t}function ee(t){return this.compareTo(t)>0?this:t}function re(t,e,r){var n,i,o=this,f=Math.min(t.t,o.t);for(n=0;f>n;++n)r[n]=e(o[n],t[n]);if(t.tt?this.rShiftTo(-t,e):this.lShiftTo(t,e),e}function le(t){var e=n();return 0>t?this.lShiftTo(-t,e):this.rShiftTo(t,e),e}function de(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function ve(){for(var t=0;t=this.t?0!=this.s:0!=(this[e]&1<n;)i+=r[n]+t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i+=t.s}e.s=0>i?-1:0,i>0?e[n++]=i:-1>i&&(e[n++]=r.DV+i),e.t=n,e.clamp()}function Se(t){var e=n();return this.addTo(t,e),e}function Ie(t){var e=n();return this.subTo(t,e),e}function xe(t){var e=n();return this.multiplyTo(t,e),e}function Ae(){var t=n();return this.squareTo(t),t}function ke(t){var e=n();return this.divRemTo(t,e,null),e}function Oe(t){var e=n();return this.divRemTo(t,null,e),e}function Pe(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)}function Te(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function He(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}}function De(){}function Ce(t){return t}function Ue(t,e,r){t.multiplyTo(e,r)}function Re(t,e){t.squareTo(e)}function Le(t){return this.exp(t,new De)}function ze(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;var i;for(i=r.t-this.t;i>n;++n)r[n+this.t]=this.am(0,t[n],r,n,0,this.t);for(i=Math.min(t.t,e);i>n;++n)this.am(0,t[n],r,n,0,e-n);r.clamp()}function Me(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e}function je(t){return t}function qe(t){var e=this;for(t.drShiftTo(e.m.t-1,e.r2),t.t>e.m.t+1&&(t.t=e.m.t+1,t.clamp()),e.mu.multiplyUpperTo(e.r2,e.m.t+1,e.q3),e.m.multiplyLowerTo(e.q3,e.m.t+1,e.r2);t.compareTo(e.r2)<0;)t.dAddOffset(1,e.m.t+1);for(t.subTo(e.r2,t);t.compareTo(e.m)>=0;)t.subTo(e.m,t)}function Ke(t,e){t.squareTo(e),this.reduce(e)}function Ge(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function Ve(t,e){var r,i,o=t.bitLength(),f=u(1);if(0>=o)return f;r=18>o?1:48>o?3:144>o?4:768>o?5:6,i=8>o?new A(e):e.isEven()?new Ne(e):new C(e);var s=new Array,a=3,c=r-1,h=(1<1){var p=n();for(i.sqrTo(s[1],p);h>=a;)s[a]=n(),i.mulTo(p,s[a-2],s[a]),a+=2}var l,d,v=t.t-1,g=!0,m=n();for(o=y(t[v])-1;v>=0;){for(o>=c?l=t[v]>>o-c&h:(l=(t[v]&(1<0&&(l|=t[v-1]>>this.DB+o-c)),a=r;0==(1&l);)l>>=1,--a;if((o-=a)<0&&(o+=this.DB,--v),g)s[l].copyTo(f),g=!1;else{for(;a>1;)i.sqrTo(f,m),i.sqrTo(m,f),a-=2;a>0?i.sqrTo(f,m):(d=f,f=m,m=d),i.mulTo(m,s[l],f)}for(;v>=0&&0==(t[v]&1<o)return e;for(o>i&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r}function We(t){if(0>=t)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r}function Ye(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=u(1),f=u(0),s=u(0),a=u(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&f.isEven()||(o.addTo(this,o),f.subTo(t,f)),o.rShiftTo(1,o)):f.isEven()||f.subTo(t,f),f.rShiftTo(1,f);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(s,o),f.subTo(a,f)):(i.subTo(n,i),e&&s.subTo(o,s),a.subTo(f,a))}return 0!=i.compareTo(r.ONE)?r.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a}t("assert");e.exports=r;var Xe,Ze=r.prototype;r.prototype.am=i,Xe=26,r.prototype.DB=Xe,r.prototype.DM=(1<=er;++er)nr[tr++]=er;for(tr="a".charCodeAt(0),er=10;36>er;++er)nr[tr++]=er;for(tr="A".charCodeAt(0),er=10;36>er;++er)nr[tr++]=er;A.prototype.convert=k,A.prototype.revert=O,A.prototype.reduce=P,A.prototype.mulTo=T,A.prototype.sqrTo=H,C.prototype.convert=U,C.prototype.revert=R,C.prototype.reduce=L,C.prototype.mulTo=M,C.prototype.sqrTo=z,Ze.copyTo=s,Ze.fromInt=a,Ze.fromString=c,Ze.clamp=h,Ze.dlShiftTo=m,Ze.drShiftTo=b,Ze.lShiftTo=w,Ze.rShiftTo=_,Ze.subTo=B,Ze.multiplyTo=E,Ze.squareTo=S,Ze.divRemTo=I,Ze.invDigit=D,Ze.isEven=N,Ze.exp=F,Ze.toString=p,Ze.negate=l,Ze.abs=d,Ze.compareTo=v,Ze.bitLength=g,Ze.mod=x,Ze.modPowInt=j,De.prototype.convert=Ce,De.prototype.revert=Ce,De.prototype.mulTo=Ue,De.prototype.sqrTo=Re,Ne.prototype.convert=Fe,Ne.prototype.revert=je,Ne.prototype.reduce=qe,Ne.prototype.mulTo=Ge,Ne.prototype.sqrTo=Ke,Ze.chunkSize=J,Ze.toRadix=Y,Ze.fromRadix=X,Ze.fromNumber=Z,Ze.bitwiseTo=re,Ze.changeBit=be,Ze.addTo=Ee,Ze.dMultiply=Te,Ze.dAddOffset=He,Ze.multiplyLowerTo=ze,Ze.multiplyUpperTo=Me,Ze.modInt=We,Ze.clone=q,Ze.intValue=K,Ze.byteValue=G,Ze.shortValue=V,Ze.signum=W,Ze.toByteArray=Q,Ze.equals=$,Ze.min=te,Ze.max=ee,Ze.and=ie,Ze.or=fe,Ze.xor=ae,Ze.andNot=ce,Ze.not=he,Ze.shiftLeft=pe,Ze.shiftRight=le,Ze.getLowestSetBit=ve,Ze.bitCount=ge,Ze.testBit=me,Ze.setBit=we,Ze.clearBit=_e,Ze.flipBit=Be,Ze.add=Se,Ze.subtract=Ie,Ze.multiply=xe,Ze.divide=ke,Ze.remainder=Oe,Ze.divideAndRemainder=Pe,Ze.modPow=Ve,Ze.modInverse=Ye,Ze.pow=Le,Ze.gcd=Je,Ze.square=Ae,r.ZERO=u(0),r.ONE=u(1),r.valueOf=u},{assert:58}],2:[function(t){(function(e){var r=t("assert"),n=t("./bigi");n.fromByteArrayUnsigned=function(t){return new n(128&t[0]?[0].concat(t):t)},n.prototype.toByteArrayUnsigned=function(){var t=this.toByteArray();return 0===t[0]?t.slice(1):t},n.fromDERInteger=function(t){return new n(t)},n.prototype.toDERInteger=n.prototype.toByteArray,n.fromBuffer=function(t){if(128&t[0]){var e=Array.prototype.slice.call(t);return new n([0].concat(e))}return new n(t)},n.fromHex=function(t){return""===t?n.ZERO:(r.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),r.equal(t.length%2,0,"Incomplete hex"),new n(t,16))},n.prototype.toBuffer=function(t){for(var r=this.toByteArrayUnsigned(),n=[],i=t-r.length;n.length0;){var o=e.mod(h);e=e.divide(h),n[i]=a[o.intValue()],i--}for(var s=0;0===t[s];)n[i]=a[0],s++,i--;return n.slice(i+1,n.length).toString("ascii")}function i(t){if(0===t.length)return new r(0);for(var e=f.ZERO,n=0;no?e=i(t).update(e).digest():e.lengthu;u++)s[u]=54^e[u],a[u]=92^e[u];this._hash=i(t).update(s)}var i=t("./create-hash"),o=64,f=new r(o);f.fill(0),e.exports=n,n.prototype.update=function(t,e){return this._hash.update(t,e),this},n.prototype.digest=function(t){var e=this._hash.digest();return i(this._alg).update(this._opad).update(e).digest(t)}}).call(this,t("buffer").Buffer)},{"./create-hash":6,buffer:62}],8:[function(t,e){(function(t){function r(e,r){if(e.length%o!==0){var n=e.length+(o-e.length%o);e=t.concat([e,f],n)}for(var i=[],s=r?e.readInt32BE:e.readInt32LE,a=0;a>5]|=128<>>9<<4)+14]=e;for(var r=1732584193,n=-271733879,u=-1732584194,c=271733878,h=0;h>16)+(e>>16)+(r>>16);return n<<16|65535&r}function u(t,e){return t<>>32-e}var c=t("./helpers");e.exports=function(t){return c.hash(t,r,16)}},{"./helpers":8}],11:[function(t,e){(function(t){function r(t,e,r){return t^e^r}function n(t,e,r){return t&e|~t&r}function i(t,e,r){return(t|~e)^r}function o(t,e,r){return t&r|e&~r}function f(t,e,r){return t^(e|~r)}function s(t,e){return t<>>32-e}function a(e){var r=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof e&&(e=new t(e,"utf8"));var n=v(e),i=8*e.length,o=8*e.length;n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var f=0;ff;f++){var s=r[f];r[f]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var a=y(r);return new t(a)}e.exports=a;var u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0],v=function(t){for(var e=[],r=0,n=0;r>>5]|=t[r]<<24-n%32;return e},y=function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},g=function(t,e,a){for(var v=0;16>v;v++){var y=a+v,g=e[y];e[y]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8)}var m,b,w,_,B,E,S,I,x,A;E=m=t[0],S=b=t[1],I=w=t[2],x=_=t[3],A=B=t[4];for(var k,v=0;80>v;v+=1)k=m+e[a+u[v]]|0,k+=16>v?r(b,w,_)+l[0]:32>v?n(b,w,_)+l[1]:48>v?i(b,w,_)+l[2]:64>v?o(b,w,_)+l[3]:f(b,w,_)+l[4],k=0|k,k=s(k,h[v]),k=k+B|0,m=B,B=_,_=s(w,10),w=b,b=k,k=E+e[a+c[v]]|0,k+=16>v?f(S,I,x)+d[0]:32>v?o(S,I,x)+d[1]:48>v?i(S,I,x)+d[2]:64>v?n(S,I,x)+d[3]:r(S,I,x)+d[4],k=0|k,k=s(k,p[v]),k=k+A|0,E=A,A=x,x=s(I,10),I=S,S=k;k=t[1]+w+x|0,t[1]=t[2]+_+A|0,t[2]=t[3]+B+E|0,t[3]=t[4]+m+S|0,t[4]=t[0]+b+I|0,t[0]=k}}).call(this,t("buffer").Buffer)},{buffer:62}],12:[function(t,e){var r=t("./util"),n=r.write,i=r.zeroFill;e.exports=function(t){function e(e,r){this._block=new t(e),this._finalSize=r,this._blockSize=e,this._len=0,this._s=0}function o(t,e){return null==e?t.byteLength||t.length:"ascii"==e||"binary"==e?t.length:"hex"==e?t.length/2:"base64"==e?t.length/3:void 0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,r){var i,f=this._blockSize;r||"string"!=typeof e||(r="utf8"),r?("utf-8"===r&&(r="utf8"),("base64"===r||"utf8"===r)&&(e=new t(e,r),r=null),i=o(e,r)):i=e.byteLength||e.length;for(var s=this._len+=i,a=this._s=this._s||0,u=0,c=this._block;s>a;){var h=Math.min(i,u+f);n(c,e,r,a%f,u,h);var p=h-u;a+=p,u+=p,a%f||this._update(c)}return this._s=a,this},e.prototype.digest=function(t){var e=this._blockSize,n=this._finalSize,o=8*this._len,f=this._block,s=o%(8*e);f[this._len%e]=128,i(this._block,this._len%e+1),s>=8*n&&(this._update(this._block),r.zeroFill(this._block,0)),f.writeInt32BE(o,n+4);var a=this._update(this._block)||this._hash();return null==t?a:a.toString(t)},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},{"./util":16}],13:[function(t,e,r){var r=e.exports=function(t){var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e},n=t("buffer").Buffer,i=t("./hash")(n);r.sha=r.sha1=t("./sha1")(n,i),r.sha256=t("./sha256")(n,i)},{"./hash":12,"./sha1":14,"./sha256":15,buffer:62}],14:[function(t,e){e.exports=function(e,r){function n(){return v.length?v.pop().init():this instanceof n?(this._w=d,r.call(this,64,56),this._h=null,void this.init()):new n}function i(t,e,r,n){return 20>t?e&r|~e&n:40>t?e^r^n:60>t?e&r|e&n|r&n:e^r^n}function o(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function f(t,e){return t+e|0}function s(t,e){return t<>>32-e}var a=t("util").inherits;a(n,r);var u=0,c=4,h=8,p=12,l=16,d=new Int32Array(80),v=[];n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,r.prototype.init.call(this),this},n.prototype._POOL=v;new e(1)instanceof DataView;return n.prototype._update=function(){{var t,e,r,n,a,u,c,h,p,l,d=this._block;this._h}t=u=this._a,e=c=this._b,r=h=this._c,n=p=this._d,a=l=this._e;for(var v=this._w,y=0;80>y;y++){var g=v[y]=16>y?d.readInt32BE(4*y):s(v[y-3]^v[y-8]^v[y-14]^v[y-16],1),m=f(f(s(t,5),i(y,e,r,n)),f(f(a,g),o(y)));a=n,n=r,r=s(e,30),e=t,t=m}this._a=f(t,u),this._b=f(e,c),this._c=f(r,h),this._d=f(n,p),this._e=f(a,l)},n.prototype._hash=function(){v.length<100&&v.push(this);var t=new e(20);return t.writeInt32BE(0|this._a,u),t.writeInt32BE(0|this._b,c),t.writeInt32BE(0|this._c,h),t.writeInt32BE(0|this._d,p),t.writeInt32BE(0|this._e,l),t},n}},{util:74}],15:[function(t,e){{var r=t("util").inherits;t("./util")}e.exports=function(t,e){function n(){d.length,this.init(),this._w=l,e.call(this,64,56)}function i(t,e){return t>>>e|t<<32-e}function o(t,e){return t>>>e}function f(t,e,r){return t&e^~t&r}function s(t,e,r){return t&e^t&r^e&r}function a(t){return i(t,2)^i(t,13)^i(t,22)}function u(t){return i(t,6)^i(t,11)^i(t,25)}function c(t){return i(t,7)^i(t,18)^o(t,3)}function h(t){return i(t,17)^i(t,19)^o(t,10)}var p=[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];r(n,e);var l=new Array(64),d=[];n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this};return n.prototype._update=function(){var t,e,r,n,i,o,l,d,v,y,g=this._block,m=this._w;t=0|this._a,e=0|this._b,r=0|this._c,n=0|this._d,i=0|this._e,o=0|this._f,l=0|this._g,d=0|this._h;for(var b=0;64>b;b++){var w=m[b]=16>b?g.readInt32BE(4*b):h(m[b-2])+m[b-7]+c(m[b-15])+m[b-16];v=d+u(i)+f(i,o,l)+p[b]+w,y=a(t)+s(t,e,r),d=l,l=o,o=i,i=n+v,n=r,r=e,e=t,t=v+y}this._a=t+this._a|0,this._b=e+this._b|0,this._c=r+this._c|0,this._d=n+this._d|0,this._e=i+this._e|0,this._f=o+this._f|0,this._g=l+this._g|0,this._h=d+this._h|0},n.prototype._hash=function(){d.length<10&&d.push(this);var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},{"./util":16,util:74}],16:[function(t,e,r){function n(t,e,r,n,i,o){var f=o-i;if("ascii"===r||"binary"===r)for(var s=0;f>s;s++)t[n+s]=e.charCodeAt(s+i);else if(null==r)for(var s=0;f>s;s++)t[n+s]=e[s+i];else{if("hex"!==r)throw new Error("base64"===r?"base64 encoding not yet supported":r+" encoding not yet supported");for(var s=0;f>s;s++){var a=i+s;t[n+s]=parseInt(e[2*a]+e[2*a+1],16)}}}function i(t,e){for(var r=e;rf)throw new TypeError("Bad iterations");if("number"!=typeof s)throw new TypeError("Key length not a number");if(0>s)throw new TypeError("Bad key length");var i=t.isBuffer(i)?i:new t(i);i.length>r?i=createHash(alg).update(i).digest():i.length20?20:s,l[0]=p>>24&255,l[1]=p>>16&255,l[2]=p>>8&255,l[3]=255&p,a=e("sha1",i),a.update(o),a.update(l),c=a.digest(),c.copy(d,h,0,u); +for(var v=1;f>v;v++){a=e("sha1",i),a.update(c),c=a.digest();for(var y=0;u>y;y++)d[y]^=c[y]}s-=u,p++,h+=u}return d},i}}).call(this,t("buffer").Buffer)},{buffer:62}],18:[function(t,e){(function(t){!function(){var r,n,i=this;r=function(e){for(var r,r,n=new t(e),i=0;e>i;i++)0==(3&i)&&(r=4294967296*Math.random()),n[i]=r>>>((3&i)<<3)&255;return n},i.crypto&&crypto.getRandomValues&&(n=function(e){var r=new t(e);return crypto.getRandomValues(r),r}),e.exports=n||r}()}).call(this,t("buffer").Buffer)},{buffer:62}],19:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,o=[],f=[],s=[],a=[],u=[],c=[],h=[],p=[],l=[],d=[];!function(){for(var t=[],e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;for(var r=0,n=0,e=0;256>e;e++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,o[r]=i,f[i]=r;var v=t[r],y=t[v],g=t[y],m=257*t[i]^16843008*i;s[r]=m<<24|m>>>8,a[r]=m<<16|m>>>16,u[r]=m<<8|m>>>24,c[r]=m;var m=16843009*g^65537*y^257*v^16843008*r;h[i]=m<<24|m>>>8,p[i]=m<<16|m>>>16,l[i]=m<<8|m>>>24,d[i]=m,r?(r=v^t[t[t[g^v]]],n^=t[t[n]]):r=n=1}}();var v=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=n.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,i=4*(n+1),f=this._keySchedule=[],s=0;i>s;s++)if(r>s)f[s]=e[s];else{var a=f[s-1];s%r?r>6&&s%r==4&&(a=o[a>>>24]<<24|o[a>>>16&255]<<16|o[a>>>8&255]<<8|o[255&a]):(a=a<<8|a>>>24,a=o[a>>>24]<<24|o[a>>>16&255]<<16|o[a>>>8&255]<<8|o[255&a],a^=v[s/r|0]<<24),f[s]=f[s-r]^a}for(var u=this._invKeySchedule=[],c=0;i>c;c++){var s=i-c;if(c%4)var a=f[s];else var a=f[s-4];u[c]=4>c||4>=s?a:h[o[a>>>24]]^p[o[a>>>16&255]]^l[o[a>>>8&255]]^d[o[255&a]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,u,c,o)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,h,p,l,d,f);var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,f,s){for(var a=this._nRounds,u=t[e]^r[0],c=t[e+1]^r[1],h=t[e+2]^r[2],p=t[e+3]^r[3],l=4,d=1;a>d;d++){var v=n[u>>>24]^i[c>>>16&255]^o[h>>>8&255]^f[255&p]^r[l++],y=n[c>>>24]^i[h>>>16&255]^o[p>>>8&255]^f[255&u]^r[l++],g=n[h>>>24]^i[p>>>16&255]^o[u>>>8&255]^f[255&c]^r[l++],m=n[p>>>24]^i[u>>>16&255]^o[c>>>8&255]^f[255&h]^r[l++];u=v,c=y,h=g,p=m}var v=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^r[l++],y=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^r[l++],g=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[l++],m=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^r[l++];t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=m},keySize:8});e.AES=n._createHelper(y)}(),t.AES})},{"./cipher-core":20,"./core":21,"./enc-base64":22,"./evpkdf":24,"./md5":29}],20:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,a=(s.Utf8,s.Base64),u=r.algo,c=u.EvpKDF,h=n.Cipher=f.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?E:w}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),p=(n.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),r.mode={}),l=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=p.CBC=function(){function t(t,r,n){var i=this._iv;if(i){var o=i;this._iv=e}else var o=this._prevBlock;for(var f=0;n>f;f++)t[r+f]^=o[f]}var r=l.extend();return r.Encryptor=r.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),r.Decryptor=r.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),r}(),v=r.pad={},y=v.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,f=[],s=0;n>s;s+=4)f.push(i);var a=o.create(f,n);t.concat(a)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},g=(n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:y}),reset:function(){h.reset.call(this);var t=this.cfg,e=t.iv,r=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode=n.call(r,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{var e=this._process(!0);t.unpad(e)}return e},blockSize:4}),n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),m=r.format={},b=m.OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(e);else var n=e;return n.toString(a)},parse:function(t){var e=a.parse(t),r=e.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),e.sigBytes-=16}return g.create({ciphertext:e,salt:n})}},w=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),f=i.cfg;return g.create({ciphertext:o,key:r,iv:f.iv,algorithm:t,mode:f.mode,padding:f.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=t.createDecryptor(r,n).finalize(e.ciphertext);return i},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=r.kdf={},B=_.OpenSSL={execute:function(t,e,r,n){n||(n=o.random(8));var i=c.create({keySize:e+r}).compute(t,n),f=o.create(i.words.slice(e),4*r);return i.sigBytes=4*e,g.create({key:i,iv:f,salt:n})}},E=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:B}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=w.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);n.iv=i.iv;var o=w.decrypt.call(this,t,e,i.key,n);return o}})}()})},{"./core":21}],21:[function(t,e,r){!function(t,n){"object"==typeof r?e.exports=r=n():"function"==typeof define&&define.amd?define([],n):t.CryptoJS=n()}(this,function(){var t=t||function(t,e){var r={},n=r.lib={},i=n.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var r=new t;return e&&r.mixIn(e),r.hasOwnProperty("init")||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=n.WordArray=i.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||s).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;i>o;o++){var f=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=f<<24-(n+o)%4*8}else if(r.length>65535)for(var o=0;i>o;o+=4)e[n+o>>>2]=r[o>>>2];else e.push.apply(e,r);return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r=[],n=0;e>n;n+=4)r.push(4294967296*t.random()|0);return new o.init(r,e)}}),f=r.enc={},s=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;r>i;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;e>n;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(r,e/2)}},a=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;r>i;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;e>n;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(r,e)}},u=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},c=n.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,f=this.blockSize,s=4*f,a=i/s;a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0);var u=a*f,c=t.min(4*u,i);if(u){for(var h=0;u>h;h+=f)this._doProcessBlock(n,h);var p=n.splice(0,u);r.sigBytes-=c}return new o.init(p,c)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=(n.Hasher=c.extend({cfg:i.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}}),r.algo={});return r}(Math);return t})},{}],22:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(){{var e=t,r=e.lib,n=r.WordArray,i=e.enc;i.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;r>o;o+=3)for(var f=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,a=e[o+2>>>2]>>>24-(o+2)%4*8&255,u=f<<16|s<<8|a,c=0;4>c&&r>o+.75*c;c++)i.push(n.charAt(u>>>6*(3-c)&63));var h=n.charAt(64);if(h)for(;i.length%4;)i.push(h);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=r.charAt(64);if(i){var o=t.indexOf(i);-1!=o&&(e=o)}for(var f=[],s=0,a=0;e>a;a++)if(a%4){var u=r.indexOf(t.charAt(a-1))<>>6-a%4*2;f[s>>>2]|=(u|c)<<24-s%4*8,s++}return n.create(f,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}}(),t.enc.Base64})},{"./core":21}],23:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(t){return t<<8&4278255360|t>>>8&16711935}{var r=t,n=r.lib,i=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;r>i;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;e>n;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}}}o.Utf16LE={stringify:function(t){for(var r=t.words,n=t.sigBytes,i=[],o=0;n>o;o+=2){var f=e(r[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(f))}return i.join("")},parse:function(t){for(var r=t.length,n=[],o=0;r>o;o++)n[o>>>1]|=e(t.charCodeAt(o)<<16-o%2*16);return i.create(n,2*r)}}}(),t.enc.Utf16})},{"./core":21}],24:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./sha1"),t("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,f=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:f,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=r.hasher.create(),o=i.create(),f=o.words,s=r.keySize,a=r.iterations;f.lengthc;c++)u=n.finalize(u),n.reset();o.concat(u)}return o.sigBytes=4*s,o}});e.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)}}(),t.EvpKDF})},{"./core":21,"./hmac":26,"./sha1":45}],25:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){{var e=t,r=e.lib,n=r.CipherParams,i=e.enc,o=i.Hex,f=e.format;f.Hex={stringify:function(t){return t.ciphertext.toString(o)},parse:function(t){var e=o.parse(t);return n.create({ciphertext:e})}}}}(),t.format.Hex})},{"./cipher-core":20,"./core":21}],26:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){!function(){{var e=t,r=e.lib,n=r.Base,i=e.enc,o=i.Utf8,f=e.algo;f.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),f=this._iKey=e.clone(),s=i.words,a=f.words,u=0;r>u;u++)s[u]^=1549556828,a[u]^=909522486;i.sigBytes=f.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);e.reset();var n=e.finalize(this._oKey.clone().concat(r));return n}})}}()})},{"./core":21}],27:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./x64-core"),t("./lib-typedarrays"),t("./enc-utf16"),t("./enc-base64"),t("./md5"),t("./sha1"),t("./sha256"),t("./sha224"),t("./sha512"),t("./sha384"),t("./sha3"),t("./ripemd160"),t("./hmac"),t("./pbkdf2"),t("./evpkdf"),t("./cipher-core"),t("./mode-cfb"),t("./mode-ctr"),t("./mode-ctr-gladman"),t("./mode-ofb"),t("./mode-ecb"),t("./pad-ansix923"),t("./pad-iso10126"),t("./pad-iso97971"),t("./pad-zeropadding"),t("./pad-nopadding"),t("./format-hex"),t("./aes"),t("./tripledes"),t("./rc4"),t("./rabbit"),t("./rabbit-legacy")):"function"==typeof define&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],i):i(n.CryptoJS)}(this,function(t){return t})},{"./aes":19,"./cipher-core":20,"./core":21,"./enc-base64":22,"./enc-utf16":23,"./evpkdf":24,"./format-hex":25,"./hmac":26,"./lib-typedarrays":28,"./md5":29,"./mode-cfb":30,"./mode-ctr":32,"./mode-ctr-gladman":31,"./mode-ecb":33,"./mode-ofb":34,"./pad-ansix923":35,"./pad-iso10126":36,"./pad-iso97971":37,"./pad-nopadding":38,"./pad-zeropadding":39,"./pbkdf2":40,"./rabbit":42,"./rabbit-legacy":41,"./rc4":43,"./ripemd160":44,"./sha1":45,"./sha224":46,"./sha256":47,"./sha3":48,"./sha384":49,"./sha512":50,"./tripledes":51,"./x64-core":52}],28:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,r=e.lib,n=r.WordArray,i=n.init,o=n.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,r=[],n=0;e>n;n++)r[n>>>2]|=t[n]<<24-n%4*8;i.call(this,r,e)}else i.apply(this,arguments)};o.prototype=n}}(),t.lib.WordArray})},{"./core":21}],29:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(e){function r(t,e,r,n,i,o,f){var s=t+(e&r|~e&n)+i+f;return(s<>>32-o)+e}function n(t,e,r,n,i,o,f){var s=t+(e&n|r&~n)+i+f;return(s<>>32-o)+e}function i(t,e,r,n,i,o,f){var s=t+(e^r^n)+i+f;return(s<>>32-o)+e}function o(t,e,r,n,i,o,f){var s=t+(r^(e|~n))+i+f;return(s<>>32-o)+e}var f=t,s=f.lib,a=s.WordArray,u=s.Hasher,c=f.algo,h=[];!function(){for(var t=0;64>t;t++)h[t]=4294967296*e.abs(e.sin(t+1))|0}();var p=c.MD5=u.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var f=0;16>f;f++){var s=e+f,a=t[s];t[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var u=this._hash.words,c=t[e+0],p=t[e+1],l=t[e+2],d=t[e+3],v=t[e+4],y=t[e+5],g=t[e+6],m=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],B=t[e+11],E=t[e+12],S=t[e+13],I=t[e+14],x=t[e+15],A=u[0],k=u[1],O=u[2],P=u[3];A=r(A,k,O,P,c,7,h[0]),P=r(P,A,k,O,p,12,h[1]),O=r(O,P,A,k,l,17,h[2]),k=r(k,O,P,A,d,22,h[3]),A=r(A,k,O,P,v,7,h[4]),P=r(P,A,k,O,y,12,h[5]),O=r(O,P,A,k,g,17,h[6]),k=r(k,O,P,A,m,22,h[7]),A=r(A,k,O,P,b,7,h[8]),P=r(P,A,k,O,w,12,h[9]),O=r(O,P,A,k,_,17,h[10]),k=r(k,O,P,A,B,22,h[11]),A=r(A,k,O,P,E,7,h[12]),P=r(P,A,k,O,S,12,h[13]),O=r(O,P,A,k,I,17,h[14]),k=r(k,O,P,A,x,22,h[15]),A=n(A,k,O,P,p,5,h[16]),P=n(P,A,k,O,g,9,h[17]),O=n(O,P,A,k,B,14,h[18]),k=n(k,O,P,A,c,20,h[19]),A=n(A,k,O,P,y,5,h[20]),P=n(P,A,k,O,_,9,h[21]),O=n(O,P,A,k,x,14,h[22]),k=n(k,O,P,A,v,20,h[23]),A=n(A,k,O,P,w,5,h[24]),P=n(P,A,k,O,I,9,h[25]),O=n(O,P,A,k,d,14,h[26]),k=n(k,O,P,A,b,20,h[27]),A=n(A,k,O,P,S,5,h[28]),P=n(P,A,k,O,l,9,h[29]),O=n(O,P,A,k,m,14,h[30]),k=n(k,O,P,A,E,20,h[31]),A=i(A,k,O,P,y,4,h[32]),P=i(P,A,k,O,b,11,h[33]),O=i(O,P,A,k,B,16,h[34]),k=i(k,O,P,A,I,23,h[35]),A=i(A,k,O,P,p,4,h[36]),P=i(P,A,k,O,v,11,h[37]),O=i(O,P,A,k,m,16,h[38]),k=i(k,O,P,A,_,23,h[39]),A=i(A,k,O,P,S,4,h[40]),P=i(P,A,k,O,c,11,h[41]),O=i(O,P,A,k,d,16,h[42]),k=i(k,O,P,A,g,23,h[43]),A=i(A,k,O,P,w,4,h[44]),P=i(P,A,k,O,E,11,h[45]),O=i(O,P,A,k,x,16,h[46]),k=i(k,O,P,A,l,23,h[47]),A=o(A,k,O,P,c,6,h[48]),P=o(P,A,k,O,m,10,h[49]),O=o(O,P,A,k,I,15,h[50]),k=o(k,O,P,A,y,21,h[51]),A=o(A,k,O,P,E,6,h[52]),P=o(P,A,k,O,d,10,h[53]),O=o(O,P,A,k,_,15,h[54]),k=o(k,O,P,A,p,21,h[55]),A=o(A,k,O,P,b,6,h[56]),P=o(P,A,k,O,x,10,h[57]),O=o(O,P,A,k,g,15,h[58]),k=o(k,O,P,A,S,21,h[59]),A=o(A,k,O,P,v,6,h[60]),P=o(P,A,k,O,B,10,h[61]),O=o(O,P,A,k,l,15,h[62]),k=o(k,O,P,A,w,21,h[63]),u[0]=u[0]+A|0,u[1]=u[1]+k|0,u[2]=u[2]+O|0,u[3]=u[3]+P|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),f=n;r[(i+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[(i+64>>>9<<4)+14]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,a=s.words,u=0;4>u;u++){var c=a[u];a[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});f.MD5=u._createHelper(p),f.HmacMD5=u._createHmacHelper(p)}(Math),t.MD5})},{"./core":21}],30:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.mode.CFB=function(){function e(t,e,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else var o=this._prevBlock;n.encryptBlock(o,0);for(var f=0;r>f;f++)t[e+f]^=o[f]}var r=t.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i,n),this._prevBlock=t.slice(r,r+i)}}),r.Decryptor=r.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);e.call(this,t,r,i,n),this._prevBlock=o}}),r}(),t.mode.CFB})},{"./cipher-core":20,"./core":21}],31:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.mode.CTRGladman=function(){function e(t){if(255===(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var n=t.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,f=this._counter;o&&(f=this._counter=o.slice(0),this._iv=void 0),r(f);var s=f.slice(0);n.encryptBlock(s,0);for(var a=0;i>a;a++)t[e+a]^=s[a]}});return n.Decryptor=i,n}(),t.mode.CTRGladman})},{"./cipher-core":20,"./core":21}],32:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var f=o.slice(0);r.encryptBlock(f,0),o[n-1]=o[n-1]+1|0;for(var s=0;n>s;s++)t[e+s]^=f[s]}});return e.Decryptor=r,e}(),t.mode.CTR})},{"./cipher-core":20,"./core":21}],33:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB})},{"./cipher-core":20,"./core":21}],34:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var f=0;n>f;f++)t[e+f]^=o[f]}});return e.Decryptor=r,e}(),t.mode.OFB})},{"./cipher-core":20,"./core":21}],35:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923})},{"./cipher-core":20,"./core":21}],36:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126})},{"./cipher-core":20,"./core":21}],37:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})},{"./cipher-core":20,"./core":21}],38:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})},{"./cipher-core":20,"./core":21}],39:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){for(var e=t.words,r=t.sigBytes-1;!(e[r>>>2]>>>24-r%4*8&255);)r--;t.sigBytes=r+1}},t.pad.ZeroPadding})},{"./cipher-core":20,"./core":21}],40:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./sha1"),t("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,f=o.SHA1,s=o.HMAC,a=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:f,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),f=i.create([1]),a=o.words,u=f.words,c=r.keySize,h=r.iterations;a.lengthy;y++){v=n.finalize(v),n.reset();for(var g=v.words,m=0;d>m;m++)l[m]^=g[m]}o.concat(p),u[0]++}return o.sigBytes=4*c,o}});e.PBKDF2=function(t,e,r){return a.create(r).compute(t,e)}}(),t.PBKDF2})},{"./core":21,"./hmac":26,"./sha1":45}],41:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(){for(var t=this._X,e=this._C,r=0;8>r;r++)s[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(var r=0;8>r;r++){var n=t[r]+e[r],i=65535&n,o=n>>>16,f=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=f^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}var r=t,n=r.lib,i=n.StreamCipher,o=r.algo,f=[],s=[],a=[],u=o.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,r=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;4>o;o++)e.call(this);for(var o=0;8>o;o++)i[o]^=n[o+4&7];if(r){var f=r.words,s=f[0],a=f[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&c,p=c<<16|65535&u;i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=p,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=p;for(var o=0;4>o;o++)e.call(this)}},_doProcessBlock:function(t,r){var n=this._X;e.call(this),f[0]=n[0]^n[5]>>>16^n[3]<<16,f[1]=n[2]^n[7]>>>16^n[5]<<16,f[2]=n[4]^n[1]>>>16^n[7]<<16,f[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;4>i;i++)f[i]=16711935&(f[i]<<8|f[i]>>>24)|4278255360&(f[i]<<24|f[i]>>>8),t[r+i]^=f[i]},blockSize:4,ivSize:2});r.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})},{"./cipher-core":20,"./core":21,"./enc-base64":22,"./evpkdf":24,"./md5":29}],42:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(){for(var t=this._X,e=this._C,r=0;8>r;r++)s[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(var r=0;8>r;r++){var n=t[r]+e[r],i=65535&n,o=n>>>16,f=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=f^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}var r=t,n=r.lib,i=n.StreamCipher,o=r.algo,f=[],s=[],a=[],u=o.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,r=this.cfg.iv,n=0;4>n;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;4>n;n++)e.call(this);for(var n=0;8>n;n++)o[n]^=i[n+4&7];if(r){var f=r.words,s=f[0],a=f[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&c,p=c<<16|65535&u;o[0]^=u,o[1]^=h,o[2]^=c,o[3]^=p,o[4]^=u,o[5]^=h,o[6]^=c,o[7]^=p;for(var n=0;4>n;n++)e.call(this)}},_doProcessBlock:function(t,r){var n=this._X;e.call(this),f[0]=n[0]^n[5]>>>16^n[3]<<16,f[1]=n[2]^n[7]>>>16^n[5]<<16,f[2]=n[4]^n[1]>>>16^n[7]<<16,f[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;4>i;i++)f[i]=16711935&(f[i]<<8|f[i]>>>24)|4278255360&(f[i]<<24|f[i]>>>8),t[r+i]^=f[i]},blockSize:4,ivSize:2});r.Rabbit=i._createHelper(u)}(),t.Rabbit})},{"./cipher-core":20,"./core":21,"./enc-base64":22,"./evpkdf":24,"./md5":29}],43:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;4>i;i++){e=(e+1)%256,r=(r+t[e])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}var r=t,n=r.lib,i=n.StreamCipher,o=r.algo,f=o.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;256>i;i++)n[i]=i; +for(var i=0,o=0;256>i;i++){var f=i%r,s=e[f>>>2]>>>24-f%4*8&255;o=(o+n[i]+s)%256;var a=n[i];n[i]=n[o],n[o]=a}this._i=this._j=0},_doProcessBlock:function(t,r){t[r]^=e.call(this)},keySize:8,ivSize:0});r.RC4=i._createHelper(f);var s=o.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)e.call(this)}});r.RC4Drop=i._createHelper(s)}(),t.RC4})},{"./cipher-core":20,"./core":21,"./enc-base64":22,"./evpkdf":24,"./md5":29}],44:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(t,e,r){return t^e^r}function r(t,e,r){return t&e|~t&r}function n(t,e,r){return(t|~e)^r}function i(t,e,r){return t&r|e&~r}function o(t,e,r){return t^(e|~r)}function f(t,e){return t<>>32-e}var s=t,a=s.lib,u=a.WordArray,c=a.Hasher,h=s.algo,p=u.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=u.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=u.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=u.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=u.create([0,1518500249,1859775393,2400959708,2840853838]),g=u.create([1352829926,1548603684,1836072691,2053994217,0]),m=h.RIPEMD160=c.extend({_doReset:function(){this._hash=u.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,s){for(var a=0;16>a;a++){var u=s+a,c=t[u];t[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var h,m,b,w,_,B,E,S,I,x,A=this._hash.words,k=y.words,O=g.words,P=p.words,T=l.words,H=d.words,D=v.words;B=h=A[0],E=m=A[1],S=b=A[2],I=w=A[3],x=_=A[4];for(var C,a=0;80>a;a+=1)C=h+t[s+P[a]]|0,C+=16>a?e(m,b,w)+k[0]:32>a?r(m,b,w)+k[1]:48>a?n(m,b,w)+k[2]:64>a?i(m,b,w)+k[3]:o(m,b,w)+k[4],C=0|C,C=f(C,H[a]),C=C+_|0,h=_,_=w,w=f(b,10),b=m,m=C,C=B+t[s+T[a]]|0,C+=16>a?o(E,S,I)+O[0]:32>a?i(E,S,I)+O[1]:48>a?n(E,S,I)+O[2]:64>a?r(E,S,I)+O[3]:e(E,S,I)+O[4],C=0|C,C=f(C,D[a]),C=C+x|0,B=x,x=I,I=f(S,10),S=E,E=C;C=A[1]+b+I|0,A[1]=A[2]+w+x|0,A[2]=A[3]+_+B|0,A[3]=A[4]+h+E|0,A[4]=A[0]+m+S|0,A[0]=C},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,f=0;5>f;f++){var s=o[f];o[f]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=c.clone.call(this);return t._hash=this._hash.clone(),t}});s.RIPEMD160=c._createHelper(m),s.HmacRIPEMD160=c._createHmacHelper(m)}(Math),t.RIPEMD160})},{"./core":21}],45:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,f=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],u=0;80>u;u++){if(16>u)f[u]=0|t[e+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var h=(n<<5|n>>>27)+a+f[u];h+=20>u?(i&o|~i&s)+1518500249:40>u?(i^o^s)+1859775393:60>u?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),e[(n+64>>>9<<4)+15]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1})},{"./core":21}],46:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./sha256")):"function"==typeof define&&define.amd?define(["./core","./sha256"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,o=i.SHA256,f=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(f),e.HmacSHA224=o._createHmacHelper(f)}(),t.SHA224})},{"./core":21,"./sha256":47}],47:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,f=r.algo,s=[],a=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;r>=n;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;64>i;)t(n)&&(8>i&&(s[i]=r(e.pow(n,.5))),a[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],c=f.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],f=r[3],s=r[4],c=r[5],h=r[6],p=r[7],l=0;64>l;l++){if(16>l)u[l]=0|t[e+l];else{var d=u[l-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[l-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[l]=v+u[l-7]+g+u[l-16]}var m=s&c^~s&h,b=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),B=p+_+m+a[l]+u[l],E=w+b;p=h,h=c,c=s,s=f+B|0,f=o,o=i,i=n,n=B+E|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+f|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=e.floor(n/4294967296),r[(i+64>>>9<<4)+15]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),t.SHA256})},{"./core":21}],48:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],i):i(n.CryptoJS)}(this,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,f=r.x64,s=f.Word,a=r.algo,u=[],c=[],h=[];!function(){for(var t=1,e=0,r=0;24>r;r++){u[t+5*e]=(r+1)*(r+2)/2%64;var n=e%5,i=(2*t+3*e)%5;t=n,e=i}for(var t=0;5>t;t++)for(var e=0;5>e;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,f=0;24>f;f++){for(var a=0,p=0,l=0;7>l;l++){if(1&o){var d=(1<d?p^=1<t;t++)p[t]=s.create()}();var l=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;25>e;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;n>i;i++){var o=t[e+2*i],f=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8);var s=r[i];s.high^=f,s.low^=o}for(var a=0;24>a;a++){for(var l=0;5>l;l++){for(var d=0,v=0,y=0;5>y;y++){var s=r[l+5*y];d^=s.high,v^=s.low}var g=p[l];g.high=d,g.low=v}for(var l=0;5>l;l++)for(var m=p[(l+4)%5],b=p[(l+1)%5],w=b.high,_=b.low,d=m.high^(w<<1|_>>>31),v=m.low^(_<<1|w>>>31),y=0;5>y;y++){var s=r[l+5*y];s.high^=d,s.low^=v}for(var B=1;25>B;B++){var s=r[B],E=s.high,S=s.low,I=u[B];if(32>I)var d=E<>>32-I,v=S<>>32-I;else var d=S<>>64-I,v=E<>>64-I;var x=p[c[B]];x.high=d,x.low=v}var A=p[0],k=r[0];A.high=k.high,A.low=k.low;for(var l=0;5>l;l++)for(var y=0;5>y;y++){var B=l+5*y,s=r[B],O=p[B],P=p[(l+1)%5+5*y],T=p[(l+2)%5+5*y];s.high=O.high^~P.high&T.high,s.low=O.low^~P.low&T.low}var s=r[0],H=h[a];s.high^=H.high,s.low^=H.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(8*this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var f=this._state,s=this.cfg.outputLength/8,a=s/8,u=[],c=0;a>c;c++){var h=f[c],p=h.high,l=h.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(l),u.push(p)}return new i.init(u,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;25>r;r++)e[r]=e[r].clone();return t}});r.SHA3=o._createHelper(l),r.HmacSHA3=o._createHmacHelper(l)}(Math),t.SHA3})},{"./core":21,"./x64-core":52}],49:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./x64-core"),t("./sha512")):"function"==typeof define&&define.amd?define(["./core","./x64-core","./sha512"],i):i(n.CryptoJS)}(this,function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,f=o.SHA512,s=o.SHA384=f.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=f._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=f._createHelper(s),e.HmacSHA384=f._createHmacHelper(s)}(),t.SHA384})},{"./core":21,"./sha512":50,"./x64-core":52}],50:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(){return f.create.apply(f,arguments)}var r=t,n=r.lib,i=n.Hasher,o=r.x64,f=o.Word,s=o.WordArray,a=r.algo,u=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],c=[];!function(){for(var t=0;80>t;t++)c[t]=e()}();var h=a.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],f=r[3],s=r[4],a=r[5],h=r[6],p=r[7],l=n.high,d=n.low,v=i.high,y=i.low,g=o.high,m=o.low,b=f.high,w=f.low,_=s.high,B=s.low,E=a.high,S=a.low,I=h.high,x=h.low,A=p.high,k=p.low,O=l,P=d,T=v,H=y,D=g,C=m,U=b,R=w,L=_,z=B,M=E,N=S,F=I,j=x,q=A,K=k,G=0;80>G;G++){var V=c[G];if(16>G)var J=V.high=0|t[e+2*G],W=V.low=0|t[e+2*G+1];else{var Y=c[G-15],X=Y.high,Z=Y.low,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,$=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),te=c[G-2],ee=te.high,re=te.low,ne=(ee>>>19|re<<13)^(ee<<3|re>>>29)^ee>>>6,ie=(re>>>19|ee<<13)^(re<<3|ee>>>29)^(re>>>6|ee<<26),oe=c[G-7],fe=oe.high,se=oe.low,ae=c[G-16],ue=ae.high,ce=ae.low,W=$+se,J=Q+fe+($>>>0>W>>>0?1:0),W=W+ie,J=J+ne+(ie>>>0>W>>>0?1:0),W=W+ce,J=J+ue+(ce>>>0>W>>>0?1:0);V.high=J,V.low=W}var he=L&M^~L&F,pe=z&N^~z&j,le=O&T^O&D^T&D,de=P&H^P&C^H&C,ve=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),ye=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),ge=(L>>>14|z<<18)^(L>>>18|z<<14)^(L<<23|z>>>9),me=(z>>>14|L<<18)^(z>>>18|L<<14)^(z<<23|L>>>9),be=u[G],we=be.high,_e=be.low,Be=K+me,Ee=q+ge+(K>>>0>Be>>>0?1:0),Be=Be+pe,Ee=Ee+he+(pe>>>0>Be>>>0?1:0),Be=Be+_e,Ee=Ee+we+(_e>>>0>Be>>>0?1:0),Be=Be+W,Ee=Ee+J+(W>>>0>Be>>>0?1:0),Se=ye+de,Ie=ve+le+(ye>>>0>Se>>>0?1:0);q=F,K=j,F=M,j=N,M=L,N=z,z=R+Be|0,L=U+Ee+(R>>>0>z>>>0?1:0)|0,U=D,R=C,D=T,C=H,T=O,H=P,P=Be+Se|0,O=Ee+Ie+(Be>>>0>P>>>0?1:0)|0}d=n.low=d+P,n.high=l+O+(P>>>0>d>>>0?1:0),y=i.low=y+H,i.high=v+T+(H>>>0>y>>>0?1:0),m=o.low=m+C,o.high=g+D+(C>>>0>m>>>0?1:0),w=f.low=w+R,f.high=b+U+(R>>>0>w>>>0?1:0),B=s.low=B+z,s.high=_+L+(z>>>0>B>>>0?1:0),S=a.low=S+N,a.high=E+M+(N>>>0>S>>>0?1:0),x=h.low=x+j,h.high=I+F+(j>>>0>x>>>0?1:0),k=p.low=k+K,p.high=A+q+(K>>>0>k>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),e[(n+128>>>10<<5)+31]=r,t.sigBytes=4*e.length,this._process();var i=this._hash.toX32();return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});r.SHA512=i._createHelper(h),r.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})},{"./core":21,"./x64-core":52}],51:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(n.CryptoJS)}(this,function(t){return function(){function e(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<n;n++){var i=a[n]-1;r[n]=e[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],f=0;16>f;f++){for(var s=o[f]=[],h=c[f],n=0;24>n;n++)s[n/6|0]|=r[(u[n]-1+h)%28]<<31-n%6,s[4+(n/6|0)]|=r[28+(u[n+24]-1+h)%28]<<31-n%6;s[0]=s[0]<<1|s[0]>>>31;for(var n=1;7>n;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],n=0;16>n;n++)p[n]=o[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,n,i){this._lBlock=t[n],this._rBlock=t[n+1],e.call(this,4,252645135),e.call(this,16,65535),r.call(this,2,858993459),r.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;16>o;o++){for(var f=i[o],s=this._lBlock,a=this._rBlock,u=0,c=0;8>c;c++)u|=h[c][((a^f[c])&p[c])>>>0];this._lBlock=a,this._rBlock=s^u}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,e.call(this,1,1431655765),r.call(this,8,16711935),r.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),t[n]=this._lBlock,t[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=f._createHelper(l);var d=s.TripleDES=f.extend({_doReset:function(){var t=this._key,e=t.words;this._des1=l.createEncryptor(o.create(e.slice(0,2))),this._des2=l.createEncryptor(o.create(e.slice(2,4))),this._des3=l.createEncryptor(o.create(e.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=f._createHelper(d)}(),t.TripleDES})},{"./cipher-core":20,"./core":21,"./enc-base64":22,"./evpkdf":24,"./md5":29}],52:[function(t,e,r){!function(n,i){"object"==typeof r?e.exports=r=i(t("./core")):"function"==typeof define&&define.amd?define(["./core"],i):i(n.CryptoJS)}(this,function(t){return function(e){{var r=t,n=r.lib,i=n.Base,o=n.WordArray,f=r.x64={};f.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),f.WordArray=i.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;e>n;n++){var i=t[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;r>n;n++)e[n]=e[n].clone();return t}})}}(),t})},{"./core":21}],53:[function(t,e){function r(t,e,r,n,f,s,a){this.p=t,this.a=e,this.b=r,this.G=o.fromAffine(this,n,f),this.n=s,this.h=a,this.infinity=new o(this,null,null,i.ZERO),this.pOverFour=t.add(i.ONE).shiftRight(2)}var n=t("assert"),i=t("bigi"),o=t("./point");r.prototype.pointFromX=function(t,e){var r=e.pow(3).add(this.a.multiply(e)).add(this.b).mod(this.p),n=r.modPow(this.pOverFour,this.p),i=n;return n.isEven()^!t&&(i=this.p.subtract(i)),o.fromAffine(this,e,i)},r.prototype.isInfinity=function(t){return t===this.infinity?!0:0===t.z.signum()&&0!==t.y.signum()},r.prototype.isOnCurve=function(t){if(this.isInfinity(t))return!0;var e=t.affineX,r=t.affineY,n=this.a,i=this.b,o=this.p;if(e.signum()<0||e.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var f=r.square().mod(o),s=e.pow(3).add(n.multiply(e)).add(i).mod(o);return f.equals(s)},r.prototype.validate=function(t){n(!this.isInfinity(t),"Point is at infinity"),n(this.isOnCurve(t),"Point is not on the curve");var e=t.multiply(this.n);return n(this.isInfinity(e),"Point is not a scalar multiple of G"),!0},e.exports=r},{"./point":57,assert:58,bigi:3}],54:[function(t,e){e.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp224r1:{p:"ffffffffffffffffffffffffffffffff000000000000000000000001",a:"fffffffffffffffffffffffffffffffefffffffffffffffffffffffe",b:"b4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4",n:"ffffffffffffffffffffffffffff16a2e0b8f03e13dd29455c5c2a3d",h:"01",Gx:"b70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21",Gy:"bd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},{}],55:[function(t,e){var r=t("./point"),n=t("./curve"),i=t("./names");e.exports={Curve:n,Point:r,getCurveByName:i}},{"./curve":53,"./names":56,"./point":57}],56:[function(t,e){function r(t){var e=i[t];if(!e)return null;var r=new n(e.p,16),f=new n(e.a,16),s=new n(e.b,16),a=new n(e.n,16),u=new n(e.h,16),c=new n(e.Gx,16),h=new n(e.Gy,16);return new o(r,f,s,c,h,a,u)}var n=t("bigi"),i=t("./curves"),o=t("./curve");e.exports=r},{"./curve":53,"./curves":54,bigi:3}],57:[function(t,e){(function(r){function n(t,e,r,n){i.notStrictEqual(n,void 0,"Missing Z coordinate"),this.curve=t,this.x=e,this.y=r,this.z=n,this._zInv=null,this.compressed=!0}var i=t("assert"),o=t("bigi"),f=o.valueOf(3);Object.defineProperty(n.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(n.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(n.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),n.fromAffine=function(t,e,r){return new n(t,e,r,o.ONE)},n.prototype.equals=function(t){if(t===this)return!0;if(this.curve.isInfinity(this))return this.curve.isInfinity(t);if(this.curve.isInfinity(t))return this.curve.isInfinity(this);var e=t.y.multiply(this.z).subtract(this.y.multiply(t.z)).mod(this.curve.p);if(0!==e.signum())return!1;var r=t.x.multiply(this.z).subtract(this.x.multiply(t.z)).mod(this.curve.p);return 0===r.signum()},n.prototype.negate=function(){var t=this.curve.p.subtract(this.y);return new n(this.curve,this.x,t,this.z)},n.prototype.add=function(t){if(this.curve.isInfinity(this))return t;if(this.curve.isInfinity(t))return this;var e=this.x,r=this.y,i=t.x,o=t.y,s=o.multiply(this.z).subtract(r.multiply(t.z)).mod(this.curve.p),a=i.multiply(this.z).subtract(e.multiply(t.z)).mod(this.curve.p);if(0===a.signum())return 0===s.signum()?this.twice():this.curve.infinity;var u=a.square(),c=u.multiply(a),h=e.multiply(u),p=s.square().multiply(this.z),l=p.subtract(h.shiftLeft(1)).multiply(t.z).subtract(c).multiply(a).mod(this.curve.p),d=h.multiply(f).multiply(s).subtract(r.multiply(c)).subtract(p.multiply(s)).multiply(t.z).add(s.multiply(c)).mod(this.curve.p),v=c.multiply(this.z).multiply(t.z).mod(this.curve.p);return new n(this.curve,l,d,v)},n.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var t=this.x,e=this.y,r=e.multiply(this.z),i=r.multiply(e).mod(this.curve.p),o=this.curve.a,s=t.square().multiply(f); +0!==o.signum()&&(s=s.add(this.z.square().multiply(o))),s=s.mod(this.curve.p);var a=s.square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.p),u=s.multiply(f).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new n(this.curve,a,u,c)},n.prototype.multiply=function(t){if(this.curve.isInfinity(this))return this;if(0===t.signum())return this.curve.infinity;for(var e=t,r=e.multiply(f),n=this.negate(),i=this,o=r.bitLength()-2;o>0;--o){i=i.twice();var s=r.testBit(o),a=e.testBit(o);s!=a&&(i=i.add(s?this:n))}return i},n.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.infinity,o=this.add(e);n>=0;){i=i.twice();var f=t.testBit(n),s=r.testBit(n);f?i=i.add(s?o:this):s&&(i=i.add(e)),--n}return i},n.prototype.getEncoded=function(t){if(void 0==t&&(t=this.compressed),this.curve.isInfinity(this))return new r("00","hex");var e,n=this.affineX,i=this.affineY,o=Math.floor((this.curve.p.bitLength()+7)/8);return t?(e=new r(1+o),e.writeUInt8(i.isEven()?2:3,0)):(e=new r(1+o+o),e.writeUInt8(4,0),i.toBuffer(o).copy(e,1+o)),n.toBuffer(o).copy(e,1),e},n.decodeFrom=function(t,e){var r,f=e.readUInt8(0),s=4!==f,a=o.fromBuffer(e.slice(1,33)),u=Math.floor((t.p.bitLength()+7)/8);if(s){i.equal(e.length,u+1,"Invalid sequence length"),i(2===f||3===f,"Invalid sequence tag");var c=3===f;r=t.pointFromX(c,a)}else{i.equal(e.length,1+u+u,"Invalid sequence length");var h=o.fromBuffer(e.slice(1+u));r=n.fromAffine(t,a,h)}return r.compressed=s,r},n.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},e.exports=n}).call(this,t("buffer").Buffer)},{assert:58,bigi:3,buffer:62}],58:[function(t,e){function r(t,e){return p.isUndefined(e)?""+e:!p.isNumber(e)||!isNaN(e)&&isFinite(e)?p.isFunction(e)||p.isRegExp(e)?e.toString():e:e.toString()}function n(t,e){return p.isString(t)?t.length=0;n--)if(i[n]!=o[n])return!1;for(n=i.length-1;n>=0;n--)if(r=i[n],!s(t[r],e[r]))return!1;return!0}function c(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function h(t,e,r,n){var i;p.isString(r)&&(n=r,r=null);try{e()}catch(f){i=f}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o(i,r,"Missing expected exception"+n),!t&&c(i,r)&&o(i,r,"Got unwanted exception"+n),t&&i&&r&&!c(i,r)||!t&&i)throw i}var p=t("util/"),l=Array.prototype.slice,d=Object.prototype.hasOwnProperty,v=e.exports=f;v.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=i(this),this.generatedMessage=!0);var e=t.stackStartFunction||o;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,f=e.name,s=n.indexOf("\n"+f);if(s>=0){var a=n.indexOf("\n",s+1);n=n.substring(a+1)}this.stack=n}}},p.inherits(v.AssertionError,Error),v.fail=o,v.ok=f,v.equal=function(t,e,r){t!=e&&o(t,e,r,"==",v.equal)},v.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",v.notEqual)},v.deepEqual=function(t,e,r){s(t,e)||o(t,e,r,"deepEqual",v.deepEqual)},v.notDeepEqual=function(t,e,r){s(t,e)&&o(t,e,r,"notDeepEqual",v.notDeepEqual)},v.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",v.strictEqual)},v.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",v.notStrictEqual)},v.throws=function(){h.apply(this,[!0].concat(l.call(arguments)))},v.doesNotThrow=function(){h.apply(this,[!1].concat(l.call(arguments)))},v.ifError=function(t){if(t)throw t};var y=Object.keys||function(t){var e=[];for(var r in t)d.call(t,r)&&e.push(r);return e}},{"util/":60}],59:[function(t,e){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],60:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(e)?n.showHidden=e:e&&r._extend(n,e),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),a(n,t,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function f(t){return t}function s(t){var e={};return t.forEach(function(t){e[t]=!0}),e}function a(t,e,n){if(t.customInspect&&e&&x(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return b(i)||(i=a(t,i,n)),i}var o=u(t,e);if(o)return o;var f=Object.keys(e),v=s(f);if(t.showHidden&&(f=Object.getOwnPropertyNames(e)),I(e)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return c(e);if(0===f.length){if(x(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(B(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(S(e))return t.stylize(Date.prototype.toString.call(e),"date");if(I(e))return c(e)}var g="",m=!1,w=["{","}"];if(d(e)&&(m=!0,w=["[","]"]),x(e)){var _=e.name?": "+e.name:"";g=" [Function"+_+"]"}if(B(e)&&(g=" "+RegExp.prototype.toString.call(e)),S(e)&&(g=" "+Date.prototype.toUTCString.call(e)),I(e)&&(g=" "+c(e)),0===f.length&&(!m||0==e.length))return w[0]+g+w[1];if(0>n)return B(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var E;return E=m?h(t,e,n,v,f):f.map(function(r){return p(t,e,n,v,r,m)}),t.seen.pop(),l(E,g,w)}function u(t,e){if(_(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):v(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i){for(var o=[],f=0,s=e.length;s>f;++f)o.push(T(e,String(f))?p(t,e,r,n,String(f),!0):"");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,r,n,i,!0))}),o}function p(t,e,r,n,i,o){var f,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),T(n,i)||(f="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?a(t,u.value,null):a(t,u.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),_(f)){if(o&&i.match(/^\d+$/))return s;f=JSON.stringify(""+i),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=t.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=t.stylize(f,"string"))}return f+": "+s}function l(t,e,r){var n=0,i=t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return null==t}function m(t){return"number"==typeof t}function b(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function _(t){return void 0===t}function B(t){return E(t)&&"[object RegExp]"===k(t)}function E(t){return"object"==typeof t&&null!==t}function S(t){return E(t)&&"[object Date]"===k(t)}function I(t){return E(t)&&("[object Error]"===k(t)||t instanceof Error)}function x(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function k(t){return Object.prototype.toString.call(t)}function O(t){return 10>t?"0"+t.toString(10):t.toString(10)}function P(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),U[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var H=/%[sdj%]/g;r.format=function(t){if(!b(t)){for(var e=[],r=0;r=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}}),s=n[r];o>r;s=n[++r])f+=y(s)||!E(s)?" "+s:" "+i(s);return f},r.deprecate=function(t,i){function o(){if(!f){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),f=!0}return t.apply(this,arguments)}if(_(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(e.noDeprecation===!0)return t;var f=!1;return o};var D,C={};r.debuglog=function(t){if(_(D)&&(D=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!C[t])if(new RegExp("\\b"+t+"\\b","i").test(D)){var n=e.pid;C[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else C[t]=function(){};return C[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=v,r.isNull=y,r.isNullOrUndefined=g,r.isNumber=m,r.isString=b,r.isSymbol=w,r.isUndefined=_,r.isRegExp=B,r.isObject=E,r.isDate=S,r.isError=I,r.isFunction=x,r.isPrimitive=A,r.isBuffer=t("./support/isBuffer");var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",P(),r.format.apply(r,arguments))},r.inherits=t("inherits"),r._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":59,"1YiZ5S":72,inherits:71}],61:[function(){},{}],62:[function(t,e,r){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);var i=typeof t;if("base64"===e&&"string"===i)for(t=k(t);t.length%4!==0;)t+="=";var o;if("number"===i)o=P(t);else if("string"===i)o=n.byteLength(t,e);else{if("object"!==i)throw new Error("First argument needs to be a number, array or string.");o=P(t.length)}var f;n._useTypedArrays?f=n._augment(new Uint8Array(o)):(f=this,f.length=o,f._isBuffer=!0);var s;if(n._useTypedArrays&&"number"==typeof t.byteLength)f._set(t);else if(H(t))for(s=0;o>s;s++)f[s]=n.isBuffer(t)?t.readUInt8(s):t[s];else if("string"===i)f.write(t,0,e);else if("number"===i&&!n._useTypedArrays&&!r)for(s=0;o>s;s++)f[s]=0;return f}function i(t,e,r,i){r=Number(r)||0;var o=t.length-r;i?(i=Number(i),i>o&&(i=o)):i=o;var f=e.length;q(f%2===0,"Invalid hex string"),i>f/2&&(i=f/2);for(var s=0;i>s;s++){var a=parseInt(e.substr(2*s,2),16);q(!isNaN(a),"Invalid hex string"),t[r+s]=a}return n._charsWritten=2*s,s}function o(t,e,r,i){var o=n._charsWritten=z(C(e),t,r,i);return o}function f(t,e,r,i){var o=n._charsWritten=z(U(e),t,r,i);return o}function s(t,e,r,n){return f(t,e,r,n)}function a(t,e,r,i){var o=n._charsWritten=z(L(e),t,r,i);return o}function u(t,e,r,i){var o=n._charsWritten=z(R(e),t,r,i);return o}function c(t,e,r){return K.fromByteArray(0===e&&r===t.length?t:t.slice(e,r))}function h(t,e,r){var n="",i="";r=Math.min(t.length,r);for(var o=e;r>o;o++)t[o]<=127?(n+=M(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return n+M(i)}function p(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(t[i]);return n}function l(t,e,r){return p(t,e,r)}function d(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=e;r>o;o++)i+=D(t[o]);return i}function v(t,e,r){for(var n=t.slice(e,r),i="",o=0;o=i)){var o;return r?(o=t[e],i>e+1&&(o|=t[e+1]<<8)):(o=t[e]<<8,i>e+1&&(o|=t[e+1])),o}}function g(t,e,r,n){n||(q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+3=i)){var o;return r?(i>e+2&&(o=t[e+2]<<16),i>e+1&&(o|=t[e+1]<<8),o|=t[e],i>e+3&&(o+=t[e+3]<<24>>>0)):(i>e+1&&(o=t[e+1]<<16),i>e+2&&(o|=t[e+2]<<8),i>e+3&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}}function m(t,e,r,n){n||(q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+1=i)){var o=y(t,e,r,!0),f=32768&o;return f?-1*(65535-o+1):o}}function b(t,e,r,n){n||(q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+3=i)){var o=g(t,e,r,!0),f=2147483648&o;return f?-1*(4294967295-o+1):o}}function w(t,e,r,n){return n||(q("boolean"==typeof r,"missing or invalid endian"),q(e+3=o))for(var f=0,s=Math.min(o-r,2);s>f;f++)t[r+f]=(e&255<<8*(n?f:1-f))>>>8*(n?f:1-f)}function E(t,e,r,n,i){i||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof n,"missing or invalid endian"),q(void 0!==r&&null!==r,"missing offset"),q(r+3=o))for(var f=0,s=Math.min(o-r,4);s>f;f++)t[r+f]=e>>>8*(n?f:3-f)&255}function S(t,e,r,n,i){i||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof n,"missing or invalid endian"),q(void 0!==r&&null!==r,"missing offset"),q(r+1=o||(e>=0?B(t,e,r,n,i):B(t,65535+e+1,r,n,i))}function I(t,e,r,n,i){i||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof n,"missing or invalid endian"),q(void 0!==r&&null!==r,"missing offset"),q(r+3=o||(e>=0?E(t,e,r,n,i):E(t,4294967295+e+1,r,n,i))}function x(t,e,r,n,i){i||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof n,"missing or invalid endian"),q(void 0!==r&&null!==r,"missing offset"),q(r+3=o||G.write(t,e,r,n,23,4)}function A(t,e,r,n,i){i||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof n,"missing or invalid endian"),q(void 0!==r&&null!==r,"missing offset"),q(r+7=o||G.write(t,e,r,n,52,8)}function k(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function O(t,e,r){return"number"!=typeof t?r:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function P(t){return t=~~Math.ceil(+t),0>t?0:t}function T(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function H(t){return T(t)||n.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function D(t){return 16>t?"0"+t.toString(16):t.toString(16)}function C(t){for(var e=[],r=0;r=n)e.push(t.charCodeAt(r));else{var i=r;n>=55296&&57343>=n&&r++;for(var o=encodeURIComponent(t.slice(i,r+1)).substr(1).split("%"),f=0;f>8,n=e%256,i.push(n),i.push(r);return i}function L(t){return K.toByteArray(t)}function z(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);i++)e[i+r]=t[i];return i}function M(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function N(t,e){q("number"==typeof t,"cannot write a non-number as a number"),q(t>=0,"specified a negative value for writing an unsigned value"),q(e>=t,"value is larger than maximum value for type"),q(Math.floor(t)===t,"value has a fractional component")}function F(t,e,r){q("number"==typeof t,"cannot write a non-number as a number"),q(e>=t,"value larger than maximum allowed value"),q(t>=r,"value smaller than minimum allowed value"),q(Math.floor(t)===t,"value has a fractional component")}function j(t,e,r){q("number"==typeof t,"cannot write a non-number as a number"),q(e>=t,"value larger than maximum allowed value"),q(t>=r,"value smaller than minimum allowed value")}function q(t,e){if(!t)throw new Error(e||"Failed assertion")}var K=t("base64-js"),G=t("ieee754");r.Buffer=n,r.SlowBuffer=n,r.INSPECT_MAX_BYTES=50,n.poolSize=8192,n._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(r){return!1}}(),n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},n.byteLength=function(t,e){var r;switch(t+="",e||"utf8"){case"hex":r=t.length/2;break;case"utf8":case"utf-8":r=C(t).length;break;case"ascii":case"binary":case"raw":r=t.length;break;case"base64":r=L(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*t.length;break;default:throw new Error("Unknown encoding")}return r},n.concat=function(t,e){if(q(T(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new n(0);if(1===t.length)return t[0];var r;if("number"!=typeof e)for(e=0,r=0;rh&&(r=h)):r=h,n=String(n||"utf8").toLowerCase();var p;switch(n){case"hex":p=i(this,t,e,r);break;case"utf8":case"utf-8":p=o(this,t,e,r);break;case"ascii":p=f(this,t,e,r);break;case"binary":p=s(this,t,e,r);break;case"base64":p=a(this,t,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=u(this,t,e,r);break;default:throw new Error("Unknown encoding")}return p},n.prototype.toString=function(t,e,r){var n=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,r=void 0!==r?Number(r):r=n.length,r===e)return"";var i;switch(t){case"hex":i=d(n,e,r);break;case"utf8":case"utf-8":i=h(n,e,r);break;case"ascii":i=p(n,e,r);break;case"binary":i=l(n,e,r);break;case"base64":i=c(n,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=v(n,e,r);break;default:throw new Error("Unknown encoding")}return i},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.copy=function(t,e,r,i){var o=this;if(r||(r=0),i||0===i||(i=this.length),e||(e=0),i!==r&&0!==t.length&&0!==o.length){q(i>=r,"sourceEnd < sourceStart"),q(e>=0&&e=0&&r=0&&i<=o.length,"sourceEnd out of bounds"),i>this.length&&(i=this.length),t.length-ef||!n._useTypedArrays)for(var s=0;f>s;s++)t[s+e]=this[s+r];else t._set(this.subarray(r,r+f),e)}},n.prototype.slice=function(t,e){var r=this.length;if(t=O(t,r,0),e=O(e,r,r),n._useTypedArrays)return n._augment(this.subarray(t,e));for(var i=e-t,o=new n(i,void 0,!0),f=0;i>f;f++)o[f]=this[f+t];return o},n.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},n.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},n.prototype.readUInt8=function(t,e){return e||(q(void 0!==t&&null!==t,"missing offset"),q(t=this.length?void 0:this[t]},n.prototype.readUInt16LE=function(t,e){return y(this,t,!0,e)},n.prototype.readUInt16BE=function(t,e){return y(this,t,!1,e)},n.prototype.readUInt32LE=function(t,e){return g(this,t,!0,e)},n.prototype.readUInt32BE=function(t,e){return g(this,t,!1,e)},n.prototype.readInt8=function(t,e){if(e||(q(void 0!==t&&null!==t,"missing offset"),q(t=this.length)){var r=128&this[t];return r?-1*(255-this[t]+1):this[t]}},n.prototype.readInt16LE=function(t,e){return m(this,t,!0,e)},n.prototype.readInt16BE=function(t,e){return m(this,t,!1,e)},n.prototype.readInt32LE=function(t,e){return b(this,t,!0,e)},n.prototype.readInt32BE=function(t,e){return b(this,t,!1,e)},n.prototype.readFloatLE=function(t,e){return w(this,t,!0,e)},n.prototype.readFloatBE=function(t,e){return w(this,t,!1,e)},n.prototype.readDoubleLE=function(t,e){return _(this,t,!0,e)},n.prototype.readDoubleBE=function(t,e){return _(this,t,!1,e)},n.prototype.writeUInt8=function(t,e,r){r||(q(void 0!==t&&null!==t,"missing value"),q(void 0!==e&&null!==e,"missing offset"),q(e=this.length||(this[e]=t)},n.prototype.writeUInt16LE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.writeUInt16BE=function(t,e,r){B(this,t,e,!1,r)},n.prototype.writeUInt32LE=function(t,e,r){E(this,t,e,!0,r)},n.prototype.writeUInt32BE=function(t,e,r){E(this,t,e,!1,r)},n.prototype.writeInt8=function(t,e,r){r||(q(void 0!==t&&null!==t,"missing value"),q(void 0!==e&&null!==e,"missing offset"),q(e=this.length||(t>=0?this.writeUInt8(t,e,r):this.writeUInt8(255+t+1,e,r))},n.prototype.writeInt16LE=function(t,e,r){S(this,t,e,!0,r)},n.prototype.writeInt16BE=function(t,e,r){S(this,t,e,!1,r)},n.prototype.writeInt32LE=function(t,e,r){I(this,t,e,!0,r)},n.prototype.writeInt32BE=function(t,e,r){I(this,t,e,!1,r)},n.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!0,r)},n.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!1,r)},n.prototype.writeDoubleLE=function(t,e,r){A(this,t,e,!0,r)},n.prototype.writeDoubleBE=function(t,e,r){A(this,t,e,!1,r)},n.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),q("number"==typeof t&&!isNaN(t),"value is not a number"),q(r>=e,"end < start"),r!==e&&0!==this.length){q(e>=0&&e=0&&r<=this.length,"end out of bounds");for(var n=e;r>n;n++)this[n]=t}},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=D(this[n]),n===r.INSPECT_MAX_BYTES){t[n+1]="...";break}return""},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n._useTypedArrays)return new n(this).buffer;for(var t=new Uint8Array(this.length),e=0,r=t.length;r>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var V=n.prototype;n._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=V.get,t.set=V.set,t.write=V.write,t.toString=V.toString,t.toLocaleString=V.toString,t.toJSON=V.toJSON,t.copy=V.copy,t.slice=V.slice,t.readUInt8=V.readUInt8,t.readUInt16LE=V.readUInt16LE,t.readUInt16BE=V.readUInt16BE,t.readUInt32LE=V.readUInt32LE,t.readUInt32BE=V.readUInt32BE,t.readInt8=V.readInt8,t.readInt16LE=V.readInt16LE,t.readInt16BE=V.readInt16BE,t.readInt32LE=V.readInt32LE,t.readInt32BE=V.readInt32BE,t.readFloatLE=V.readFloatLE,t.readFloatBE=V.readFloatBE,t.readDoubleLE=V.readDoubleLE,t.readDoubleBE=V.readDoubleBE,t.writeUInt8=V.writeUInt8,t.writeUInt16LE=V.writeUInt16LE,t.writeUInt16BE=V.writeUInt16BE,t.writeUInt32LE=V.writeUInt32LE,t.writeUInt32BE=V.writeUInt32BE,t.writeInt8=V.writeInt8,t.writeInt16LE=V.writeInt16LE,t.writeInt16BE=V.writeInt16BE,t.writeInt32LE=V.writeInt32LE,t.writeInt32BE=V.writeInt32BE,t.writeFloatLE=V.writeFloatLE,t.writeFloatBE=V.writeFloatBE,t.writeDoubleLE=V.writeDoubleLE,t.writeDoubleBE=V.writeDoubleBE,t.fill=V.fill,t.inspect=V.inspect,t.toArrayBuffer=V.toArrayBuffer,t}},{"base64-js":63,ieee754:64}],63:[function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===f?62:e===s?63:a>e?-1:a+10>e?e-a+26+26:c+26>e?e-c:u+26>e?e-u+26:void 0}function r(t){function r(t){u[h++]=t}var n,i,f,s,a,u;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;a="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,u=new o(3*t.length/4-a),f=a>0?t.length-4:t.length;var h=0;for(n=0,i=0;f>n;n+=4,i+=3)s=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===a?(s=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&s)):1===a&&(s=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(s>>8&255),r(255&s)),u}function i(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,o,f,s=t.length%3,a="";for(i=0,f=t.length-s;f>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],a+=r(o);switch(s){case 1:o=t[t.length-1],a+=e(o>>2),a+=e(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=e(o>>10),a+=e(o>>4&63),a+=e(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,f="+".charCodeAt(0),s="/".charCodeAt(0),a="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],64:[function(t,e,r){r.read=function(t,e,r,n,i){var o,f,s=8*i-n-1,a=(1<>1,c=-7,h=r?i-1:0,p=r?-1:1,l=t[e+h];for(h+=p,o=l&(1<<-c)-1,l>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(f=o&(1<<-c)-1,o>>=-c,c+=n;c>0;f=256*f+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===a)return f?0/0:1/0*(l?-1:1);f+=Math.pow(2,n),o-=u}return(l?-1:1)*f*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var f,s,a,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,d=n?1:-1,v=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(s=isNaN(e)?1:0,f=c):(f=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-f))<1&&(f--,a*=2),e+=f+h>=1?p/a:p*Math.pow(2,1-h),e*a>=2&&(f++,a/=2),f+h>=c?(s=0,f=c):f+h>=1?(s=(e*a-1)*Math.pow(2,i),f+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),f=0));i>=8;t[r+l]=255&s,l+=d,s/=256,i-=8);for(f=f<0;t[r+l]=255&f,l+=d,f/=256,u-=8);t[r+l-d]|=128*v}},{}],65:[function(t,e){function r(t,e){if(t.length%f!==0){var r=t.length+(f-t.length%f);t=o.concat([t,s],r)}for(var n=[],i=e?t.readInt32BE:t.readInt32LE,a=0;al?e=t(e):e.lengtho;o++)n[o]=54^e[o],i[o]=92^e[o];var f=t(s.concat([n,r]));return t(s.concat([i,f]))}function i(t,e){t=t||"sha1";var r=p[t],i=[],f=0;return r||o("algorithm:",t,"is not yet supported"),{update:function(t){return s.isBuffer(t)||(t=new s(t)),i.push(t),f+=t.length,this},digest:function(t){var o=s.concat(i),f=e?n(r,e,o):r(o);return i=null,t?f.toString(t):f}}}function o(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function f(t,e){for(var r in t)e(t[r],r)}var s=t("buffer").Buffer,a=t("./sha"),u=t("./sha256"),c=t("./rng"),h=t("./md5"),p={sha1:a,sha256:u,md5:h},l=64,d=new s(l);d.fill(0),r.createHash=function(t){return i(t)},r.createHmac=function(t,e){return i(t,e)},r.randomBytes=function(t,e){if(!e||!e.call)return new s(c(t));try{e.call(this,void 0,new s(c(t)))}catch(r){e(r)}},f(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(t){r[t]=function(){o("sorry,",t,"is not implemented yet")}})},{"./md5":67,"./rng":68,"./sha":69,"./sha256":70,buffer:62}],67:[function(t,e){function r(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var r=1732584193,n=-271733879,u=-1732584194,c=271733878,h=0;h>16)+(e>>16)+(r>>16);return n<<16|65535&r}function u(t,e){return t<>>32-e}var c=t("./helpers");e.exports=function(t){return c.hash(t,r,16)}},{"./helpers":65}],68:[function(t,e){!function(){var t,r,n=this;t=function(t){for(var e,e,r=new Array(t),n=0;t>n;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r},n.crypto&&crypto.getRandomValues&&(r=function(t){var e=new Uint8Array(t);return crypto.getRandomValues(e),e}),e.exports=r||t}()},{}],69:[function(t,e){function r(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var r=Array(80),s=1732584193,a=-271733879,u=-1732584194,c=271733878,h=-1009589776,p=0;pm;m++){r[m]=16>m?t[p+m]:f(r[m-3]^r[m-8]^r[m-14]^r[m-16],1);var b=o(o(f(s,5),n(m,a,u,c)),o(o(h,r[m]),i(m)));h=c,c=u,u=f(a,30),a=s,s=b}s=o(s,l),a=o(a,d),u=o(u,v),c=o(c,y),h=o(h,g)}return Array(s,a,u,c,h)}function n(t,e,r,n){return 20>t?e&r|~e&n:40>t?e^r^n:60>t?e&r|e&n|r&n:e^r^n}function i(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function o(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r}function f(t,e){return t<>>32-e}var s=t("./helpers");e.exports=function(t){return s.hash(t,r,20,!0)}},{"./helpers":65}],70:[function(t,e){var r=t("./helpers"),n=function(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r},i=function(t,e){return t>>>e|t<<32-e},o=function(t,e){return t>>>e},f=function(t,e,r){return t&e^~t&r},s=function(t,e,r){return t&e^t&r^e&r},a=function(t){return i(t,2)^i(t,13)^i(t,22)},u=function(t){return i(t,6)^i(t,11)^i(t,25)},c=function(t){return i(t,7)^i(t,18)^o(t,3)},h=function(t){return i(t,17)^i(t,19)^o(t,10)},p=function(t,e){var r,i,o,p,l,d,v,y,g,m,b,w,_=new Array(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),B=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),E=new Array(64);t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var g=0;gm;m++)E[m]=16>m?t[m+g]:n(n(n(h(E[m-2]),E[m-7]),c(E[m-15])),E[m-16]),b=n(n(n(n(y,u(l)),f(l,d,v)),_[m]),E[m]),w=n(a(r),s(r,i,o)),y=v,v=d,d=l,l=n(p,b),p=o,o=i,i=r,r=n(b,w);B[0]=n(r,B[0]),B[1]=n(i,B[1]),B[2]=n(o,B[2]),B[3]=n(p,B[3]),B[4]=n(l,B[4]),B[5]=n(d,B[5]),B[6]=n(v,B[6]),B[7]=n(y,B[7])}return B};e.exports=function(t){return r.hash(t,p,32,!0)}},{"./helpers":65}],71:[function(t,e){e.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],72:[function(t,e){function r(){}var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var n=r.shift();n()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}],73:[function(t,e){e.exports=t(59)},{}],74:[function(t,e){e.exports=t(60)},{"./support/isBuffer":73,"1YiZ5S":72,inherits:71}],75:[function(t,e){(function(r,n){!function(i){"use strict";function o(t,e){if(e=e||{type:"Array"},"undefined"!=typeof r&&"number"==typeof r.pid)return f(t,e);var n=window.crypto||window.msCrypto;if(!n)throw new Error("Your browser does not support window.crypto.");return s(t,e)}function f(e,r){var n=t("crypto"),i=n.randomBytes(e);switch(r.type){case"Array":return[].slice.call(i);case"Buffer":return i;case"Uint8Array":for(var o=new Uint8Array(e),f=0;e>f;++f)o[f]=i.readUInt8(f);return o;default:throw new Error(r.type+" is unsupported.")}}function s(t,e){var r=new Uint8Array(t),i=window.crypto||window.msCrypto;switch(i.getRandomValues(r),e.type){case"Array":return[].slice.call(r);case"Buffer":try{{new n(1)}}catch(o){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new n(r);case"Uint8Array":return r;default:throw new Error(e.type+" is unsupported.")}}"undefined"!=typeof define&&define.amd?define([],function(){return o}):"undefined"!=typeof e&&e.exports?e.exports=o:i.secureRandom=o,o.randomArray=function(t){return o(t,{type:"Array"})},o.randomUint8Array=function(t){return o(t,{type:"Uint8Array"})},o.randomBuffer=function(t){return o(t,{type:"Buffer"})}}(this)}).call(this,t("1YiZ5S"),t("buffer").Buffer)},{"1YiZ5S":72,buffer:62,crypto:61}],76:[function(t,e){(function(r){function n(t){for(var e in s){var r=s[e];if(t===r.pubKeyHash)return"pubkeyhash";if(t===r.scriptHash)return"scripthash"}}function i(t,e){o(r.isBuffer(t),"Expected Buffer, got "+t),o.strictEqual(t.length,20,"Invalid hash length"),o.strictEqual(255&e,e,"Invalid version byte"),this.hash=t,this.version=e}var o=t("assert"),f=t("bs58check"),s=t("./networks"),a=t("./scripts");i.fromBase58Check=function(t){var e=f.decode(t),r=e.readUInt8(0),n=e.slice(1);return new i(n,r)},i.fromOutputScript=function(t,e){e=e||s.bitcoin;var r=a.classifyOutput(t);return"pubkeyhash"===r?new i(t.chunks[2],e.pubKeyHash):"scripthash"===r?new i(t.chunks[1],e.scriptHash):void o(!1,r+" has no matching Address")},i.prototype.toBase58Check=function(){var t=new r(21);return t.writeUInt8(this.version,0),this.hash.copy(t,1),f.encode(t)},i.prototype.toOutputScript=function(){var t=n(this.version);return"pubkeyhash"===t?a.pubKeyHashOutput(this.hash):"scripthash"===t?a.scriptHashOutput(this.hash):void o(!1,this.toString()+" has no matching Script")},i.prototype.toString=i.prototype.toBase58Check,e.exports=i}).call(this,t("buffer").Buffer)},{"./networks":87,"./scripts":90,assert:58,bs58check:5,buffer:62}],77:[function(t,e){function r(t,e){h("number"==typeof t,"cannot write a non-number as a number"),h(t>=0,"specified a negative value for writing an unsigned value"),h(e>=t,"value is larger than maximum value for type"),h(Math.floor(t)===t,"value has a fractional component")}function n(t){return tt?2:65535>t?3:5}function i(t,e){var r,n,i=t.readUInt8(e);return ii?(r=i,n=1):254>i?(r=t.readUInt16LE(e+1),n=3):255>i?(r=t.readUInt32LE(e+1),n=5):(r=o(t,e+1),n=9),{number:r,size:n}}function s(t,e,r){var i=n(e);return 1===i?t.writeUInt8(e,r):2===i?(t.writeUInt8(p.OP_PUSHDATA1,r),t.writeUInt8(e,r+1)):3===i?(t.writeUInt8(p.OP_PUSHDATA2,r),t.writeUInt16LE(e,r+1)):(t.writeUInt8(p.OP_PUSHDATA4,r),t.writeUInt32LE(e,r+1)),i}function a(t,e,n){r(e,9007199254740991),t.writeInt32LE(-1&e,n),t.writeUInt32LE(Math.floor(e/4294967296),n+4)}function u(t){return 253>t?1:65536>t?3:4294967296>t?5:9}function c(t,e,r){var n=u(e);return 1===n?t.writeUInt8(e,r):3===n?(t.writeUInt8(253,r),t.writeUInt16LE(e,r+1)):5===n?(t.writeUInt8(254,r),t.writeUInt32LE(e,r+1)):(t.writeUInt8(255,r),a(t,e,r+1)),n}var h=t("assert"),p=t("./opcodes");e.exports={pushDataSize:n,readPushDataInt:i,readUInt64LE:o,readVarInt:f,varIntSize:u,writePushDataInt:s,writeUInt64LE:a,writeVarInt:c}},{"./opcodes":88,assert:58}],78:[function(t,e){(function(r){function n(t){o(r.isBuffer(t),"Expected Buffer, got",t);for(var e=[],n=0,i=0;n>>5]|=t[n]<<24-i%32;return new s.init(e,t.length)}function i(t){o(Array.isArray(t.words),"Expected WordArray, got"+t);var e=t.words,n=new r(4*e.length);return e.forEach(function(t,e){n.writeInt32BE(-1&t,4*e)}),n}var o=t("assert"),f=t("crypto-js"),s=f.lib.WordArray;e.exports={bufferToWordArray:n,wordArrayToBuffer:i}}).call(this,t("buffer").Buffer)},{assert:58,buffer:62,"crypto-js":27}],79:[function(t,e){(function(r){function n(t){return o(s(t))}function i(t){return s(s(t))}function o(t){return p.createHash("rmd160").update(t).digest()}function f(t){return p.createHash("sha1").update(t).digest()}function s(t){return p.createHash("sha256").update(t).digest()}function a(t,e){return p.createHmac("sha256",e).update(t).digest()}function u(t,e){c(r.isBuffer(t),"Expected Buffer for data, got "+t),c(r.isBuffer(e),"Expected Buffer for secret, got "+e);var n=l.bufferToWordArray(t),i=l.bufferToWordArray(e),o=h.HmacSHA512(n,i);return l.wordArrayToBuffer(o)}var c=t("assert"),h=t("crypto-js"),p=t("crypto"),l=t("./convert");e.exports={ripemd160:o,sha1:f,sha256:s,hash160:n,hash256:i,HmacSHA256:a,HmacSHA512:u}}).call(this,t("buffer").Buffer)},{"./convert":78,assert:58,buffer:62,crypto:9,"crypto-js":27}],80:[function(t,e){(function(r){function n(t,e,n){u(r.isBuffer(e),"Hash must be a Buffer, not "+e),u.equal(e.length,32,"Hash must be 256 bit"),u(n instanceof h,"Private key must be a BigInteger");var i=n.toBuffer(32),o=new r(32),f=new r(32);f.fill(1),o.fill(0),o=c.HmacSHA256(r.concat([f,new r([0]),i,e]),o),f=c.HmacSHA256(f,o),o=c.HmacSHA256(r.concat([f,new r([1]),i,e]),o),f=c.HmacSHA256(f,o),f=c.HmacSHA256(f,o);for(var s=h.fromBuffer(f);s.signum()<=0||s.compareTo(t.n)>=0;)o=c.HmacSHA256(r.concat([f,new r([0])]),o),f=c.HmacSHA256(f,o),s=h.fromBuffer(f);return s}function i(t,e,r){var i=n(t,e,r),o=t.n,f=t.G,s=f.multiply(i),a=h.fromBuffer(e),c=s.affineX.mod(o);u.notEqual(c.signum(),0,"Invalid R value");var l=i.modInverse(o).multiply(a.add(r.multiply(c))).mod(o);u.notEqual(l.signum(),0,"Invalid S value");var d=o.shiftRight(1);return l.compareTo(d)>0&&(l=o.subtract(l)),new p(c,l)}function o(t,e,r,n){var i=h.fromBuffer(e);return f(t,i,r,n)}function f(t,e,r,n){var i=t.n,o=t.G,f=r.r,s=r.s;if(0===f.signum()||f.compareTo(i)>=0)return!1;if(0===s.signum()||s.compareTo(i)>=0)return!1;var a=s.modInverse(i),u=e.multiply(a).mod(i),c=f.multiply(a).mod(i),h=o.multiplyTwo(u,n,c),p=h.affineX.mod(i);return p.equals(f)}function s(t,e,r,n){u.strictEqual(3&n,n,"Recovery param is more than two bits");var i=r.r,o=r.s,f=1&n,s=n>>1,a=t.n,c=t.G,h=s?i.add(a):i,p=t.pointFromX(f,h),l=p.multiply(a);u(t.isInfinity(l),"nR is not a valid curve point");var d=e.negate().mod(a),v=i.modInverse(a),y=p.multiplyTwo(o,c,d).multiply(v);return t.validate(y),y}function a(t,e,r,n){for(var i=0;4>i;i++){var o=s(t,e,r,i);if(o.equals(n))return i}throw new Error("Unable to find valid recovery factor")}{var u=t("assert"),c=t("./crypto"),h=t("bigi"),p=t("./ecsignature");t("ecurve").Point}e.exports={calcPubKeyRecoveryParam:a,deterministicGenerateK:n,recoverPubKey:s,sign:i,verify:o,verifyRaw:f}}).call(this,t("buffer").Buffer)},{"./crypto":79,"./ecsignature":83,assert:58,bigi:3,buffer:62,ecurve:55}],81:[function(t,e){(function(r){function n(t,e){i(t.signum()>0,"Private key must be greater than 0"),i(t.compareTo(p.n)<0,"Private key must be less than the curve order");var r=p.G.multiply(t);this.d=t,this.pub=new c(r,e)}var i=t("assert"),o=t("bs58check"),f=t("./ecdsa"),s=t("./networks"),a=t("secure-random"),u=t("bigi"),c=t("./ecpubkey"),h=t("ecurve"),p=h.getCurveByName("secp256k1");n.fromWIF=function(t){var e=o.decode(t),r=!1;e=e.slice(1),33===e.length&&(i.strictEqual(e[32],1,"Invalid compression flag"),e=e.slice(0,-1),r=!0),i.equal(e.length,32,"Invalid WIF payload length");var f=u.fromBuffer(e);return new n(f,r)},n.makeRandom=function(t,e){e=e||a.randomBuffer;var o=e(32);i(r.isBuffer(o),"Expected Buffer, got "+o);var f=u.fromBuffer(o);return f=f.mod(p.n),new n(f,t)},n.prototype.toWIF=function(t){t=t||s.bitcoin;var e=this.pub.compressed?34:33,n=new r(e);return n.writeUInt8(t.wif,0),this.d.toBuffer(32).copy(n,1),this.pub.compressed&&n.writeUInt8(1,33),o.encode(n)},n.prototype.sign=function(t){return f.sign(p,t,this.d)},e.exports=n}).call(this,t("buffer").Buffer)},{"./ecdsa":80,"./ecpubkey":82,"./networks":87,assert:58,bigi:3,bs58check:5,buffer:62,ecurve:55,"secure-random":75}],82:[function(t,e){(function(r){function n(t,e){i(t instanceof u.Point,"Expected Point, got "+t),void 0==e&&(e=!0),i.strictEqual(typeof e,"boolean","Expected boolean, got "+e),this.compressed=e,this.Q=t}var i=t("assert"),o=t("./crypto"),f=t("./ecdsa"),s=t("./networks"),a=t("./address"),u=t("ecurve"),c=u.getCurveByName("secp256k1");n.fromBuffer=function(t){var e=u.Point.decodeFrom(c,t);return new n(e,e.compressed)},n.fromHex=function(t){return n.fromBuffer(new r(t,"hex"))},n.prototype.getAddress=function(t){return t=t||s.bitcoin,new a(o.hash160(this.toBuffer()),t.pubKeyHash)},n.prototype.verify=function(t,e){return f.verify(c,t,e,this.Q)},n.prototype.toBuffer=function(){return this.Q.getEncoded(this.compressed)},n.prototype.toHex=function(){return this.toBuffer().toString("hex")},e.exports=n}).call(this,t("buffer").Buffer)},{"./address":76,"./crypto":79,"./ecdsa":80,"./networks":87,assert:58,buffer:62,ecurve:55}],83:[function(t,e){(function(r){function n(t,e){i(t instanceof o,"Expected BigInteger, got "+t),i(e instanceof o,"Expected BigInteger, got "+e),this.r=t,this.s=e}var i=t("assert"),o=t("bigi");n.parseCompact=function(t){i.equal(t.length,65,"Invalid signature length");var e=t.readUInt8(0)-27;i.equal(e,7&e,"Invalid signature parameter");var r=!!(4&e);e=3&e;var f=o.fromBuffer(t.slice(1,33)),s=o.fromBuffer(t.slice(33));return{compressed:r,i:e,signature:new n(f,s)}},n.fromDER=function(t){i.equal(t.readUInt8(0),48,"Not a DER sequence"),i.equal(t.readUInt8(1),t.length-2,"Invalid sequence length"),i.equal(t.readUInt8(2),2,"Expected a DER integer");var e=t.readUInt8(3);i(e>0,"R length is zero");var r=4+e;i.equal(t.readUInt8(r),2,"Expected a DER integer (2)");var f=t.readUInt8(r+1);i(f>0,"S length is zero");var s=t.slice(4,r),a=t.slice(r+2);r+=2+f,e>1&&0===s.readUInt8(0)&&i(128&s.readUInt8(1),"R value excessively padded"),f>1&&0===a.readUInt8(0)&&i(128&a.readUInt8(1),"S value excessively padded"),i.equal(r,t.length,"Invalid DER encoding");var u=o.fromDERInteger(s),c=o.fromDERInteger(a);return i(u.signum()>=0,"R value is negative"),i(c.signum()>=0,"S value is negative"),new n(u,c)},n.parseScriptSignature=function(t){var e=t.readUInt8(t.length-1),r=-129&e;return i(r>0&&4>r,"Invalid hashType"),{signature:n.fromDER(t.slice(0,-1)),hashType:e}},n.prototype.toCompact=function(t,e){e&&(t+=4),t+=27;var n=new r(65);return n.writeUInt8(t,0),this.r.toBuffer(32).copy(n,1),this.s.toBuffer(32).copy(n,33),n},n.prototype.toDER=function(){var t=this.r.toDERInteger(),e=this.s.toDERInteger(),n=[];return n.push(2,t.length),n=n.concat(t),n.push(2,e.length),n=n.concat(e),n.unshift(48,n.length),new r(n)},n.prototype.toScriptSignature=function(t){var e=new r(1);return e.writeUInt8(t,0),r.concat([this.toDER(),e])},e.exports=n}).call(this,t("buffer").Buffer)},{assert:58,bigi:3,buffer:62}],84:[function(t,e){e.exports={Address:t("./address"),bufferutils:t("./bufferutils"),convert:t("./convert"),crypto:t("./crypto"),ecdsa:t("./ecdsa"),ECKey:t("./eckey"),ECPubKey:t("./ecpubkey"),ECSignature:t("./ecsignature"),Message:t("./message"),opcodes:t("./opcodes"),HDNode:t("./hdnode"),Script:t("./script"),scripts:t("./scripts"),Transaction:t("./transaction"),networks:t("./networks"),Wallet:t("./wallet")}},{"./address":76,"./bufferutils":77,"./convert":78,"./crypto":79,"./ecdsa":80,"./eckey":81,"./ecpubkey":82,"./ecsignature":83,"./hdnode":85,"./message":86,"./networks":87,"./opcodes":88,"./script":89,"./scripts":90,"./transaction":91,"./wallet":92}],85:[function(t,e){(function(r){function n(t){for(var e in a){var r=a[e];for(var n in r.bip32)if(t==r.bip32[n])return{isPrivate:"private"===n,network:r}}o(!1,"Could not find version "+t.toString(16))}function i(t,e,n){n=n||a.bitcoin,o(r.isBuffer(e),"Expected Buffer, got "+e),o(n.bip32,"Unknown BIP32 constants for network"),this.chainCode=e,this.depth=0,this.index=0,this.network=n,t instanceof u?(this.privKey=new c(t,!0),this.pubKey=this.privKey.pub):this.pubKey=new h(t,!0)}var o=t("assert"),f=t("bs58check"),s=t("./crypto"),a=t("./networks"),u=t("bigi"),c=t("./eckey"),h=t("./ecpubkey"),p=t("ecurve"),l=p.getCurveByName("secp256k1");i.MASTER_SECRET=new r("Bitcoin seed"),i.HIGHEST_BIT=2147483648,i.LENGTH=78,i.fromSeedBuffer=function(t,e){o(r.isBuffer(t),"Expected Buffer, got "+t),o(t.length>=16,"Seed should be at least 128 bits"),o(t.length<=64,"Seed should be at most 512 bits");var n=s.HmacSHA512(t,i.MASTER_SECRET),f=n.slice(0,32),a=n.slice(32),c=u.fromBuffer(f);return new i(c,a,e)},i.fromSeedHex=function(t,e){return i.fromSeedBuffer(new r(t,"hex"),e)},i.fromBase58=function(t){return i.fromBuffer(f.decode(t))},i.fromBuffer=function(t){o.strictEqual(t.length,i.LENGTH,"Invalid buffer length");var e=t.readUInt32BE(0),r=n(e),f=t.readUInt8(4),s=t.readUInt32BE(5);0===f&&o.strictEqual(s,0,"Invalid parent fingerprint");var a=t.readUInt32BE(9);o(f>0||0===a,"Invalid index");var c,h=t.slice(13,45);if(r.isPrivate){o.strictEqual(t.readUInt8(45),0,"Invalid private key");var d=t.slice(46,78),v=u.fromBuffer(d);c=new i(v,h,r.network)}else{var d=t.slice(45,78),y=p.Point.decodeFrom(l,d);o.equal(y.compressed,!0,"Invalid public key"),l.validate(y),c=new i(y,h,r.network)}return c.depth=f,c.index=a,c.parentFingerprint=s,c},i.fromHex=function(t){return i.fromBuffer(new r(t,"hex"))},i.prototype.getIdentifier=function(){return s.hash160(this.pubKey.toBuffer())},i.prototype.getFingerprint=function(){return this.getIdentifier().slice(0,4)},i.prototype.getAddress=function(){return this.pubKey.getAddress(this.network)},i.prototype.toBase58=function(t){return f.encode(this.toBuffer(t))},i.prototype.toBuffer=function(t){void 0==t&&(t=!!this.privKey);var e=t?this.network.bip32.private:this.network.bip32.public,n=new r(i.LENGTH);n.writeUInt32BE(e,0),n.writeUInt8(this.depth,4);var f=0===this.depth?0:this.parentFingerprint;return n.writeUInt32BE(f,5),n.writeUInt32BE(this.index,9),this.chainCode.copy(n,13),t?(o(this.privKey,"Missing private key"),n.writeUInt8(0,45),this.privKey.d.toBuffer(32).copy(n,46)):this.pubKey.toBuffer().copy(n,45),n},i.prototype.toHex=function(t){return this.toBuffer(t).toString("hex")},i.prototype.derive=function(t){var e=t>=i.HIGHEST_BIT,n=new r(4);n.writeUInt32BE(t,0);var f;e?(o(this.privKey,"Could not derive hardened child key"),f=r.concat([this.privKey.d.toBuffer(33),n])):f=r.concat([this.pubKey.toBuffer(),n]);var a=s.HmacSHA512(f,this.chainCode),c=a.slice(0,32),h=a.slice(32),p=u.fromBuffer(c);if(p.compareTo(l.n)>=0)return this.derive(t+1);var d;if(this.privKey){var v=p.add(this.privKey.d).mod(l.n);if(0===v.signum())return this.derive(t+1);d=new i(v,h,this.network)}else{var y=l.G.multiply(p).add(this.pubKey.Q);if(l.isInfinity(y))return this.derive(t+1);d=new i(y,h,this.network)}return d.depth=this.depth+1,d.index=t,d.parentFingerprint=this.getFingerprint().readUInt32BE(0),d},i.prototype.deriveHardened=function(t){return this.derive(t+i.HIGHEST_BIT)},i.prototype.toString=i.prototype.toBase58,e.exports=i}).call(this,t("buffer").Buffer)},{"./crypto":79,"./eckey":81,"./ecpubkey":82,"./networks":87,assert:58,bigi:3,bs58check:5,buffer:62,ecurve:55}],86:[function(t,e){(function(r){function n(t,e){var n=new r(e.magicPrefix),i=new r(t),o=new r(a.varIntSize(i.length));a.writeVarInt(o,i.length,0);var f=r.concat([n,o,i]);return u.hash256(f)}function i(t,e,r){r=r||h.bitcoin;var i=n(e,r),o=t.sign(i),f=s.fromBuffer(i),a=c.calcPubKeyRecoveryParam(v,f,o,t.pub.Q);return o.toCompact(a,t.pub.compressed)}function o(t,e,r,i){t instanceof f&&(t=t.toString()),i=i||h.bitcoin;var o=n(r,i),a=l.parseCompact(e),u=s.fromBuffer(o),d=c.recoverPubKey(v,u,a.signature,a.i),y=new p(d,a.compressed);return y.getAddress(i).toString()===t}var f=t("./address"),s=t("bigi"),a=t("./bufferutils"),u=t("./crypto"),c=t("./ecdsa"),h=t("./networks"),f=t("./address"),p=t("./ecpubkey"),l=t("./ecsignature"),d=t("ecurve"),v=d.getCurveByName("secp256k1");e.exports={magicHash:n,sign:i,verify:o}}).call(this,t("buffer").Buffer)},{"./address":76,"./bufferutils":77,"./crypto":79,"./ecdsa":80,"./ecpubkey":82,"./ecsignature":83,"./networks":87,bigi:3,buffer:62,ecurve:55}],87:[function(t,e){function r(t){return function(e){var r=n[t],i=r.feePerKb,o=e.toBuffer().length,f=i*Math.ceil(o/1e3);return void 0==r.dustSoftThreshold?f:(e.outs.forEach(function(t){t.values.OP_0&&i<=s.OP_PUSHDATA4){var f=o.readPushDataInt(t,r);r+=f.size;var a=t.slice(r,r+f.number);r+=f.number,e.push(a)}else e.push(i),r+=1}return new n(t,e)},n.fromChunks=function(t){i(Array.isArray(t),"Expected Array, got "+t);var e=t.reduce(function(t,e){return r.isBuffer(e)?t+o.pushDataSize(e.length)+e.length:t+1},0),f=new r(e),s=0;return t.forEach(function(t){r.isBuffer(t)?(s+=o.writePushDataInt(f,t.length,s),t.copy(f,s),s+=t.length):(f.writeUInt8(t,s),s+=1)}),i.equal(s,f.length,"Could not decode chunks"),new n(f,t)},n.fromHex=function(t){return n.fromBuffer(new r(t,"hex"))},n.EMPTY=n.fromChunks([]),n.prototype.getHash=function(){return f.hash160(this.buffer)},n.prototype.without=function(t){return n.fromChunks(this.chunks.filter(function(e){return e!==t}))};var a=[];for(var u in s){var c=s[u];a[c]=u}n.prototype.toASM=function(){return this.chunks.map(function(t){return r.isBuffer(t)?t.toString("hex"):a[t]}).join(" ")},n.prototype.toBuffer=function(){return this.buffer},n.prototype.toHex=function(){return this.toBuffer().toString("hex")},e.exports=n}).call(this,t("buffer").Buffer)},{"./bufferutils":77,"./crypto":79,"./opcodes":88,assert:58,buffer:62}],90:[function(t,e){(function(r){function n(t){return S(t instanceof O,"Expected Script, got ",t),a.call(t)?"pubkeyhash":p.call(t)?"scripthash":d.call(t)?"multisig":c.call(t)?"pubkey":v.call(t)?"nulldata":"nonstandard"}function i(t){return S(t instanceof O,"Expected Script, got ",t),s.call(t)?"pubkeyhash":h.call(t)?"scripthash":l.call(t)?"multisig":u.call(t)?"pubkey":"nonstandard"}function o(t){if(!r.isBuffer(t))return!1;try{x.Point.decodeFrom(A,t)}catch(e){if(!e.message.match(/Invalid sequence (length|tag)/))throw e;return!1}return!0}function f(t){if(!r.isBuffer(t))return!1;try{k.parseScriptSignature(t)}catch(e){if(!e.message.match(/Not a DER sequence|Invalid sequence length|Expected a DER integer|R length is zero|S length is zero|R value excessively padded|S value excessively padded|R value is negative|S value is negative|Invalid hashType/))throw e;return!1}return!0}function s(){return 2===this.chunks.length&&f(this.chunks[0])&&o(this.chunks[1])}function a(){return 5===this.chunks.length&&this.chunks[0]===I.OP_DUP&&this.chunks[1]===I.OP_HASH160&&r.isBuffer(this.chunks[2])&&20===this.chunks[2].length&&this.chunks[3]===I.OP_EQUALVERIFY&&this.chunks[4]===I.OP_CHECKSIG}function u(){return 1===this.chunks.length&&f(this.chunks[0])}function c(){return 2===this.chunks.length&&o(this.chunks[0])&&this.chunks[1]===I.OP_CHECKSIG}function h(){if(this.chunks.length<2)return!1;var t=this.chunks[this.chunks.length-1];if(!r.isBuffer(t))return!1;var e=O.fromChunks(this.chunks.slice(0,-1)),o=O.fromBuffer(t);return i(e)===n(o)}function p(){return 3===this.chunks.length&&this.chunks[0]===I.OP_HASH160&&r.isBuffer(this.chunks[1])&&20===this.chunks[1].length&&this.chunks[2]===I.OP_EQUAL}function l(){return this.chunks[0]===I.OP_0&&this.chunks.slice(1).every(f)}function d(){if(this.chunks<4)return!1;if(this.chunks[this.chunks.length-1]!==I.OP_CHECKMULTISIG)return!1;var t=this.chunks[0];if(t===I.OP_0)return!1;if(tI.OP_16)return!1;var e=this.chunks[this.chunks.length-2];if(e===I.OP_0)return!1;if(eI.OP_16)return!1;var r=t-(I.OP_1-1),n=e-(I.OP_1-1);if(r>n)return!1;var i=this.chunks.slice(1,-2);return n=t,"Not enough pubKeys provided");var r=e.map(function(t){return t.toBuffer()}),n=e.length;return O.fromChunks([].concat(I.OP_1-1+t,r,I.OP_1-1+n,I.OP_CHECKMULTISIG))}function w(t){return S(r.isBuffer(t),"Expected Buffer, got "+t),O.fromChunks([t])}function _(t,e){return S(r.isBuffer(t),"Expected Buffer, got "+t),O.fromChunks([t,e.toBuffer()])}function B(t,e){return O.fromChunks([].concat(t.chunks,e.toBuffer()))}function E(t,e){if(e){S(d.call(e));var r=e.chunks[0],n=r-(I.OP_1-1);S(n<=t.length,"Not enough signatures provided")}return O.fromChunks([].concat(I.OP_0,t))}var S=t("assert"),I=t("./opcodes"),x=t("ecurve"),A=x.getCurveByName("secp256k1"),k=t("./ecsignature"),O=t("./script");e.exports={classifyInput:i,classifyOutput:n,multisigInput:E,multisigOutput:b,pubKeyHashInput:_,pubKeyHashOutput:g,pubKeyInput:w,pubKeyOutput:y,scriptHashInput:B,scriptHashOutput:m}}).call(this,t("buffer").Buffer)},{"./ecsignature":83,"./opcodes":88,"./script":89,assert:58,buffer:62,ecurve:55}],91:[function(t,e){(function(r){function n(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}var i=t("assert"),o=t("./bufferutils"),f=t("./crypto"),s=t("./opcodes"),a=t("./scripts"),u=t("./address"),c=(t("./eckey"),t("./ecsignature")),h=t("./script");n.DEFAULT_SEQUENCE=4294967295,n.SIGHASH_ALL=1,n.SIGHASH_NONE=2,n.SIGHASH_SINGLE=3,n.SIGHASH_ANYONECANPAY=128,n.prototype.addInput=function(t,e,o){void 0==o&&(o=n.DEFAULT_SEQUENCE);var f;return"string"==typeof t?(f=new r(t,"hex"),Array.prototype.reverse.call(f)):f=t instanceof n?t.getHash():t,i(r.isBuffer(f),"Expected Transaction, txId or txHash, got "+t),i.equal(f.length,32,"Expected hash length of 32, got "+f.length),i.equal(typeof e,"number","Expected number index, got "+e),this.ins.push({hash:f,index:e,script:h.EMPTY,sequence:o})-1},n.prototype.addOutput=function(t,e){if("string"==typeof t&&(t=u.fromBase58Check(t)),t instanceof u){var r=t;t=r.toOutputScript()}return i(t instanceof h,"Expected Address or Script, got "+t),i.equal(typeof e,"number","Expected number value, got "+e),this.outs.push({script:t,value:e})-1},n.prototype.toBuffer=function(){function t(t){t.copy(a,u),u+=t.length}function e(t){a.writeUInt32LE(t,u),u+=4}function n(t){o.writeUInt64LE(a,t,u),u+=8}function i(t){var e=o.writeVarInt(a,t,u);u+=e}var f=this.ins.reduce(function(t,e){return t+(40+o.varIntSize(e.script.buffer.length)+e.script.buffer.length)},0),s=this.outs.reduce(function(t,e){return t+(8+o.varIntSize(e.script.buffer.length)+e.script.buffer.length)},0),a=new r(8+o.varIntSize(this.ins.length)+o.varIntSize(this.outs.length)+f+s),u=0;return e(this.version),i(this.ins.length),this.ins.forEach(function(r){t(r.hash),e(r.index),i(r.script.buffer.length),t(r.script.buffer),e(r.sequence)}),i(this.outs.length),this.outs.forEach(function(e){n(e.value),i(e.script.buffer.length),t(e.script.buffer)}),e(this.locktime),a},n.prototype.toHex=function(){return this.toBuffer().toString("hex")},n.prototype.hashForSignature=function(t,e,o){i(e>=0,"Invalid vin index"),i(ep;++p){var l=e(32),d=r(),v=s(),y=e(v),g=r();u.ins.push({hash:l,index:d,script:h.fromBuffer(y),sequence:g})}var m=s();for(p=0;m>p;++p){var b=f(),v=s(),y=e(v);u.outs.push({value:b,script:h.fromBuffer(y)})}return u.locktime=r(),i.equal(a,t.length,"Transaction has unexpected data"),u},n.fromHex=function(t){return n.fromBuffer(new r(t,"hex"))},n.prototype.sign=function(t,e,r){var n=e.pub.getAddress().toOutputScript(),i=this.signInput(t,n,e,r),o=a.pubKeyHashInput(i,e.pub);this.setInputScript(t,o)},n.prototype.signInput=function(t,e,r,i){i=i||n.SIGHASH_ALL;var o=this.hashForSignature(e,t,i),f=r.sign(o);return f.toScriptSignature(i)},n.prototype.setInputScript=function(t,e){this.ins[t].script=e},n.prototype.validateInput=function(t,e,r,n){var i=c.parseScriptSignature(n),o=this.hashForSignature(e,t,i.hashType);return r.verify(o,i.signature)},e.exports=n}).call(this,t("buffer").Buffer)},{"./address":76,"./bufferutils":77,"./crypto":79,"./eckey":81,"./ecsignature":83,"./opcodes":88,"./script":89,"./scripts":90,assert:58,buffer:62}],92:[function(t,e){(function(r){function n(t,e){function n(t){var e=t.from.split(":");return{hash:e[0],outputIndex:parseInt(e[1]),address:t.address,value:t.value,pending:t.pending}}function c(t){var e=t.hash,r=e+":"+t.outputIndex;return{from:r,address:t.address,value:t.value,pending:t.pending}}function h(t){var e;p(t.hash)&&(e="hash");var r=["outputIndex","address","value"];if(r.forEach(function(r){p(t[r])&&(e=r)}),e){var n=["Invalid unspent output: key",e,"is missing.","A valid unspent output must contain"];throw n.push(r.join(", ")),n.push("and hash"),new Error(n.join(" "))}}function p(t){return void 0==t}function l(t,n){var i=t.getId();t.outs.forEach(function(t,r){var o;try{o=s.fromOutputScript(t.script,e).toString()}catch(f){if(!f.message.match(/has no matching Address/))throw f}if(b(o)){var a=i+":"+r;_.outputs[a]={from:a,value:t.value,address:o,pending:n}}}),t.ins.forEach(function(t,e){var o=new r(t.hash);Array.prototype.reverse.call(o),o=o.toString("hex");var f=o+":"+t.index;f in _.outputs&&(n?(_.outputs[f].to=i+":"+e,_.outputs[f].pending=!0):delete _.outputs[f])})}function d(){var t=[];for(var e in _.outputs){var r=_.outputs[e];r.pending||t.push(r)}var n=t.sort(function(t,e){return e.value-t.value});return n}function v(t){var r=t.clone();return r.addOutput(y(),e.dustSoftThreshold||0),e.estimateFee(r)}function y(){return 0===_.changeAddresses.length&&_.generateChangeAddress(),_.changeAddresses[_.changeAddresses.length-1]}function g(t){return _.addresses.indexOf(t)>-1}function m(t){return _.changeAddresses.indexOf(t)>-1}function b(t){return g(t)||m(t)}e=e||o.bitcoin;var w=null,_=this,B=null,E=null,S=null;this.addresses=[],this.changeAddresses=[],this.outputs={},this.newMasterKey=function(t){t=t||new r(f(32)),w=a.fromSeedBuffer(t,e),B=w.deriveHardened(0),S=B.derive(0),E=B.derive(1),_.addresses=[],_.changeAddresses=[],_.outputs={}},this.newMasterKey(t),this.generateAddress=function(){var t=S.derive(this.addresses.length);return this.addresses.push(t.getAddress().toString()),this.addresses[this.addresses.length-1]},this.generateChangeAddress=function(){var t=E.derive(this.changeAddresses.length);return this.changeAddresses.push(t.getAddress().toString()),this.changeAddresses[this.changeAddresses.length-1]},this.getBalance=function(){return this.getUnspentOutputs().reduce(function(t,e){return t+e.value},0)},this.getUnspentOutputs=function(){var t=[];for(var e in this.outputs){var r=this.outputs[e];r.to||t.push(n(r))}return t},this.setUnspentOutputs=function(t){var e={};t.forEach(function(t){h(t);var r=c(t);e[r.from]=r}),this.outputs=e},this.processPendingTx=function(t){l(t,!0)},this.processConfirmedTx=function(t){l(t,!1)},this.createTx=function(t,r,n,o){i(r>e.dustThreshold,r+" must be above dust threshold ("+e.dustThreshold+" Satoshis)");var f=d(r),s=0,a=r,c=[],h=new u;h.addOutput(t,r);for(var p=0;p=a){var b=s-a;b>e.dustThreshold&&h.addOutput(o||y(),b);break}}return i(s>=a,"Not enough funds (incl. fee): "+s+" < "+a),this.signWith(h,c),h},this.signWith=function(t,e){return i.equal(t.ins.length,e.length,"Number of addresses must match number of transaction inputs"),e.forEach(function(e,r){var n=_.getPrivateKeyForAddress(e);t.sign(r,n)}),t},this.getMasterKey=function(){return w},this.getAccountZero=function(){return B},this.getInternalAccount=function(){return E},this.getExternalAccount=function(){return S},this.getPrivateKey=function(t){return S.derive(t).privKey},this.getInternalPrivateKey=function(t){return E.derive(t).privKey},this.getPrivateKeyForAddress=function(t){var e;if((e=this.addresses.indexOf(t))>-1)return this.getPrivateKey(e);if((e=this.changeAddresses.indexOf(t))>-1)return this.getInternalPrivateKey(e);throw new Error("Unknown address. Make sure the address is from the keychain and has been generated.")}}var i=t("assert"),o=t("./networks"),f=t("secure-random"),s=t("./address"),a=t("./hdnode"),u=t("./transaction");e.exports=n}).call(this,t("buffer").Buffer)},{"./address":76,"./hdnode":85,"./networks":87,"./transaction":91,assert:58,buffer:62,"secure-random":75}]},{},[84]); \ No newline at end of file diff --git a/package.json b/package.json index cc07c9f43..1471fcdc2 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,11 @@ "devDependencies": { "browserify": "^4.2.1", "coveralls": "~2.10.0", + "gulp": "^3.8.6", + "gulp-browserify": "^0.5.0", + "gulp-load-plugins": "^0.5.3", + "gulp-rename": "^1.2.0", + "gulp-uglify": "^0.3.1", "helloblock-js": "^0.2.1", "istanbul": "0.1.30", "jshint": "2.5.1",