MCPcopy
hub / github.com/willnewii/qiniuClient / I

Function I

static/dll/cos.js:1–1  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var cos_library=function(e){function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}var t={};return a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},a.n=function(e){var t=e&&e.__esModule?function(){return e['default']}:function(){return e};return a.d(t,'a',t),t},a.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},a.p='',a(a.s=159)}([function(e){e.exports=require('util')},function(e){e.exports=require('crypto')},function(e,a,t){function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e,a,t,o,i){throw new p.AssertionError({message:l.format('%s (%s) is required',e,a),actual:i===void 0?typeof o:i(o),expected:a,operator:t||'===',stackStartFunction:n.caller})}function i(e){return Object.prototype.toString.call(e).slice(8,-1)}function s(){}function r(e){var a=Object.keys(u),t;return t=process.env.NODE_NDEBUG?s:function(e,a){e||n(a,'true',e)},a.forEach(function(a){if(e)return void(t[a]=s);var o=u[a];t[a]=function(e,t){o.check(e)||n(t,a,o.operator,e,o.actual)}}),a.forEach(function(a){var i='optional'+o(a);if(e)return void(t[i]=s);var r=u[a];t[i]=function(e,t){void 0!==e&&null!==e&&(r.check(e)||n(t,a,r.operator,e,r.actual))}}),a.forEach(function(a){var i='arrayOf'+o(a);if(e)return void(t[i]=s);var r=u[a],p='['+a+']';t[i]=function(e,a){Array.isArray(e)||n(a,p,r.operator,e,r.actual);var t;for(t=0;t<e.length;t++)r.check(e[t])||n(a,p,r.operator,e,r.actual)}}),a.forEach(function(a){var i='optionalArrayOf'+o(a);if(e)return void(t[i]=s);var r=u[a],p='['+a+']';t[i]=function(e,a){if(void 0!==e&&null!==e){Array.isArray(e)||n(a,p,r.operator,e,r.actual);var t;for(t=0;t<e.length;t++)r.check(e[t])||n(a,p,r.operator,e,r.actual)}}}),Object.keys(p).forEach(function(a){return'AssertionError'===a?void(t[a]=p[a]):e?void(t[a]=s):void(t[a]=p[a])}),t._setExports=r,t}var p=t(16),c=t(7).Stream,l=t(0),d=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/,u={bool:{check:function(e){return'boolean'==typeof e}},func:{check:function(e){return'function'==typeof e}},string:{check:function(e){return'string'==typeof e}},object:{check:function(e){return'object'==typeof e&&null!==e}},number:{check:function(e){return'number'==typeof e&&!isNaN(e)}},finite:{check:function(e){return'number'==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:'Buffer.isBuffer'},array:{check:function(e){return Array.isArray(e)},operator:'Array.isArray'},stream:{check:function(e){return e instanceof c},operator:'instanceof',actual:i},date:{check:function(e){return e instanceof Date},operator:'instanceof',actual:i},regexp:{check:function(e){return e instanceof RegExp},operator:'instanceof',actual:i},uuid:{check:function(e){return'string'==typeof e&&d.test(e)},operator:'isUUID'}};e.exports=r(process.env.NODE_NDEBUG)},function(e,a,t){'use strict';var o=t(12),i=o.Buffer,n={},s;for(s in o)o.hasOwnProperty(s)&&('SlowBuffer'===s||'Buffer'===s||(n[s]=o[s]));var r=n.Buffer={};for(s in i)i.hasOwnProperty(s)&&('allocUnsafe'===s||'allocUnsafeSlow'===s||(r[s]=i[s]));if(n.Buffer.prototype=i.prototype,r.from&&r.from!==Uint8Array.from||(r.from=function(e,a,t){if('number'==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&'undefined'==typeof e.length)throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type '+typeof e);return i(e,a,t)}),r.alloc||(r.alloc=function(e,a,t){if('number'!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(0>e||2147483648<=e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=i(e);return a&&0!==a.length?'string'==typeof t?o.fill(a,t):o.fill(a):o.fill(0),o}),!n.kStringMaxLength)try{n.kStringMaxLength=process.binding('buffer').kStringMaxLength}catch(a){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),e.exports=n},function(e){e.exports=require('fs')},function(e){e.exports=require('url')},function(e){e.exports=require('path')},function(e){e.exports=require('stream')},function(e,a,t){function o(e,a,t,o){if(void 0===o&&(o='object'),c.ok(e,o+' must not be null'),c.object(e,o+' must be an object'),void 0===t&&(t=a.prototype._sshpkApiVersion),!(e instanceof a&&a.prototype._sshpkApiVersion[0]==t[0])){for(var i=Object.getPrototypeOf(e),n=0;i.constructor.name!==a.name;)i=Object.getPrototypeOf(i),c.ok(i&&++n<=g,o+' must be a '+a.name+' instance');c.strictEqual(i.constructor.name,a.name,o+' must be a '+a.name+' instance');var s=i._sshpkApiVersion;void 0===s&&(s=a._oldVersionDetect(e)),c.ok(s[0]==t[0]&&s[1]>=t[1],o+' must be compatible with '+a.name+' klass version '+t[0]+'.'+t[1])}}function i(e){for(c.buffer(e);1<e.length&&0===e[0]&&0==(128&e[1]);)e=e.slice(1);if(128==(128&e[0])){var a=l.alloc(e.length+1);a[0]=0,e.copy(a,1),e=a}return e}function n(e){var a=l.from(e.toByteArray());return a=i(a),a}function s(e){c.buffer(e),w===void 0&&(w=t(21));var a=w.sign.keyPair.fromSeed(new Uint8Array(e));return l.from(a.publicKey)}function r(e){c.buffer(e),w===void 0&&(w=t(21));var a=w.box.keyPair.fromSeed(new Uint8Array(e));return l.from(a.publicKey)}function p(e,o){c.string(e,'curveName'),c.buffer(o),v===void 0&&(v=t(42)),x===void 0&&(x=t(26).BigInteger);var n=h.curves[e],s=new x(n.p),r=new x(n.a),a=new x(n.b),p=new v.ECCurveFp(s,r,a),u=p.decodePointHex(n.G.toString('hex')),f=new x(i(o)),d=u.multiply(f);d=l.from(p.encodePointHex(d),'hex');var g=[{name:'curve',data:l.from(e)},{name:'Q',data:d}],y=new m({type:'ecdsa',curve:p,parts:g});return y}e.exports={bufferSplit:function(e,a){c.buffer(e),c.string(a);for(var t=[],o=0,n=0,s=0;s<e.length;++s)if(e[s]===a.charCodeAt(n)?++n:e[s]===a.charCodeAt(0)?n=1:n=0,n>=a.length){var i=s+1;t.push(e.slice(o,i-n)),o=i,n=0}return o<=e.length&&t.push(e.slice(o,e.length)),t},addRSAMissing:function(e){c.object(e),o(e,u,[1,1]);try{var a=t(26).BigInteger}catch(a){throw new Error('To write a PEM private key from this source, the node jsbn lib is required.')}var i=new a(e.part.d.data),s;if(!e.part.dmodp){var r=new a(e.part.p.data),p=i.mod(r.subtract(1));s=n(p),e.part.dmodp={name:'dmodp',data:s},e.parts.push(e.part.dmodp)}if(!e.part.dmodq){var l=new a(e.part.q.data),d=i.mod(l.subtract(1));s=n(d),e.part.dmodq={name:'dmodq',data:s},e.parts.push(e.part.dmodq)}},calculateDSAPublic:function(e,a,o){c.buffer(e),c.buffer(a),c.buffer(o);try{var i=t(26).BigInteger}catch(a){throw new Error('To load a PKCS#8 format DSA private key, the node jsbn library is required.')}e=new i(e),a=new i(a),o=new i(o);var s=e.modPow(o,a),r=n(s);return r},calculateED25519Public:s,calculateX25519Public:r,mpNormalize:i,mpDenormalize:function(e){for(c.buffer(e);1<e.length&&0===e[0];)e=e.slice(1);return e},ecNormalize:function(e,a){if(c.buffer(e),0===e[0]&&4===e[1])return a?e:e.slice(1);if(4!==e[0]){for(;0===e[0];)e=e.slice(1);if(2===e[0]||3===e[0])throw new Error('Compressed elliptic curve points are not supported');if(4!==e[0])throw new Error('Not a valid elliptic curve point');if(!a)return e}else if(!a)return e;var t=l.alloc(e.length+1);return t[0]=0,e.copy(t,1),t},countZeros:function(e){for(var a=0,t=8;a<e.length;){var o=1<<t;if((e[a]&o)==o)break;t--,0>t&&(a++,t=8)}return 8*a+(8-t)-1},assertCompatible:o,isCompatible:function(e,a,t){if(null===e||'object'!=typeof e)return!1;if(void 0===t&&(t=a.prototype._sshpkApiVersion),e instanceof a&&a.prototype._sshpkApiVersion[0]==t[0])return!0;for(var o=Object.getPrototypeOf(e),i=0;o.constructor.name!==a.name;)if(o=Object.getPrototypeOf(o),!o||++i>g)return!1;if(o.constructor.name!==a.name)return!1;var n=o._sshpkApiVersion;return void 0===n&&(n=a._oldVersionDetect(e)),!(n[0]!=t[0]||n[1]<t[1])},opensslKeyDeriv:function(e,a,t,o){c.buffer(a,'salt'),c.buffer(t,'passphrase'),c.number(o,'iteration count');var i=y[e];c.object(i,'supported cipher'),a=a.slice(0,b);for(var n=l.alloc(0),s,r,p;n.length<i.key+i.iv;){p=[],r&&p.push(r),p.push(t),p.push(a),s=l.concat(p);for(var u=0;u<o;++u)s=d.createHash('md5').update(s).digest();n=l.concat([n,s]),r=s}return{key:n.slice(0,i.key),iv:n.slice(i.key,i.key+i.iv)}},opensshCipherInfo:function(e){var a={};switch(e){case'3des-cbc':a.keySize=24,a.blockSize=8,a.opensslName='des-ede3-cbc';break;case'blowfish-cbc':a.keySize=16,a.blockSize=8,a.opensslName='bf-cbc';break;case'aes128-cbc':case'aes128-ctr':case'aes128-gcm@openssh.com':a.keySize=16,a.blockSize=16,a.opensslName='aes-128-'+e.slice(7,10);break;case'aes192-cbc':case'aes192-ctr':case'aes192-gcm@openssh.com':a.keySize=24,a.blockSize=16,a.opensslName='aes-192-'+e.slice(7,10);break;case'aes256-cbc':case'aes256-ctr':case'aes256-gcm@openssh.com':a.keySize=32,a.blockSize=16,a.opensslName='aes-256-'+e.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+e+'"');}return a},publicFromPrivateECDSA:p,zeroPadToLength:function(e,a){for(c.buffer(e),c.number(a);e.length>a;)c.equal(e[0],0),e=e.slice(1);for(;e.length<a;){var t=l.alloc(e.length+1);t[0]=0,e.copy(t,1),e=t}return e},writeBitString:function(e,a,t){t===void 0&&(t=f.Ber.BitString);var o=l.alloc(a.length+1);o[0]=0,a.copy(o,1),e.writeBuffer(o,t)},readBitString:function(e,a){void 0===a&&(a=f.Ber.BitString);var t=e.readString(a,!0);return c.strictEqual(t[0],0,'bit strings with unused bits are not supported (0x'+t[0].toString(16)+')'),t.slice(1)}};var c=t(2),l=t(3).Buffer,u=t(11),m=t(9),d=t(1),h=t(10),f=t(22),g=3,y={"des-ede3-cbc":{key:7,iv:8},"aes-128-cbc":{key:16,iv:16}},b=8,v,x,w},function(e,a,t){function o(e){n.object(e,'options'),n.arrayOfObject(e.parts,'options.parts'),n.string(e.type,'options.type'),n.optionalString(e.comment,'options.comment');var a=s.info[e.type];if('object'!=typeof a)throw new h(e.type);for(var t={},o=0,i;o<e.parts.length;++o)i=e.parts[o],t[i.name]=i;this.type=e.type,this.parts=e.parts,this.part=t,this.comment=void 0,this.source=e.source,this._rfc4253Cache=e._rfc4253Cache,this._hashCache={};var r;if(this.curve=void 0,'ecdsa'===this.type){var p=this.part.curve.data.toString();this.curve=p,r=s.curves[p].size}else if('ed25519'===this.type||'curve25519'===this.type)r=256,this.curve='curve25519';else{var c=this.part[a.sizePart];r=c.data.length,r=8*r-d.countZeros(c.data)}this.size=r}e.exports=o;var n=t(2),s=t(10),i=t(1),r=t(40),p=t(20),c=t(75).DiffieHellman,l=t(19),d=t(8),u=t(11),m;try{m=t(122)}catch(a){}var h=l.InvalidAlgorithmError,f=l.KeyParseError,g={};g.auto=t(123),g.pem=t(27),g.pkcs1=t(78),g.pkcs8=t(43),g.rfc4253=t(30),g.ssh=t(125),g['ssh-private']=t(64),g.openssh=g['ssh-private'],g.dnssec=t(79),o.formats=g,o.prototype.toBuffer=function(e,a){return void 0===e&&(e='ssh'),n.string(e,'format'),n.object(g[e],'formats[format]'),n.optionalObject(a,'options'),'rfc4253'===e?(void 0===this._rfc4253Cache&&(this._rfc4253Cache=g.rfc4253.write(this)),this._rfc4253Cache):g[e].write(this,a)},o.prototype.toString=function(e,a){return this.toBuffer(e,a).toString()},o.prototype.hash=function(e){if(n.string(e,'algorithm'),e=e.toLowerCase(),void 0===s.hashAlgs[e])throw new h(e);if(this._hashCache[e])return this._hashCache[e];var a=i.createHash(e).update(this.toBuffer('rfc4253')).digest();return this._hashCache[e]=a,a},o.prototype.fingerprint=function(e){e===void 0&&(e='sha256'),n.string(e,'algorithm');var a={type:'key',hash:this.hash(e),algorithm:e};return new r(a)},o.prototype.defaultHashAlgorithm=function(){var e='sha1';return'rsa'===this.type&&(e='sha256'),'dsa'===this.type&&1024<this.size&&(e='sha256'),'ed25519'===this.type&&(e='sha512'),'ecdsa'===this.type&&(256>=this.size?e='sha256':384>=this.size?e='sha384':e='sha512'),e},o.prototype.createVerify=function(e){if(void 0===e&&(e=this.defaultHashAlgorithm()),n.string(e,'hash algorithm'),'ed25519'===this.type&&void 0!==m)return new m.Verifier(this,e);if('curve25519'===this.type)throw new Error('Curve25519 keys are not suitable for signing or verification');var a,t,o;try{t=e.toUpperCase(),a=i.createVerify(t)}catch(a){o=a}(void 0===a||o instanceof Error&&o.message.match(/Unknown message digest/))&&(t='RSA-',t+=e.toUpperCase(),a=i.createVerify(t)),n.ok(a,'failed to create verifier');var s=a.verify.bind(a),r=this.toBuffer('pkcs8'),c=this.curve,l=this;return a.verify=function(a,t){if(p.isSignature(a,[2,0]))return a.type===l.type&&!(a.hashAlgorithm&&a.hashAlgorithm!==e)&&!(a.curve&&'ecdsa'===l.type&&a.curve!==c)&&s(r,a.toBuffer('asn1'));if('string'==typeof a||Buffer.isBuffer(a))return s(r,a,t);if(p.isSignature(a,[1,0]))throw new Error('signature was created by too old a version of sshpk and cannot be verified');else throw new TypeError('signature must be a string, Buffer, or Signature object')},a},o.prototype.createDiffieHellman=function(){if('rsa'===this.type)throw new Error('RSA keys do not support Diffie-Hellman');return new c(this)},o.prototype.createDH=o.prototype.createDiffieHellman,o.parse=function(e,a,t){'string'!=typeof e&&n.buffer(e,'data'),a===void 0&&(a='auto'),n.string(a,'format'),'string'==typeof t&&(t={filename:t}),n.optionalObject(t,'options'),t===void 0&&(t={}),n.optionalString(t.filename,'options.filename'),t.filename===void 0&&(t.filename='(unnamed)'),n.object(g[a],'formats[format]');try{var o=g[a].read(e,t);return o instanceof u&&(o=o.toPublic()),o.comment||(o.comment=t.filename),o}catch(o){if('KeyEncryptedError'===o.name)throw o;throw new f(t.filename,a,o)}},o.isKey=function(e,a){return d.isCompatible(e,o,a)},o.prototype._sshpkApiVersion=[1,6],o._oldVersionDetect=function(e){return n.func(e.toBuffer),n.func(e.fingerprint),e.createDH?[1,4]:e.defaultHashAlgorithm?[1,3]:e.formats.auto?[1,2]:e.formats.pkcs1?[1,1]:[1,0]}},function(e,a,t){var o=t(3).Buffer,i={dsa:{parts:['p','q','g','y'],sizePart:'p'},rsa:{parts:['e','n'],sizePart:'n'},ecdsa:{parts:['curve','Q'],sizePart:'Q'},ed25519:{parts:['A'],sizePart:'A'}};i.curve25519=i.ed25519;var n={dsa:{parts:['p','q','g','y','x']},rsa:{parts:['n','e','d','iqmp','p','q']},ecdsa:{parts:['curve','Q','d']},ed25519:{parts:['A','k']}};n.curve25519=n.ed25519;var s={nistp256:{size:256,pkcs8oid:'1.2.840.10045.3.1.7',p:o.from('00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff'.replace(/ /g,''),'hex'),a:o.from('00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC'.replace(/ /g,''),'hex'),b:o.from('5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b'.replace(/ /g,''),'hex'),s:o.from('00c49d3608 86e70493 6a6678e1 139d26b7819f7e90'.replace(/ /g,''),'hex'),n:o.from('00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551'.replace(/ /g,''),'hex'),G:o.from('046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5'.replace(/ /g,''),'hex')},nistp384:{size:384,pkcs8oid:'1.3.132.0.34',p:o.from('00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff'.replace(/ /g,''),'hex'),a:o.from('00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC'.replace(/ /g,''),'hex'),b:o.from('b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef'.replace(/ /g,''),'hex'),s:o.from('00a335926a a319a27a 1d00896a 6773a4827acdac73'.replace(/ /g,''),'hex'),n:o.from('00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973'.replace(/ /g,''),'hex'),G:o.from('04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f'.replace(/ /g,''),'hex')},nistp521:{size:521,pkcs8oid:'1.3.132.0.35',p:o.from('01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff'.replace(/ /g,''),'hex'),a:o.from('01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC'.replace(/ /g,''),'hex'),b:o.from('51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00'.replace(/ /g,''),'hex'),s:o.from('00d09e8800 291cb853 96cc6717 393284aaa0da64ba'.replace(/ /g,''),'hex'),n:o.from('01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409'.replace(/ /g,''),'hex'),G:o.from('0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650'.replace(/ /g,''),'hex')}};e.exports={info:i,privInfo:n,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:s}},function(e,a,t){function o(e){i.object(e,'options'),b.call(this,e),this._pubCache=void 0}e.exports=o;var i=t(2),n=t(3).Buffer,s=t(10),r=t(1),p=t(40),c=t(20),l=t(19),d=t(0),u=t(8),m=t(75),h=m.generateECDSA,f=m.generateED25519,g,y;try{g=t(122)}catch(a){}var b=t(9),v=l.InvalidAlgorithmError,x=l.KeyParseError,k=l.KeyEncryptedError,w={};w.auto=t(123),w.pem=t(27),w.pkcs1=t(78),w.pkcs8=t(43),w.rfc4253=t(30),w['ssh-private']=t(64),w.openssh=w['ssh-private'],w.ssh=w['ssh-private'],w.dnssec=t(79),d.inherits(o,b),o.formats=w,o.prototype.toBuffer=function(e,a){return void 0===e&&(e='pkcs1'),i.string(e,'format'),i.object(w[e],'formats[format]'),i.optionalObject(a,'options'),w[e].write(this,a)},o.prototype.hash=function(e){return this.toPublic().hash(e)},o.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var e=s.info[this.type],a=[],t=0,o;t<e.parts.length;++t)o=e.parts[t],a.push(this.part[o]);return this._pubCache=new b({type:this.type,source:this,parts:a}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache},o.prototype.derive=function(e){i.string(e,'type');var a,s,r;if('ed25519'===this.type&&'curve25519'===e)return void 0===y&&(y=t(21)),a=this.part.k.data,0===a[0]&&(a=a.slice(1)),r=y.box.keyPair.fromSecretKey(new Uint8Array(a)),s=n.from(r.publicKey),new o({type:'curve25519',parts:[{name:'A',data:u.mpNormalize(s)},{name:'k',data:u.mpNormalize(a)}]});if('curve25519'===this.type&&'ed25519'===e)return void 0===y&&(y=t(21)),a=this.part.k.data,0===a[0]&&(a=a.slice(1)),r=y.sign.keyPair.fromSeed(new Uint8Array(a)),s=n.from(r.publicKey),new o({type:'ed25519',parts:[{name:'A',data:u.mpNormalize(s)},{name:'k',data:u.mpNormalize(a)}]});throw new Error('Key derivation not supported from '+this.type+' to '+e)},o.prototype.createVerify=function(e){return this.toPublic().createVerify(e)},o.prototype.createSign=function(e){if(void 0===e&&(e=this.defaultHashAlgorithm()),i.string(e,'hash algorithm'),'ed25519'===this.type&&void 0!==g)return new g.Signer(this,e);if('curve25519'===this.type)throw new Error('Curve25519 keys are not suitable for signing or verification');var a,t,o;try{t=e.toUpperCase(),a=r.createSign(t)}catch(a){o=a}(void 0===a||o instanceof Error&&o.message.match(/Unknown message digest/))&&(t='RSA-',t+=e.toUpperCase(),a=r.createSign(t)),i.ok(a,'failed to create verifier');var s=a.sign.bind(a),p=this.toBuffer('pkcs1'),l=this.type,d=this.curve;return a.sign=function(){var a=s(p);return'string'==typeof a&&(a=n.from(a,'binary')),a=c.parse(a,l,'asn1'),a.hashAlgorithm=e,a.curve=d,a},a},o.parse=function(e,a,t){'string'!=typeof e&&i.buffer(e,'data'),a===void 0&&(a='auto'),i.string(a,'format'),'string'==typeof t&&(t={filename:t}),i.optionalObject(t,'options'),t===void 0&&(t={}),i.optionalString(t.filename,'options.filename'),t.filename===void 0&&(t.filename='(unnamed)'),i.object(w[a],'formats[format]');try{var n=w[a].read(e,t);return i.ok(n instanceof o,'key is not a private key'),n.comment||(n.comment=t.filename),n}catch(o){if('KeyEncryptedError'===o.name)throw o;throw new x(t.filename,a,o)}},o.isPrivateKey=function(e,a){return u.isCompatible(e,o,a)},o.generate=function(e,a){switch(void 0===a&&(a={}),i.object(a,'options'),e){case'ecdsa':return void 0===a.curve&&(a.curve='nistp256'),i.string(a.curve,'options.curve'),h(a.curve);case'ed25519':return f();default:throw new Error('Key generation not supported with key type "'+e+'"');}},o.prototype._sshpkApiVersion=[1,5],o._oldVersionDetect=function(e){return i.func(e.toPublic),i.func(e.createSign),e.derive?[1,3]:e.defaultHashAlgorithm?[1,2]:e.formats.auto?[1,1]:[1,0]}},function(e){e.exports=require('buffer')},function(e,a,t){(function(){var a={}.hasOwnProperty,o,i,n,s,r,p,c,l,d,u,m,h,f;f=t(25),h=f.isObject,m=f.isFunction,u=f.isEmpty,r=null,o=null,i=null,n=null,s=null,l=null,d=null,c=null,e.exports=p=function(){function e(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],r||(r=t(50),o=t(51),i=t(52),n=t(53),s=t(54),l=t(59),d=t(60),c=t(61))}return e.prototype.element=function(e,t,o){var i,n,s,r,p,c,l,d,f,g;if(c=null,null==t&&(t={}),t=t.valueOf(),h(t)||(f=[t,o],o=f[0],t=f[1]),null!=e&&(e=e.valueOf()),Array.isArray(e))for(s=0,l=e.length;s<l;s++)n=e[s],c=this.element(n);else if(m(e))c=this.element(e.apply());else if(h(e)){for(p in e)if(a.call(e,p))if(g=e[p],m(g)&&(g=g.apply()),h(g)&&u(g)&&(g=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===p.indexOf(this.stringify.convertAttKey))c=this.attribute(p.substr(this.stringify.convertAttKey.length),g);else if(!this.options.separateArrayItems&&Array.isArray(g))for(r=0,d=g.length;r<d;r++)n=g[r],i={},i[p]=n,c=this.element(i);else h(g)?(c=this.element(p),c.element(g)):c=this.element(p,g);}else c=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(o):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(o):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(o):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(o):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),o):this.node(e,t,o);if(null==c)throw new Error('Could not create any elements with: '+e);return c},e.prototype.insertBefore=function(e,a,t){var o,n,i;if(this.isRoot)throw new Error('Cannot insert elements at root level');return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n),o=this.parent.element(e,a,t),Array.prototype.push.apply(this.parent.children,i),o},e.prototype.insertAfter=function(e,a,t){var o,n,i;if(this.isRoot)throw new Error('Cannot insert elements at root level');return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n+1),o=this.parent.element(e,a,t),Array.prototype.push.apply(this.parent.children,i),o},e.prototype.remove=function(){var e,a;if(this.isRoot)throw new Error('Cannot remove the root element');return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat(a=[])),a,this.parent},e.prototype.node=function(e,a,t){var o,i;return null!=e&&(e=e.valueOf()),a||(a={}),a=a.valueOf(),h(a)||(i=[a,t],t=i[0],a=i[1]),o=new r(this,e,a),null!=t&&o.text(t),this.children.push(o),o},e.prototype.text=function(e){var a;return a=new d(this,e),this.children.push(a),this},e.prototype.cdata=function(e){var a;return a=new o(this,e),this.children.push(a),this},e.prototype.comment=function(e){var a;return a=new i(this,e),this.children.push(a),this},e.prototype.commentBefore=function(e){var a,t,o;return t=this.parent.children.indexOf(this),o=this.parent.children.splice(t),a=this.parent.comment(e),Array.prototype.push.apply(this.parent.children,o),this},e.prototype.commentAfter=function(e){var a,t,o;return t=this.parent.children.indexOf(this),o=this.parent.children.splice(t+1),a=this.parent.comment(e),Array.prototype.push.apply(this.parent.children,o),this},e.prototype.raw=function(e){var a;return a=new l(this,e),this.children.push(a),this},e.prototype.instruction=function(e,t){var o,i,n,s,r;if(null!=e&&(e=e.valueOf()),null!=t&&(t=t.valueOf()),Array.isArray(e))for(s=0,r=e.length;s<r;s++)o=e[s],this.instruction(o);else if(h(e))for(o in e)a.call(e,o)&&(i=e[o],this.instruction(o,i));else m(t)&&(t=t.apply()),n=new c(this,e,t),this.children.push(n);return this},e.prototype.instructionBefore=function(e,a){var t,o,i;return o=this.parent.children.indexOf(this),i=this.parent.children.splice(o),t=this.parent.instruction(e,a),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.instructionAfter=function(e,a){var t,o,i;return o=this.parent.children.indexOf(this),i=this.parent.children.splice(o+1),t=this.parent.instruction(e,a),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.declaration=function(e,a,t){var o,i;return o=this.document(),i=new n(o,e,a,t),o.children[0]instanceof n?o.children[0]=i:o.children.unshift(i),o.root()||o},e.prototype.doctype=function(e,a){var t,o,n,r,i,p,c,l,d,u;for(o=this.document(),n=new s(o,e,a),d=o.children,(r=i=0,c=d.length);i<c;r=++i)if(t=d[r],t instanceof s)return o.children[r]=n,n;for(u=o.children,r=p=0,l=u.length;p<l;r=++p)if(t=u[r],t.isRoot)return o.children.splice(r,0,n),n;return o.children.push(n),n},e.prototype.up=function(){if(this.isRoot)throw new Error('The root node has no parent. Use doc() if you need to get the document object.');return this.parent},e.prototype.root=function(){var e;for(e=this;e;){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},e.prototype.document=function(){var e;for(e=this;e;){if(e.isDocument)return e;e=e.parent}},e.prototype.end=function(e){return this.document().end(e)},e.prototype.prev=function(){var e;if(e=this.parent.children.indexOf(this),1>e)throw new Error('Already at the first node');return this.parent.children[e-1]},e.prototype.next=function(){var e;if(e=this.parent.children.indexOf(this),-1===e||e===this.parent.children.length-1)throw new Error('Already at the last node');return this.parent.children[e+1]},e.prototype.importDocument=function(e){var a;return a=e.root().clone(),a.parent=this,a.isRoot=!1,this.children.push(a),this},e.prototype.ele=function(e,a,t){return this.element(e,a,t)},e.prototype.nod=function(e,a,t){return this.node(e,a,t)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,a){return this.instruction(e,a)},e.prototype.doc=function(){return this.document()},e.prototype.dec=function(e,a,t){return this.declaration(e,a,t)},e.prototype.dtd=function(e,a){return this.doctype(e,a)},e.prototype.e=function(e,a,t){return this.element(e,a,t)},e.prototype.n=function(e,a,t){return this.node(e,a,t)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,a){return this.instruction(e,a)},e.prototype.u=function(){return this.up()},e.prototype.importXMLBuilder=function(e){return this.importDocument(e)},e}()}).call(this)},function(e,a,t){'use strict';function o(e){return'[object Array]'===l.call(e)}function i(e){return null!==e&&'object'==typeof e}function n(e){return'[object Function]'===l.call(e)}function s(e,a){if(null!==e&&'undefined'!=typeof e)if('object'==typeof e||o(e)||(e=[e]),o(e))for(var t=0,i=e.length;t<i;t++)a.call(null,e[t],t,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.call(null,e[n],n,e)}function r(){function e(e,t){a[t]='object'==typeof a[t]&&'object'==typeof e?r(a[t],e):e}for(var a={},t=0,o=arguments.length;t<o;t++)s(arguments[t],e);return a}var p=t(150),c=t(412),l=Object.prototype.toString;e.exports={isArray:o,isArrayBuffer:function(e){return'[object ArrayBuffer]'===l.call(e)},isBuffer:c,isFormData:function(e){return'undefined'!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){var a;return a='undefined'!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,a},isString:function(e){return'string'==typeof e},isNumber:function(e){return'number'==typeof e},isObject:i,isUndefined:function(e){return'undefined'==typeof e},isDate:function(e){return'[object Date]'===l.call(e)},isFile:function(e){return'[object File]'===l.call(e)},isBlob:function(e){return'[object Blob]'===l.call(e)},isFunction:n,isStream:function(e){return i(e)&&n(e.pipe)},isURLSearchParams:function(e){return'undefined'!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return('undefined'==typeof navigator||'ReactNative'!==navigator.product)&&'undefined'!=typeof window&&'undefined'!=typeof document},forEach:s,merge:r,extend:function(e,a,t){return s(a,function(a,o){e[o]=t&&'function'==typeof a?p(a,t):a}),e},trim:function(e){return e.replace(/^\s*/,'').replace(/\s*$/,'')}}},function(e){e.exports=require('http')},function(e){e.exports=require('assert')},function(e,a,t){const o=t(4),i=t(6),n=t(29),s=t(162);a.ACCESS_KEY='<PLEASE APPLY YOUR ACCESS KEY>',a.SECRET_KEY='<DONT SEND YOUR SECRET KEY TO ANYONE>';a.USER_AGENT=function(){return'QiniuNodejs/'+s.version+' ('+n.type()+'; '+n.platform()+'; '+n.arch()+'; )'}(),a.BLOCK_SIZE=4194304,a.FormMimeUrl='application/x-www-form-urlencoded',a.FormMimeJson='application/json',a.FormMimeRaw='application/octet-stream',a.RS_HOST='http://rs.qiniu.com',a.RPC_TIMEOUT=12e4,a.RPC_HTTP_AGENT=null,a.RPC_HTTPS_AGENT=null,a.Config=function(e){e=e||{},this.useHttpsDomain=e.useHttpsDomain||!1,this.useCdnDomain=e.useCdnDomain||!0,this.zone=e.zone||null,this.zoneExpire=e.zoneExpire||-1},a.Zone=function(e,a,t,o,i,n){this.srcUpHosts=e||{},this.cdnUpHosts=a||{},this.ioHost=t||'',this.rsHost=o||'rs.qiniu.com',this.rsfHost=i||'rsf.qiniu.com',this.apiHost=n||'api.qiniu.com';var s=this.ioHost.indexOf('.');if(-1!=s){var r=this.ioHost.substring(0,s),p=r.indexOf('-');if(-1!=p){var c=r.substring(p+1);switch(c){case'z1':this.rsHost='rs-z1.qiniu.com',this.rsfHost='rsf-z1.qiniu.com',this.apiHost='api-z1.qiniu.com';break;case'z2':this.rsHost='rs-z2.qiniu.com',this.rsfHost='rsf-z2.qiniu.com',this.apiHost='api-z2.qiniu.com';break;case'na0':this.rsHost='rs-na0.qiniu.com',this.rsfHost='rsf-na0.qiniu.com',this.apiHost='api-na0.qiniu.com';break;case'as0':this.rsHost='rs-as0.qiniu.com',this.rsfHost='rsf-as0.qiniu.com',this.apiHost='api-as0.qiniu.com';break;default:this.rsHost='rs.qiniu.com',this.rsfHost='rsf.qiniu.com',this.apiHost='api.qiniu.com';}}}}},function(e){e.exports=require('https')},function(e,a,t){function o(e,a){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name='FingerprintFormatError',this.fingerprint=e,this.format=a,this.message='Fingerprint format is not supported, or is invalid: ',e!==void 0&&(this.message+=' fingerprint = '+e),a!==void 0&&(this.message+=' format = '+a)}function i(e){Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name='InvalidAlgorithmError',this.algorithm=e,this.message='Algorithm "'+e+'" is not supported'}function n(e,a,t){Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name='KeyParseError',this.format=a,this.keyName=e,this.innerErr=t,this.message='Failed to parse '+e+' as a valid '+a+' format key: '+t.message}function s(e,a,t){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name='SignatureParseError',this.type=e,this.format=a,this.innerErr=t,this.message='Failed to parse the given data as a '+e+' signature in '+a+' format: '+t.message}function r(e,a,t){Error.captureStackTrace&&Error.captureStackTrace(this,r),this.name='CertificateParseError',this.format=a,this.certName=e,this.innerErr=t,this.message='Failed to parse '+e+' as a valid '+a+' format certificate: '+t.message}function p(e,a){Error.captureStackTrace&&Error.captureStackTrace(this,p),this.name='KeyEncryptedError',this.format=a,this.keyName=e,this.message='The '+a+' format key '+e+' is encrypted (password-protected), and no passphrase was provided in `options`'}var c=t(2),l=t(0);l.inherits(o,Error),l.inherits(i,Error),l.inherits(n,Error),l.inherits(s,Error),l.inherits(r,Error),l.inherits(p,Error),e.exports={FingerprintFormatError:o,InvalidAlgorithmError:i,KeyParseError:n,SignatureParseError:s,KeyEncryptedError:p,CertificateParseError:r}},function(e,a,t){function o(e){p.object(e,'options'),p.arrayOfObject(e.parts,'options.parts'),p.string(e.type,'options.type');for(var a={},t=0,o;t<e.parts.length;++t)o=e.parts[t],a[o.name]=o;this.type=e.type,this.hashAlgorithm=e.hashAlgo,this.curve=e.curve,this.parts=e.parts,this.part=a}function i(e,a,t,i){if('ssh'===t){try{var n=new f({buffer:e}),s=n.readString()}catch(a){}if(void 0!==n){var r='SSH signature does not match expected type (expected '+a+', got '+s+')';switch(s){case'ssh-rsa':p.strictEqual(a,'rsa',r),i.hashAlgo='sha1';break;case'rsa-sha2-256':p.strictEqual(a,'rsa',r),i.hashAlgo='sha256';break;case'rsa-sha2-512':p.strictEqual(a,'rsa',r),i.hashAlgo='sha512';break;case'ssh-ed25519':p.strictEqual(a,'ed25519',r),i.hashAlgo='sha512';break;default:throw new Error('Unknown SSH signature type: '+s);}var c=n.readPart();return p.ok(n.atEnd(),'extra trailing bytes'),c.name='sig',i.parts.push(c),new o(i)}}return i.parts.push({name:'sig',data:e}),new o(i)}function n(e,a,t,i){var n=new h.BerReader(e);n.readSequence();var p=n.readString(h.Ber.Integer,!0),r=n.readString(h.Ber.Integer,!0);return i.parts.push({name:'r',data:m.mpNormalize(p)}),i.parts.push({name:'s',data:m.mpNormalize(r)}),new o(i)}function s(e,a,t,i){if(40!=e.length){var n=new f({buffer:e}),s=n.readBuffer();'ssh-dss'===s.toString('ascii')&&(s=n.readBuffer()),p.ok(n.atEnd(),'extra trailing bytes'),p.strictEqual(s.length,40,'invalid inner length'),e=s}return i.parts.push({name:'r',data:e.slice(0,20)}),i.parts.push({name:'s',data:e.slice(20,40)}),new o(i)}function r(e,a,t,i){var n=new f({buffer:e}),c=n.readBuffer(),l=c.toString('ascii'),d,r;if('ecdsa-'===l.slice(0,6)){var s=l.split('-');switch(p.strictEqual(s[0],'ecdsa'),p.strictEqual(s[1],'sha2'),i.curve=s[2],i.curve){case'nistp256':i.hashAlgo='sha256';break;case'nistp384':i.hashAlgo='sha384';break;case'nistp521':i.hashAlgo='sha512';break;default:throw new Error('Unsupported ECDSA curve: '+i.curve);}c=n.readBuffer(),p.ok(n.atEnd(),'extra trailing bytes on outer'),n=new f({buffer:c}),d=n.readPart()}else d={data:c};return r=n.readPart(),p.ok(n.atEnd(),'extra trailing bytes'),d.name='r',r.name='s',i.parts.push(d),i.parts.push(r),new o(i)}e.exports=o;var p=t(2),c=t(3).Buffer,l=t(10),d=t(1),u=t(19),m=t(8),h=t(22),f=t(44),g=u.InvalidAlgorithmError,y=u.SignatureParseError;o.prototype.toBuffer=function(e){e===void 0&&(e='asn1'),p.string(e,'format');var a='ssh-'+this.type,t;switch(this.type){case'rsa':switch(this.hashAlgorithm){case'sha256':a='rsa-sha2-256';break;case'sha512':a='rsa-sha2-512';break;case'sha1':case void 0:break;default:throw new Error('SSH signature format does not support hash algorithm '+this.hashAlgorithm);}return'ssh'===e?(t=new f({}),t.writeString(a),t.writePart(this.part.sig),t.toBuffer()):this.part.sig.data;break;case'ed25519':return'ssh'===e?(t=new f({}),t.writeString(a),t.writePart(this.part.sig),t.toBuffer()):this.part.sig.data;break;case'dsa':case'ecdsa':var o,i;if('asn1'===e){var n=new h.BerWriter;return n.startSequence(),o=m.mpNormalize(this.part.r.data),i=m.mpNormalize(this.part.s.data),n.writeBuffer(o,h.Ber.Integer),n.writeBuffer(i,h.Ber.Integer),n.endSequence(),n.buffer}if('ssh'===e&&'dsa'===this.type){if(t=new f({}),t.writeString('ssh-dss'),o=this.part.r.data,20<o.length&&0===o[0]&&(o=o.slice(1)),i=this.part.s.data,20<i.length&&0===i[0]&&(i=i.slice(1)),this.hashAlgorithm&&'sha1'!==this.hashAlgorithm||40!==o.length+i.length)throw new Error('OpenSSH only supports DSA signatures with SHA1 hash');return t.writeBuffer(c.concat([o,i])),t.toBuffer()}if('ssh'===e&&'ecdsa'===this.type){var s=new f({});o=this.part.r.data,s.writeBuffer(o),s.writePart(this.part.s),t=new f({});var r;0===o[0]&&(o=o.slice(1));var l=8*o.length;return 256==l?r='nistp256':384==l?r='nistp384':528==l&&(r='nistp521'),t.writeString('ecdsa-sha2-'+r),t.writeBuffer(s.toBuffer()),t.toBuffer()}throw new Error('Invalid signature format');default:throw new Error('Invalid signature data');}},o.prototype.toString=function(e){return p.optionalString(e,'format'),this.toBuffer(e).toString('base64')},o.parse=function(e,a,t){'string'==typeof e&&(e=c.from(e,'base64')),p.buffer(e,'data'),p.string(t,'format'),p.string(a,'type');var o={type:a.toLowerCase(),parts:[]};try{switch(p.ok(0<e.length,'signature must not be empty'),o.type){case'rsa':return i(e,a,t,o);case'ed25519':return i(e,a,t,o);case'dsa':case'ecdsa':return'asn1'===t?n(e,a,t,o):'dsa'===o.type?s(e,a,t,o):r(e,a,t,o);default:throw new g(a);}}catch(o){if(o instanceof g)throw o;throw new y(a,t,o)}},o.isSignature=function(e,a){return m.isCompatible(e,o,a)},o.prototype._sshpkApiVersion=[2,1],o._oldVersionDetect=function(e){return p.func(e.toBuffer),e.hasOwnProperty('hashAlgorithm')?[2,0]:[1,0]}},function(e,a,t){var n=Math.floor;(function(e){'use strict';function a(e,a,t,o){e[a]=255&t>>24,e[a+1]=255&t>>16,e[a+2]=255&t>>8,e[a+3]=255&t,e[a+4]=255&o>>24,e[a+5]=255&o>>16,e[a+6]=255&o>>8,e[a+7]=255&o}function o(e,a,t,o,s){var n=0,r;for(r=0;r<s;r++)n|=e[a+r]^t[o+r];return(1&n-1>>>8)-1}function i(e,a,t,i){return o(e,a,t,i,16)}function s(e,a,t,i){return o(e,a,t,i,32)}function r(e,a,t,o){for(var n=255&o[0]|(255&o[1])<<8|(255&o[2])<<16|(255&o[3])<<24,s=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,r=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,c=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,l=255&o[4]|(255&o[5])<<8|(255&o[6])<<16|(255&o[7])<<24,d=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,m=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,h=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,f=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,g=255&o[8]|(255&o[9])<<8|(255&o[10])<<16|(255&o[11])<<24,y=255&t[16]|(255&t[17])<<8|(255&t[18])<<16|(255&t[19])<<24,b=255&t[20]|(255&t[21])<<8|(255&t[22])<<16|(255&t[23])<<24,v=255&t[24]|(255&t[25])<<8|(255&t[26])<<16|(255&t[27])<<24,x=255&t[28]|(255&t[29])<<8|(255&t[30])<<16|(255&t[31])<<24,k=255&o[12]|(255&o[13])<<8|(255&o[14])<<16|(255&o[15])<<24,w=n,j=s,S=r,_=p,E=c,C=l,P=d,T=m,A=h,I=f,z=g,F=y,O=b,B=v,R=x,D=k,L=0,i;20>L;L+=2)i=0|w+O,E^=i<<7|i>>>25,i=0|E+w,A^=i<<9|i>>>23,i=0|A+E,O^=i<<13|i>>>19,i=0|O+A,w^=i<<18|i>>>14,i=0|C+j,I^=i<<7|i>>>25,i=0|I+C,B^=i<<9|i>>>23,i=0|B+I,j^=i<<13|i>>>19,i=0|j+B,C^=i<<18|i>>>14,i=0|z+P,R^=i<<7|i>>>25,i=0|R+z,S^=i<<9|i>>>23,i=0|S+R,P^=i<<13|i>>>19,i=0|P+S,z^=i<<18|i>>>14,i=0|D+F,_^=i<<7|i>>>25,i=0|_+D,T^=i<<9|i>>>23,i=0|T+_,F^=i<<13|i>>>19,i=0|F+T,D^=i<<18|i>>>14,i=0|w+_,j^=i<<7|i>>>25,i=0|j+w,S^=i<<9|i>>>23,i=0|S+j,_^=i<<13|i>>>19,i=0|_+S,w^=i<<18|i>>>14,i=0|C+E,P^=i<<7|i>>>25,i=0|P+C,T^=i<<9|i>>>23,i=0|T+P,E^=i<<13|i>>>19,i=0|E+T,C^=i<<18|i>>>14,i=0|z+I,F^=i<<7|i>>>25,i=0|F+z,A^=i<<9|i>>>23,i=0|A+F,I^=i<<13|i>>>19,i=0|I+A,z^=i<<18|i>>>14,i=0|D+R,O^=i<<7|i>>>25,i=0|O+D,B^=i<<9|i>>>23,i=0|B+O,R^=i<<13|i>>>19,i=0|R+B,D^=i<<18|i>>>14;w=0|w+n,j=0|j+s,S=0|S+r,_=0|_+p,E=0|E+c,C=0|C+l,P=0|P+d,T=0|T+m,A=0|A+h,I=0|I+f,z=0|z+g,F=0|F+y,O=0|O+b,B=0|B+v,R=0|R+x,D=0|D+k,e[0]=255&w>>>0,e[1]=255&w>>>8,e[2]=255&w>>>16,e[3]=255&w>>>24,e[4]=255&j>>>0,e[5]=255&j>>>8,e[6]=255&j>>>16,e[7]=255&j>>>24,e[8]=255&S>>>0,e[9]=255&S>>>8,e[10]=255&S>>>16,e[11]=255&S>>>24,e[12]=255&_>>>0,e[13]=255&_>>>8,e[14]=255&_>>>16,e[15]=255&_>>>24,e[16]=255&E>>>0,e[17]=255&E>>>8,e[18]=255&E>>>16,e[19]=255&E>>>24,e[20]=255&C>>>0,e[21]=255&C>>>8,e[22]=255&C>>>16,e[23]=255&C>>>24,e[24]=255&P>>>0,e[25]=255&P>>>8,e[26]=255&P>>>16,e[27]=255&P>>>24,e[28]=255&T>>>0,e[29]=255&T>>>8,e[30]=255&T>>>16,e[31]=255&T>>>24,e[32]=255&A>>>0,e[33]=255&A>>>8,e[34]=255&A>>>16,e[35]=255&A>>>24,e[36]=255&I>>>0,e[37]=255&I>>>8,e[38]=255&I>>>16,e[39]=255&I>>>24,e[40]=255&z>>>0,e[41]=255&z>>>8,e[42]=255&z>>>16,e[43]=255&z>>>24,e[44]=255&F>>>0,e[45]=255&F>>>8,e[46]=255&F>>>16,e[47]=255&F>>>24,e[48]=255&O>>>0,e[49]=255&O>>>8,e[50]=255&O>>>16,e[51]=255&O>>>24,e[52]=255&B>>>0,e[53]=255&B>>>8,e[54]=255&B>>>16,e[55]=255&B>>>24,e[56]=255&R>>>0,e[57]=255&R>>>8,e[58]=255&R>>>16,e[59]=255&R>>>24,e[60]=255&D>>>0,e[61]=255&D>>>8,e[62]=255&D>>>16,e[63]=255&D>>>24}function p(e,a,t,o){for(var n=255&o[0]|(255&o[1])<<8|(255&o[2])<<16|(255&o[3])<<24,s=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,r=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,c=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,l=255&o[4]|(255&o[5])<<8|(255&o[6])<<16|(255&o[7])<<24,d=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,m=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,h=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,f=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,g=255&o[8]|(255&o[9])<<8|(255&o[10])<<16|(255&o[11])<<24,y=255&t[16]|(255&t[17])<<8|(255&t[18])<<16|(255&t[19])<<24,b=255&t[20]|(255&t[21])<<8|(255&t[22])<<16|(255&t[23])<<24,v=255&t[24]|(255&t[25])<<8|(255&t[26])<<16|(255&t[27])<<24,x=255&t[28]|(255&t[29])<<8|(255&t[30])<<16|(255&t[31])<<24,k=255&o[12]|(255&o[13])<<8|(255&o[14])<<16|(255&o[15])<<24,w=n,j=s,S=r,_=p,E=c,C=l,P=d,T=m,A=h,I=f,z=g,F=y,O=b,B=v,R=x,D=k,L=0,i;20>L;L+=2)i=0|w+O,E^=i<<7|i>>>25,i=0|E+w,A^=i<<9|i>>>23,i=0|A+E,O^=i<<13|i>>>19,i=0|O+A,w^=i<<18|i>>>14,i=0|C+j,I^=i<<7|i>>>25,i=0|I+C,B^=i<<9|i>>>23,i=0|B+I,j^=i<<13|i>>>19,i=0|j+B,C^=i<<18|i>>>14,i=0|z+P,R^=i<<7|i>>>25,i=0|R+z,S^=i<<9|i>>>23,i=0|S+R,P^=i<<13|i>>>19,i=0|P+S,z^=i<<18|i>>>14,i=0|D+F,_^=i<<7|i>>>25,i=0|_+D,T^=i<<9|i>>>23,i=0|T+_,F^=i<<13|i>>>19,i=0|F+T,D^=i<<18|i>>>14,i=0|w+_,j^=i<<7|i>>>25,i=0|j+w,S^=i<<9|i>>>23,i=0|S+j,_^=i<<13|i>>>19,i=0|_+S,w^=i<<18|i>>>14,i=0|C+E,P^=i<<7|i>>>25,i=0|P+C,T^=i<<9|i>>>23,i=0|T+P,E^=i<<13|i>>>19,i=0|E+T,C^=i<<18|i>>>14,i=0|z+I,F^=i<<7|i>>>25,i=0|F+z,A^=i<<9|i>>>23,i=0|A+F,I^=i<<13|i>>>19,i=0|I+A,z^=i<<18|i>>>14,i=0|D+R,O^=i<<7|i>>>25,i=0|O+D,B^=i<<9|i>>>23,i=0|B+O,R^=i<<13|i>>>19,i=0|R+B,D^=i<<18|i>>>14;e[0]=255&w>>>0,e[1]=255&w>>>8,e[2]=255&w>>>16,e[3]=255&w>>>24,e[4]=255&C>>>0,e[5]=255&C>>>8,e[6]=255&C>>>16,e[7]=255&C>>>24,e[8]=255&z>>>0,e[9]=255&z>>>8,e[10]=255&z>>>16,e[11]=255&z>>>24,e[12]=255&D>>>0,e[13]=255&D>>>8,e[14]=255&D>>>16,e[15]=255&D>>>24,e[16]=255&P>>>0,e[17]=255&P>>>8,e[18]=255&P>>>16,e[19]=255&P>>>24,e[20]=255&T>>>0,e[21]=255&T>>>8,e[22]=255&T>>>16,e[23]=255&T>>>24,e[24]=255&A>>>0,e[25]=255&A>>>8,e[26]=255&A>>>16,e[27]=255&A>>>24,e[28]=255&I>>>0,e[29]=255&I>>>8,e[30]=255&I>>>16,e[31]=255&I>>>24}function l(e,a,t,o){r(e,a,t,o)}function u(e,a,t,o){p(e,a,t,o)}function h(e,a,t,o,s,r,n){var p=new Uint8Array(16),c=new Uint8Array(64),d,u;for(u=0;16>u;u++)p[u]=0;for(u=0;8>u;u++)p[u]=r[u];for(;64<=s;){for(l(c,p,n,I),u=0;64>u;u++)e[a+u]=t[o+u]^c[u];for(d=1,u=8;16>u;u++)d=0|d+(255&p[u]),p[u]=255&d,d>>>=8;s-=64,a+=64,o+=64}if(0<s)for(l(c,p,n,I),u=0;u<s;u++)e[a+u]=t[o+u]^c[u];return 0}function m(e,a,t,o,n){var s=new Uint8Array(16),r=new Uint8Array(64),p,c;for(c=0;16>c;c++)s[c]=0;for(c=0;8>c;c++)s[c]=o[c];for(;64<=t;){for(l(r,s,n,I),c=0;64>c;c++)e[a+c]=r[c];for(p=1,c=8;16>c;c++)p=0|p+(255&s[c]),s[c]=255&p,p>>>=8;t-=64,a+=64}if(0<t)for(l(r,s,n,I),c=0;c<t;c++)e[a+c]=r[c];return 0}function f(e,a,t,o,n){var r=new Uint8Array(32);u(r,o,n,I);for(var s=new Uint8Array(8),p=0;8>p;p++)s[p]=o[p+16];return m(e,a,t,s,r)}function g(e,a,t,o,r,p,n){var c=new Uint8Array(32);u(c,p,n,I);for(var s=new Uint8Array(8),l=0;8>l;l++)s[l]=p[l+16];return h(e,a,t,o,r,s,c)}function y(e,a,t,o,i,n){var r=new fe(n);return r.update(t,o,i),r.finish(e,a),0}function b(e,a,t,o,s,n){var r=new Uint8Array(16);return y(r,0,t,o,s,n),i(e,a,r,0)}function d(e,a,t,o,n){var s;if(32>t)return-1;for(g(e,0,a,0,t,o,n),y(e,16,e,32,t-32,e),s=0;16>s;s++)e[s]=0;return 0}function v(e,a,t,o,n){var s=new Uint8Array(32),r;if(32>t)return-1;if(f(s,0,32,o,n),0!==b(a,16,a,32,t-32,s))return-1;for(g(e,0,a,0,t,o,n),r=0;32>r;r++)e[r]=0;return 0}function c(e,t){var a;for(a=0;16>a;a++)e[a]=0|t[a]}function x(e){var a=1,t,o;for(t=0;16>t;t++)o=e[t]+a+65535,a=n(o/65536),e[t]=o-65536*a;e[0]+=a-1+37*(a-1)}function k(e,a,o){for(var n=0,i;16>n;n++)i=~(o-1)&(e[n]^a[n]),e[n]^=i,a[n]^=i}function w(e,a){var o=se(),n=se(),t,i,s;for(t=0;16>t;t++)n[t]=a[t];for(x(n),x(n),x(n),i=0;2>i;i++){for(o[0]=n[0]-65517,t=1;15>t;t++)o[t]=n[t]-65535-(1&o[t-1]>>16),o[t-1]&=65535;o[15]=n[15]-32767-(1&o[14]>>16),s=1&o[15]>>16,o[14]&=65535,k(n,o,1-s)}for(t=0;16>t;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}function j(e,a){var t=new Uint8Array(32),o=new Uint8Array(32);return w(t,e),w(o,a),s(t,0,o,0)}function _(e){var a=new Uint8Array(32);return w(a,e),1&a[0]}function E(e,a){var t;for(t=0;16>t;t++)e[t]=a[2*t]+(a[2*t+1]<<8);e[15]&=32767}function C(e,t,a){for(var o=0;16>o;o++)e[o]=t[o]+a[o]}function P(e,t,a){for(var o=0;16>o;o++)e[o]=t[o]-a[o]}function T(e,t,a){var o=0,i=0,s=0,r=0,p=0,l=0,d=0,u=0,m=0,h=0,f=0,g=0,y=0,b=0,x=0,k=0,w=0,j=0,S=0,_=0,E=0,C=0,P=0,T=0,A=0,I=0,z=0,F=0,O=0,B=0,R=0,D=a[0],L=a[1],N=a[2],U=a[3],M=a[4],H=a[5],K=a[6],V=a[7],G=a[8],$=a[9],W=a[10],Q=a[11],Y=a[12],X=a[13],Z=a[14],J=a[15],ee,v;ee=t[0],o+=ee*D,i+=ee*L,s+=ee*N,r+=ee*U,p+=ee*M,l+=ee*H,d+=ee*K,u+=ee*V,m+=ee*G,h+=ee*$,f+=ee*W,g+=ee*Q,y+=ee*Y,b+=ee*X,x+=ee*Z,k+=ee*J,ee=t[1],i+=ee*D,s+=ee*L,r+=ee*N,p+=ee*U,l+=ee*M,d+=ee*H,u+=ee*K,m+=ee*V,h+=ee*G,f+=ee*$,g+=ee*W,y+=ee*Q,b+=ee*Y,x+=ee*X,k+=ee*Z,w+=ee*J,ee=t[2],s+=ee*D,r+=ee*L,p+=ee*N,l+=ee*U,d+=ee*M,u+=ee*H,m+=ee*K,h+=ee*V,f+=ee*G,g+=ee*$,y+=ee*W,b+=ee*Q,x+=ee*Y,k+=ee*X,w+=ee*Z,j+=ee*J,ee=t[3],r+=ee*D,p+=ee*L,l+=ee*N,d+=ee*U,u+=ee*M,m+=ee*H,h+=ee*K,f+=ee*V,g+=ee*G,y+=ee*$,b+=ee*W,x+=ee*Q,k+=ee*Y,w+=ee*X,j+=ee*Z,S+=ee*J,ee=t[4],p+=ee*D,l+=ee*L,d+=ee*N,u+=ee*U,m+=ee*M,h+=ee*H,f+=ee*K,g+=ee*V,y+=ee*G,b+=ee*$,x+=ee*W,k+=ee*Q,w+=ee*Y,j+=ee*X,S+=ee*Z,_+=ee*J,ee=t[5],l+=ee*D,d+=ee*L,u+=ee*N,m+=ee*U,h+=ee*M,f+=ee*H,g+=ee*K,y+=ee*V,b+=ee*G,x+=ee*$,k+=ee*W,w+=ee*Q,j+=ee*Y,S+=ee*X,_+=ee*Z,E+=ee*J,ee=t[6],d+=ee*D,u+=ee*L,m+=ee*N,h+=ee*U,f+=ee*M,g+=ee*H,y+=ee*K,b+=ee*V,x+=ee*G,k+=ee*$,w+=ee*W,j+=ee*Q,S+=ee*Y,_+=ee*X,E+=ee*Z,C+=ee*J,ee=t[7],u+=ee*D,m+=ee*L,h+=ee*N,f+=ee*U,g+=ee*M,y+=ee*H,b+=ee*K,x+=ee*V,k+=ee*G,w+=ee*$,j+=ee*W,S+=ee*Q,_+=ee*Y,E+=ee*X,C+=ee*Z,P+=ee*J,ee=t[8],m+=ee*D,h+=ee*L,f+=ee*N,g+=ee*U,y+=ee*M,b+=ee*H,x+=ee*K,k+=ee*V,w+=ee*G,j+=ee*$,S+=ee*W,_+=ee*Q,E+=ee*Y,C+=ee*X,P+=ee*Z,T+=ee*J,ee=t[9],h+=ee*D,f+=ee*L,g+=ee*N,y+=ee*U,b+=ee*M,x+=ee*H,k+=ee*K,w+=ee*V,j+=ee*G,S+=ee*$,_+=ee*W,E+=ee*Q,C+=ee*Y,P+=ee*X,T+=ee*Z,A+=ee*J,ee=t[10],f+=ee*D,g+=ee*L,y+=ee*N,b+=ee*U,x+=ee*M,k+=ee*H,w+=ee*K,j+=ee*V,S+=ee*G,_+=ee*$,E+=ee*W,C+=ee*Q,P+=ee*Y,T+=ee*X,A+=ee*Z,I+=ee*J,ee=t[11],g+=ee*D,y+=ee*L,b+=ee*N,x+=ee*U,k+=ee*M,w+=ee*H,j+=ee*K,S+=ee*V,_+=ee*G,E+=ee*$,C+=ee*W,P+=ee*Q,T+=ee*Y,A+=ee*X,I+=ee*Z,z+=ee*J,ee=t[12],y+=ee*D,b+=ee*L,x+=ee*N,k+=ee*U,w+=ee*M,j+=ee*H,S+=ee*K,_+=ee*V,E+=ee*G,C+=ee*$,P+=ee*W,T+=ee*Q,A+=ee*Y,I+=ee*X,z+=ee*Z,F+=ee*J,ee=t[13],b+=ee*D,x+=ee*L,k+=ee*N,w+=ee*U,j+=ee*M,S+=ee*H,_+=ee*K,E+=ee*V,C+=ee*G,P+=ee*$,T+=ee*W,A+=ee*Q,I+=ee*Y,z+=ee*X,F+=ee*Z,O+=ee*J,ee=t[14],x+=ee*D,k+=ee*L,w+=ee*N,j+=ee*U,S+=ee*M,_+=ee*H,E+=ee*K,C+=ee*V,P+=ee*G,T+=ee*$,A+=ee*W,I+=ee*Q,z+=ee*Y,F+=ee*X,O+=ee*Z,B+=ee*J,ee=t[15],k+=ee*D,w+=ee*L,j+=ee*N,S+=ee*U,_+=ee*M,E+=ee*H,C+=ee*K,P+=ee*V,T+=ee*G,A+=ee*$,I+=ee*W,z+=ee*Q,F+=ee*Y,O+=ee*X,B+=ee*Z,R+=ee*J,o+=38*w,i+=38*j,s+=38*S,r+=38*_,p+=38*E,l+=38*C,d+=38*P,u+=38*T,m+=38*A,h+=38*I,f+=38*z,g+=38*F,y+=38*O,b+=38*B,x+=38*R,v=1,ee=o+v+65535,v=n(ee/65536),o=ee-65536*v,ee=i+v+65535,v=n(ee/65536),i=ee-65536*v,ee=s+v+65535,v=n(ee/65536),s=ee-65536*v,ee=r+v+65535,v=n(ee/65536),r=ee-65536*v,ee=p+v+65535,v=n(ee/65536),p=ee-65536*v,ee=l+v+65535,v=n(ee/65536),l=ee-65536*v,ee=d+v+65535,v=n(ee/65536),d=ee-65536*v,ee=u+v+65535,v=n(ee/65536),u=ee-65536*v,ee=m+v+65535,v=n(ee/65536),m=ee-65536*v,ee=h+v+65535,v=n(ee/65536),h=ee-65536*v,ee=f+v+65535,v=n(ee/65536),f=ee-65536*v,ee=g+v+65535,v=n(ee/65536),g=ee-65536*v,ee=y+v+65535,v=n(ee/65536),y=ee-65536*v,ee=b+v+65535,v=n(ee/65536),b=ee-65536*v,ee=x+v+65535,v=n(ee/65536),x=ee-65536*v,ee=k+v+65535,v=n(ee/65536),k=ee-65536*v,o+=v-1+37*(v-1),v=1,ee=o+v+65535,v=n(ee/65536),o=ee-65536*v,ee=i+v+65535,v=n(ee/65536),i=ee-65536*v,ee=s+v+65535,v=n(ee/65536),s=ee-65536*v,ee=r+v+65535,v=n(ee/65536),r=ee-65536*v,ee=p+v+65535,v=n(ee/65536),p=ee-65536*v,ee=l+v+65535,v=n(ee/65536),l=ee-65536*v,ee=d+v+65535,v=n(ee/65536),d=ee-65536*v,ee=u+v+65535,v=n(ee/65536),u=ee-65536*v,ee=m+v+65535,v=n(ee/65536),m=ee-65536*v,ee=h+v+65535,v=n(ee/65536),h=ee-65536*v,ee=f+v+65535,v=n(ee/65536),f=ee-65536*v,ee=g+v+65535,v=n(ee/65536),g=ee-65536*v,ee=y+v+65535,v=n(ee/65536),y=ee-65536*v,ee=b+v+65535,v=n(ee/65536),b=ee-65536*v,ee=x+v+65535,v=n(ee/65536),x=ee-65536*v,ee=k+v+65535,v=n(ee/65536),k=ee-65536*v,o+=v-1+37*(v-1),e[0]=o,e[1]=i,e[2]=s,e[3]=r,e[4]=p,e[5]=l,e[6]=d,e[7]=u,e[8]=m,e[9]=h,e[10]=f,e[11]=g,e[12]=y,e[13]=b,e[14]=x,e[15]=k}function A(e,t){T(e,t,t)}function S(e,t){var o=se(),i;for(i=0;16>i;i++)o[i]=t[i];for(i=253;0<=i;i--)A(o,o),2!==i&&4!==i&&T(o,o,t);for(i=0;16>i;i++)e[i]=o[i]}function z(e,t){var o=se(),i;for(i=0;16>i;i++)o[i]=t[i];for(i=250;0<=i;i--)A(o,o),1!==i&&T(o,o,t);for(i=0;16>i;i++)e[i]=o[i]}function F(t,o,n){var s=new Uint8Array(32),p=new Float64Array(80),l=se(),a=se(),u=se(),c=se(),d=se(),e=se(),m,r;for(r=0;31>r;r++)s[r]=o[r];for(s[31]=64|127&o[31],s[0]&=248,E(p,n),r=0;16>r;r++)a[r]=p[r],c[r]=l[r]=u[r]=0;for(l[0]=c[0]=1,r=254;0<=r;--r)m=1&s[r>>>3]>>>(7&r),k(l,a,m),k(u,c,m),C(d,l,u),P(l,l,u),C(u,a,c),P(a,a,c),A(c,d),A(e,l),T(l,u,l),T(u,a,d),C(d,l,u),P(l,l,u),A(a,l),P(u,c,e),T(l,u,ue),C(l,l,c),T(u,u,l),T(l,c,e),T(c,a,p),A(a,d),k(l,a,m),k(u,c,m);for(r=0;16>r;r++)p[r+16]=l[r],p[r+32]=u[r],p[r+48]=a[r],p[r+64]=c[r];var i=p.subarray(32),h=p.subarray(16);return S(i,i),T(h,h,i),w(t,h),0}function O(e,a){return F(e,a,ce)}function B(e,a){return re(a,32),O(e,a)}function R(e,a,t){var o=new Uint8Array(32);return F(o,t,a),u(e,pe,o,I)}function N(e,t,o,s){for(var n=new Int32Array(16),r=new Int32Array(16),p=e[0],u=e[1],m=e[2],f=e[3],g=e[4],y=e[5],v=e[6],x=e[7],k=t[0],w=t[1],S=t[2],_=t[3],E=t[4],C=t[5],P=t[6],T=t[7],A=0,I,z,F,O,B,R,D,L,N,U,M,H,K,V,G,$,W,Q,Y,i,j,h,l,a,b,c;128<=s;){for(Y=0;16>Y;Y++)i=8*Y+A,n[Y]=o[i+0]<<24|o[i+1]<<16|o[i+2]<<8|o[i+3],r[Y]=o[i+4]<<24|o[i+5]<<16|o[i+6]<<8|o[i+7];for(Y=0;80>Y;Y++)if(I=p,z=u,F=m,O=f,B=g,R=y,D=v,L=x,N=k,U=w,M=S,H=_,K=E,V=C,G=P,$=T,j=x,h=T,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=(g>>>14|E<<18)^(g>>>18|E<<14)^(E>>>9|g<<23),h=(E>>>14|g<<18)^(E>>>18|g<<14)^(g>>>9|E<<23),l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,j=g&y^~g&v,h=E&C^~E&P,l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,j=ye[2*Y],h=ye[2*Y+1],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,j=n[Y%16],h=r[Y%16],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,W=65535&b|c<<16,Q=65535&l|a<<16,j=W,h=Q,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=(p>>>28|k<<4)^(k>>>2|p<<30)^(k>>>7|p<<25),h=(k>>>28|p<<4)^(p>>>2|k<<30)^(p>>>7|k<<25),l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,j=p&u^p&m^u&m,h=k&w^k&S^w&S,l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,L=65535&b|c<<16,$=65535&l|a<<16,j=O,h=H,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=W,h=Q,l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,O=65535&b|c<<16,H=65535&l|a<<16,u=I,m=z,f=F,g=O,y=B,v=R,x=D,p=L,w=N,S=U,_=M,E=H,C=K,P=V,T=G,k=$,15==Y%16)for(i=0;16>i;i++)j=n[i],h=r[i],l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=n[(i+9)%16],h=r[(i+9)%16],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,W=n[(i+1)%16],Q=r[(i+1)%16],j=(W>>>1|Q<<31)^(W>>>8|Q<<24)^W>>>7,h=(Q>>>1|W<<31)^(Q>>>8|W<<24)^(Q>>>7|W<<25),l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,W=n[(i+14)%16],Q=r[(i+14)%16],j=(W>>>19|Q<<13)^(Q>>>29|W<<3)^W>>>6,h=(Q>>>19|W<<13)^(W>>>29|Q<<3)^(Q>>>6|W<<26),l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,n[i]=65535&b|c<<16,r[i]=65535&l|a<<16;j=p,h=k,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[0],h=t[0],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[0]=p=65535&b|c<<16,t[0]=k=65535&l|a<<16,j=u,h=w,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[1],h=t[1],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[1]=u=65535&b|c<<16,t[1]=w=65535&l|a<<16,j=m,h=S,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[2],h=t[2],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[2]=m=65535&b|c<<16,t[2]=S=65535&l|a<<16,j=f,h=_,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[3],h=t[3],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[3]=f=65535&b|c<<16,t[3]=_=65535&l|a<<16,j=g,h=E,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[4],h=t[4],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[4]=g=65535&b|c<<16,t[4]=E=65535&l|a<<16,j=y,h=C,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[5],h=t[5],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[5]=y=65535&b|c<<16,t[5]=C=65535&l|a<<16,j=v,h=P,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[6],h=t[6],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[6]=v=65535&b|c<<16,t[6]=P=65535&l|a<<16,j=x,h=T,l=65535&h,a=h>>>16,b=65535&j,c=j>>>16,j=e[7],h=t[7],l+=65535&h,a+=h>>>16,b+=65535&j,c+=j>>>16,a+=l>>>16,b+=a>>>16,c+=b>>>16,e[7]=x=65535&b|c<<16,t[7]=T=65535&l|a<<16,A+=128,s-=128}return s}function U(e,t,o){var n=new Int32Array(8),s=new Int32Array(8),r=new Uint8Array(256),p=o,c;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[7]=1541459225,s[0]=4089235720,s[1]=2227873595,s[2]=4271175723,s[3]=1595750129,s[4]=2917565137,s[5]=725511199,s[6]=4215389547,s[7]=327033209,N(n,s,t,o),o%=128,c=0;c<o;c++)r[c]=t[p-o+c];for(r[o]=128,o=256-128*(112>o?1:0),r[o-9]=0,a(r,o-8,0|p/536870912,p<<3),N(n,s,r,o),c=0;8>c;c++)a(e,8*c,n[c],s[c]);return 0}function M(o,i){var n=se(),a=se(),s=se(),r=se(),p=se(),e=se(),c=se(),l=se(),d=se();P(n,o[1],o[0]),P(d,i[1],i[0]),T(n,n,d),C(a,o[0],o[1]),C(d,i[0],i[1]),T(a,a,d),T(s,o[3],i[3]),T(s,s,D),T(r,o[2],i[2]),C(r,r,r),P(p,a,n),P(e,r,s),C(c,r,s),C(l,a,n),T(o[0],p,e),T(o[1],l,c),T(o[2],c,e),T(o[3],p,l)}function H(e,a,t){var o;for(o=0;4>o;o++)k(e[o],a[o],t)}function V(e,a){var t=se(),o=se(),i=se();S(i,a[2]),T(t,a[0],i),T(o,a[1],i),w(e,o),e[31]^=_(t)<<7}function G(e,a,t){var o,n;for(c(e[0],le),c(e[1],de),c(e[2],de),c(e[3],le),n=255;0<=n;--n)o=1&t[0|n/8]>>(7&n),H(e,a,o),M(a,e),M(e,e),H(e,a,o)}function $(e,a){var t=[se(),se(),se(),se()];c(t[0],he),c(t[1],X),c(t[2],de),T(t[3],he,X),G(e,t,a)}function W(e,a,t){var o=new Uint8Array(64),n=[se(),se(),se(),se()],s;for(t||re(a,32),U(o,a,32),o[0]&=248,o[31]&=127,o[31]|=64,$(n,o),V(e,n),s=0;32>s;s++)a[s+32]=e[s];return 0}function Q(e,a){var t,o,i,n;for(o=63;32<=o;--o){for(t=0,i=o-32,n=o-12;i<n;++i)a[i]+=t-16*a[o]*K[i-(o-32)],t=a[i]+128>>8,a[i]-=256*t;a[i]+=t,a[o]=0}for(t=0,i=0;32>i;i++)a[i]+=t-(a[31]>>4)*K[i],t=a[i]>>8,a[i]&=255;for(i=0;32>i;i++)a[i]-=t*K[i];for(o=0;32>o;o++)a[o+1]+=a[o]>>8,e[o]=255&a[o]}function Z(e){var a=new Float64Array(64),t;for(t=0;64>t;t++)a[t]=e[t];for(t=0;64>t;t++)e[t]=0;Q(e,a)}function J(e,a,t,o){var n=new Uint8Array(64),s=new Uint8Array(64),c=new Uint8Array(64),r=new Float64Array(64),l=[se(),se(),se(),se()],p,i;U(n,o,32),n[0]&=248,n[31]&=127,n[31]|=64;for(p=0;p<t;p++)e[64+p]=a[p];for(p=0;32>p;p++)e[32+p]=n[32+p];for(U(c,e.subarray(32),t+32),Z(c),$(l,c),V(e,l),p=32;64>p;p++)e[p]=o[p];for(U(s,e,t+64),Z(s),p=0;64>p;p++)r[p]=0;for(p=0;32>p;p++)r[p]=c[p];for(p=0;32>p;p++)for(i=0;32>i;i++)r[p+i]+=s[p]*n[i];return Q(e.subarray(32),r),t+64}function ee(e,a){var o=se(),t=se(),i=se(),n=se(),s=se(),r=se(),p=se();return(c(e[2],de),E(e[1],a),A(i,e[1]),T(n,i,me),P(i,i,e[2]),C(n,e[2],n),A(s,n),A(r,s),T(p,r,s),T(o,p,i),T(o,o,n),z(o,o),T(o,o,i),T(o,o,n),T(o,o,n),T(e[0],o,n),A(t,e[0]),T(t,t,n),j(t,i)&&T(e[0],e[0],Y),A(t,e[0]),T(t,t,n),j(t,i))?-1:(_(e[0])===a[31]>>7&&P(e[0],le,e[0]),T(e[3],e[0],e[1]),0)}function ae(e,a,o,n){var r=new Uint8Array(32),t=new Uint8Array(64),c=[se(),se(),se(),se()],p=[se(),se(),se(),se()],l,i;if(i=-1,64>o)return-1;if(ee(p,n))return-1;for(l=0;l<o;l++)e[l]=a[l];for(l=0;32>l;l++)e[l+32]=n[l];if(U(t,e,o),Z(t),G(c,p,t),$(p,a.subarray(32)),M(c,p),V(r,c),o-=64,s(a,0,r,0)){for(l=0;l<o;l++)e[l]=0;return-1}for(l=0;l<o;l++)e[l]=a[l+64];return i=o,i}function te(e,a){if(e.length!==L)throw new Error('bad key size');if(a.length!==be)throw new Error('bad nonce size')}function oe(e,a){if(e.length!==je)throw new Error('bad public key size');if(a.length!==Se)throw new Error('bad secret key size')}function ie(){var e,a;for(a=0;a<arguments.length;a++)if('[object Uint8Array]'!==(e=Object.prototype.toString.call(arguments[a])))throw new TypeError('unexpected type '+e+', use Uint8Array')}function ne(e){for(var a=0;a<e.length;a++)e[a]=0}var se=function(e){var a=new Float64Array(16),t;if(e)for(t=0;t<e.length;t++)a[t]=e[t];return a},re=function(){throw new Error('no PRNG')},pe=new Uint8Array(16),ce=new Uint8Array(32);ce[0]=9;var le=se(),de=se([1]),ue=se([56129,1]),me=se([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),D=se([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),he=se([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),X=se([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),Y=se([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),I=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),fe=function(e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var a,t,o,i,n,s,r,p;a=255&e[0]|(255&e[1])<<8,this.r[0]=8191&a,t=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(a>>>13|t<<3),o=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(t>>>10|o<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(o>>>7|i<<9),n=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|n<<12),this.r[5]=8190&n>>>1,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(n>>>14|s<<2),r=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|r<<5),p=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(r>>>8|p<<8),this.r[9]=127&p>>>5,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};fe.prototype.blocks=function(e,a,t){for(var o=this.fin?0:2048,i=this.h[0],n=this.h[1],s=this.h[2],r=this.h[3],p=this.h[4],l=this.h[5],d=this.h[6],u=this.h[7],m=this.h[8],h=this.h[9],f=this.r[0],g=this.r[1],y=this.r[2],b=this.r[3],v=this.r[4],x=this.r[5],k=this.r[6],w=this.r[7],j=this.r[8],S=this.r[9],_,E,C,P,T,A,I,z,F,c,O,B,R,D,L,N,U,M,H;16<=t;)_=255&e[a+0]|(255&e[a+1])<<8,i+=8191&_,E=255&e[a+2]|(255&e[a+3])<<8,n+=8191&(_>>>13|E<<3),C=255&e[a+4]|(255&e[a+5])<<8,s+=8191&(E>>>10|C<<6),P=255&e[a+6]|(255&e[a+7])<<8,r+=8191&(C>>>7|P<<9),T=255&e[a+8]|(255&e[a+9])<<8,p+=8191&(P>>>4|T<<12),l+=8191&T>>>1,A=255&e[a+10]|(255&e[a+11])<<8,d+=8191&(T>>>14|A<<2),I=255&e[a+12]|(255&e[a+13])<<8,u+=8191&(A>>>11|I<<5),z=255&e[a+14]|(255&e[a+15])<<8,m+=8191&(I>>>8|z<<8),h+=z>>>5|o,F=0,c=F,c+=i*f,c+=n*(5*S),c+=s*(5*j),c+=r*(5*w),c+=p*(5*k),F=c>>>13,c&=8191,c+=l*(5*x),c+=d*(5*v),c+=u*(5*b),c+=m*(5*y),c+=h*(5*g),F+=c>>>13,c&=8191,O=F,O+=i*g,O+=n*f,O+=s*(5*S),O+=r*(5*j),O+=p*(5*w),F=O>>>13,O&=8191,O+=l*(5*k),O+=d*(5*x),O+=u*(5*v),O+=m*(5*b),O+=h*(5*y),F+=O>>>13,O&=8191,B=F,B+=i*y,B+=n*g,B+=s*f,B+=r*(5*S),B+=p*(5*j),F=B>>>13,B&=8191,B+=l*(5*w),B+=d*(5*k),B+=u*(5*x),B+=m*(5*v),B+=h*(5*b),F+=B>>>13,B&=8191,R=F,R+=i*b,R+=n*y,R+=s*g,R+=r*f,R+=p*(5*S),F=R>>>13,R&=8191,R+=l*(5*j),R+=d*(5*w),R+=u*(5*k),R+=m*(5*x),R+=h*(5*v),F+=R>>>13,R&=8191,D=F,D+=i*v,D+=n*b,D+=s*y,D+=r*g,D+=p*f,F=D>>>13,D&=8191,D+=l*(5*S),D+=d*(5*j),D+=u*(5*w),D+=m*(5*k),D+=h*(5*x),F+=D>>>13,D&=8191,L=F,L+=i*x,L+=n*v,L+=s*b,L+=r*y,L+=p*g,F=L>>>13,L&=8191,L+=l*f,L+=d*(5*S),L+=u*(5*j),L+=m*(5*w),L+=h*(5*k),F+=L>>>13,L&=8191,N=F,N+=i*k,N+=n*x,N+=s*v,N+=r*b,N+=p*y,F=N>>>13,N&=8191,N+=l*g,N+=d*f,N+=u*(5*S),N+=m*(5*j),N+=h*(5*w),F+=N>>>13,N&=8191,U=F,U+=i*w,U+=n*k,U+=s*x,U+=r*v,U+=p*b,F=U>>>13,U&=8191,U+=l*y,U+=d*g,U+=u*f,U+=m*(5*S),U+=h*(5*j),F+=U>>>13,U&=8191,M=F,M+=i*j,M+=n*w,M+=s*k,M+=r*x,M+=p*v,F=M>>>13,M&=8191,M+=l*b,M+=d*y,M+=u*g,M+=m*f,M+=h*(5*S),F+=M>>>13,M&=8191,H=F,H+=i*S,H+=n*j,H+=s*w,H+=r*k,H+=p*x,F=H>>>13,H&=8191,H+=l*v,H+=d*b,H+=u*y,H+=m*g,H+=h*f,F+=H>>>13,H&=8191,F=0|(F<<2)+F,F=0|F+c,c=8191&F,F>>>=13,O+=F,i=c,n=O,s=B,r=R,p=D,l=L,d=N,u=U,m=M,h=H,a+=16,t-=16;this.h[0]=i,this.h[1]=n,this.h[2]=s,this.h[3]=r,this.h[4]=p,this.h[5]=l,this.h[6]=d,this.h[7]=u,this.h[8]=m,this.h[9]=h},fe.prototype.finish=function(e,a){var t=new Uint16Array(10),o,n,s,r;if(this.leftover){for(r=this.leftover,this.buffer[r++]=1;16>r;r++)this.buffer[r]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(o=this.h[1]>>>13,this.h[1]&=8191,r=2;10>r;r++)this.h[r]+=o,o=this.h[r]>>>13,this.h[r]&=8191;for(this.h[0]+=5*o,o=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=o,o=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=o,t[0]=this.h[0]+5,o=t[0]>>>13,t[0]&=8191,r=1;10>r;r++)t[r]=this.h[r]+o,o=t[r]>>>13,t[r]&=8191;for(t[9]-=8192,n=(1^o)-1,r=0;10>r;r++)t[r]&=n;for(n=~n,r=0;10>r;r++)this.h[r]=this.h[r]&n|t[r];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),s=this.h[0]+this.pad[0],this.h[0]=65535&s,r=1;8>r;r++)s=0|(0|this.h[r]+this.pad[r])+(s>>>16),this.h[r]=65535&s;e[a+0]=255&this.h[0]>>>0,e[a+1]=255&this.h[0]>>>8,e[a+2]=255&this.h[1]>>>0,e[a+3]=255&this.h[1]>>>8,e[a+4]=255&this.h[2]>>>0,e[a+5]=255&this.h[2]>>>8,e[a+6]=255&this.h[3]>>>0,e[a+7]=255&this.h[3]>>>8,e[a+8]=255&this.h[4]>>>0,e[a+9]=255&this.h[4]>>>8,e[a+10]=255&this.h[5]>>>0,e[a+11]=255&this.h[5]>>>8,e[a+12]=255&this.h[6]>>>0,e[a+13]=255&this.h[6]>>>8,e[a+14]=255&this.h[7]>>>0,e[a+15]=255&this.h[7]>>>8},fe.prototype.update=function(e,a,t){var o,i;if(this.leftover){for(i=16-this.leftover,i>t&&(i=t),o=0;o<i;o++)this.buffer[this.leftover+o]=e[a+o];if(t-=i,a+=i,this.leftover+=i,16>this.leftover)return;this.blocks(this.buffer,0,16),this.leftover=0}if(16<=t&&(i=t-t%16,this.blocks(e,a,i),a+=i,t-=i),t){for(o=0;o<t;o++)this.buffer[this.leftover+o]=e[a+o];this.leftover+=t}};var ge=d,ye=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],K=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),L=32,be=24,ve=32,xe=16,ke=32,we=32,je=32,Se=32,_e=32,Ee=be,Ce=64,Pe=32,Te=64,Ae=32,Ie=64;e.lowlevel={crypto_core_hsalsa20:u,crypto_stream_xor:g,crypto_stream:f,crypto_stream_salsa20_xor:h,crypto_stream_salsa20:m,crypto_onetimeauth:y,crypto_onetimeauth_verify:b,crypto_verify_16:i,crypto_verify_32:s,crypto_secretbox:d,crypto_secretbox_open:v,crypto_scalarmult:F,crypto_scalarmult_base:O,crypto_box_beforenm:R,crypto_box_afternm:ge,crypto_box:function(e,a,t,o,i,n){var s=new Uint8Array(32);return R(s,i,n),ge(e,a,t,o,s)},crypto_box_open:function(e,a,t,o,i,n){var s=new Uint8Array(32);return R(s,i,n),v(e,a,t,o,s)},crypto_box_keypair:B,crypto_hash:U,crypto_sign:J,crypto_sign_keypair:W,crypto_sign_open:ae,crypto_secretbox_KEYBYTES:L,crypto_secretbox_NONCEBYTES:be,crypto_secretbox_ZEROBYTES:ve,crypto_secretbox_BOXZEROBYTES:xe,crypto_scalarmult_BYTES:ke,crypto_scalarmult_SCALARBYTES:we,crypto_box_PUBLICKEYBYTES:je,crypto_box_SECRETKEYBYTES:Se,crypto_box_BEFORENMBYTES:_e,crypto_box_NONCEBYTES:Ee,crypto_box_ZEROBYTES:ve,crypto_box_BOXZEROBYTES:xe,crypto_sign_BYTES:Ce,crypto_sign_PUBLICKEYBYTES:Pe,crypto_sign_SECRETKEYBYTES:Te,crypto_sign_SEEDBYTES:Ae,crypto_hash_BYTES:Ie},e.util||(e.util={},e.util.decodeUTF8=e.util.encodeUTF8=e.util.encodeBase64=e.util.decodeBase64=function(){throw new Error('nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js')}),e.randomBytes=function(e){var a=new Uint8Array(e);return re(a,e),a},e.secretbox=function(e,a,t){ie(e,a,t),te(t,a);for(var o=new Uint8Array(ve+e.length),n=new Uint8Array(o.length),s=0;s<e.length;s++)o[s+ve]=e[s];return d(n,o,o.length,a,t),n.subarray(xe)},e.secretbox.open=function(e,a,t){ie(e,a,t),te(t,a);for(var o=new Uint8Array(xe+e.length),n=new Uint8Array(o.length),s=0;s<e.length;s++)o[s+xe]=e[s];return!(32>o.length)&&!(0!==v(n,o,o.length,a,t))&&n.subarray(ve)},e.secretbox.keyLength=L,e.secretbox.nonceLength=be,e.secretbox.overheadLength=xe,e.scalarMult=function(e,a){if(ie(e,a),e.length!==we)throw new Error('bad n size');if(a.length!==ke)throw new Error('bad p size');var t=new Uint8Array(ke);return F(t,e,a),t},e.scalarMult.base=function(e){if(ie(e),e.length!==we)throw new Error('bad n size');var a=new Uint8Array(ke);return O(a,e),a},e.scalarMult.scalarLength=we,e.scalarMult.groupElementLength=ke,e.box=function(a,t,o,i){var n=e.box.before(o,i);return e.secretbox(a,t,n)},e.box.before=function(e,a){ie(e,a),oe(e,a);var t=new Uint8Array(_e);return R(t,e,a),t},e.box.after=e.secretbox,e.box.open=function(a,t,o,i){var n=e.box.before(o,i);return e.secretbox.open(a,t,n)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(je),a=new Uint8Array(Se);return B(e,a),{publicKey:e,secretKey:a}},e.box.keyPair.fromSecretKey=function(e){if(ie(e),e.length!==Se)throw new Error('bad secret key size');var a=new Uint8Array(je);return O(a,e),{publicKey:a,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=je,e.box.secretKeyLength=Se,e.box.sharedKeyLength=_e,e.box.nonceLength=Ee,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,a){if(ie(e,a),a.length!==Te)throw new Error('bad secret key size');var t=new Uint8Array(Ce+e.length);return J(t,e,e.length,a),t},e.sign.open=function(e,a){if(2!==arguments.length)throw new Error('nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?');if(ie(e,a),a.length!==Pe)throw new Error('bad public key size');var t=new Uint8Array(e.length),o=ae(t,e,e.length,a);if(0>o)return null;for(var n=new Uint8Array(o),s=0;s<n.length;s++)n[s]=t[s];return n},e.sign.detached=function(a,t){for(var o=e.sign(a,t),n=new Uint8Array(Ce),s=0;s<n.length;s++)n[s]=o[s];return n},e.sign.detached.verify=function(e,a,t){if(ie(e,a,t),a.length!==Ce)throw new Error('bad signature size');if(t.length!==Pe)throw new Error('bad public key size');var o=new Uint8Array(Ce+e.length),n=new Uint8Array(Ce+e.length),s;for(s=0;s<Ce;s++)o[s]=a[s];for(s=0;s<e.length;s++)o[s+Ce]=e[s];return 0<=ae(n,o,o.length,t)},e.sign.keyPair=function(){var e=new Uint8Array(Pe),a=new Uint8Array(Te);return W(e,a),{publicKey:e,secretKey:a}},e.sign.keyPair.fromSecretKey=function(e){if(ie(e),e.length!==Te)throw new Error('bad secret key size');for(var a=new Uint8Array(Pe),t=0;t<a.length;t++)a[t]=e[32+t];return{publicKey:a,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(ie(e),e.length!==Ae)throw new Error('bad seed size');for(var a=new Uint8Array(Pe),t=new Uint8Array(Te),o=0;32>o;o++)t[o]=e[o];return W(a,t,!0),{publicKey:a,secretKey:t}},e.sign.publicKeyLength=Pe,e.sign.secretKeyLength=Te,e.sign.seedLength=Ae,e.sign.signatureLength=Ce,e.hash=function(e){ie(e);var a=new Uint8Array(Ie);return U(a,e,e.length),a},e.hash.hashLength=Ie,e.verify=function(e,a){return ie(e,a),0!==e.length&&0!==a.length&&e.length===a.length&&0===o(e,0,a,0,e.length)},e.setPRNG=function(e){re=e},function(){var a='undefined'==typeof self?null:self.crypto||self.msCrypto;if(a&&a.getRandomValues){var o=65536;e.setPRNG(function(e,t){var n=new Uint8Array(t),s;for(s=0;s<t;s+=o)a.getRandomValues(n.subarray(s,s+Math.min(t-s,o)));for(s=0;s<t;s++)e[s]=n[s];ne(n)})}else a=t(1),a&&a.randomBytes&&e.setPRNG(function(e,t){var o=a.randomBytes(t),n;for(n=0;n<t;n++)e[n]=o[n];ne(o)})}()})('undefined'!=typeof e&&e.exports?e.exports:self.nacl=self.nacl||{})},function(e,a,t){var o=t(271);e.exports={Ber:o,BerReader:o.Reader,BerWriter:o.Writer}},function(e,a,t){var o=t(5),i=t(1),n=t(17);a.isTimestampExpired=function(e){return e<parseInt(Date.now()/1e3)},a.encodedEntry=function(e,t){return a.urlsafeBase64Encode(e+(t?':'+t:''))},a.getAKFromUptoken=function(e){var a=e.indexOf(':');return e.substring(0,a)},a.getBucketFromUptoken=function(e){var t=e.lastIndexOf(':'),o=e.substring(t+1),i=a.urlSafeBase64Decode(o),n=JSON.parse(i),s=n.scope,r=s.indexOf(':');return-1==r?s:s.substring(0,r)},a.base64ToUrlSafe=function(e){return e.replace(/\//g,'_').replace(/\+/g,'-')},a.urlSafeToBase64=function(e){return e.replace(/\_/g,'/').replace(/\-/g,'+')},a.urlsafeBase64Encode=function(e){var t=new Buffer(e).toString('base64');return a.base64ToUrlSafe(t)},a.urlSafeBase64Decode=function(e){return new Buffer(a.urlSafeToBase64(e),'base64').toString()},a.hmacSha1=function(e,a){var t=i.createHmac('sha1',a);return t.update(e),t.digest('base64')},a.generateAccessToken=function(e,t,i){var n=o.parse(t),s=n.path,r=s+'\n';i&&(r+=i);var p=a.hmacSha1(r,e.secretKey),c=a.base64ToUrlSafe(p);return'QBox '+e.accessKey+':'+c},a.generateAccessTokenV2=function(e,t,i,n,s){var r=o.parse(t),p=r.path,c=r.query,l=r.host,d=r.port,u=i.toUpperCase()+' '+p;c&&(u+='?'+c),u+='\nHost: '+l,d&&(u+=':'+d),n&&('application/json'==n||'application/x-www-form-urlencoded'==n)&&(u+='\nContent-Type: '+n),u+='\n\n',s&&(u+=s),console.log(u);var m=a.hmacSha1(u,e.secretKey),h=a.base64ToUrlSafe(m);return'Qiniu '+e.accessKey+':'+h},a.isQiniuCallback=function(e,t,o,i){var n=a.generateAccessToken(e,t,o);return n===i}},function(e){e.exports=require('querystring')},function(e){(function(){var a=[].slice,t={}.hasOwnProperty,o,i,n,s,r,p;o=function(){var e,o,i,n,r,p;if(p=arguments[0],r=2<=arguments.length?a.call(arguments,1):[],s(Object.assign))Object.assign.apply(null,arguments);else for(e=0,i=r.length;e<i;e++)if(n=r[e],null!=n)for(o in n)t.call(n,o)&&(p[o]=n[o]);return p},s=function(e){return!!e&&'[object Function]'===Object.prototype.toString.call(e)},r=function(e){var a;return!!e&&('function'==(a=typeof e)||'object'===a)},i=function(e){return s(Array.isArray)?Array.isArray(e):'[object Array]'===Object.prototype.toString.call(e)},n=function(e){if(i(e))return!e.length;for(var a in e)if(t.call(e,a))return!1;return!0},p=function(e){var a,t;return r(e)&&(t=Object.getPrototypeOf(e))&&(a=t.constructor)&&'function'==typeof a&&a instanceof a&&Function.prototype.toString.call(a)===Function.prototype.toString.call(Object)},e.exports.assign=o,e.exports.isFunction=s,e.exports.isObject=r,e.exports.isArray=i,e.exports.isEmpty=n,e.exports.isPlainObject=p}).call(this)},function(e,a){var t=Math.pow,o=Math.max,s=Math.min,p=Math.floor;(function(){function l(e,t,o){null!=e&&('number'==typeof e?this.fromNumber(e,t,o):null==t&&'string'!=typeof e?this.fromString(e,256):this.fromString(e,t))}function c(){return new l(null)}function n(e){return K.charAt(e)}function r(e,a){var t=V[e.charCodeAt(a)];return null==t?-1:t}function h(e){var a=c();return a.fromInt(e),a}function d(e){var a=1,o;return 0!=(o=e>>>16)&&(e=o,a+=16),0!=(o=e>>8)&&(e=o,a+=8),0!=(o=e>>4)&&(e=o,a+=4),0!=(o=e>>2)&&(e=o,a+=2),0!=(o=e>>1)&&(e=o,a+=1),a}function i(a,o,n){var s=a.abs();if(!(0>=s.t)){var r=this.abs();if(r.t<s.t)return null!=o&&o.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=c());var u=c(),m=this.s,h=a.s,f=this.DB-d(s[s.t-1]);0<f?(s.lShiftTo(f,u),r.lShiftTo(f,n)):(s.copyTo(u),r.copyTo(n));var g=u.t,y=u[g-1];if(0!=y){var b=y*(1<<this.F1)+(1<g?u[g-2]>>this.F2:0),v=this.FV/b,x=(1<<this.F1)/b,k=1<<this.F2,e=n.t,i=e-g,w=null==o?c():o;for(u.dlShiftTo(i,w),0<=n.compareTo(w)&&(n[n.t++]=1,n.subTo(w,n)),l.ONE.dlShiftTo(g,w),w.subTo(u,u);u.t<g;)u[u.t++]=0;for(;0<=--i;){var t=n[--e]==y?this.DM:p(n[e]*v+(n[e-1]+k)*x);if((n[e]+=u.am(0,t,n,i,0,g))<t)for(u.dlShiftTo(i,w),n.subTo(w,n);n[e]<--t;)n.subTo(w,n)}null!=o&&(n.drShiftTo(g,o),m!=h&&l.ZERO.subTo(o,o)),n.t=g,n.clamp(),0<f&&n.rShiftTo(f,n),0>m&&l.ZERO.subTo(n,n)}}}function u(e){this.m=e}function f(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function m(a,e){if(4294967295<a||1>a)return l.ONE;var o=c(),n=c(),s=e.convert(this),r=d(a)-1;for(s.copyTo(o);0<=--r;)if(e.sqrTo(o,n),0<(a&1<<r))e.mulTo(n,s,o);else{var i=o;o=n,n=i}return e.revert(o)}function g(e,a,o){if(!('number'==typeof a)){var i=[],n=7&e;i.length=(e>>3)+1,a.nextBytes(i),0<n?i[0]&=(1<<n)-1:i[0]=0,this.fromString(i,256)}else if(2>e)this.fromInt(1);else for(this.fromNumber(e,o),this.testBit(e-1)||this.bitwiseTo(l.ONE.shiftLeft(e-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(a);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(l.ONE.shiftLeft(e-1),this)}function y(e,a){return e&a}function v(e,a){return e|a}function b(e,a){return e^a}function x(e,a){return e&~a}function k(e){if(0==e)return-1;var a=0;return 0==(65535&e)&&(e>>=16,a+=16),0==(255&e)&&(e>>=8,a+=8),0==(15&e)&&(e>>=4,a+=4),0==(3&e)&&(e>>=2,a+=2),0==(1&e)&&++a,a}function w(e){for(var a=0;0!=e;)e&=e-1,++a;return a}function j(){}function S(e){return e}function _(e){this.r2=c(),this.q3=c(),l.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function E(a,e){var o=a.bitLength(),i=h(1),s,r;if(0>=o)return i;s=18>o?1:48>o?3:144>o?4:768>o?5:6,r=8>o?new u(e):e.isEven()?new _(e):new f(e);var p=[],l=3,n=s-1,m=(1<<s)-1;if(p[1]=r.convert(this),1<s){var g=c();for(r.sqrTo(p[1],g);l<=m;)p[l]=c(),r.mulTo(g,p[l-2],p[l]),l+=2}var y=a.t-1,b=!0,v=c(),x,k;for(o=d(a[y])-1;0<=y;){for(o>=n?x=a[y]>>o-n&m:(x=(a[y]&(1<<o+1)-1)<<n-o,0<y&&(x|=a[y-1]>>this.DB+o-n)),l=s;0==(1&x);)x>>=1,--l;if(0>(o-=l)&&(o+=this.DB,--y),b)p[x].copyTo(i),b=!1;else{for(;1<l;)r.sqrTo(i,v),r.sqrTo(v,i),l-=2;0<l?r.sqrTo(i,v):(k=i,i=v,v=k),r.mulTo(v,p[x],i)}for(;0<=y&&0==(a[y]&1<<o);)r.sqrTo(i,v),k=i,i=v,v=k,0>--o&&(o=this.DB-1,--y)}return r.revert(i)}function C(e){var a=0>this.s?this.negate():this.clone(),o=0>e.s?e.negate():e.clone();if(0>a.compareTo(o)){var n=a;a=o,o=n}var t=a.getLowestSetBit(),i=o.getLowestSetBit();if(0>i)return a;for(t<i&&(i=t),0<i&&(a.rShiftTo(i,a),o.rShiftTo(i,o));0<a.signum();)0<(t=a.getLowestSetBit())&&a.rShiftTo(t,a),0<(t=o.getLowestSetBit())&&o.rShiftTo(t,o),0<=a.compareTo(o)?(a.subTo(o,a),a.rShiftTo(1,a)):(o.subTo(a,o),o.rShiftTo(1,o));return 0<i&&o.lShiftTo(i,o),o}function P(e){var a=this.abs(),t;if(1==a.t&&a[0]<=W[W.length-1]){for(t=0;t<W.length;++t)if(a[0]==W[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<W.length;){for(var o=W[t],i=t+1;i<W.length&&o<Q;)o*=W[i++];for(o=a.modInt(o);t<i;)if(0==o%W[t++])return!1}return a.millerRabin(e)}function T(e){var t=this.subtract(l.ONE),o=t.getLowestSetBit();if(0>=o)return!1;var n=t.shiftRight(o);e=e+1>>1,e>W.length&&(e=W.length);for(var s=c(),a=0;a<e;++a){s.fromInt(W[p(Math.random()*W.length)]);var i=s.modPow(n,this);if(0!=i.compareTo(l.ONE)&&0!=i.compareTo(t)){for(var r=1;r++<o&&0!=i.compareTo(t);)if(i=i.modPowInt(2,this),0==i.compareTo(l.ONE))return!1;if(0!=i.compareTo(t))return!1}}return!0}function A(e){X[Z++]^=255&e,X[Z++]^=255&e>>8,X[Z++]^=255&e>>16,X[Z++]^=255&e>>24,Z>=z&&(Z-=z)}function I(){A(new Date().getTime())}function F(){if(null==Y){for(I(),Y=L(),Y.init(X),Z=0;Z<X.length;++Z)X[Z]=0;Z=0}return Y.next()}function O(){}function B(){this.i=0,this.j=0,this.S=[]}function R(e){var a,o,i;for(a=0;256>a;++a)this.S[a]=a;for(o=0,a=0;256>a;++a)o=255&o+this.S[a]+e[a%e.length],i=this.S[a],this.S[a]=this.S[o],this.S[o]=i;this.i=0,this.j=0}function D(){var e;return this.i=255&this.i+1,this.j=255&this.j+this.S[this.i],e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[255&e+this.S[this.i]]}function L(){return new B}var N=15715070==(16777215&0xdeadbeefcafe),U='undefined'!=typeof navigator,M;U&&N&&'Microsoft Internet Explorer'==navigator.appName?(l.prototype.am=function(e,a,t,o,i,s){for(var n=32767&a,r=a>>15;0<=--s;){var p=32767&this[e],c=this[e++]>>15,l=r*p+c*n;p=n*p+((32767&l)<<15)+t[o]+(1073741823&i),i=(p>>>30)+(l>>>15)+r*c+(i>>>30),t[o++]=1073741823&p}return i},M=30):U&&N&&'Netscape'!=navigator.appName?(l.prototype.am=function(e,a,t,o,i,s){for(;0<=--s;){var n=a*this[e++]+t[o]+i;i=p(n/67108864),t[o++]=67108863&n}return i},M=26):(l.prototype.am=function(e,a,t,o,i,s){for(var n=16383&a,r=a>>14;0<=--s;){var p=16383&this[e],c=this[e++]>>14,l=r*p+c*n;p=n*p+((16383&l)<<14)+t[o]+i,i=(p>>28)+(l>>14)+r*c,t[o++]=268435455&p}return i},M=28),l.prototype.DB=M,l.prototype.DM=(1<<M)-1,l.prototype.DV=1<<M;var H=52;l.prototype.FV=4503599627370496,l.prototype.F1=H-M,l.prototype.F2=2*M-H;var K='0123456789abcdefghijklmnopqrstuvwxyz',V=[],G,$;for(G=48,$=0;9>=$;++$)V[G++]=$;for(G=97,$=10;36>$;++$)V[G++]=$;for(G=65,$=10;36>$;++$)V[G++]=$;u.prototype.convert=function(e){return 0>e.s||0<=e.compareTo(this.m)?e.mod(this.m):e},u.prototype.revert=function(e){return e},u.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},u.prototype.mulTo=function(e,a,t){e.multiplyTo(a,t),this.reduce(t)},u.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},f.prototype.convert=function(e){var a=c();return e.abs().dlShiftTo(this.m.t,a),a.divRemTo(this.m,null,a),0>e.s&&0<a.compareTo(l.ZERO)&&this.m.subTo(a,a),a},f.prototype.revert=function(e){var a=c();return e.copyTo(a),this.reduce(a),a},f.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var a=0;a<this.m.t;++a){var t=32767&e[a],o=t*this.mpl+((t*this.mph+(e[a]>>15)*this.mpl&this.um)<<15)&e.DM;for(t=a+this.m.t,e[t]+=this.m.am(0,o,e,a,0,this.m.t);e[t]>=e.DV;)e[t]-=e.DV,e[++t]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},f.prototype.mulTo=function(e,a,t){e.multiplyTo(a,t),this.reduce(t)},f.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},l.prototype.copyTo=function(e){for(var a=this.t-1;0<=a;--a)e[a]=this[a];e.t=this.t,e.s=this.s},l.prototype.fromInt=function(e){this.t=1,this.s=0>e?-1:0,0<e?this[0]=e:-1>e?this[0]=e+this.DV:this.t=0},l.prototype.fromString=function(e,a){var t;if(16==a)t=4;else if(8==a)t=3;else if(256==a)t=8;else if(2==a)t=1;else if(32==a)t=5;else if(4==a)t=2;else return void this.fromRadix(e,a);this.t=0,this.s=0;for(var o=e.length,i=!1,n=0;0<=--o;){var s=8==t?255&e[o]:r(e,o);if(0>s){'-'==e.charAt(o)&&(i=!0);continue}i=!1,0==n?this[this.t++]=s:n+t>this.DB?(this[this.t-1]|=(s&(1<<this.DB-n)-1)<<n,this[this.t++]=s>>this.DB-n):this[this.t-1]|=s<<n,n+=t,n>=this.DB&&(n-=this.DB)}8==t&&0!=(128&e[0])&&(this.s=-1,0<n&&(this[this.t-1]|=(1<<this.DB-n)-1<<n)),this.clamp(),i&&l.ZERO.subTo(this,this)},l.prototype.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},l.prototype.dlShiftTo=function(e,a){var t;for(t=this.t-1;0<=t;--t)a[t+e]=this[t];for(t=e-1;0<=t;--t)a[t]=0;a.t=this.t+e,a.s=this.s},l.prototype.drShiftTo=function(e,a){for(var t=e;t<this.t;++t)a[t-e]=this[t];a.t=o(this.t-e,0),a.s=this.s},l.prototype.lShiftTo=function(e,a){var t=e%this.DB,o=this.DB-t,n=p(e/this.DB),s=this.s<<t&this.DM,r;for(r=this.t-1;0<=r;--r)a[r+n+1]=this[r]>>o|s,s=(this[r]&(1<<o)-1)<<t;for(r=n-1;0<=r;--r)a[r]=0;a[n]=s,a.t=this.t+n+1,a.s=this.s,a.clamp()},l.prototype.rShiftTo=function(e,a){a.s=this.s;var t=p(e/this.DB);if(t>=this.t)return void(a.t=0);var o=e%this.DB,n=this.DB-o,s=(1<<o)-1;a[0]=this[t]>>o;for(var r=t+1;r<this.t;++r)a[r-t-1]|=(this[r]&s)<<n,a[r-t]=this[r]>>o;0<o&&(a[this.t-t-1]|=(this.s&s)<<n),a.t=this.t-t,a.clamp()},l.prototype.subTo=function(e,a){for(var t=0,o=0,i=s(e.t,this.t);t<i;)o+=this[t]-e[t],a[t++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o-=e.s;t<this.t;)o+=this[t],a[t++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;t<e.t;)o-=e[t],a[t++]=o&this.DM,o>>=this.DB;o-=e.s}a.s=0>o?-1:0,-1>o?a[t++]=this.DV+o:0<o&&(a[t++]=o),a.t=t,a.clamp()},l.prototype.multiplyTo=function(e,a){var t=this.abs(),o=e.abs(),n=t.t;for(a.t=n+o.t;0<=--n;)a[n]=0;for(n=0;n<o.t;++n)a[n+t.t]=t.am(0,o[n],a,n,0,t.t);a.s=0,a.clamp(),this.s!=e.s&&l.ZERO.subTo(a,a)},l.prototype.squareTo=function(e){for(var a=this.abs(),t=e.t=2*a.t;0<=--t;)e[t]=0;for(t=0;t<a.t-1;++t){var o=a.am(t,a[t],e,2*t,0,1);(e[t+a.t]+=a.am(t+1,2*a[t],e,2*t+1,o,a.t-t-1))>=a.DV&&(e[t+a.t]-=a.DV,e[t+a.t+1]=1)}0<e.t&&(e[e.t-1]+=a.am(t,a[t],e,2*t,0,1)),e.s=0,e.clamp()},l.prototype.divRemTo=i,l.prototype.invDigit=function(){if(1>this.t)return 0;var e=this[0];if(0==(1&e))return 0;var a=3&e;return a=15&a*(2-(15&e)*a),a=255&a*(2-(255&e)*a),a=65535&a*(2-(65535&(65535&e)*a)),a=a*(2-e*a%this.DV)%this.DV,0<a?this.DV-a:-a},l.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},l.prototype.exp=m,l.prototype.toString=function(e){if(0>this.s)return'-'+this.negate().toString(e);var a;if(16==e)a=4;else if(8==e)a=3;else if(2==e)a=1;else if(32==e)a=5;else if(4==e)a=2;else return this.toRadix(e);var t=(1<<a)-1,o=!1,s='',r=this.t,i=this.DB-r*this.DB%a,p;if(0<r--)for(i<this.DB&&0<(p=this[r]>>i)&&(o=!0,s=n(p));0<=r;)i<a?(p=(this[r]&(1<<i)-1)<<a-i,p|=this[--r]>>(i+=this.DB-a)):(p=this[r]>>(i-=a)&t,0>=i&&(i+=this.DB,--r)),0<p&&(o=!0),o&&(s+=n(p));return o?s:'0'},l.prototype.negate=function(){var e=c();return l.ZERO.subTo(this,e),e},l.prototype.abs=function(){return 0>this.s?this.negate():this},l.prototype.compareTo=function(e){var a=this.s-e.s;if(0!=a)return a;var t=this.t;if(a=t-e.t,0!=a)return 0>this.s?-a:a;for(;0<=--t;)if(0!=(a=this[t]-e[t]))return a;return 0},l.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},l.prototype.mod=function(e){var a=c();return this.abs().divRemTo(e,null,a),0>this.s&&0<a.compareTo(l.ZERO)&&e.subTo(a,a),a},l.prototype.modPowInt=function(a,e){var t;return t=256>a||e.isEven()?new u(e):new f(e),this.exp(a,t)},l.ZERO=h(0),l.ONE=h(1),j.prototype.convert=S,j.prototype.revert=S,j.prototype.mulTo=function(e,a,t){e.multiplyTo(a,t)},j.prototype.sqrTo=function(e,a){e.squareTo(a)},_.prototype.convert=function(e){if(0>e.s||e.t>2*this.m.t)return e.mod(this.m);if(0>e.compareTo(this.m))return e;var a=c();return e.copyTo(a),this.reduce(a),a},_.prototype.revert=function(e){return e},_.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>e.compareTo(this.r2);)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);0<=e.compareTo(this.m);)e.subTo(this.m,e)},_.prototype.mulTo=function(e,a,t){e.multiplyTo(a,t),this.reduce(t)},_.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)};var W=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Q=67108864/W[W.length-1];l.prototype.chunkSize=function(e){return p(Math.LN2*this.DB/Math.log(e))},l.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||2>e||36<e)return'0';var o=this.chunkSize(e),i=t(e,o),a=h(i),n=c(),s=c(),p='';for(this.divRemTo(a,n,s);0<n.signum();)p=(i+s.intValue()).toString(e).substr(1)+p,n.divRemTo(a,n,s);return s.intValue().toString(e)+p},l.prototype.fromRadix=function(e,a){this.fromInt(0),null==a&&(a=10);for(var o=this.chunkSize(a),n=t(a,o),s=!1,p=0,c=0,d=0,i;d<e.length;++d){if(i=r(e,d),0>i){'-'==e.charAt(d)&&0==this.signum()&&(s=!0);continue}c=a*c+i,++p>=o&&(this.dMultiply(n),this.dAddOffset(c,0),p=0,c=0)}0<p&&(this.dMultiply(t(a,p)),this.dAddOffset(c,0)),s&&l.ZERO.subTo(this,this)},l.prototype.fromNumber=g,l.prototype.bitwiseTo=function(e,a,t){var o=s(e.t,this.t),n,i;for(n=0;n<o;++n)t[n]=a(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)t[n]=a(this[n],i);t.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)t[n]=a(i,e[n]);t.t=e.t}t.s=a(this.s,e.s),t.clamp()},l.prototype.changeBit=function(e,a){var t=l.ONE.shiftLeft(e);return this.bitwiseTo(t,a,t),t},l.prototype.addTo=function(e,a){for(var t=0,o=0,i=s(e.t,this.t);t<i;)o+=this[t]+e[t],a[t++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o+=e.s;t<this.t;)o+=this[t],a[t++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;t<e.t;)o+=e[t],a[t++]=o&this.DM,o>>=this.DB;o+=e.s}a.s=0>o?-1:0,0<o?a[t++]=o:-1>o&&(a[t++]=this.DV+o),a.t=t,a.clamp()},l.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},l.prototype.dAddOffset=function(e,a){if(0!=e){for(;this.t<=a;)this[this.t++]=0;for(this[a]+=e;this[a]>=this.DV;)this[a]-=this.DV,++a>=this.t&&(this[this.t++]=0),++this[a]}},l.prototype.multiplyLowerTo=function(e,a,t){var o=s(this.t+e.t,a);for(t.s=0,t.t=o;0<o;)t[--o]=0;var i;for(i=t.t-this.t;o<i;++o)t[o+this.t]=this.am(0,e[o],t,o,0,this.t);for(i=s(e.t,a);o<i;++o)this.am(0,e[o],t,o,0,a-o);t.clamp()},l.prototype.multiplyUpperTo=function(e,a,t){--a;var n=t.t=this.t+e.t-a;for(t.s=0;0<=--n;)t[n]=0;for(n=o(a-this.t,0);n<e.t;++n)t[this.t+n-a]=this.am(a-n,e[n],t,0,0,this.t+n-a);t.clamp(),t.drShiftTo(1,t)},l.prototype.modInt=function(e){if(0>=e)return 0;var a=this.DV%e,t=0>this.s?e-1:0;if(0<this.t)if(0==a)t=this[0]%e;else for(var o=this.t-1;0<=o;--o)t=(a*t+this[o])%e;return t},l.prototype.millerRabin=T,l.prototype.clone=function(){var e=c();return this.copyTo(e),e},l.prototype.intValue=function(){if(0>this.s){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)<<this.DB|this[0]},l.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},l.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},l.prototype.signum=function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this[0]?0:1},l.prototype.toByteArray=function(){var e=this.t,a=[];a[0]=this.s;var t=this.DB-e*this.DB%8,o=0,i;if(0<e--)for(t<this.DB&&(i=this[e]>>t)!=(this.s&this.DM)>>t&&(a[o++]=i|this.s<<this.DB-t);0<=e;)8>t?(i=(this[e]&(1<<t)-1)<<8-t,i|=this[--e]>>(t+=this.DB-8)):(i=255&this[e]>>(t-=8),0>=t&&(t+=this.DB,--e)),0!=(128&i)&&(i|=-256),0==o&&(128&this.s)!=(128&i)&&++o,(0<o||i!=this.s)&&(a[o++]=i);return a},l.prototype.equals=function(e){return 0==this.compareTo(e)},l.prototype.min=function(e){return 0>this.compareTo(e)?this:e},l.prototype.max=function(e){return 0<this.compareTo(e)?this:e},l.prototype.and=function(e){var a=c();return this.bitwiseTo(e,y,a),a},l.prototype.or=function(e){var a=c();return this.bitwiseTo(e,v,a),a},l.prototype.xor=function(e){var a=c();return this.bitwiseTo(e,b,a),a},l.prototype.andNot=function(e){var a=c();return this.bitwiseTo(e,x,a),a},l.prototype.not=function(){for(var e=c(),a=0;a<this.t;++a)e[a]=this.DM&~this[a];return e.t=this.t,e.s=~this.s,e},l.prototype.shiftLeft=function(e){var a=c();return 0>e?this.rShiftTo(-e,a):this.lShiftTo(e,a),a},l.prototype.shiftRight=function(e){var a=c();return 0>e?this.lShiftTo(-e,a):this.rShiftTo(e,a),a},l.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+k(this[e]);return 0>this.s?this.t*this.DB:-1},l.prototype.bitCount=function(){for(var e=0,a=this.s&this.DM,t=0;t<this.t;++t)e+=w(this[t]^a);return e},l.prototype.testBit=function(e){var a=p(e/this.DB);return a>=this.t?0!=this.s:0!=(this[a]&1<<e%this.DB)},l.prototype.setBit=function(e){return this.changeBit(e,v)},l.prototype.clearBit=function(e){return this.changeBit(e,x)},l.prototype.flipBit=function(e){return this.changeBit(e,b)},l.prototype.add=function(e){var a=c();return this.addTo(e,a),a},l.prototype.subtract=function(e){var a=c();return this.subTo(e,a),a},l.prototype.multiply=function(e){var a=c();return this.multiplyTo(e,a),a},l.prototype.divide=function(e){var a=c();return this.divRemTo(e,a,null),a},l.prototype.remainder=function(e){var a=c();return this.divRemTo(e,null,a),a},l.prototype.divideAndRemainder=function(e){var a=c(),t=c();return this.divRemTo(e,a,t),[a,t]},l.prototype.modPow=E,l.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return l.ZERO;for(var o=e.clone(),i=this.clone(),n=h(1),a=h(0),s=h(0),r=h(1);0!=o.signum();){for(;o.isEven();)o.rShiftTo(1,o),t?((!n.isEven()||!a.isEven())&&(n.addTo(this,n),a.subTo(e,a)),n.rShiftTo(1,n)):!a.isEven()&&a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?((!s.isEven()||!r.isEven())&&(s.addTo(this,s),r.subTo(e,r)),s.rShiftTo(1,s)):!r.isEven()&&r.subTo(e,r),r.rShiftTo(1,r);0<=o.compareTo(i)?(o.subTo(i,o),t&&n.subTo(s,n),a.subTo(r,a)):(i.subTo(o,i),t&&s.subTo(n,s),r.subTo(a,r))}if(0!=i.compareTo(l.ONE))return l.ZERO;if(0<=r.compareTo(e))return r.subtract(e);if(0>r.signum())r.addTo(e,r);else return r;return 0>r.signum()?r.add(e):r},l.prototype.pow=function(a){return this.exp(a,new j)},l.prototype.gcd=C,l.prototype.isProbablePrime=P,l.prototype.square=function(){var e=c();return this.squareTo(e),e},l.prototype.Barrett=_;var Y,X,Z;if(null==X){X=[],Z=0;var J;if('undefined'!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var ee=new Uint8Array(32);for(window.crypto.getRandomValues(ee),J=0;32>J;++J)X[Z++]=ee[J]}else if('Netscape'==navigator.appName&&'5'>navigator.appVersion){var ae=window.crypto.random(32);for(J=0;J<ae.length;++J)X[Z++]=255&ae.charCodeAt(J)}for(;Z<z;)J=p(65536*Math.random()),X[Z++]=J>>>8,X[Z++]=255&J;Z=0,I()}O.prototype.nextBytes=function(e){var a;for(a=0;a<e.length;++a)e[a]=F()},B.prototype.init=R,B.prototype.next=D;var z=256;l.SecureRandom=O,l.BigInteger=l,a=e.exports=l}).call(this)},function(e,a,t){e.exports={read:function(e,a,t){var i=e;'string'!=typeof e&&(n.buffer(e,'buf'),e=e.toString('ascii'));var c=e.trim().split('\n'),l=c[0].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);n.ok(l,'invalid PEM header');var g=c[c.length-1].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);n.ok(g,'invalid PEM footer'),n.equal(l[2],g[2]);var y=l[2].toLowerCase(),b;l[1]&&(n.equal(l[1],g[1],'PEM header and footer mismatch'),b=l[1].trim());for(var v={};c=c.slice(1),l=c[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!l;)v[l[1].toLowerCase()]=l[2];var x,k,w;if(v['proc-type']){var j=v['proc-type'].split(',');if('4'===j[0]&&'ENCRYPTED'===j[1])if('string'==typeof a.passphrase&&(a.passphrase=r.from(a.passphrase,'utf-8')),!r.isBuffer(a.passphrase))throw new m.KeyEncryptedError(a.filename,'PEM');else j=v['dek-info'].split(','),n.ok(2===j.length),x=j[0].toLowerCase(),w=r.from(j[1],'hex'),k=p.opensslKeyDeriv(x,w,a.passphrase,1).key}if(c=c.slice(0,-1).join(''),e=r.from(c,'base64'),x&&k&&w){var S=o.createDecipheriv(x,k,w),_=[],E;for(S.once('error',function(a){if(-1!==a.toString().indexOf('bad decrypt'))throw new Error('Incorrect passphrase supplied, could not decrypt key');throw a}),S.write(e),S.end();null!==(E=S.read());)_.push(E);e=r.concat(_)}if(b&&'openssh'===b.toLowerCase())return h.readSSHPrivate(y,e,a);if(b&&'ssh2'===b.toLowerCase())return f.readType(y,e,a);var C=new s.BerReader(e);return C.originalInput=i,C.readSequence(),b?(t&&n.strictEqual(t,'pkcs1'),d.readPkcs1(b,y,C)):(t&&n.strictEqual(t,'pkcs8'),u.readPkcs8(b,y,C))},write:function(e,a,t){n.object(e);var p={ecdsa:'EC',rsa:'RSA',dsa:'DSA',ed25519:'EdDSA'}[e.type],m=new s.BerWriter,h;if(l.isPrivateKey(e))t&&'pkcs8'===t?(h='PRIVATE KEY',u.writePkcs8(m,e)):(t&&n.strictEqual(t,'pkcs1'),h=p+' PRIVATE KEY',d.writePkcs1(m,e));else if(c.isKey(e))t&&'pkcs1'===t?(h=p+' PUBLIC KEY',d.writePkcs1(m,e)):(t&&n.strictEqual(t,'pkcs8'),h='PUBLIC KEY',u.writePkcs8(m,e));else throw new Error('key is not a Key or PrivateKey');var f=m.buffer.toString('base64'),g=f.length+f.length/64+18+16+2*h.length+10,y=r.alloc(g),b=0;b+=y.write('-----BEGIN '+h+'-----\n',b);for(var o=0,i;o<f.length;)i=o+64,i>f.length&&(i=f.length),b+=y.write(f.slice(o,i),b),y[b++]=10,o=i;return b+=y.write('-----END '+h+'-----\n',b),y.slice(0,b)}};var n=t(2),s=t(22),o=t(1),r=t(3).Buffer,i=t(10),p=t(8),c=t(9),l=t(11),d=t(78),u=t(43),h=t(64),f=t(30),m=t(19)},function(e){'use strict';/*!
2 * copy-to - index.js
3 * Copyright(c) 2014 dead_horse <dead_horse@qq.com>
4 * MIT Licensed

Callers 8

FFunction · 0.70
cos.jsFile · 0.70
zFunction · 0.70
AeFunction · 0.70
TFunction · 0.70
OFunction · 0.70
QFunction · 0.70
VFunction · 0.70

Calls 4

AFunction · 0.70
xFunction · 0.70
CFunction · 0.70
_Function · 0.70

Tested by

no test coverage detected