23 lines
1.1 MiB
JavaScript
23 lines
1.1 MiB
JavaScript
|
|
!function(l){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=l();else if("function"==typeof define&&define.amd)define([],l);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.neo4j=l()}}(function(){var define,module,exports;return function(){function l(n,e,t){function u(i,o){if(!e[i]){if(!n[i]){var a="function"==typeof require&&require;if(!o&&a)return a(i,!0);if(r)return r(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var c=e[i]={exports:{}};n[i][0].call(c.exports,function(l){var e=n[i][1][l];return u(e||l)},c,c.exports,l,n,e,t)}return e[i].exports}for(var r="function"==typeof require&&require,i=0;i<t.length;i++)u(t[i]);return u}return l}()({1:[function(l,n,e){var t=e;t.bignum=l("bn.js"),t.define=l("./asn1/api").define,t.base=l("./asn1/base"),t.constants=l("./asn1/constants"),t.decoders=l("./asn1/decoders"),t.encoders=l("./asn1/encoders")},{"./asn1/api":2,"./asn1/base":4,"./asn1/constants":8,"./asn1/decoders":10,"./asn1/encoders":13,"bn.js":44}],2:[function(l,n,e){function t(l,n){this.name=l,this.body=n,this.decoders={},this.encoders={}}var u=l("../asn1"),r=l("inherits"),i=e;i.define=function(l,n){return new t(l,n)},t.prototype._createNamed=function(n){var e;try{e=l("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(l){this._initNamed(l)}}return r(e,n),e.prototype._initNamed=function(l){n.call(this,l)},new e(this)},t.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(u.decoders[l])),this.decoders[l]},t.prototype.decode=function(l,n,e){return this._getDecoder(n).decode(l,e)},t.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(u.encoders[l])),this.encoders[l]},t.prototype.encode=function(l,n,e){return this._getEncoder(n).encode(l,e)}},{"../asn1":1,inherits:263,vm:321}],3:[function(l,n,e){function t(l,n){return i.call(this,n),o.isBuffer(l)?(this.base=l,this.offset=0,void(this.length=l.length)):void this.error("Input not Buffer")}function u(l,n){if(Array.isArray(l))this.length=0,this.value=l.map(function(l){return l instanceof u||(l=new u(l,n)),this.length+=l.length,l},this);else if("number"==typeof l){if(!(0<=l&&l<=255))return n.error("non-byte EncoderBuffer value");this.value=l,this.length=1}else if("string"==typeof l)this.value=l,this.length=o.byteLength(l);else{if(!o.isBuffer(l))return n.error("Unsupported type: "+typeof l);this.value=l,this.length=l.length}}var r=l("inherits"),i=l("../base").Reporter,o=l("buffer").Buffer;r(t,i),e.DecoderBuffer=t,t.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},t.prototype.restore=function(l){var n=new t(this.base);return n.offset=l.offset,n.length=this.offset,this.offset=l.offset,i.prototype.restore.call(this,l.reporter),n},t.prototype.isEmpty=function(){return this.offset===this.length},t.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},t.prototype.skip=function(l,n){if(!(this.offset+l<=this.length))return this.error(n||"DecoderBuffer overrun");var e=new t(this.base);return e._reporterState=this._reporterState,e.offset=this.offset,e.length=this.offset+l,this.offset+=l,e},t.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},e.EncoderBuffer=u,u.prototype.join=function(l,n){return l||(l=new o(this.length)),n||(n=0),0===this.length?l:(Array.isArray(this.value)?this.value.forEach(function(e){e.join(l,n),n+=e.length}):("number"==typeof this.value?l[n]=this.value:"string"==typeof this.value?l.write(this.value,n):o.isBuffer(this.value)&&this.value.copy(l,n),n+=this.length),l)}},{"../base":4,buffer:76,inherits:263}],4:[function(l,n,e){var t=e;t.Reporter=l("./reporter").Reporter,t.DecoderBuffer=l("./buffer").DecoderBuffer,t.EncoderBuffer=l("./buffer").EncoderBuffer,t.Node=l("./node")},{"./buffer":3
|
||
|
|
}},{"../core-js/symbol":32,"../core-js/symbol/iterator":33}],43:[function(l,n,e){"use strict";function t(l){var n=l.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=l.indexOf("=");e===-1&&(e=n);var t=e===n?0:4-e%4;return[e,t]}function u(l){var n=t(l),e=n[0],u=n[1];return 3*(e+u)/4-u}function r(l,n,e){return 3*(n+e)/4-e}function i(l){for(var n,e=t(l),u=e[0],i=e[1],o=new h(r(l,u,i)),a=0,s=i>0?u-4:u,c=0;c<s;c+=4)n=f[l.charCodeAt(c)]<<18|f[l.charCodeAt(c+1)]<<12|f[l.charCodeAt(c+2)]<<6|f[l.charCodeAt(c+3)],o[a++]=n>>16&255,o[a++]=n>>8&255,o[a++]=255&n;return 2===i&&(n=f[l.charCodeAt(c)]<<2|f[l.charCodeAt(c+1)]>>4,o[a++]=255&n),1===i&&(n=f[l.charCodeAt(c)]<<10|f[l.charCodeAt(c+1)]<<4|f[l.charCodeAt(c+2)]>>2,o[a++]=n>>8&255,o[a++]=255&n),o}function o(l){return c[l>>18&63]+c[l>>12&63]+c[l>>6&63]+c[63&l]}function a(l,n,e){for(var t,u=[],r=n;r<e;r+=3)t=(l[r]<<16&16711680)+(l[r+1]<<8&65280)+(255&l[r+2]),u.push(o(t));return u.join("")}function s(l){for(var n,e=l.length,t=e%3,u=[],r=16383,i=0,o=e-t;i<o;i+=r)u.push(a(l,i,i+r>o?o:i+r));return 1===t?(n=l[e-1],u.push(c[n>>2]+c[n<<4&63]+"==")):2===t&&(n=(l[e-2]<<8)+l[e-1],u.push(c[n>>10]+c[n>>4&63]+c[n<<2&63]+"=")),u.join("")}e.byteLength=u,e.toByteArray=i,e.fromByteArray=s;for(var c=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,b=d.length;p<b;++p)c[p]=d[p],f[d.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],44:[function(l,n,e){!function(n,e){"use strict";function t(l,n){if(!l)throw new Error(n||"Assertion failed")}function u(l,n){l.super_=n;var e=function(){};e.prototype=n.prototype,l.prototype=new e,l.prototype.constructor=l}function r(l,n,e){return r.isBN(l)?l:(this.negative=0,this.words=null,this.length=0,this.red=null,void(null!==l&&("le"!==n&&"be"!==n||(e=n,n=10),this._init(l||0,n||10,e||"be"))))}function i(l,n,e){for(var t=0,u=Math.min(l.length,e),r=n;r<u;r++){var i=l.charCodeAt(r)-48;t<<=4,t|=i>=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return t}function o(l,n,e,t){for(var u=0,r=Math.min(l.length,e),i=n;i<r;i++){var o=l.charCodeAt(i)-48;u*=t,u+=o>=49?o-49+10:o>=17?o-17+10:o}return u}function a(l){for(var n=new Array(l.bitLength()),e=0;e<n.length;e++){var t=e/26|0,u=e%26;n[e]=(l.words[t]&1<<u)>>>u}return n}function s(l,n,e){e.negative=n.negative^l.negative;var t=l.length+n.length|0;e.length=t,t=t-1|0;var u=0|l.words[0],r=0|n.words[0],i=u*r,o=67108863&i,a=i/67108864|0;e.words[0]=o;for(var s=1;s<t;s++){for(var c=a>>>26,f=67108863&a,h=Math.min(s,n.length-1),d=Math.max(0,s-l.length+1);d<=h;d++){var p=s-d|0;u=0|l.words[p],r=0|n.words[d],i=u*r+f,c+=i/67108864|0,f=67108863&i}e.words[s]=0|f,a=0|c}return 0!==a?e.words[s]=0|a:e.length--,e.strip()}function c(l,n,e){e.negative=n.negative^l.negative,e.length=l.length+n.length;for(var t=0,u=0,r=0;r<e.length-1;r++){var i=u;u=0;for(var o=67108863&t,a=Math.min(r,n.length-1),s=Math.max(0,r-l.length+1);s<=a;s++){var c=r-s,f=0|l.words[c],h=0|n.words[s],d=f*h,p=67108863&d;i=i+(d/67108864|0)|0,p=p+o|0,o=67108863&p,i=i+(p>>>26)|0,u+=i>>>26,i&=67108863}e.words[r]=o,t=i,i=u}return 0!==t?e.words[r]=t:e.length--,e.strip()}function f(l,n,e){var t=new h;return t.mulp(l,n,e)}function h(l,n){this.x=l,this.y=n}function d(l,n){this.name=l,this.p=new r(n,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(l){if("string"==typeof l){var n=r._prime(l);this.m=n.p,this.prime=n}else t(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}function y(l){m.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln
|
||
|
|
}var f=t.clone()._ishlnsubmul(u,1,s);0===f.negative&&(t=f,a&&(a.words[s]=1));for(var h=s-1;h>=0;h--){var d=67108864*(0|t.words[u.length+h])+(0|t.words[u.length+h-1]);for(d=Math.min(d/i|0,67108863),t._ishlnsubmul(u,d,h);0!==t.negative;)d--,t.negative=0,t._ishlnsubmul(u,1,h),t.isZero()||(t.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),t.strip(),"div"!==n&&0!==e&&t.iushrn(e),{div:a||null,mod:t}},r.prototype.divmod=function(l,n,e){if(t(!l.isZero()),this.isZero())return{div:new r(0),mod:new r(0)};var u,i,o;return 0!==this.negative&&0===l.negative?(o=this.neg().divmod(l,n),"mod"!==n&&(u=o.div.neg()),"div"!==n&&(i=o.mod.neg(),e&&0!==i.negative&&i.iadd(l)),{div:u,mod:i}):0===this.negative&&0!==l.negative?(o=this.divmod(l.neg(),n),"mod"!==n&&(u=o.div.neg()),{div:u,mod:o.mod}):0!==(this.negative&l.negative)?(o=this.neg().divmod(l.neg(),n),"div"!==n&&(i=o.mod.neg(),e&&0!==i.negative&&i.isub(l)),{div:o.div,mod:i}):l.length>this.length||this.cmp(l)<0?{div:new r(0),mod:this}:1===l.length?"div"===n?{div:this.divn(l.words[0]),mod:null}:"mod"===n?{div:null,mod:new r(this.modn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new r(this.modn(l.words[0]))}:this._wordDiv(l,n)},r.prototype.div=function(l){return this.divmod(l,"div",!1).div},r.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},r.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},r.prototype.divRound=function(l){var n=this.divmod(l);if(n.mod.isZero())return n.div;var e=0!==n.div.negative?n.mod.isub(l):n.mod,t=l.ushrn(1),u=l.andln(1),r=e.cmp(t);return r<0||1===u&&0===r?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},r.prototype.modn=function(l){t(l<=67108863);for(var n=(1<<26)%l,e=0,u=this.length-1;u>=0;u--)e=(n*e+(0|this.words[u]))%l;return e},r.prototype.idivn=function(l){t(l<=67108863);for(var n=0,e=this.length-1;e>=0;e--){var u=(0|this.words[e])+67108864*n;this.words[e]=u/l|0,n=u%l}return this.strip()},r.prototype.divn=function(l){return this.clone().idivn(l)},r.prototype.egcd=function(l){t(0===l.negative),t(!l.isZero());var n=this,e=l.clone();n=0!==n.negative?n.umod(l):n.clone();for(var u=new r(1),i=new r(0),o=new r(0),a=new r(1),s=0;n.isEven()&&e.isEven();)n.iushrn(1),e.iushrn(1),++s;for(var c=e.clone(),f=n.clone();!n.isZero();){for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(u.isOdd()||i.isOdd())&&(u.iadd(c),i.isub(f)),u.iushrn(1),i.iushrn(1);for(var p=0,b=1;0===(e.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(f)),o.iushrn(1),a.iushrn(1);n.cmp(e)>=0?(n.isub(e),u.isub(o),i.isub(a)):(e.isub(n),o.isub(u),a.isub(i))}return{a:o,b:a,gcd:e.iushln(s)}},r.prototype._invmp=function(l){t(0===l.negative),t(!l.isZero());var n=this,e=l.clone();n=0!==n.negative?n.umod(l):n.clone();for(var u=new r(1),i=new r(0),o=e.clone();n.cmpn(1)>0&&e.cmpn(1)>0;){for(var a=0,s=1;0===(n.words[0]&s)&&a<26;++a,s<<=1);if(a>0)for(n.iushrn(a);a-- >0;)u.isOdd()&&u.iadd(o),u.iushrn(1);for(var c=0,f=1;0===(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(o),i.iushrn(1);n.cmp(e)>=0?(n.isub(e),u.isub(i)):(e.isub(n),i.isub(u))}var h;return h=0===n.cmpn(1)?u:i,h.cmpn(0)<0&&h.iadd(l),h},r.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var n=this.clone(),e=l.clone();n.negative=0,e.negative=0;for(var t=0;n.isEven()&&e.isEven();t++)n.iushrn(1),e.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;e.isEven();)e.iushrn(1);var u=n.cmp(e);if(u<0){var r=n;n=e,e=r}else if(0===u||0===e.cmpn(1))break;n.isub(e)}return e.iushln(t)},r.prototype.invm=function(l){return this.egcd(l).a.umod(l)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(l){return this.words[0]&l},r.prototype.bincn=function(l){t("number"==typeof l);var n=l%26,e=(l-n)/26,u=1<<n;if(this.length<=e)return this._expand(e+1),this.words[e]|=u,this;for(var r=u,i=e;0!==r&&i<this.length;i++){var o=0|this.words[i];o+=r,r=o>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words
|
||
|
|
new i(l).mul(u.blinder).umod(n.modulus)),a=o.toRed(i.mont(n.prime1)),s=o.toRed(i.mont(n.prime2)),c=n.coefficient,f=n.prime1,h=n.prime2,d=a.redPow(n.exponent1),p=s.redPow(n.exponent2);d=d.fromRed(),p=p.fromRed();var b=d.isub(p).imul(c).umod(f);return b.imul(h),p.iadd(b),new e(p.imul(u.unblinder).umod(n.modulus).toArray(!1,r))}function r(l){for(var n=l.modulus.byteLength(),e=new i(o(n));e.cmp(l.modulus)>=0||!e.umod(l.prime1)||!e.umod(l.prime2);)e=new i(o(n));return e}var i=l("bn.js"),o=l("randombytes");n.exports=u,u.getr=r}).call(this,l("buffer").Buffer)},{"bn.js":44,buffer:76,randombytes:290}],68:[function(l,n,e){n.exports=l("./browser/algorithms.json")},{"./browser/algorithms.json":69}],69:[function(l,n,e){n.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],70:[function(l,n,e){n.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],71:[function(l,n,e){(function(e){function t(l){a.Writable.call(this);var n=h[l];if(!n)throw new Error("Unknown message digest");this._hashType=n.hash,this._hash=o(n.hash),this._tag=n.id,this._signType=n.sign}function u(l){a.Writable.call(this);var n=h[l];if(!n)throw new Error("Unknown message digest");this._hash=o(n.hash),this._tag=n.id,this._signType=n.sign}function r(l){return new t(l)}function i(l){return new u(l)}var o=l("create-hash"),a=l("stream"),s=l("inherits"),c=l("./sign"),f=l("./verify"),h=l("./algorithms.json");Object.keys(h).forEach(function(l){h[l].id=new e(h[l].id,"hex"),h[l.toLowerCase()]=h[l]}),s(t,a.Writable),t.prototype._write=function(l,n,e){this._hash.update(l),e()},t.prototype.update=function(l,n){return"string"==typeof l&&(l=new e(l,n)),this._hash.update(l),this},t.prototype.sign=function(l,n){this.end();var e=this._hash.digest(),t=c(e,l,this._hashType,this._signType,this._tag);return n?t.toString(n):t},s(u,a.Writable),u.prototype._write=function(l,n,e){this._hash.update(l),e()},u.prototype.update=function(l,n){return"string"==typeof l&&(l=new e(l,n)),this._hash.update(l),this},u.prototype.verify=function(l,n,t){"string"==typeof n&&(n=new e(n,t)),this.end();var u=this._hash.digest();return f(n,u,l,this._signType,this._tag)}
|
||
|
|
}},{"../../modules/_core":111,"../../modules/es6.object.define-property":193}],88:[function(l,n,e){l("../../modules/es6.object.freeze"),n.exports=l("../../modules/_core").Object.freeze},{"../../modules/_core":111,"../../modules/es6.object.freeze":194}],89:[function(l,n,e){l("../../modules/es6.object.get-own-property-descriptor");var t=l("../../modules/_core").Object;n.exports=function(l,n){return t.getOwnPropertyDescriptor(l,n)}},{"../../modules/_core":111,"../../modules/es6.object.get-own-property-descriptor":195}],90:[function(l,n,e){l("../../modules/es6.object.get-prototype-of"),n.exports=l("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":111,"../../modules/es6.object.get-prototype-of":196}],91:[function(l,n,e){l("../../modules/es6.object.keys"),n.exports=l("../../modules/_core").Object.keys},{"../../modules/_core":111,"../../modules/es6.object.keys":197}],92:[function(l,n,e){l("../../modules/es6.object.set-prototype-of"),n.exports=l("../../modules/_core").Object.setPrototypeOf},{"../../modules/_core":111,"../../modules/es6.object.set-prototype-of":198}],93:[function(l,n,e){l("../modules/es6.object.to-string"),l("../modules/es6.string.iterator"),l("../modules/web.dom.iterable"),l("../modules/es6.promise"),l("../modules/es7.promise.finally"),l("../modules/es7.promise.try"),n.exports=l("../modules/_core").Promise},{"../modules/_core":111,"../modules/es6.object.to-string":199,"../modules/es6.promise":200,"../modules/es6.string.iterator":202,"../modules/es7.promise.finally":204,"../modules/es7.promise.try":205,"../modules/web.dom.iterable":211}],94:[function(l,n,e){l("../modules/es6.object.to-string"),l("../modules/es6.string.iterator"),l("../modules/web.dom.iterable"),l("../modules/es6.set"),l("../modules/es7.set.to-json"),l("../modules/es7.set.of"),l("../modules/es7.set.from"),n.exports=l("../modules/_core").Set},{"../modules/_core":111,"../modules/es6.object.to-string":199,"../modules/es6.set":201,"../modules/es6.string.iterator":202,"../modules/es7.set.from":206,"../modules/es7.set.of":207,"../modules/es7.set.to-json":208,"../modules/web.dom.iterable":211}],95:[function(l,n,e){l("../../modules/es6.symbol"),l("../../modules/es6.object.to-string"),l("../../modules/es7.symbol.async-iterator"),l("../../modules/es7.symbol.observable"),n.exports=l("../../modules/_core").Symbol},{"../../modules/_core":111,"../../modules/es6.object.to-string":199,"../../modules/es6.symbol":203,"../../modules/es7.symbol.async-iterator":209,"../../modules/es7.symbol.observable":210}],96:[function(l,n,e){l("../../modules/es6.string.iterator"),l("../../modules/web.dom.iterable"),n.exports=l("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":181,"../../modules/es6.string.iterator":202,"../../modules/web.dom.iterable":211}],97:[function(l,n,e){n.exports=function(l){if("function"!=typeof l)throw TypeError(l+" is not a function!");return l}},{}],98:[function(l,n,e){n.exports=function(){}},{}],99:[function(l,n,e){n.exports=function(l,n,e,t){if(!(l instanceof n)||void 0!==t&&t in l)throw TypeError(e+": incorrect invocation!");return l}},{}],100:[function(l,n,e){var t=l("./_is-object");n.exports=function(l){if(!t(l))throw TypeError(l+" is not an object!");return l}},{"./_is-object":132}],101:[function(l,n,e){var t=l("./_for-of");n.exports=function(l,n){var e=[];return t(l,!1,e.push,e,n),e}},{"./_for-of":121}],102:[function(l,n,e){var t=l("./_to-iobject"),u=l("./_to-length"),r=l("./_to-absolute-index");n.exports=function(l){return function(n,e,i){var o,a=t(n),s=u(a.length),c=r(i,s);if(l&&e!=e){for(;s>c;)if(o=a[c++],o!=o)return!0}else for(;s>c;c++)if((l||c in a)&&a[c]===e)return l||c||0;return!l&&-1}}},{"./_to-absolute-index":171,"./_to-iobject":173,"./_to-length":174}],103:[function(l,n,e){var t=l("./_ctx"),u=l("./_iobject"),r=l("./_to-object"),i=l("./_to-length"),o=l("./_array-species-create");n.exports=function(l,n){var e=1==l,a=2==l,s=3==l,c=4==l,f=6==l,h=5==l||f,d=n||o;return function(n,o,p){for(var b,v,_=r(n),m=u(_),y=t(o,p,3),g=i(m.length),w=0,k=e?d(n,g):a?d(n,0):void 0;g>w;w++)if((h||w in m)&&(b=m[w],v=y(b,w,_)
|
||
|
|
},{"./_object-gopd":147,"./_object-sap":155,"./_to-iobject":173}],196:[function(l,n,e){var t=l("./_to-object"),u=l("./_object-gpo");l("./_object-sap")("getPrototypeOf",function(){return function(l){return u(t(l))}})},{"./_object-gpo":151,"./_object-sap":155,"./_to-object":175}],197:[function(l,n,e){var t=l("./_to-object"),u=l("./_object-keys");l("./_object-sap")("keys",function(){return function(l){return u(t(l))}})},{"./_object-keys":153,"./_object-sap":155,"./_to-object":175}],198:[function(l,n,e){var t=l("./_export");t(t.S,"Object",{setPrototypeOf:l("./_set-proto").set})},{"./_export":119,"./_set-proto":163}],199:[function(l,n,e){arguments[4][46][0].apply(e,arguments)},{dup:46}],200:[function(l,n,e){"use strict";var t,u,r,i,o=l("./_library"),a=l("./_global"),s=l("./_ctx"),c=l("./_classof"),f=l("./_export"),h=l("./_is-object"),d=l("./_a-function"),p=l("./_an-instance"),b=l("./_for-of"),v=l("./_species-constructor"),_=l("./_task").set,m=l("./_microtask")(),y=l("./_new-promise-capability"),g=l("./_perform"),w=l("./_user-agent"),k=l("./_promise-resolve"),S="Promise",E=a.TypeError,I=a.process,C=I&&I.versions,j=C&&C.v8||"",M=a[S],A="process"==c(I),x=function(){},T=u=y.f,R=!!function(){try{var n=M.resolve(1),e=(n.constructor={})[l("./_wks")("species")]=function(l){l(x,x)};return(A||"function"==typeof PromiseRejectionEvent)&&n.then(x)instanceof e&&0!==j.indexOf("6.6")&&w.indexOf("Chrome/66")===-1}catch(t){}}(),O=function(l){var n;return!(!h(l)||"function"!=typeof(n=l.then))&&n},P=function(l,n){if(!l._n){l._n=!0;var e=l._c;m(function(){for(var t=l._v,u=1==l._s,r=0,i=function(n){var e,r,i,o=u?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{o?(u||(2==l._h&&U(l),l._h=1),o===!0?e=t:(c&&c.enter(),e=o(t),c&&(c.exit(),i=!0)),e===n.promise?s(E("Promise-chain cycle")):(r=O(e))?r.call(e,a,s):a(e)):s(t)}catch(f){c&&!i&&c.exit(),s(f)}};e.length>r;)i(e[r++]);l._c=[],l._n=!1,n&&!l._h&&N(l)})}},N=function(l){_.call(a,function(){var n,e,t,u=l._v,r=B(l);if(r&&(n=g(function(){A?I.emit("unhandledRejection",u,l):(e=a.onunhandledrejection)?e({promise:l,reason:u}):(t=a.console)&&t.error&&t.error("Unhandled promise rejection",u)}),l._h=A||B(l)?2:1),l._a=void 0,r&&n.e)throw n.v})},B=function(l){return 1!==l._h&&0===(l._a||l._c).length},U=function(l){_.call(a,function(){var n;A?I.emit("rejectionHandled",l):(n=a.onrejectionhandled)&&n({promise:l,reason:l._v})})},D=function(l){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=l,n._s=2,n._a||(n._a=n._c.slice()),P(n,!0))},L=function(l){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===l)throw E("Promise can't be resolved itself");(n=O(l))?m(function(){var t={_w:e,_d:!1};try{n.call(l,s(L,t,1),s(D,t,1))}catch(u){D.call(t,u)}}):(e._v=l,e._s=1,P(e,!1))}catch(t){D.call({_w:e,_d:!1},t)}}};R||(M=function(l){p(this,M,S,"_h"),d(l),t.call(this);try{l(s(L,this,1),s(D,this,1))}catch(n){D.call(this,n)}},t=function(l){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},t.prototype=l("./_redefine-all")(M.prototype,{then:function(l,n){var e=T(v(this,M));return e.ok="function"!=typeof l||l,e.fail="function"==typeof n&&n,e.domain=A?I.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&P(this,!1),e.promise},"catch":function(l){return this.then(void 0,l)}}),r=function(){var l=new t;this.promise=l,this.resolve=s(L,l,1),this.reject=s(D,l,1)},y.f=T=function(l){return l===M||l===i?new r(l):u(l)}),f(f.G+f.W+f.F*!R,{Promise:M}),l("./_set-to-string-tag")(M,S),l("./_set-species")(S),i=l("./_core")[S],f(f.S+f.F*!R,S,{reject:function(l){var n=T(this),e=n.reject;return e(l),n.promise}}),f(f.S+f.F*(o||!R),S,{resolve:function(l){return k(o&&this===i?M:this,l)}}),f(f.S+f.F*!(R&&l("./_iter-detect")(function(l){M.all(l)["catch"](x)})),S,{all:function(l){var n=this,e=T(n),t=e.resolve,u=e.reject,r=g(function(){var e=[],r=0,i=1;b(l,!1,function(l){var o=r++,a=!1;e.push(void 0),i++,n.resolve(l).then(function(l){a||(a=!0,e[o]=l,--i||t(e))},u)}),--i||t(e)});return r.e&&u(r.v),e.promise},race:function(l){var n=this,e=T(n),t=e.reject,u=g(function(){b(l,!1,function(l){n.resolve(l).then(e.resolve,t)})});return u
|
||
|
|
},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df
|
||
|
|
this.curve._wnafMul(this,l)},r.prototype.eq=function(l){if("affine"===l.type)return this.eq(l.toJ());if(this===l)return!0;var n=this.z.redSqr(),e=l.z.redSqr();if(0!==this.x.redMul(e).redISub(l.x.redMul(n)).cmpn(0))return!1;var t=n.redMul(this.z),u=e.redMul(l.z);return 0===this.y.redMul(u).redISub(l.y.redMul(t)).cmpn(0)},r.prototype.eqXToP=function(l){var n=this.z.redSqr(),e=l.toRed(this.curve.red).redMul(n);if(0===this.x.cmp(e))return!0;for(var t=l.clone(),u=this.curve.redN.redMul(n);;){if(t.iadd(this.curve.n),t.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(u),0===this.x.cmp(e))return!0}return!1},r.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},r.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":229,"../curve":232,"bn.js":44,inherits:263}],235:[function(l,n,e){"use strict";function t(l){"short"===l.type?this.curve=new o.curve["short"](l):"edwards"===l.type?this.curve=new o.curve.edwards(l):this.curve=new o.curve.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(l,n){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){var e=new t(n);return Object.defineProperty(r,l,{configurable:!0,enumerable:!0,value:e}),e}})}var r=e,i=l("hash.js"),o=l("../elliptic"),a=o.utils.assert;r.PresetCurve=t,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3
|
||
|
|
}}},{}],243:[function(l,n,e){"use strict";function t(l,n){for(var e=[],t=1<<n+1,u=l.clone();u.cmpn(1)>=0;){var r;if(u.isOdd()){var i=u.andln(t-1);r=i>(t>>1)-1?(t>>1)-i:i,u.isubn(r)}else r=0;e.push(r);for(var o=0!==u.cmpn(0)&&0===u.andln(t-1)?n+1:1,a=1;a<o;a++)e.push(0);u.iushrn(o)}return e}function u(l,n){var e=[[],[]];l=l.clone(),n=n.clone();for(var t=0,u=0;l.cmpn(-t)>0||n.cmpn(-u)>0;){var r=l.andln(3)+t&3,i=n.andln(3)+u&3;3===r&&(r=-1),3===i&&(i=-1);var o;if(0===(1&r))o=0;else{var a=l.andln(7)+t&7;o=3!==a&&5!==a||2!==i?r:-r}e[0].push(o);var s;if(0===(1&i))s=0;else{var a=n.andln(7)+u&7;s=3!==a&&5!==a||2!==r?i:-i}e[1].push(s),2*t===o+1&&(t=1-t),2*u===s+1&&(u=1-u),l.iushrn(1),n.iushrn(1)}return e}function r(l,n,e){var t="_"+n;l.prototype[n]=function(){return void 0!==this[t]?this[t]:this[t]=e.call(this)}}function i(l){return"string"==typeof l?a.toArray(l,"hex"):l}function o(l){return new s(l,"hex","le")}var a=e,s=l("bn.js"),c=l("minimalistic-assert"),f=l("minimalistic-crypto-utils");a.assert=c,a.toArray=f.toArray,a.zero2=f.zero2,a.toHex=f.toHex,a.encode=f.encode,a.getNAF=t,a.getJSF=u,a.cachedProperty=r,a.parseBytes=i,a.intFromLE=o},{"bn.js":44,"minimalistic-assert":268,"minimalistic-crypto-utils":269}],244:[function(l,n,e){n.exports={_args:[["elliptic@6.4.0","/mnt/teamcity/work/b68e720cc0397b39"]],_development:!0,_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"/mnt/teamcity/work/b68e720cc0397b39",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],245:[function(l,n,e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(l){return"function"==typeof l}function r(l){return"number"==typeof l}function i(l){return"object"==typeof l&&null!==l}function o(l){return void 0===l}n.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(l){if(!r(l)||l<0||isNaN(l))throw TypeError("n must be a positive number");return this._maxListeners=l,this},t.prototype.emit=function(l){var n,e,t,r,a,s;if(this._events||(this._events={}),"error"===l&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(n=arguments[1],n instanceof Error)throw n;var c=new Error('Uncaught, unspecified "error" event. ('+n+")");throw c.context=n,c}if(e=this._events[l],o(e))return!1;if(u(e))switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slic
|
||
|
|
this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var l=new e(16);return l.writeInt32LE(this._a,0),l.writeInt32LE(this._b,4),l.writeInt32LE(this._c,8),l.writeInt32LE(this._d,12),l},n.exports=t}).call(this,l("buffer").Buffer)},{buffer:76,"hash-base":247,inherits:263}],267:[function(l,n,e){function t(l){this.rand=l||new r.Rand}var u=l("bn.js"),r=l("brorand");n.exports=t,t.create=function(l){return new t(l)},t.prototype._randbelow=function(l){var n=l.bitLength(),e=Math.ceil(n/8);do var t=new u(this.rand.generate(e));while(t.cmp(l)>=0);return t},t.prototype._randrange=function(l,n){var e=n.sub(l);return l.add(this._randbelow(e))},t.prototype.test=function(l,n,e){var t=l.bitLength(),r=u.mont(l),i=new u(1).toRed(r);n||(n=Math.max(1,t/48|0));for(var o=l.subn(1),a=0;!o.testn(a);a++);for(var s=l.shrn(a),c=o.toRed(r),f=!0;n>0;n--){var h=this._randrange(new u(2),o);e&&e(h);var d=h.toRed(r).redPow(s);if(0!==d.cmp(i)&&0!==d.cmp(c)){for(var p=1;p<a;p++){if(d=d.redSqr(),0===d.cmp(i))return!1;if(0===d.cmp(c))break}if(p===a)return!1}}return f},t.prototype.getDivisor=function(l,n){var e=l.bitLength(),t=u.mont(l),r=new u(1).toRed(t);n||(n=Math.max(1,e/48|0));for(var i=l.subn(1),o=0;!i.testn(o);o++);for(var a=l.shrn(o),s=i.toRed(t);n>0;n--){var c=this._randrange(new u(2),i),f=l.gcd(c);if(0!==f.cmpn(1))return f;var h=c.toRed(t).redPow(a);if(0!==h.cmp(r)&&0!==h.cmp(s)){for(var d=1;d<o;d++){if(h=h.redSqr(),0===h.cmp(r))return h.fromRed().subn(1).gcd(l);if(0===h.cmp(s))break}if(d===o)return h=h.redSqr(),h.fromRed().subn(1).gcd(l)}}return!1}},{"bn.js":44,brorand:45}],268:[function(l,n,e){function t(l,n){if(!l)throw new Error(n||"Assertion failed")}n.exports=t,t.equal=function(l,n,e){if(l!=n)throw new Error(e||"Assertion failed: "+l+" != "+n)}},{}],269:[function(l,n,e){"use strict";function t(l,n){if(Array.isArray(l))return l.slice();if(!l)return[];var e=[];if("string"!=typeof l){for(var t=0;t<l.length;t++)e[t]=0|l[t];return e}if("hex"===n){l=l.replace(/[^a-z0-9]+/gi,""),l.length%2!==0&&(l="0"+l);for(var t=0;t<l.length;t+=2)e.push(parseInt(l[t]+l[t+1],16))}else for(var t=0;t<l.length;t++){var u=l.charCodeAt(t),r=u>>8,i=255&u;r?e.push(r,i):e.push(i)}return e}function u(l){return 1===l.length?"0"+l:l}function r(l){for(var n="",e=0;e<l.length;e++)n+=u(l[e].toString(16));return n}var i=e;i.toArray=t,i.zero2=u,i.toHex=r,i.encode=function(l,n){return"hex"===n?r(l):l}},{}],270:[function(l,n,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n"},{}],271:[function(l,n,e){n.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],272:[function(l,n,e){"use strict";var t=l("asn1.js");e.certificate=l("./certificate");var u=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("modulus")["int"](),this.key("publicExponent")["int"](),this.key("privateExponent")["int"](),this.key("prime1")["int"](),this.key("prime2")["int"](),this.key("exponent1")["int"](),this.key("exponent2")["int"](),this.key("coefficient")["int"]())});e
|
||
|
|
}function x(l,n){l.endEmitted||0!==l.length||(l.endEmitted=!0,n.readable=!1,n.emit("end"))}function T(l,n){for(var e=0,t=l.length;e<t;e++)if(l[e]===n)return e;return-1}var R=l("process-nextick-args");n.exports=a;var O,P=l("isarray");a.ReadableState=o;var N=(l("events").EventEmitter,function(l,n){return l.listeners(n).length}),B=l("./internal/streams/stream"),U=l("safe-buffer").Buffer,D=t.Uint8Array||function(){},L=l("core-util-is");L.inherits=l("inherits");var F=l("util"),q=void 0;q=F&&F.debuglog?F.debuglog("stream"):function(){};var z,V=l("./internal/streams/BufferList"),H=l("./internal/streams/destroy");L.inherits(a,B);var K=["error","close","destroy","pause","resume"];Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(l){this._readableState&&(this._readableState.destroyed=l)}}),a.prototype.destroy=H.destroy,a.prototype._undestroy=H.undestroy,a.prototype._destroy=function(l,n){this.push(null),n(l)},a.prototype.push=function(l,n){var e,t=this._readableState;return t.objectMode?e=!0:"string"==typeof l&&(n=n||t.defaultEncoding,n!==t.encoding&&(l=U.from(l,n),n=""),e=!0),s(this,l,n,!1,e)},a.prototype.unshift=function(l){return s(this,l,null,!0,!1)},a.prototype.isPaused=function(){return this._readableState.flowing===!1},a.prototype.setEncoding=function(n){return z||(z=l("string_decoder/").StringDecoder),this._readableState.decoder=new z(n),this._readableState.encoding=n,this};var W=8388608;a.prototype.read=function(l){q("read",l),l=parseInt(l,10);var n=this._readableState,e=l;if(0!==l&&(n.emittedReadable=!1),0===l&&n.needReadable&&(n.length>=n.highWaterMark||n.ended))return q("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?A(this):v(this),null;if(l=p(l,n),0===l&&n.ended)return 0===n.length&&A(this),null;var t=n.needReadable;q("need readable",t),(0===n.length||n.length-l<n.highWaterMark)&&(t=!0,q("length less than watermark",t)),n.ended||n.reading?(t=!1,q("reading or ended",t)):t&&(q("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(l=p(e,n)));var u;return u=l>0?I(l,n):null,null===u?(n.needReadable=!0,l=0):n.length-=l,0===n.length&&(n.ended||(n.needReadable=!0),e!==l&&n.ended&&A(this)),null!==u&&this.emit("data",u),u},a.prototype._read=function(l){this.emit("error",new Error("_read() is not implemented"))},a.prototype.pipe=function(l,n){function t(l,n){q("onunpipe"),l===h&&n&&n.hasUnpiped===!1&&(n.hasUnpiped=!0,r())}function u(){q("onend"),l.end()}function r(){q("cleanup"),l.removeListener("close",s),l.removeListener("finish",c),l.removeListener("drain",v),l.removeListener("error",a),l.removeListener("unpipe",t),h.removeListener("end",u),h.removeListener("end",f),h.removeListener("data",o),_=!0,!d.awaitDrain||l._writableState&&!l._writableState.needDrain||v()}function o(n){q("ondata"),m=!1;var e=l.write(n);!1!==e||m||((1===d.pipesCount&&d.pipes===l||d.pipesCount>1&&T(d.pipes,l)!==-1)&&!_&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,m=!0),h.pause())}function a(n){q("onerror",n),f(),l.removeListener("error",a),0===N(l,"error")&&l.emit("error",n)}function s(){l.removeListener("finish",c),f()}function c(){q("onfinish"),l.removeListener("close",s),f()}function f(){q("unpipe"),h.unpipe(l)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=l;break;case 1:d.pipes=[d.pipes,l];break;default:d.pipes.push(l)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,n);var p=(!n||n.end!==!1)&&l!==e.stdout&&l!==e.stderr,b=p?u:f;d.endEmitted?R.nextTick(b):h.once("end",b),l.on("unpipe",t);var v=g(h);l.on("drain",v);var _=!1,m=!1;return h.on("data",o),i(l,"error",a),l.once("close",s),l.once("finish",c),l.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),l},a.prototype.unpipe=function(l){var n=this._readableState,e={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return l&&l!==n.pipes?this:(l||(l=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,l&&l.emit("unpipe",this,e),this);if(!l){
|
||
|
|
for(;_<64;++_)n[_]=s(n[_-2])+n[_-7]+a(n[_-15])+n[_-16]|0;for(var m=0;m<64;++m){var y=v+o(h)+u(h,p,b)+d[m]+n[m]|0,g=i(e)+r(e,t,c)|0;v=b,b=p,p=h,h=f+y|0,f=c,c=t,t=e,e=y+g|0}this._a=e+this._a|0,this._b=t+this._b|0,this._c=c+this._c|0,this._d=f+this._d|0,this._e=h+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=v+this._h|0},t.prototype._hash=function(){var l=h.allocUnsafe(32);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l.writeInt32BE(this._h,28),l},n.exports=t},{"./hash":308,inherits:263,"safe-buffer":307}],314:[function(l,n,e){function t(){this.init(),this._w=a,i.call(this,128,112)}var u=l("inherits"),r=l("./sha512"),i=l("./hash"),o=l("safe-buffer").Buffer,a=new Array(160);u(t,r),t.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},t.prototype._hash=function(){function l(l,e,t){n.writeInt32BE(l,t),n.writeInt32BE(e,t+4)}var n=o.allocUnsafe(48);return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),n},n.exports=t},{"./hash":308,"./sha512":315,inherits:263,"safe-buffer":307}],315:[function(l,n,e){function t(){this.init(),this._w=_,p.call(this,128,112)}function u(l,n,e){return e^l&(n^e)}function r(l,n,e){return l&n|e&(l|n)}function i(l,n){return(l>>>28|n<<4)^(n>>>2|l<<30)^(n>>>7|l<<25)}function o(l,n){return(l>>>14|n<<18)^(l>>>18|n<<14)^(n>>>9|l<<23)}function a(l,n){return(l>>>1|n<<31)^(l>>>8|n<<24)^l>>>7}function s(l,n){return(l>>>1|n<<31)^(l>>>8|n<<24)^(l>>>7|n<<25)}function c(l,n){return(l>>>19|n<<13)^(n>>>29|l<<3)^l>>>6}function f(l,n){return(l>>>19|n<<13)^(n>>>29|l<<3)^(l>>>6|n<<26)}function h(l,n){return l>>>0<n>>>0?1:0}var d=l("inherits"),p=l("./hash"),b=l("safe-buffer").Buffer,v=[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],_=new Array(160);d(t,p),t.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh
|
||
|
|
"euc-kr":[44034,44035,44037,44038,44043,44044,44045,44046,44047,44056,44062,44063,44065,44066,44067,44069,44070,44071,44072,44073,44074,44075,44078,44082,44083,44084,null,null,null,null,null,null,44085,44086,44087,44090,44091,44093,44094,44095,44097,44098,44099,44100,44101,44102,44103,44104,44105,44106,44108,44110,44111,44112,44113,44114,44115,44117,null,null,null,null,null,null,44118,44119,44121,44122,44123,44125,44126,44127,44128,44129,44130,44131,44132,44133,44134,44135,44136,44137,44138,44139,44140,44141,44142,44143,44146,44147,44149,44150,44153,44155,44156,44157,44158,44159,44162,44167,44168,44173,44174,44175,44177,44178,44179,44181,44182,44183,44184,44185,44186,44187,44190,44194,44195,44196,44197,44198,44199,44203,44205,44206,44209,44210,44211,44212,44213,44214,44215,44218,44222,44223,44224,44226,44227,44229,44230,44231,44233,44234,44235,44237,44238,44239,44240,44241,44242,44243,44244,44246,44248,44249,44250,44251,44252,44253,44254,44255,44258,44259,44261,44262,44265,44267,44269,44270,44274,44276,44279,44280,44281,44282,44283,44286,44287,44289,44290,44291,44293,44295,44296,44297,44298,44299,44302,44304,44306,44307,44308,44309,44310,44311,44313,44314,44315,44317,44318,44319,44321,44322,44323,44324,44325,44326,44327,44328,44330,44331,44334,44335,44336,44337,44338,44339,null,null,null,null,null,null,44342,44343,44345,44346,44347,44349,44350,44351,44352,44353,44354,44355,44358,44360,44362,44363,44364,44365,44366,44367,44369,44370,44371,44373,44374,44375,null,null,null,null,null,null,44377,44378,44379,44380,44381,44382,44383,44384,44386,44388,44389,44390,44391,44392,44393,44394,44395,44398,44399,44401,44402,44407,44408,44409,44410,44414,44416,44419,44420,44421,44422,44423,44426,44427,44429,44430,44431,44433,44434,44435,44436,44437,44438,44439,44440,44441,44442,44443,44446,44447,44448,44449,44450,44451,44453,44454,44455,44456,44457,44458,44459,44460,44461,44462,44463,44464,44465,44466,44467,44468,44469,44470,44472,44473,44474,44475,44476,44477,44478,44479,44482,44483,44485,44486,44487,44489,44490,44491,44492,44493,44494,44495,44498,44500,44501,44502,44503,44504,44505,44506,44507,44509,44510,44511,44513,44514,44515,44517,44518,44519,44520,44521,44522,44523,44524,44525,44526,44527,44528,44529,44530,44531,44532,44533,44534,44535,44538,44539,44541,44542,44546,44547,44548,44549,44550,44551,44554,44556,44558,44559,44560,44561,44562,44563,44565,44566,44567,44568,44569,44570,44571,44572,null,null,null,null,null,null,44573,44574,44575,44576,44577,44578,44579,44580,44581,44582,44583,44584,44585,44586,44587,44588,44589,44590,44591,44594,44595,44597,44598,44601,44603,44604,null,null,null,null,null,null,44605,44606,44607,44610,44612,44615,44616,44617,44619,44623,44625,44626,44627,44629,44631,44632,44633,44634,44635,44638,44642,44643,44644,44646,44647,44650,44651,44653,44654,44655,44657,44658,44659,44660,44661,44662,44663,44666,44670,44671,44672,44673,44674,44675,44678,44679,44680,44681,44682,44683,44685,44686,44687,44688,44689,44690,44691,44692,44693,44694,44695,44696,44697,44698,44699,44700,44701,44702,44703,44704,44705,44706,44707,44708,44709,44710,44711,44712,44713,44714,44715,44716,44717,44718,44719,44720,44721,44722,44723,44724,44725,44726,44727,44728,44729,44730,44731,44735,44737,44738,44739,44741,44742,44743,44744,44745,44746,44747,44750,44754,44755,44756,44757,44758,44759,44762,44763,44765,44766,44767,44768,44769,44770,44771,44772,44773,44774,44775,44777,44778,44780,44782,44783,44784,44785,44786,44787,44789,44790,44791,44793,44794,44795,44797,44798,44799,44800,44801,44802,44803,44804,44805,null,null,null,null,null,null,44806,44809,44810,44811,44812,44814,44815,44817,44818,44819,44820,44821,44822,44823,44824,44825,44826,44827,44828,44829,44830,44831,44832,44833,44834,44835,null,null,null,null,null,null,44836,44837,44838,44839,44840,44841,44842,44843,44846,44847,44849,44851,44853,44854,44855,44856,44857,44858,44859,44862,44864,44868,44869,44870,44871,44874,44875,44876,44877,44878,44879,44881,44882,44883,44884,44885,44886,44887,44888,44889,44890,44891,44894,44895,44896,44897,44898,44899,44902,44903,44904,44905,44906,44907,44908
|
||
|
|
gb18030:[19970,19972,19973,19974,19983,19986,19991,19999,2e4,20001,20003,20006,20009,20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042,20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075,20076,20077,20078,20079,20082,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20095,20096,20097,20098,20099,20100,20101,20103,20106,20112,20118,20119,20121,20124,20125,20126,20131,20138,20143,20144,20145,20148,20150,20151,20152,20153,20156,20157,20158,20168,20172,20175,20176,20178,20186,20187,20188,20192,20194,20198,20199,20201,20205,20206,20207,20209,20212,20216,20217,20218,20220,20222,20224,20226,20227,20228,20229,20230,20231,20232,20235,20236,20242,20243,20244,20245,20246,20252,20253,20257,20259,20264,20265,20268,20269,20270,20273,20275,20277,20279,20281,20283,20286,20287,20288,20289,20290,20292,20293,20295,20296,20297,20298,20299,20300,20306,20308,20310,20321,20322,20326,20328,20330,20331,20333,20334,20337,20338,20341,20343,20344,20345,20346,20349,20352,20353,20354,20357,20358,20359,20362,20364,20366,20368,20370,20371,20373,20374,20376,20377,20378,20380,20382,20383,20385,20386,20388,20395,20397,20400,20401,20402,20403,20404,20406,20407,20408,20409,20410,20411,20412,20413,20414,20416,20417,20418,20422,20423,20424,20425,20427,20428,20429,20434,20435,20436,20437,20438,20441,20443,20448,20450,20452,20453,20455,20459,20460,20464,20466,20468,20469,20470,20471,20473,20475,20476,20477,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,20491,20494,20496,20497,20499,20501,20502,20503,20507,20509,20510,20512,20514,20515,20516,20519,20523,20527,20528,20529,20530,20531,20532,20533,20534,20535,20536,20537,20539,20541,20543,20544,20545,20546,20548,20549,20550,20553,20554,20555,20557,20560,20561,20562,20563,20564,20566,20567,20568,20569,20571,20573,20574,20575,20576,20577,20578,20579,20580,20582,20583,20584,20585,20586,20587,20589,20590,20591,20592,20593,20594,20595,20596,20597,20600,20601,20602,20604,20605,20609,20610,20611,20612,20614,20615,20617,20618,20619,20620,20622,20623,20624,20625,20626,20627,20628,20629,20630,20631,20632,20633,20634,20635,20636,20637,20638,20639,20640,20641,20642,20644,20646,20650,20651,20653,20654,20655,20656,20657,20659,20660,20661,20662,20663,20664,20665,20668,20669,20670,20671,20672,20673,20674,20675,20676,20677,20678,20679,20680,20681,20682,20683,20684,20685,20686,20688,20689,20690,20691,20692,20693,20695,20696,20697,20699,20700,20701,20702,20703,20704,20705,20706,20707,20708,20709,20712,20713,20714,20715,20719,20720,20721,20722,20724,20726,20727,20728,20729,20730,20732,20733,20734,20735,20736,20737,20738,20739,20740,20741,20744,20745,20746,20748,20749,20750,20751,20752,20753,20755,20756,20757,20758,20759,20760,20761,20762,20763,20764,20765,20766,20767,20768,20770,20771,20772,20773,20774,20775,20776,20777,20778,20779,20780,20781,20782,20783,20784,20785,20786,20787,20788,20789,20790,20791,20792,20793,20794,20795,20796,20797,20798,20802,20807,20810,20812,20814,20815,20816,20818,20819,20823,20824,20825,20827,20829,20830,20831,20832,20833,20835,20836,20838,20839,20841,20842,20847,20850,20858,20862,20863,20867,20868,20870,20871,20874,20875,20878,20879,20880,20881,20883,20884,20888,20890,20893,20894,20895,20897,20899,20902,20903,20904,20905,20906,20909,20910,20916,20920,20921,20922,20926,20927,20929,20930,20931,20933,20936,20938,20941,20942,20944,20946,20947,20948,20949,20950,20951,20952,20953,20954,20956,20958,20959,20962,20963,20965,20966,20967,20968,20969,20970,20972,20974,20977,20978,20980,20983,20990,20996,20997,21001,21003,21004,21007,21008,21011,21012,21013,21020,21022,21023,21025,21026,21027,21029,21030,21031,21034,21036,21039,21041,21042,21044,21045,21052,21054,21060,21061,21062,21063,21064,21065,21067,21070,21071,21074,21075,21077,21079,21080,21081,21082,21083,21085,21087,21088,21090,21091,21092,21094,21096,21099,21100,21101,21102,21104,21105,21107,21108,21109,21110,21111,21112,21113,21114,21115,21116,21118,21120,21123,21124,21125,21126,21127,21129,21130,21131,21132,21133,21134,21135,21137,21138,21140,21141,21142,21143,21144,21
|
||
|
|
"gb18030-ranges":[[0,128],[36,165],[38,169],[45,178],[50,184],[81,216],[89,226],[95,235],[96,238],[100,244],[103,248],[104,251],[105,253],[109,258],[126,276],[133,284],[148,300],[172,325],[175,329],[179,334],[208,364],[306,463],[307,465],[308,467],[309,469],[310,471],[311,473],[312,475],[313,477],[341,506],[428,594],[443,610],[544,712],[545,716],[558,730],[741,930],[742,938],[749,962],[750,970],[805,1026],[819,1104],[820,1106],[7922,8209],[7924,8215],[7925,8218],[7927,8222],[7934,8231],[7943,8241],[7944,8244],[7945,8246],[7950,8252],[8062,8365],[8148,8452],[8149,8454],[8152,8458],[8164,8471],[8174,8482],[8236,8556],[8240,8570],[8262,8596],[8264,8602],[8374,8713],[8380,8720],[8381,8722],[8384,8726],[8388,8731],[8390,8737],[8392,8740],[8393,8742],[8394,8748],[8396,8751],[8401,8760],[8406,8766],[8416,8777],[8419,8781],[8424,8787],[8437,8802],[8439,8808],[8445,8816],[8482,8854],[8485,8858],[8496,8870],[8521,8896],[8603,8979],[8936,9322],[8946,9372],[9046,9548],[9050,9588],[9063,9616],[9066,9622],[9076,9634],[9092,9652],[9100,9662],[9108,9672],[9111,9676],[9113,9680],[9131,9702],[9162,9735],[9164,9738],[9218,9793],[9219,9795],[11329,11906],[11331,11909],[11334,11913],[11336,11917],[11346,11928],[11361,11944],[11363,11947],[11366,11951],[11370,11956],[11372,11960],[11375,11964],[11389,11979],[11682,12284],[11686,12292],[11687,12312],[11692,12319],[11694,12330],[11714,12351],[11716,12436],[11723,12447],[11725,12535],[11730,12543],[11736,12586],[11982,12842],[11989,12850],[12102,12964],[12336,13200],[12348,13215],[12350,13218],[12384,13253],[12393,13263],[12395,13267],[12397,13270],[12510,13384],[12553,13428],[12851,13727],[12962,13839],[12973,13851],[13738,14617],[13823,14703],[13919,14801],[13933,14816],[14080,14964],[14298,15183],[14585,15471],[14698,15585],[15583,16471],[15847,16736],[16318,17208],[16434,17325],[16438,17330],[16481,17374],[16729,17623],[17102,17997],[17122,18018],[17315,18212],[17320,18218],[17402,18301],[17418,18318],[17859,18760],[17909,18811],[17911,18814],[17915,18820],[17916,18823],[17936,18844],[17939,18848],[17961,18872],[18664,19576],[18703,19620],[18814,19738],[18962,19887],[19043,40870],[33469,59244],[33470,59336],[33471,59367],[33484,59413],[33485,59417],[33490,59423],[33497,59431],[33501,59437],[33505,59443],[33513,59452],[33520,59460],[33536,59478],[33550,59493],[37845,63789],[37921,63866],[37948,63894],[38029,63976],[38038,63986],[38064,64016],[38065,64018],[38066,64021],[38069,64025],[38075,64034],[38076,64037],[38078,64042],[39108,65074],[39109,65093],[39113,65107],[39114,65112],[39115,65127],[39116,65132],[39265,65375],[39394,65510],[189e3,65536]],jis0208:[12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180,65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293,12294,12295,12540,8213,8208,65295,65340,65374,8741,65372,8230,8229,8216,8217,8220,8221,65288,65289,12308,12309,65339,65341,65371,65373,12296,12297,12298,12299,12300,12301,12302,12303,12304,12305,65291,65293,177,215,247,65309,8800,65308,65310,8806,8807,8734,8756,9794,9792,176,8242,8243,8451,65509,65284,65504,65505,65285,65283,65286,65290,65312,167,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,9661,9660,8251,12306,8594,8592,8593,8595,12307,null,null,null,null,null,null,null,null,null,null,null,8712,8715,8838,8839,8834,8835,8746,8745,null,null,null,null,null,null,null,null,8743,8744,65506,8658,8660,8704,8707,null,null,null,null,null,null,null,null,null,null,null,8736,8869,8978,8706,8711,8801,8786,8810,8811,8730,8765,8733,8757,8747,8748,null,null,null,null,null,null,null,8491,8240,9839,9837,9834,8224,8225,182,null,null,null,null,9711,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,null,null,null,null,null,null,null,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,null,null,null,null,null,null,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,6
|
||
|
|
jis0212:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,728,711,184,729,733,175,731,730,65374,900,901,null,null,null,null,null,null,null,null,161,166,191,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,186,170,169,174,8482,164,8470,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,902,904,905,906,938,null,908,null,910,939,null,911,null,null,null,null,940,941,942,943,970,912,972,962,973,971,944,974,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1118,1119,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,198,272,null,294,null,306,null,321,319,null,330,216,338,null,358,222,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,230,273,240,295,305,307,312,322,320,329,331,248,339,223,359,254,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,n
|
||
|
|
ibm866:[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160],"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,1
|
||
|
|
a.shift()):this._BOMseen=!0)),r(a)}},g.prototype={encode:function(l,n){l=l?String(l):"",n=t(n),this._streaming||(this._encoder=W[this._encoding.name](this._options)),this._streaming=Boolean(n.stream);for(var e,r=[],o=new i(u(l));!o.endOfStream()&&(e=this._encoder.handler(o,o.read()),e!==V);)Array.isArray(e)?r.push.apply(r,e):r.push(e);if(!this._streaming){for(;;){if(e=this._encoder.handler(o,o.read()),e===V)break;Array.isArray(e)?r.push.apply(r,e):r.push(e)}this._encoder=null}return new Uint8Array(r)}},W["utf-8"]=function(l){return new k(l)},Y["utf-8"]=function(l){return new w(l)},function(){"encoding-indexes"in l&&H.forEach(function(l){"Legacy single-byte encodings"===l.heading&&l.encodings.forEach(function(l){var n=l.name,e=p(n);Y[n]=function(l){return new S(e,l)},W[n]=function(l){return new E(e,l)}})})}(),Y.gbk=function(l){return new I(l)},W.gbk=function(l){return new C(l,(!0))},W.gb18030=function(l){return new C(l)},Y.gb18030=function(l){return new I(l)},W.big5=function(l){return new M(l)},Y.big5=function(l){return new j(l)},W["euc-jp"]=function(l){return new x(l)},Y["euc-jp"]=function(l){return new A(l)},W["iso-2022-jp"]=function(l){return new R(l)},Y["iso-2022-jp"]=function(l){return new T(l)},W.shift_jis=function(l){return new P(l)},Y.shift_jis=function(l){return new O(l)},W["euc-kr"]=function(l){return new B(l)},Y["euc-kr"]=function(l){return new N(l)},W["utf-16be"]=function(l){return new L((!0),l)},Y["utf-16be"]=function(l){return new D((!0),l)},W["utf-16le"]=function(l){return new L((!1),l)},Y["utf-16le"]=function(l){return new D((!1),l)},W["x-user-defined"]=function(l){return new q(l)},Y["x-user-defined"]=function(l){return new F(l)},l.TextEncoder||(l.TextEncoder=g),l.TextDecoder||(l.TextDecoder=y)}(this)},{"./encoding-indexes.js":323}],325:[function(l,n,e){"use strict";function t(l){if(l&&l.__esModule)return l;var n={};if(null!=l)for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(n[e]=l[e]);return n["default"]=l,n}Object.defineProperty(e,"__esModule",{value:!0}),e.v1=void 0;var u=l("./v1/index"),r=t(u);e.v1=r,e["default"]=r},{"./v1/index":329}],326:[function(l,n,e){"use strict";function t(l){return l&&l.__esModule?l:{"default":l}}function u(l){l.maxConnectionLifetime=r(l.maxConnectionLifetime,N),l.maxConnectionPoolSize=r(l.maxConnectionPoolSize,O.DEFAULT_MAX_SIZE),l.connectionAcquisitionTimeout=r(l.connectionAcquisitionTimeout,O.DEFAULT_ACQUISITION_TIMEOUT)}function r(l,n){var e=parseInt(l,10);return e>0||0===e?e:e<0?o["default"]:n}Object.defineProperty(e,"__esModule",{value:!0}),e.WRITE=e.READ=e.Driver=void 0;var i=l("babel-runtime/core-js/number/max-safe-integer"),o=t(i),a=l("babel-runtime/core-js/object/get-prototype-of"),s=t(a),c=l("babel-runtime/helpers/possibleConstructorReturn"),f=t(c),h=l("babel-runtime/helpers/get"),d=t(h),p=l("babel-runtime/helpers/inherits"),b=t(p),v=l("babel-runtime/helpers/classCallCheck"),_=t(v),m=l("babel-runtime/helpers/createClass"),y=t(m),g=l("./session"),w=t(g),k=l("./internal/pool"),S=t(k),E=l("./internal/connector"),I=l("./internal/stream-observer"),C=t(I),j=l("./error"),M=l("./internal/connection-providers"),A=l("./internal/bookmark"),x=t(A),T=l("./internal/connectivity-verifier"),R=t(T),O=l("./internal/pool-config"),P=t(O),N=36e5,B="READ",U="WRITE",D=function(){function l(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,_["default"])(this,l),u(r),this._hostPort=n,this._userAgent=e,this._openSessions={},this._sessionIdGenerator=0,this._token=t,this._config=r,this._pool=new S["default"](this._createConnection.bind(this),this._destroyConnection.bind(this),this._validateConnection.bind(this),P["default"].fromDriverConfig(r)),this._connectionProvider=null,this._onCompleted=null}return(0,y["default"])(l,[{key:"_createConnection",value:function(l,n){var e=this._sessionIdGenerator++,t=(0,E.connect)(l,this._config,this._connectionErrorCode()),u=new L(this,t);return t.initialize(this._userAgent,this._token,u),t._id=e,t._release=function(){return n(l,t)},this._openSessions[e]=t,t}},{key:"_v
|
||
|
|
"default":l}}function u(){var n=l,e=n("process");return e.env["win32"==e.platform?"USERPROFILE":"HOME"]}function r(l){try{m["default"].mkdirSync(l)}catch(n){if("ENOENT"===n.code)return r(g["default"].dirname(l)),void r(l);if("EEXIST"===n.code)return;throw n}}function i(n,e,t){try{m["default"].accessSync(e)}catch(u){return t(null)}var r=!1;l("readline").createInterface({input:m["default"].createReadStream(e)}).on("line",function(l){!r&&l.startsWith(n)&&(r=!0,t(l.split(" ")[1]))}).on("close",function(){r||t(null)})}function o(l,n,e,t){if(C[l])return t(null);C[l]=1;try{m["default"].accessSync(n)}catch(u){r(g["default"].dirname(n))}m["default"].appendFile(n,l+" "+e+w.EOL,"utf8",function(n){return delete C[l],n&&console.log(n),t(n)})}function a(l,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return null};if(l.encrypted===!1||l.encrypted===S.ENCRYPTION_OFF){var t=p["default"].connect(l.url.port,l.url.host,n);return t.on("error",e),t}return j[l.trust]?j[l.trust](l,n,e):void e((0,E.newError)("Unknown trust strategy: "+l.trust+". Please use either trust:'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES' or trust:'TRUST_ALL_CERTIFICATES' in your driver configuration. Alternatively, you can disable encryption by setting `encrypted:\""+S.ENCRYPTION_OFF+'"`. There is no mechanism to use encryption without trust verification, because this incurs the overhead of encryption without improving security. If the driver does not verify that the peer it is connected to is really Neo4j, it is very easy for an attacker to bypass the encryption by pretending to be Neo4j.'))}Object.defineProperty(e,"__esModule",{value:!0});var s=l("babel-runtime/helpers/classCallCheck"),c=t(s),f=l("babel-runtime/helpers/createClass"),h=t(f),d=l("net"),p=t(d),b=l("tls"),v=t(b),_=l("fs"),m=t(_),y=l("path"),g=t(y),w=l("os"),k=l("./buf"),S=l("./util"),E=l("./../error"),I=0,C={},j={TRUST_SIGNED_CERTIFICATES:function(l,n,e){return console.warn("`TRUST_SIGNED_CERTIFICATES` has been deprecated as option and will be removed in a future version of the driver. Please use `TRUST_CUSTOM_CA_SIGNED_CERTIFICATES` instead."),j.TRUST_CUSTOM_CA_SIGNED_CERTIFICATES(l,n,e)},TRUST_CUSTOM_CA_SIGNED_CERTIFICATES:function(l,n,e){if(!l.trustedCertificates||0===l.trustedCertificates.length)return void e((0,E.newError)('You are using TRUST_CUSTOM_CA_SIGNED_CERTIFICATES as the method to verify trust for encrypted connections, but have not configured any trustedCertificates. You must specify the path to at least one trusted X.509 certificate for this to work. Two other alternatives is to use TRUST_ALL_CERTIFICATES or to disable encryption by setting encrypted="'+S.ENCRYPTION_OFF+'"in your driver configuration.'));var t={ca:l.trustedCertificates.map(function(l){return m["default"].readFileSync(l)}),rejectUnauthorized:!1},u=v["default"].connect(l.url.port,l.url.host,t,function(){u.authorized?n():e((0,E.newError)("Server certificate is not trusted. If you trust the database you are connecting to, add the signing certificate, or the server certificate, to the list of certificates trusted by this driver using `neo4j.v1.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This is a security measure to protect against man-in-the-middle attacks. If you are just trying Neo4j out and are not concerned about encryption, simply disable it using `encrypted=\""+S.ENCRYPTION_OFF+'"` in the driver options. Socket responded with: '+u.authorizationError))});return u.on("error",e),u},TRUST_SYSTEM_CA_SIGNED_CERTIFICATES:function(l,n,e){var t={rejectUnauthorized:!1},u=v["default"].connect(l.url.port,l.url.host,t,function(){u.authorized?n():e((0,E.newError)("Server certificate is not trusted. If you trust the database you are connecting to, use TRUST_CUSTOM_CA_SIGNED_CERTIFICATES and add the signing certificate, or the server certificate, to the list of certificates trusted by this driver using `neo4j.v1.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This is a security measure to protect against man-in-the-middle attacks. If you are just trying Neo4j out and are n
|
||
|
|
l.onCompleted=l.onCompleted||r,l.onError=l.onError||r,l.onNext=l.onNext||r,void 0===this._currentObserver?this._currentObserver=l:this._pendingObservers.push(l),!0)}},{key:"initializationCompleted",value:function(){return this._state.initializationCompleted()}},{key:"_updateCurrentObserver",value:function(){this._currentObserver=this._pendingObservers.shift()}},{key:"sync",value:function(){this._chunker.flush()}},{key:"isOpen",value:function(){return!this._isBroken&&this._ch._open}},{key:"isEncrypted",value:function(){return this._ch.isEncrypted()}},{key:"close",value:function(l){this._ch.close(l)}},{key:"_packable",value:function(l){var n=this;return this._packer.packable(l,function(l){return n._handleFatalError(l)})}},{key:"_markInitialized",value:function(l){var n=l?l.server:null;if(!this.server.version){this.server.version=n;var e=A.ServerVersion.fromString(n);e.compareTo(A.VERSION_3_2_0)<0&&this._packer.disableByteArrays()}}},{key:"_handleProtocolError",value:function(l){this._ackFailureMuted=!1,this._currentFailure=null,this._updateCurrentObserver();var n=(0,S.newError)(l,S.PROTOCOL_ERROR);return this._handleFatalError(n),n}}]),l}(),K=function(){function l(n){var e=this;(0,c["default"])(this,l),this._connection=n,this._initRequested=!1,this._initError=null,this._resolveInitPromise=null,this._rejectInitPromise=null,this._initPromise=new a["default"](function(l,n){e._resolveInitPromise=l,e._rejectInitPromise=n})}return(0,h["default"])(l,[{key:"wrap",value:function(l){var n=this;return{onNext:function(n){l&&l.onNext&&l.onNext(n)},onError:function(e){n._processFailure(e),n._connection._updateCurrentObserver();try{l&&l.onError&&l.onError(e)}finally{n._connection._handleFatalError(e)}},onCompleted:function(e){n._connection._markInitialized(e),n._resolveInitPromise(n._connection),l&&l.onCompleted&&l.onCompleted(e)}}}},{key:"initializationCompleted",value:function(){if(this._initRequested=!0,this._initError){var l=this._initError;this._initError=null,this._rejectInitPromise(l)}return this._initPromise}},{key:"_processFailure",value:function(l){this._initRequested?this._rejectInitPromise(l):this._initError=l}}]),l}();e.connect=i,e.Connection=H},{"./../error":327,"./buf":332,"./ch-config":333,"./ch-node":334,"./ch-websocket":335,"./chunking":336,"./packstream-util":350,"./server-version":360,"./stream-observer":361,"./url-util":364,"babel-runtime/core-js/json/stringify":18,"babel-runtime/core-js/promise":30,"babel-runtime/helpers/classCallCheck":34,"babel-runtime/helpers/createClass":35}],341:[function(l,n,e){"use strict";function t(l){return u[l]&&u[l]()}Object.defineProperty(e,"__esModule",{value:!0});var u={trust_on_first_use:function(){try{var n=l("tls").TLSSocket.prototype.getPeerCertificate,e=n.length;return e>=1}catch(t){return!1}},trust_all_certificates:function(){try{l("tls").TLSSocket.prototype.getPeerCertificate;return!0}catch(n){return!1}},dns_lookup:function(){try{var n=l("dns").lookup;return!(!n||"function"!=typeof n)}catch(e){return!1}}};e["default"]=t},{dns:74,tls:74}],342:[function(l,n,e){"use strict";function t(l){return l&&l.__esModule?l:{"default":l}}function u(l){return o["default"].resolve([l])}function r(l,n){var e=l.address,t=l.family;return n?6===t?y["default"].formatIPv6Address(e,n):y["default"].formatIPv4Address(e,n):e}Object.defineProperty(e,"__esModule",{value:!0}),e.DnsHostNameResolver=e.DummyHostNameResolver=void 0;var i=l("babel-runtime/core-js/promise"),o=t(i),a=l("babel-runtime/core-js/object/get-prototype-of"),s=t(a),c=l("babel-runtime/helpers/possibleConstructorReturn"),f=t(c),h=l("babel-runtime/helpers/inherits"),d=t(h),p=l("babel-runtime/helpers/classCallCheck"),b=t(p),v=l("babel-runtime/helpers/createClass"),_=t(v),m=l("./url-util"),y=t(m),g=function(){function l(){(0,b["default"])(this,l)}return(0,_["default"])(l,[{key:"resolve",value:function(){throw new Error("Abstract function")}}]),l}();e.DummyHostNameResolver=function(l){function n(){return(0,b["default"])(this,n),(0,f["default"])(this,(n.__proto__||(0,s["default"])(n)).apply(this,arguments))}return(0,d["default"])(n,l),(0,_["def
|
||
|
|
}},{key:"_unpackNode",value:function(l,n){return this._verifyStructSize("Node",X,l),new k.Node(this.unpack(n),this.unpack(n),this.unpack(n))}},{key:"_unpackRelationship",value:function(l,n){return this._verifyStructSize("Relationship",$,l),new k.Relationship(this.unpack(n),this.unpack(n),this.unpack(n),this.unpack(n),this.unpack(n))}},{key:"_unpackUnboundRelationship",value:function(l,n){return this._verifyStructSize("UnboundRelationship",ll,l),new k.UnboundRelationship(this.unpack(n),this.unpack(n),this.unpack(n))}},{key:"_unpackPath",value:function(l,n){this._verifyStructSize("Path",el,l);for(var e=this.unpack(n),t=this.unpack(n),u=this.unpack(n),r=[],i=e[0],o=0;o<u.length;o+=2){var a=e[u[o+1]],s=u[o],c=void 0;s>0?(c=t[s-1],c instanceof k.UnboundRelationship&&(t[s-1]=c=c.bind(i.identity,a.identity))):(c=t[-s-1],c instanceof k.UnboundRelationship&&(t[-s-1]=c=c.bind(a.identity,i.identity))),r.push(new k.PathSegment(i,c,a)),i=a}return new k.Path(e[0],e[e.length-1],r)}},{key:"_unpackUnknownStruct",value:function(l,n,e){for(var t=new tl(l,[]),u=0;u<n;u++)t.fields.push(this.unpack(e));return t}},{key:"_verifyStructSize",value:function(l,n,e){if(n!==e)throw(0,w.newError)("Wrong struct size for "+l+", expected "+n+" but was "+e,w.PROTOCOL_ERROR)}}]),l}();e.Packer=ul,e.Unpacker=rl,e.Structure=tl},{"../graph-types":328,"../integer":330,"./../error":327,"./chunking":336,"./utf8":365,"babel-runtime/core-js/array/from":15,"babel-runtime/core-js/object/keys":28,"babel-runtime/core-js/symbol/iterator":33,"babel-runtime/helpers/classCallCheck":34,"babel-runtime/helpers/createClass":35,"babel-runtime/helpers/typeof":42}],352:[function(l,n,e){"use strict";function t(l){if(l&&l.__esModule)return l;var n={};if(null!=l)for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(n[e]=l[e]);return n["default"]=l,n}function u(l){return l&&l.__esModule?l:{"default":l}}function r(l,n,e){var t=null===l.z||void 0===l.z;t?i(l,n,e):o(l,n,e)}function i(l,n,e){var t=[n.packable((0,W["int"])(l.srid),e),n.packable(l.x,e),n.packable(l.y,e)];n.packStruct(G,t,e)}function o(l,n,e){var t=[n.packable((0,W["int"])(l.srid),e),n.packable(l.x,e),n.packable(l.y,e),n.packable(l.z,e)];n.packStruct(X,t,e)}function a(l,n,e){return l._verifyStructSize("Point2D",Z,n),new H.Point(l.unpack(e),l.unpack(e),l.unpack(e),(void 0))}function s(l,n,e){return l._verifyStructSize("Point3D",J,n),new H.Point(l.unpack(e),l.unpack(e),l.unpack(e),l.unpack(e))}function c(l,n,e){var t=(0,W["int"])(l.months),u=(0,W["int"])(l.days),r=(0,W["int"])(l.seconds),i=(0,W["int"])(l.nanoseconds),o=[n.packable(t,e),n.packable(u,e),n.packable(r,e),n.packable(i,e)];n.packStruct($,o,e)}function f(l,n,e){l._verifyStructSize("Duration",Q,n);var t=l.unpack(e),u=l.unpack(e),r=l.unpack(e),i=l.unpack(e);return new K.Duration(t,u,r,i)}function h(l,n,e){var t=(0,Y.localTimeToNanoOfDay)(l.hour,l.minute,l.second,l.nanosecond),u=[n.packable(t,e)];n.packStruct(ll,u,e)}function d(l,n,e,t){l._verifyStructSize("LocalTime",nl,n);var u=l.unpackInteger(e),r=(0,Y.nanoOfDayToLocalTime)(u);return I(r,t)}function p(l,n,e){var t=(0,Y.localTimeToNanoOfDay)(l.hour,l.minute,l.second,l.nanosecond),u=(0,W["int"])(l.timeZoneOffsetSeconds),r=[n.packable(t,e),n.packable(u,e)];n.packStruct(el,r,e)}function b(l,n,e,t){l._verifyStructSize("Time",tl,n);var u=l.unpackInteger(e),r=l.unpackInteger(e),i=(0,Y.nanoOfDayToLocalTime)(u),o=new K.Time(i.hour,i.minute,i.second,i.nanosecond,r);return I(o,t)}function v(l,n,e){var t=(0,Y.dateToEpochDay)(l.year,l.month,l.day),u=[n.packable(t,e)];n.packStruct(ul,u,e)}function _(l,n,e,t){l._verifyStructSize("Date",rl,n);var u=l.unpackInteger(e),r=(0,Y.epochDayToDate)(u);return I(r,t)}function m(l,n,e){var t=(0,Y.localDateTimeToEpochSecond)(l.year,l.month,l.day,l.hour,l.minute,l.second,l.nanosecond),u=(0,W["int"])(l.nanosecond),r=[n.packable(t,e),n.packable(u,e)];n.packStruct(il,r,e)}function y(l,n,e,t){l._verifyStructSize("LocalDateTime",ol,n);var u=l.unpackInteger(e),r=l.unpackInteger(e),i=(0,Y.epochSecondAndNanoToLocalDateTime)(u,r);return I(i,t)}function g(l,n,e){l.timeZoneId?S(l,n,e):w(l,n,e)}functi
|
||
|
|
value:function(l){var n=l.code;return n.indexOf("TransientError")>=0&&("Neo.TransientError.Transaction.Terminated"!==n&&"Neo.TransientError.Transaction.LockClientStopped"!==n)}}]),l}();e["default"]=v},{"../error":327,"babel-runtime/core-js/promise":30,"babel-runtime/helpers/classCallCheck":34,"babel-runtime/helpers/createClass":35}],364:[function(l,n,e){"use strict";function t(l){return l&&l.__esModule?l:{"default":l}}function u(l){(0,g.assertString)(l,"URL");var n=r(l),e=(0,y.parse)(n.url),t=n.schemeMissing?null:i(e.scheme),u=o(e.host),c=d(u),f=a(e.port,t),h=c+":"+f,p=s(e.query,l);return new E(t,u,f,h,p)}function r(l){return l=l.trim(),l.indexOf("://")===-1?{schemeMissing:!0,url:"none://"+l}:{schemeMissing:!1,url:l}}function i(l){return l?(l=l.trim(),":"===l.charAt(l.length-1)&&(l=l.substring(0,l.length-1)),l):null}function o(l,n){if(!l)throw new Error("Unable to extract host from "+n);return l.trim()}function a(l,n){var e=parseInt(l,10);return 0===e||e?e:v(n)}function s(l,n){var e=c(l),t={};return e&&e.split("&").forEach(function(l){var e=l.split("=");if(2!==e.length)throw new Error("Invalid parameters: '"+e+"' in URL '"+n+"'.");var u=f(e[0],"key",n),r=f(e[1],"value",n);if(t[u])throw new Error("Duplicated query parameters with key '"+u+"' in URL '"+n+"'");t[u]=r}),t}function c(l){return l=(l||"").trim(),l&&"?"===l.charAt(0)&&(l=l.substring(1,l.length)),l}function f(l,n,e){if(l=(l||"").trim(),!l)throw new Error("Illegal empty "+n+" in URL query '"+e+"'");return l}function h(l){var n="["===l.charAt(0),e="]"===l.charAt(l.length-1);if(n||e){if(n&&e)return l;throw new Error("Illegal IPv6 address "+l)}return"["+l+"]"}function d(l){if(!l)throw new Error("Illegal host "+l);var n=l.indexOf(":")>=0;return n?h(l):l}function p(l,n){return l+":"+n}function b(l,n){var e=h(l);return e+":"+n}function v(l){return"http"===l?k:"https"===l?S:w}Object.defineProperty(e,"__esModule",{value:!0});var _=l("babel-runtime/helpers/classCallCheck"),m=t(_),y=l("uri-js"),g=l("./util"),w=7687,k=7474,S=7473,E=function I(l,n,e,t,u){(0,m["default"])(this,I),this.scheme=l,this.host=n,this.port=e,this.hostAndPort=t,this.query=u};e["default"]={parseDatabaseUrl:u,defaultPortForScheme:v,formatIPv4Address:p,formatIPv6Address:b}},{"./util":366,"babel-runtime/helpers/classCallCheck":34,"uri-js":319}],365:[function(l,n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=l("./buf"),u=l("string_decoder"),r=l("./../error"),i={};try{l.resolve("buffer");var o=new u.StringDecoder("utf8"),a=l("buffer"),s="function"==typeof a.Buffer.from?function(l){return a.Buffer.from(l,"utf8")}:function(l){return new a.Buffer(l,"utf8")};i={encode:function(l){return new t.NodeBuffer(s(l))},decode:function(l,n){if(l instanceof t.NodeBuffer){var e=l.position,u=e+n;return l.position=Math.min(u,l.length),l._buffer.toString("utf8",e,u)}if(l instanceof t.CombinedBuffer){var i=p(l,n,function(l){return o.write(l._buffer)},function(){return o.end()});return i}throw(0,r.newError)("Don't know how to decode strings from `"+l+"`.")}}}catch(c){var f=l("../../external/text-encoding/index"),h=new f.TextEncoder("utf-8"),d=new f.TextDecoder("utf-8");i={encode:function(l){return new t.HeapBuffer(h.encode(l).buffer)},decode:function(l,n){if(l instanceof t.HeapBuffer)return d.decode(l.readView(Math.min(n,l.length-l.position)));for(var e=(0,t.alloc)(n),u=0;u<n;u++)e.writeUInt8(l.readUInt8());return e.reset(),d.decode(e.readView(n))}}}var p=function(l,n,e,t){var u=n,r=l.position;l._updatePos(Math.min(n,l.length-r));var i=l._buffers.reduce(function(l,n){if(u<=0)return l;if(r>=n.length)return r-=n.length,"";n._updatePos(r-n.position);var t=Math.min(n.length-r,u),i=n.readSlice(t);return n._updatePos(t),u=Math.max(u-i.length,0),r=0,l+e(i)},"");return i+t()};e["default"]=i},{"../../external/text-encoding/index":322,"./../error":327,"./buf":332,buffer:76,string_decoder:317}],366:[function(l,n,e){"use strict";function t(l){return l&&l.__esModule?l:{"default":l}}function u(l){if(null===l)return!0;if(!r(l))return!1;for(var n in l)if(l.hasOwnProperty(n))return!1;return!0}function r(l){return"object
|
||
|
|
error:"Cannot rollback transaction, because transaction has already been rolled back."}),{result:i(n,"ROLLBACK",{}),state:R.ROLLED_BACK}},run:function(l,n,e,t){return n.onError({error:"Cannot run statement, because transaction has already been rolled back."}),i(n,e,t)}}};e["default"]=x},{"./internal/bookmark":331,"./internal/connection-holder":337,"./internal/stream-observer":361,"./internal/util":366,"./result":369,"babel-runtime/core-js/object/get-prototype-of":27,"babel-runtime/core-js/promise":30,"babel-runtime/helpers/classCallCheck":34,"babel-runtime/helpers/createClass":35,"babel-runtime/helpers/get":37,"babel-runtime/helpers/inherits":38,"babel-runtime/helpers/possibleConstructorReturn":39}],375:[function(l,n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]="1.6.3"},{}]},{},[325])(325)});
|