From 0a3a37e64ecbc9e0f20efb9ebbbb64d2945821e5 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 14 Dec 2016 13:02:27 -0500 Subject: [PATCH] save data to backend with asynchronous actions and redux-thunk --- dist/browser-bundle.js | 21287 ++++++++++++++++++++++-- package.json | 5 +- src/client/index.js | 13 +- src/common/actions.js | 61 +- src/common/components/MainControls.js | 2 +- src/common/components/ShowMarkdown.js | 2 - src/common/reducers.js | 33 +- src/common/selectors.js | 2 +- webpack.config.js | 5 + 9 files changed, 19661 insertions(+), 1749 deletions(-) diff --git a/dist/browser-bundle.js b/dist/browser-bundle.js index 8221a32..fb3c6e4 100644 --- a/dist/browser-bundle.js +++ b/dist/browser-bundle.js @@ -61,7 +61,7 @@ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 892); +/******/ return __webpack_require__(__webpack_require__.s = 1206); /******/ }) /************************************************************************/ /******/ ([ @@ -69,14 +69,14 @@ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';module.exports=__webpack_require__(705); +'use strict';module.exports=__webpack_require__(944); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.objectDiff=exports.numberToWord=exports.numberToWordMap=exports.keyboardKey=exports.SUI=exports.META=exports.leven=exports.isBrowser=exports.getElementType=exports.getUnhandledProps=exports.makeDebugger=exports.debug=exports.customPropTypes=exports.useVerticalAlignProp=exports.useTextAlignProp=exports.useWidthProp=exports.useKeyOrValueAndKey=exports.useValueAndKey=exports.useKeyOnly=exports.childrenUtils=exports.AutoControlledComponent=undefined;var _AutoControlledComponent=__webpack_require__(834);Object.defineProperty(exports,'AutoControlledComponent',{enumerable:true,get:function get(){return _interopRequireDefault(_AutoControlledComponent).default;}});var _classNameBuilders=__webpack_require__(838);Object.defineProperty(exports,'useKeyOnly',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOnly;}});Object.defineProperty(exports,'useValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useValueAndKey;}});Object.defineProperty(exports,'useKeyOrValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOrValueAndKey;}});Object.defineProperty(exports,'useWidthProp',{enumerable:true,get:function get(){return _classNameBuilders.useWidthProp;}});Object.defineProperty(exports,'useTextAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useTextAlignProp;}});Object.defineProperty(exports,'useVerticalAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useVerticalAlignProp;}});var _debug=__webpack_require__(840);Object.defineProperty(exports,'debug',{enumerable:true,get:function get(){return _debug.debug;}});Object.defineProperty(exports,'makeDebugger',{enumerable:true,get:function get(){return _debug.makeDebugger;}});var _factories=__webpack_require__(841);Object.keys(_factories).forEach(function(key){if(key==="default"||key==="__esModule")return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _factories[key];}});});var _getUnhandledProps=__webpack_require__(843);Object.defineProperty(exports,'getUnhandledProps',{enumerable:true,get:function get(){return _interopRequireDefault(_getUnhandledProps).default;}});var _getElementType=__webpack_require__(842);Object.defineProperty(exports,'getElementType',{enumerable:true,get:function get(){return _interopRequireDefault(_getElementType).default;}});var _isBrowser=__webpack_require__(385);Object.defineProperty(exports,'isBrowser',{enumerable:true,get:function get(){return _interopRequireDefault(_isBrowser).default;}});var _leven=__webpack_require__(386);Object.defineProperty(exports,'leven',{enumerable:true,get:function get(){return _interopRequireDefault(_leven).default;}});var _keyboardKey=__webpack_require__(844);Object.defineProperty(exports,'keyboardKey',{enumerable:true,get:function get(){return _interopRequireDefault(_keyboardKey).default;}});var _numberToWord=__webpack_require__(198);Object.defineProperty(exports,'numberToWordMap',{enumerable:true,get:function get(){return _numberToWord.numberToWordMap;}});Object.defineProperty(exports,'numberToWord',{enumerable:true,get:function get(){return _numberToWord.numberToWord;}});var _objectDiff=__webpack_require__(845);Object.defineProperty(exports,'objectDiff',{enumerable:true,get:function get(){return _objectDiff.objectDiff;}});var _childrenUtils2=__webpack_require__(837);var _childrenUtils=_interopRequireWildcard(_childrenUtils2);var _customPropTypes2=__webpack_require__(839);var _customPropTypes=_interopRequireWildcard(_customPropTypes2);var _META2=__webpack_require__(835);var _META=_interopRequireWildcard(_META2);var _SUI2=__webpack_require__(836);var _SUI=_interopRequireWildcard(_SUI2);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.childrenUtils=_childrenUtils;exports.customPropTypes=_customPropTypes;exports.META=_META;exports.SUI=_SUI; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.objectDiff=exports.numberToWord=exports.numberToWordMap=exports.keyboardKey=exports.SUI=exports.META=exports.leven=exports.isBrowser=exports.getElementType=exports.getUnhandledProps=exports.makeDebugger=exports.debug=exports.customPropTypes=exports.useVerticalAlignProp=exports.useTextAlignProp=exports.useWidthProp=exports.useKeyOrValueAndKey=exports.useValueAndKey=exports.useKeyOnly=exports.childrenUtils=exports.AutoControlledComponent=undefined;var _AutoControlledComponent=__webpack_require__(1090);Object.defineProperty(exports,'AutoControlledComponent',{enumerable:true,get:function get(){return _interopRequireDefault(_AutoControlledComponent).default;}});var _classNameBuilders=__webpack_require__(1094);Object.defineProperty(exports,'useKeyOnly',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOnly;}});Object.defineProperty(exports,'useValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useValueAndKey;}});Object.defineProperty(exports,'useKeyOrValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOrValueAndKey;}});Object.defineProperty(exports,'useWidthProp',{enumerable:true,get:function get(){return _classNameBuilders.useWidthProp;}});Object.defineProperty(exports,'useTextAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useTextAlignProp;}});Object.defineProperty(exports,'useVerticalAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useVerticalAlignProp;}});var _debug=__webpack_require__(1096);Object.defineProperty(exports,'debug',{enumerable:true,get:function get(){return _debug.debug;}});Object.defineProperty(exports,'makeDebugger',{enumerable:true,get:function get(){return _debug.makeDebugger;}});var _factories=__webpack_require__(1097);Object.keys(_factories).forEach(function(key){if(key==="default"||key==="__esModule")return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _factories[key];}});});var _getUnhandledProps=__webpack_require__(1099);Object.defineProperty(exports,'getUnhandledProps',{enumerable:true,get:function get(){return _interopRequireDefault(_getUnhandledProps).default;}});var _getElementType=__webpack_require__(1098);Object.defineProperty(exports,'getElementType',{enumerable:true,get:function get(){return _interopRequireDefault(_getElementType).default;}});var _isBrowser=__webpack_require__(498);Object.defineProperty(exports,'isBrowser',{enumerable:true,get:function get(){return _interopRequireDefault(_isBrowser).default;}});var _leven=__webpack_require__(499);Object.defineProperty(exports,'leven',{enumerable:true,get:function get(){return _interopRequireDefault(_leven).default;}});var _keyboardKey=__webpack_require__(1100);Object.defineProperty(exports,'keyboardKey',{enumerable:true,get:function get(){return _interopRequireDefault(_keyboardKey).default;}});var _numberToWord=__webpack_require__(273);Object.defineProperty(exports,'numberToWordMap',{enumerable:true,get:function get(){return _numberToWord.numberToWordMap;}});Object.defineProperty(exports,'numberToWord',{enumerable:true,get:function get(){return _numberToWord.numberToWord;}});var _objectDiff=__webpack_require__(1101);Object.defineProperty(exports,'objectDiff',{enumerable:true,get:function get(){return _objectDiff.objectDiff;}});var _childrenUtils2=__webpack_require__(1093);var _childrenUtils=_interopRequireWildcard(_childrenUtils2);var _customPropTypes2=__webpack_require__(1095);var _customPropTypes=_interopRequireWildcard(_customPropTypes2);var _META2=__webpack_require__(1091);var _META=_interopRequireWildcard(_META2);var _SUI2=__webpack_require__(1092);var _SUI=_interopRequireWildcard(_SUI2);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.childrenUtils=_childrenUtils;exports.customPropTypes=_customPropTypes;exports.META=_META;exports.SUI=_SUI; /***/ }, /* 2 */ @@ -87,7 +87,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';var Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*//* global define */(function(){'use strict';var hasOwn={}.hasOwnProperty;function classNames(){var classes=[];for(var i=0;i + * @license MIT + *//* eslint-disable no-proto */'use strict';var base64=__webpack_require__(580);var ieee754=__webpack_require__(679);var isArray=__webpack_require__(592);exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;/** + * If `Buffer.TYPED_ARRAY_SUPPORT`: + * === true Use Uint8Array implementation (fastest) + * === false Use Object implementation (most compatible, even IE6) + * + * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, + * Opera 11.6+, iOS 4.2+. + * + * Due to various browser bugs, sometimes the Object implementation will be used even + * when the browser supports typed arrays. + * + * Note: + * + * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, + * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. + * + * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. + * + * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of + * incorrect length in some situations. + + * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they + * get the Object implementation, which is slower but behaves correctly. + */Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();/* + * Export kMaxLength after typed array support is determined. + */exports.kMaxLength=kMaxLength();function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42;}};return arr.foo()===42&&// typed array instances can be augmented +typeof arr.subarray==='function'&&// chrome 9-10 lack `subarray` +arr.subarray(1,1).byteLength===0;// ie10 has broken `subarray` +}catch(e){return false;}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff;}function createBuffer(that,length){if(kMaxLength()=kMaxLength()){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+kMaxLength().toString(16)+' bytes');}return length|0;}function SlowBuffer(length){if(+length!=length){// eslint-disable-line eqeqeq +length=0;}return Buffer.alloc(+length);}Buffer.isBuffer=function isBuffer(b){return!!(b!=null&&b._isBuffer);};Buffer.compare=function compare(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('Arguments must be Buffers');}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i>>1;case'base64':return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;// assume utf8 +encoding=(''+encoding).toLowerCase();loweredCase=true;}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;// No need to verify that "this.length <= MAX_UINT32" since it's a read-only +// property of a typed array. +// This behaves neither like String nor Uint8Array in that we set start/end +// to their upper/lower bounds if the value passed is out of range. +// undefined is handled specially as per ECMA-262 6th Edition, +// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. +if(start===undefined||start<0){start=0;}// Return early if start > this.length. Done here to prevent potential uint32 +// coercion fail below. +if(start>this.length){return'';}if(end===undefined||end>this.length){end=this.length;}if(end<=0){return'';}// Force coersion to uint32. This will also coerce falsey/NaN values to 0. +end>>>=0;start>>>=0;if(end<=start){return'';}if(!encoding)encoding='utf8';while(true){switch(encoding){case'hex':return hexSlice(this,start,end);case'utf8':case'utf-8':return utf8Slice(this,start,end);case'ascii':return asciiSlice(this,start,end);case'latin1':case'binary':return latin1Slice(this,start,end);case'base64':return base64Slice(this,start,end);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(encoding+'').toLowerCase();loweredCase=true;}}}// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect +// Buffer instances. +Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i;}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits');}for(var i=0;i0){str=this.toString('hex',0,max).match(/.{2}/g).join(' ');if(this.length>max)str+=' ... ';}return'';};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target)){throw new TypeError('Argument must be a Buffer');}if(start===undefined){start=0;}if(end===undefined){end=target?target.length:0;}if(thisStart===undefined){thisStart=0;}if(thisEnd===undefined){thisEnd=this.length;}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError('out of range index');}if(thisStart>=thisEnd&&start>=end){return 0;}if(thisStart>=thisEnd){return-1;}if(start>=end){return 1;}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;var x=thisEnd-thisStart;var y=end-start;var len=Math.min(x,y);var thisCopy=this.slice(thisStart,thisEnd);var targetCopy=target.slice(start,end);for(var i=0;i= `byteOffset`, +// OR the last index of `val` in `buffer` at offset <= `byteOffset`. +// +// Arguments: +// - buffer - a Buffer to search +// - val - a string, Buffer, or number +// - byteOffset - an index into `buffer`; will be clamped to an int32 +// - encoding - an optional encoding, relevant is val is a string +// - dir - true for indexOf, false for lastIndexOf +function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){// Empty buffer means no match +if(buffer.length===0)return-1;// Normalize byteOffset +if(typeof byteOffset==='string'){encoding=byteOffset;byteOffset=0;}else if(byteOffset>0x7fffffff){byteOffset=0x7fffffff;}else if(byteOffset<-0x80000000){byteOffset=-0x80000000;}byteOffset=+byteOffset;// Coerce to Number. +if(isNaN(byteOffset)){// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer +byteOffset=dir?0:buffer.length-1;}// Normalize byteOffset: negative offsets start from the end of the buffer +if(byteOffset<0)byteOffset=buffer.length+byteOffset;if(byteOffset>=buffer.length){if(dir)return-1;else byteOffset=buffer.length-1;}else if(byteOffset<0){if(dir)byteOffset=0;else return-1;}// Normalize val +if(typeof val==='string'){val=Buffer.from(val,encoding);}// Finally, search either indexOf (if dir is true) or lastIndexOf +if(Buffer.isBuffer(val)){// Special case: looking for empty string/buffer always fails +if(val.length===0){return-1;}return arrayIndexOf(buffer,val,byteOffset,encoding,dir);}else if(typeof val==='number'){val=val&0xFF;// Search for a byte value [0-255] +if(Buffer.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==='function'){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset);}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset);}}return arrayIndexOf(buffer,[val],byteOffset,encoding,dir);}throw new TypeError('val must be string, number or Buffer');}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1;var arrLength=arr.length;var valLength=val.length;if(encoding!==undefined){encoding=String(encoding).toLowerCase();if(encoding==='ucs2'||encoding==='ucs-2'||encoding==='utf16le'||encoding==='utf-16le'){if(arr.length<2||val.length<2){return-1;}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2;}}function read(buf,i){if(indexSize===1){return buf[i];}else{return buf.readUInt16BE(i*indexSize);}}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;jremaining){length=remaining;}}// must be an even number of digits +var strLen=string.length;if(strLen%2!==0)throw new TypeError('Invalid hex string');if(length>strLen/2){length=strLen/2;}for(var i=0;iremaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError('Attempt to write outside buffer bounds');}if(!encoding)encoding='utf8';var loweredCase=false;for(;;){switch(encoding){case'hex':return hexWrite(this,string,offset,length);case'utf8':case'utf-8':return utf8Write(this,string,offset,length);case'ascii':return asciiWrite(this,string,offset,length);case'latin1':case'binary':return latin1Write(this,string,offset,length);case'base64':// Warning: maxLength not taken into account in base64Write +return base64Write(this,string,offset,length);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(''+encoding).toLowerCase();loweredCase=true;}}};Buffer.prototype.toJSON=function toJSON(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)};};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf);}else{return base64.fromByteArray(buf.slice(start,end));}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i0xEF?4:firstByte>0xDF?3:firstByte>0xBF?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<0x80){codePoint=firstByte;}break;case 2:secondByte=buf[i+1];if((secondByte&0xC0)===0x80){tempCodePoint=(firstByte&0x1F)<<0x6|secondByte&0x3F;if(tempCodePoint>0x7F){codePoint=tempCodePoint;}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0xC|(secondByte&0x3F)<<0x6|thirdByte&0x3F;if(tempCodePoint>0x7FF&&(tempCodePoint<0xD800||tempCodePoint>0xDFFF)){codePoint=tempCodePoint;}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80&&(fourthByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0x12|(secondByte&0x3F)<<0xC|(thirdByte&0x3F)<<0x6|fourthByte&0x3F;if(tempCodePoint>0xFFFF&&tempCodePoint<0x110000){codePoint=tempCodePoint;}}}}if(codePoint===null){// we did not generate a valid codePoint so insert a +// replacement char (U+FFFD) and advance only 1 byte +codePoint=0xFFFD;bytesPerSequence=1;}else if(codePoint>0xFFFF){// encode to utf16 (surrogate pair dance) +codePoint-=0x10000;res.push(codePoint>>>10&0x3FF|0xD800);codePoint=0xDC00|codePoint&0x3FF;}res.push(codePoint);i+=bytesPerSequence;}return decodeCodePointsArray(res);}// Based on http://stackoverflow.com/a/22747272/680742, the browser with +// the lowest limit is Chrome, with 0x10000 args. +// We go 1 magnitude less, for safety +var MAX_ARGUMENTS_LENGTH=0x1000;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints);// avoid extra slice() +}// Decode in chunks to avoid "call stack size exceeded". +var res='';var i=0;while(ilen)end=len;var out='';for(var i=start;ilen){start=len;}if(end<0){end+=len;if(end<0)end=0;}else if(end>len){end=len;}if(endlength)throw new RangeError('Trying to access beyond buffer length');}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i0&&(mul*=0x100)){val+=this[offset+--byteLength]*mul;}return val;};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset];};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8;};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1];};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*0x1000000;};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*0x1000000+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3]);};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=0x100)){val+=this[offset+--i]*mul;}mul*=0x80;if(val>=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readInt8=function readInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&0x80))return this[offset];return(0xff-this[offset]+1)*-1;};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24;};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3];};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4);};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4);};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8);};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8);};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||valuebuf.length)throw new RangeError('Index out of range');}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0);}var mul=1;var i=0;this[offset]=value&0xFF;while(++i=0&&(mul*=0x100)){this[offset+i]=value/mul&0xFF;}return offset+byteLength;};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,0xff,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value&0xff;return offset+1;};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=0xffff+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i>>(littleEndian?i:1-i)*8;}}Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}return offset+2;};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}return offset+2;};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=0xffffffff+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i>>(littleEndian?i:3-i)*8&0xff;}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&0xff;}else{objectWriteUInt32(this,value,offset,true);}return offset+4;};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}return offset+4;};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=0;var mul=1;var sub=0;this[offset]=value&0xFF;while(++i>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=byteLength-1;var mul=1;var sub=0;this[offset+i]=value&0xFF;while(--i>=0&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1;}this[offset+i]=(value/mul>>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,0x7f,-0x80);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=0xff+value+1;this[offset]=value&0xff;return offset+1;};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}return offset+2;};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}return offset+2;};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;}else{objectWriteUInt32(this,value,offset,true);}return offset+4;};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);if(value<0)value=0xffffffff+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}return offset+4;};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError('Index out of range');if(offset<0)throw new RangeError('Index out of range');}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,4,3.4028234663852886e+38,-3.4028234663852886e+38);}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4;}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert);};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert);};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,8,1.7976931348623157E+308,-1.7976931348623157E+308);}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8;}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert);};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert);};// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) +Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end=this.length)throw new RangeError('sourceStart out of bounds');if(end<0)throw new RangeError('sourceEnd out of bounds');// Are we oob? +if(end>this.length)end=this.length;if(target.length-targetStart=0;--i){target[i+targetStart]=this[i+start];}}else if(len<1000||!Buffer.TYPED_ARRAY_SUPPORT){// ascending copy from start +for(i=0;i>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==='number'){for(i=start;i0xD7FF&&codePoint<0xE000){// last char was a lead +if(!leadSurrogate){// no lead yet +if(codePoint>0xDBFF){// unexpected trail +if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}else if(i+1===length){// unpaired lead +if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}// valid lead +leadSurrogate=codePoint;continue;}// 2 leads in a row +if(codePoint<0xDC00){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);leadSurrogate=codePoint;continue;}// valid surrogate pair +codePoint=(leadSurrogate-0xD800<<10|codePoint-0xDC00)+0x10000;}else if(leadSurrogate){// valid bmp char, but last char was a lead +if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);}leadSurrogate=null;// encode utf8 +if(codePoint<0x80){if((units-=1)<0)break;bytes.push(codePoint);}else if(codePoint<0x800){if((units-=2)<0)break;bytes.push(codePoint>>0x6|0xC0,codePoint&0x3F|0x80);}else if(codePoint<0x10000){if((units-=3)<0)break;bytes.push(codePoint>>0xC|0xE0,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else if(codePoint<0x110000){if((units-=4)<0)break;bytes.push(codePoint>>0x12|0xF0,codePoint>>0xC&0x3F|0x80,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else{throw new Error('Invalid code point');}}return bytes;}function asciiToBytes(str){var byteArray=[];for(var i=0;i>8;lo=c%256;byteArray.push(lo);byteArray.push(hi);}return byteArray;}function base64ToBytes(str){return base64.toByteArray(base64clean(str));}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length)break;dst[i+offset]=src[i];}return i;}function isnan(val){return val!==val;// eslint-disable-line no-self-compare +} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer, __webpack_require__(17))) + +/***/ }, +/* 5 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';if(typeof Object.create==='function'){// implementation from standard node.js 'util' module +module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}});};}else{// old school shim for old browsers +module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function TempCtor(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor();ctor.prototype.constructor=ctor;};} + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + "use strict"; /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-2015, Facebook, Inc. @@ -143,7 +309,7 @@ throw error;}}module.exports=invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 5 */ +/* 7 */ /***/ function(module, exports) { "use strict"; @@ -164,7 +330,7 @@ throw error;}}module.exports=invariant; for(var key in from){if(hasOwnProperty.call(from,key)){to[key]=from[key];}}}return to;}module.exports=assign; /***/ }, -/* 6 */ +/* 8 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -177,7 +343,7 @@ for(var key in from){if(hasOwnProperty.call(from,key)){to[key]=from[key];}}}retu * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule warning - */'use strict';var emptyFunction=__webpack_require__(25);/** + */'use strict';var emptyFunction=__webpack_require__(41);/** * Similar to invariant but only logs a warning if the condition is not met. * This can be used to log issues in development environments in critical * paths. Removing the logging code for production environments will keep the @@ -190,7 +356,7 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 7 */ +/* 9 */ /***/ function(module, exports) { "use strict"; @@ -219,7 +385,94 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */var isArray=Array.isArray;module.exports=isArray; /***/ }, -/* 8 */ +/* 10 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(global, process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i=len)return x;switch(x){case'%s':return String(args[i++]);case'%d':return Number(args[i++]);case'%j':try{return JSON.stringify(args[i++]);}catch(_){return'[Circular]';}default:return x;}});for(var x=args[i];i=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){// legacy... +ctx.showHidden=opts;}else if(opts){// got an "options" object +exports._extend(ctx,opts);}// set default options +if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth);}exports.inspect=inspect;// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics +inspect.colors={'bold':[1,22],'italic':[3,23],'underline':[4,24],'inverse':[7,27],'white':[37,39],'grey':[90,39],'black':[30,39],'blue':[34,39],'cyan':[36,39],'green':[32,39],'magenta':[35,39],'red':[31,39],'yellow':[33,39]};// Don't use 'blue' not visible on cmd.exe +inspect.styles={'special':'cyan','number':'yellow','boolean':'yellow','undefined':'grey','null':'bold','string':'green','date':'magenta',// "name": intentionally not styling +'regexp':'red'};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return'\x1B['+inspect.colors[style][0]+'m'+str+'\x1B['+inspect.colors[style][1]+'m';}else{return str;}}function stylizeNoColor(str,styleType){return str;}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true;});return hash;}function formatValue(ctx,value,recurseTimes){// Provide a hook for user-specified inspect functions. +// Check that value is an object with an inspect function on it +if(ctx.customInspect&&value&&isFunction(value.inspect)&&// Filter out the util module, it's inspect function is special +value.inspect!==exports.inspect&&// Also filter out any prototype objects using the circular check. +!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes);}return ret;}// Primitive types cannot have properties +var primitive=formatPrimitive(ctx,value);if(primitive){return primitive;}// Look up the keys of the object. +var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value);}// IE doesn't make error fields non-enumerable +// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx +if(isError(value)&&(keys.indexOf('message')>=0||keys.indexOf('description')>=0)){return formatError(value);}// Some type of object without properties can be shortcutted. +if(keys.length===0){if(isFunction(value)){var name=value.name?': '+value.name:'';return ctx.stylize('[Function'+name+']','special');}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),'date');}if(isError(value)){return formatError(value);}}var base='',array=false,braces=['{','}'];// Make Array say that they are Array +if(isArray(value)){array=true;braces=['[',']'];}// Make functions say that they are functions +if(isFunction(value)){var n=value.name?': '+value.name:'';base=' [Function'+n+']';}// Make RegExps say that they are RegExps +if(isRegExp(value)){base=' '+RegExp.prototype.toString.call(value);}// Make dates with properties first say the date +if(isDate(value)){base=' '+Date.prototype.toUTCString.call(value);}// Make error with message first say the error +if(isError(value)){base=' '+formatError(value);}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1];}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}else{return ctx.stylize('[Object]','special');}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys);}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array);});}ctx.seen.pop();return reduceToSingleString(output,base,braces);}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize('undefined','undefined');if(isString(value)){var simple='\''+JSON.stringify(value).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return ctx.stylize(simple,'string');}if(isNumber(value))return ctx.stylize(''+value,'number');if(isBoolean(value))return ctx.stylize(''+value,'boolean');// For some reason typeof null is "object", so special case here. +if(isNull(value))return ctx.stylize('null','null');}function formatError(value){return'['+Error.prototype.toString.call(value)+']';}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i-1){if(array){str=str.split('\n').map(function(line){return' '+line;}).join('\n').substr(2);}else{str='\n'+str.split('\n').map(function(line){return' '+line;}).join('\n');}}}else{str=ctx.stylize('[Circular]','special');}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str;}name=JSON.stringify(''+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,'name');}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,'string');}}return name+': '+str;}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf('\n')>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,'').length+1;},0);if(length>60){return braces[0]+(base===''?'':base+'\n ')+' '+output.join(',\n ')+' '+braces[1];}return braces[0]+base+' '+output.join(', ')+' '+braces[1];}// NOTE: These type checking functions intentionally don't use `instanceof` +// because it is fragile and can be easily faked with `Object.create()`. +function isArray(ar){return Array.isArray(ar);}exports.isArray=isArray;function isBoolean(arg){return typeof arg==='boolean';}exports.isBoolean=isBoolean;function isNull(arg){return arg===null;}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null;}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==='number';}exports.isNumber=isNumber;function isString(arg){return typeof arg==='string';}exports.isString=isString;function isSymbol(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='symbol';}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0;}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==='[object RegExp]';}exports.isRegExp=isRegExp;function isObject(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'&&arg!==null;}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==='[object Date]';}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==='[object Error]'||e instanceof Error);}exports.isError=isError;function isFunction(arg){return typeof arg==='function';}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==='boolean'||typeof arg==='number'||typeof arg==='string'||(typeof arg==='undefined'?'undefined':_typeof(arg))==='symbol'||// ES6 symbol +typeof arg==='undefined';}exports.isPrimitive=isPrimitive;exports.isBuffer=__webpack_require__(1162);function objectToString(o){return Object.prototype.toString.call(o);}function pad(n){return n<10?'0'+n.toString(10):n.toString(10);}var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];// 26 Feb 16:19:34 +function timestamp(){var d=new Date();var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(':');return[d.getDate(),months[d.getMonth()],time].join(' ');}// log is just a thin wrapper to console.log that prepends a timestamp +exports.log=function(){console.log('%s - %s',timestamp(),exports.format.apply(exports,arguments));};/** + * Inherit the prototype methods from one constructor into another. + * + * The Function.prototype.inherits from lang.js rewritten as a standalone + * function (not on Function.prototype). NOTE: If this file is to be loaded + * during bootstrapping this function needs to be rewritten using some native + * functions as prototype setup using normal JavaScript does not work as + * expected during bootstrapping (see mirror.js in r114903). + * + * @param {function} ctor Constructor function which needs to inherit the + * prototype. + * @param {function} superCtor Constructor function to inherit prototype from. + */exports.inherits=__webpack_require__(1161);exports._extend=function(origin,add){// Don't do anything if add isn't an object +if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]];}return origin;};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17), __webpack_require__(3))) + +/***/ }, +/* 11 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.randomBytes=exports.rng=exports.pseudoRandomBytes=exports.prng=__webpack_require__(116);exports.createHash=exports.Hash=__webpack_require__(84);exports.createHmac=exports.Hmac=__webpack_require__(200);var hashes=['sha1','sha224','sha256','sha384','sha512','md5','rmd160'].concat(Object.keys(__webpack_require__(314)));exports.getHashes=function(){return hashes;};var p=__webpack_require__(400);exports.pbkdf2=p.pbkdf2;exports.pbkdf2Sync=p.pbkdf2Sync;var aes=__webpack_require__(584);['Cipher','createCipher','Cipheriv','createCipheriv','Decipher','createDecipher','Decipheriv','createDecipheriv','getCiphers','listCiphers'].forEach(function(key){exports[key]=aes[key];});var dh=__webpack_require__(620);['DiffieHellmanGroup','createDiffieHellmanGroup','getDiffieHellman','createDiffieHellman','DiffieHellman'].forEach(function(key){exports[key]=dh[key];});var sign=__webpack_require__(587);['createSign','Sign','createVerify','Verify'].forEach(function(key){exports[key]=sign[key];});exports.createECDH=__webpack_require__(596);var publicEncrypt=__webpack_require__(906);['publicEncrypt','privateEncrypt','publicDecrypt','privateDecrypt'].forEach(function(key){exports[key]=publicEncrypt[key];})// the least I can do is make error messages for the rest of the node.js/crypto api. +;['createCredentials'].forEach(function(name){exports[name]=function(){throw new Error(['sorry, '+name+' is not implemented yet','we accept pull requests','https://github.com/crypto-browserify/crypto-browserify'].join('\n'));};}); + +/***/ }, +/* 12 */ /***/ function(module, exports) { "use strict"; @@ -230,11 +483,235 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */module.exports={}; /***/ }, -/* 9 */ +/* 13 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseConvert=__webpack_require__(625),util=__webpack_require__(627);/** +/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright (c) 2012, Mark Cavage. All rights reserved. +// Copyright 2015 Joyent, Inc. +var assert=__webpack_require__(43);var Stream=__webpack_require__(16).Stream;var util=__webpack_require__(10);///--- Globals +/* JSSTYLED */var UUID_REGEXP=/^[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}$/;///--- Internal +function _capitalize(str){return str.charAt(0).toUpperCase()+str.slice(1);}function _toss(name,expected,oper,arg,actual){throw new assert.AssertionError({message:util.format('%s (%s) is required',name,expected),actual:actual===undefined?typeof arg==='undefined'?'undefined':_typeof(arg):actual(arg),expected:expected,operator:oper||'===',stackStartFunction:_toss.caller});}function _getClass(arg){return Object.prototype.toString.call(arg).slice(8,-1);}function noop(){}// Why even bother with asserts? +///--- Exports +var types={bool:{check:function check(arg){return typeof arg==='boolean';}},func:{check:function check(arg){return typeof arg==='function';}},string:{check:function check(arg){return typeof arg==='string';}},object:{check:function check(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'&&arg!==null;}},number:{check:function check(arg){return typeof arg==='number'&&!isNaN(arg);}},finite:{check:function check(arg){return typeof arg==='number'&&!isNaN(arg)&&isFinite(arg);}},buffer:{check:function check(arg){return Buffer.isBuffer(arg);},operator:'Buffer.isBuffer'},array:{check:function check(arg){return Array.isArray(arg);},operator:'Array.isArray'},stream:{check:function check(arg){return arg instanceof Stream;},operator:'instanceof',actual:_getClass},date:{check:function check(arg){return arg instanceof Date;},operator:'instanceof',actual:_getClass},regexp:{check:function check(arg){return arg instanceof RegExp;},operator:'instanceof',actual:_getClass},uuid:{check:function check(arg){return typeof arg==='string'&&UUID_REGEXP.test(arg);},operator:'isUUID'}};function _setExports(ndebug){var keys=Object.keys(types);var out;/* re-export standard assert */if(process.env.NODE_NDEBUG){out=noop;}else{out=function out(arg,msg){if(!arg){_toss(msg,'true',arg);}};}/* standard checks */keys.forEach(function(k){if(ndebug){out[k]=noop;return;}var type=types[k];out[k]=function(arg,msg){if(!type.check(arg)){_toss(msg,k,type.operator,arg,type.actual);}};});/* optional checks */keys.forEach(function(k){var name='optional'+_capitalize(k);if(ndebug){out[name]=noop;return;}var type=types[k];out[name]=function(arg,msg){if(arg===undefined||arg===null){return;}if(!type.check(arg)){_toss(msg,k,type.operator,arg,type.actual);}};});/* arrayOf checks */keys.forEach(function(k){var name='arrayOf'+_capitalize(k);if(ndebug){out[name]=noop;return;}var type=types[k];var expected='['+k+']';out[name]=function(arg,msg){if(!Array.isArray(arg)){_toss(msg,expected,type.operator,arg,type.actual);}var i;for(i=0;i0)return left;return right;};BN.min=function min(left,right){if(left.cmp(right)<0)return left;return right;};BN.prototype._init=function init(number,base,endian){if(typeof number==='number'){return this._initNumber(number,base,endian);}if((typeof number==='undefined'?'undefined':_typeof(number))==='object'){return this._initArray(number,base,endian);}if(base==='hex'){base=16;}assert(base===(base|0)&&base>=2&&base<=36);number=number.toString().replace(/\s+/g,'');var start=0;if(number[0]==='-'){start++;}if(base===16){this._parseHex(number,start);}else{this._parseBase(number,base,start);}if(number[0]==='-'){this.negative=1;}this.strip();if(endian!=='le')return;this._initArray(this.toArray(),base,endian);};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.negative=1;number=-number;}if(number<0x4000000){this.words=[number&0x3ffffff];this.length=1;}else if(number<0x10000000000000){this.words=[number&0x3ffffff,number/0x4000000&0x3ffffff];this.length=2;}else{assert(number<0x20000000000000);// 2 ^ 53 (unsafe) +this.words=[number&0x3ffffff,number/0x4000000&0x3ffffff,1];this.length=3;}if(endian!=='le')return;// Reverse the bytes +this._initArray(this.toArray(),base,endian);};BN.prototype._initArray=function _initArray(number,base,endian){// Perhaps a Uint8Array +assert(typeof number.length==='number');if(number.length<=0){this.words=[0];this.length=1;return this;}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&0x3ffffff;off+=24;if(off>=26){off-=26;j++;}}}else if(endian==='le'){for(i=0,j=0;i>>26-off&0x3ffffff;off+=24;if(off>=26){off-=26;j++;}}}return this.strip();};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54){r|=c-49+0xa;// 'A' - 'F' +}else if(c>=17&&c<=22){r|=c-17+0xa;// '0' - '9' +}else{r|=c&0xf;}}return r;}BN.prototype._parseHex=function _parseHex(number,start){// Create possibly bigger array to ensure that it fits the number +this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&0x3fffff;off+=24;if(off>=26){off-=26;j++;}}if(i+6!==start){w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&0x3fffff;}this.strip();};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49){r+=c-49+0xa;// 'A' +}else if(c>=17){r+=c-17+0xa;// '0' - '9' +}else{r+=c;}}return r;}BN.prototype._parseBase=function _parseBase(number,base,start){// Initialize as zero +this.words=[0];this.length=1;// Find length of limb in base +for(var limbLen=0,limbPow=1;limbPow<=0x3ffffff;limbPow*=base){limbLen++;}limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0){this.length--;}return this._normSign();};BN.prototype._normSign=function _normSign(){// -0 = 0 +if(this.length===1&&this.words[0]===0){this.negative=0;}return this;};BN.prototype.inspect=function inspect(){return(this.red?'';};/* + + var zeros = []; + var groupSizes = []; + var groupBases = []; + + var s = ''; + var i = -1; + while (++i < BN.wordSize) { + zeros[i] = s; + s += '0'; + } + groupSizes[0] = 0; + groupSizes[1] = 0; + groupBases[0] = 0; + groupBases[1] = 0; + var base = 2 - 1; + while (++base < 36 + 1) { + var groupSize = 0; + var groupBase = 1; + while (groupBase < (1 << BN.wordSize) / base) { + groupBase *= base; + groupSize += 1; + } + groupSizes[base] = groupSize; + groupBases[base] = groupBase; + } + + */var zeros=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'];var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,10000000,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;padding=padding|0||1;var out;if(base===16||base==='hex'){out='';var off=0;var carry=0;for(var i=0;i>>24-off&0xffffff;if(carry!==0||i!==this.length-1){out=zeros[6-word.length]+word+out;}else{out=word+out;}off+=2;if(off>=26){off-=26;i--;}}if(carry!==0){out=carry.toString(16)+out;}while(out.length%padding!==0){out='0'+out;}if(this.negative!==0){out='-'+out;}return out;}if(base===(base|0)&&base>=2&&base<=36){// var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base)); +var groupSize=groupSizes[base];// var groupBase = Math.pow(base, groupSize); +var groupBase=groupBases[base];out='';var c=this.clone();c.negative=0;while(!c.isZero()){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(!c.isZero()){out=zeros[groupSize-r.length]+r+out;}else{out=r+out;}}if(this.isZero()){out='0'+out;}while(out.length%padding!==0){out='0'+out;}if(this.negative!==0){out='-'+out;}return out;}assert(false,'Base should be between 2 and 36');};BN.prototype.toNumber=function toNumber(){var ret=this.words[0];if(this.length===2){ret+=this.words[1]*0x4000000;}else if(this.length===3&&this.words[2]===0x01){// NOTE: at this stage it is known that the top bit is set +ret+=0x10000000000000+this.words[1]*0x4000000;}else if(this.length>2){assert(false,'Number can only safely store up to 53 bits');}return this.negative!==0?-ret:ret;};BN.prototype.toJSON=function toJSON(){return this.toString(16);};BN.prototype.toBuffer=function toBuffer(endian,length){assert(typeof Buffer!=='undefined');return this.toArrayLike(Buffer,endian,length);};BN.prototype.toArray=function toArray(endian,length){return this.toArrayLike(Array,endian,length);};BN.prototype.toArrayLike=function toArrayLike(ArrayType,endian,length){var byteLength=this.byteLength();var reqLength=length||Math.max(1,byteLength);assert(byteLength<=reqLength,'byte array longer than desired length');assert(reqLength>0,'Requested array length <= 0');this.strip();var littleEndian=endian==='le';var res=new ArrayType(reqLength);var b,i;var q=this.clone();if(!littleEndian){// Assume big-endian +for(i=0;i=0x1000){r+=13;t>>>=13;}if(t>=0x40){r+=7;t>>>=7;}if(t>=0x8){r+=4;t>>>=4;}if(t>=0x02){r+=2;t>>>=2;}return r+t;};}BN.prototype._zeroBits=function _zeroBits(w){// Short-cut +if(w===0)return 26;var t=w;var r=0;if((t&0x1fff)===0){r+=13;t>>>=13;}if((t&0x7f)===0){r+=7;t>>>=7;}if((t&0xf)===0){r+=4;t>>>=4;}if((t&0x3)===0){r+=2;t>>>=2;}if((t&0x1)===0){r++;}return r;};// Return number of used bits in a BN +BN.prototype.bitLength=function bitLength(){var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi;};function toBitArray(num){var w=new Array(num.bitLength());for(var bit=0;bit>>wbit;}return w;}// Number of trailing zero bits +BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);return num.clone().ior(this);};BN.prototype.uor=function uor(num){if(this.length>num.length)return this.clone().iuor(num);return num.clone().iuor(this);};// And `num` with `this` in-place +BN.prototype.iuand=function iuand(num){// b = min-length(num, this) +var b;if(this.length>num.length){b=num;}else{b=this;}for(var i=0;inum.length)return this.clone().iand(num);return num.clone().iand(this);};BN.prototype.uand=function uand(num){if(this.length>num.length)return this.clone().iuand(num);return num.clone().iuand(this);};// Xor `num` with `this` in-place +BN.prototype.iuxor=function iuxor(num){// a.length > b.length +var a;var b;if(this.length>num.length){a=this;b=num;}else{a=num;b=this;}for(var i=0;inum.length)return this.clone().ixor(num);return num.clone().ixor(this);};BN.prototype.uxor=function uxor(num){if(this.length>num.length)return this.clone().iuxor(num);return num.clone().iuxor(this);};// Not ``this`` with ``width`` bitwidth +BN.prototype.inotn=function inotn(width){assert(typeof width==='number'&&width>=0);var bytesNeeded=Math.ceil(width/26)|0;var bitsLeft=width%26;// Extend the buffer with leading zeroes +this._expand(bytesNeeded);if(bitsLeft>0){bytesNeeded--;}// Handle complete words +for(var i=0;i0){this.words[i]=~this.words[i]&0x3ffffff>>26-bitsLeft;}// And remove leading zeroes +return this.strip();};BN.prototype.notn=function notn(width){return this.clone().inotn(width);};// Set `bit` of `this` +BN.prototype.setn=function setn(bit,val){assert(typeof bit==='number'&&bit>=0);var off=bit/26|0;var wbit=bit%26;this._expand(off+1);if(val){this.words[off]=this.words[off]|1< b.length +var a,b;if(this.length>num.length){a=this;b=num;}else{a=num;b=this;}var carry=0;for(var i=0;i>>26;}for(;carry!==0&&i>>26;}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++;// Copy the rest of the words +}else if(a!==this){for(;inum.length)return this.clone().iadd(num);return num.clone().iadd(this);};// Subtract `num` from `this` in-place +BN.prototype.isub=function isub(num){// this - (-num) = this + num +if(num.negative!==0){num.negative=0;var r=this.iadd(num);num.negative=1;return r._normSign();// -this - num = -(this + num) +}else if(this.negative!==0){this.negative=0;this.iadd(num);this.negative=1;return this._normSign();}// At this point both numbers are positive +var cmp=this.cmp(num);// Optimization - zeroify +if(cmp===0){this.negative=0;this.length=1;this.words[0]=0;return this;}// a > b +var a,b;if(cmp>0){a=this;b=num;}else{a=num;b=this;}var carry=0;for(var i=0;i>26;this.words[i]=r&0x3ffffff;}for(;carry!==0&&i>26;this.words[i]=r&0x3ffffff;}// Copy rest of the words +if(carry===0&&i= 0x3ffffff +var ncarry=carry>>>26;var rword=carry&0x3ffffff;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j|0;a=self.words[i]|0;b=num.words[j]|0;r=a*b+rword;ncarry+=r/0x4000000|0;rword=r&0x3ffffff;}out.words[k]=rword|0;carry=ncarry|0;}if(carry!==0){out.words[k]=carry|0;}else{out.length--;}return out.strip();}// TODO(indutny): it may be reasonable to omit it for users who don't need +// to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit +// multiplication (like elliptic secp256k1). +var comb10MulTo=function comb10MulTo(self,num,out){var a=self.words;var b=num.words;var o=out.words;var c=0;var lo;var mid;var hi;var a0=a[0]|0;var al0=a0&0x1fff;var ah0=a0>>>13;var a1=a[1]|0;var al1=a1&0x1fff;var ah1=a1>>>13;var a2=a[2]|0;var al2=a2&0x1fff;var ah2=a2>>>13;var a3=a[3]|0;var al3=a3&0x1fff;var ah3=a3>>>13;var a4=a[4]|0;var al4=a4&0x1fff;var ah4=a4>>>13;var a5=a[5]|0;var al5=a5&0x1fff;var ah5=a5>>>13;var a6=a[6]|0;var al6=a6&0x1fff;var ah6=a6>>>13;var a7=a[7]|0;var al7=a7&0x1fff;var ah7=a7>>>13;var a8=a[8]|0;var al8=a8&0x1fff;var ah8=a8>>>13;var a9=a[9]|0;var al9=a9&0x1fff;var ah9=a9>>>13;var b0=b[0]|0;var bl0=b0&0x1fff;var bh0=b0>>>13;var b1=b[1]|0;var bl1=b1&0x1fff;var bh1=b1>>>13;var b2=b[2]|0;var bl2=b2&0x1fff;var bh2=b2>>>13;var b3=b[3]|0;var bl3=b3&0x1fff;var bh3=b3>>>13;var b4=b[4]|0;var bl4=b4&0x1fff;var bh4=b4>>>13;var b5=b[5]|0;var bl5=b5&0x1fff;var bh5=b5>>>13;var b6=b[6]|0;var bl6=b6&0x1fff;var bh6=b6>>>13;var b7=b[7]|0;var bl7=b7&0x1fff;var bh7=b7>>>13;var b8=b[8]|0;var bl8=b8&0x1fff;var bh8=b8>>>13;var b9=b[9]|0;var bl9=b9&0x1fff;var bh9=b9>>>13;out.negative=self.negative^num.negative;out.length=19;/* k = 0 */lo=Math.imul(al0,bl0);mid=Math.imul(al0,bh0);mid=mid+Math.imul(ah0,bl0)|0;hi=Math.imul(ah0,bh0);var w0=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w0>>>26)|0;w0&=0x3ffffff;/* k = 1 */lo=Math.imul(al1,bl0);mid=Math.imul(al1,bh0);mid=mid+Math.imul(ah1,bl0)|0;hi=Math.imul(ah1,bh0);lo=lo+Math.imul(al0,bl1)|0;mid=mid+Math.imul(al0,bh1)|0;mid=mid+Math.imul(ah0,bl1)|0;hi=hi+Math.imul(ah0,bh1)|0;var w1=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w1>>>26)|0;w1&=0x3ffffff;/* k = 2 */lo=Math.imul(al2,bl0);mid=Math.imul(al2,bh0);mid=mid+Math.imul(ah2,bl0)|0;hi=Math.imul(ah2,bh0);lo=lo+Math.imul(al1,bl1)|0;mid=mid+Math.imul(al1,bh1)|0;mid=mid+Math.imul(ah1,bl1)|0;hi=hi+Math.imul(ah1,bh1)|0;lo=lo+Math.imul(al0,bl2)|0;mid=mid+Math.imul(al0,bh2)|0;mid=mid+Math.imul(ah0,bl2)|0;hi=hi+Math.imul(ah0,bh2)|0;var w2=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w2>>>26)|0;w2&=0x3ffffff;/* k = 3 */lo=Math.imul(al3,bl0);mid=Math.imul(al3,bh0);mid=mid+Math.imul(ah3,bl0)|0;hi=Math.imul(ah3,bh0);lo=lo+Math.imul(al2,bl1)|0;mid=mid+Math.imul(al2,bh1)|0;mid=mid+Math.imul(ah2,bl1)|0;hi=hi+Math.imul(ah2,bh1)|0;lo=lo+Math.imul(al1,bl2)|0;mid=mid+Math.imul(al1,bh2)|0;mid=mid+Math.imul(ah1,bl2)|0;hi=hi+Math.imul(ah1,bh2)|0;lo=lo+Math.imul(al0,bl3)|0;mid=mid+Math.imul(al0,bh3)|0;mid=mid+Math.imul(ah0,bl3)|0;hi=hi+Math.imul(ah0,bh3)|0;var w3=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w3>>>26)|0;w3&=0x3ffffff;/* k = 4 */lo=Math.imul(al4,bl0);mid=Math.imul(al4,bh0);mid=mid+Math.imul(ah4,bl0)|0;hi=Math.imul(ah4,bh0);lo=lo+Math.imul(al3,bl1)|0;mid=mid+Math.imul(al3,bh1)|0;mid=mid+Math.imul(ah3,bl1)|0;hi=hi+Math.imul(ah3,bh1)|0;lo=lo+Math.imul(al2,bl2)|0;mid=mid+Math.imul(al2,bh2)|0;mid=mid+Math.imul(ah2,bl2)|0;hi=hi+Math.imul(ah2,bh2)|0;lo=lo+Math.imul(al1,bl3)|0;mid=mid+Math.imul(al1,bh3)|0;mid=mid+Math.imul(ah1,bl3)|0;hi=hi+Math.imul(ah1,bh3)|0;lo=lo+Math.imul(al0,bl4)|0;mid=mid+Math.imul(al0,bh4)|0;mid=mid+Math.imul(ah0,bl4)|0;hi=hi+Math.imul(ah0,bh4)|0;var w4=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w4>>>26)|0;w4&=0x3ffffff;/* k = 5 */lo=Math.imul(al5,bl0);mid=Math.imul(al5,bh0);mid=mid+Math.imul(ah5,bl0)|0;hi=Math.imul(ah5,bh0);lo=lo+Math.imul(al4,bl1)|0;mid=mid+Math.imul(al4,bh1)|0;mid=mid+Math.imul(ah4,bl1)|0;hi=hi+Math.imul(ah4,bh1)|0;lo=lo+Math.imul(al3,bl2)|0;mid=mid+Math.imul(al3,bh2)|0;mid=mid+Math.imul(ah3,bl2)|0;hi=hi+Math.imul(ah3,bh2)|0;lo=lo+Math.imul(al2,bl3)|0;mid=mid+Math.imul(al2,bh3)|0;mid=mid+Math.imul(ah2,bl3)|0;hi=hi+Math.imul(ah2,bh3)|0;lo=lo+Math.imul(al1,bl4)|0;mid=mid+Math.imul(al1,bh4)|0;mid=mid+Math.imul(ah1,bl4)|0;hi=hi+Math.imul(ah1,bh4)|0;lo=lo+Math.imul(al0,bl5)|0;mid=mid+Math.imul(al0,bh5)|0;mid=mid+Math.imul(ah0,bl5)|0;hi=hi+Math.imul(ah0,bh5)|0;var w5=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w5>>>26)|0;w5&=0x3ffffff;/* k = 6 */lo=Math.imul(al6,bl0);mid=Math.imul(al6,bh0);mid=mid+Math.imul(ah6,bl0)|0;hi=Math.imul(ah6,bh0);lo=lo+Math.imul(al5,bl1)|0;mid=mid+Math.imul(al5,bh1)|0;mid=mid+Math.imul(ah5,bl1)|0;hi=hi+Math.imul(ah5,bh1)|0;lo=lo+Math.imul(al4,bl2)|0;mid=mid+Math.imul(al4,bh2)|0;mid=mid+Math.imul(ah4,bl2)|0;hi=hi+Math.imul(ah4,bh2)|0;lo=lo+Math.imul(al3,bl3)|0;mid=mid+Math.imul(al3,bh3)|0;mid=mid+Math.imul(ah3,bl3)|0;hi=hi+Math.imul(ah3,bh3)|0;lo=lo+Math.imul(al2,bl4)|0;mid=mid+Math.imul(al2,bh4)|0;mid=mid+Math.imul(ah2,bl4)|0;hi=hi+Math.imul(ah2,bh4)|0;lo=lo+Math.imul(al1,bl5)|0;mid=mid+Math.imul(al1,bh5)|0;mid=mid+Math.imul(ah1,bl5)|0;hi=hi+Math.imul(ah1,bh5)|0;lo=lo+Math.imul(al0,bl6)|0;mid=mid+Math.imul(al0,bh6)|0;mid=mid+Math.imul(ah0,bl6)|0;hi=hi+Math.imul(ah0,bh6)|0;var w6=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w6>>>26)|0;w6&=0x3ffffff;/* k = 7 */lo=Math.imul(al7,bl0);mid=Math.imul(al7,bh0);mid=mid+Math.imul(ah7,bl0)|0;hi=Math.imul(ah7,bh0);lo=lo+Math.imul(al6,bl1)|0;mid=mid+Math.imul(al6,bh1)|0;mid=mid+Math.imul(ah6,bl1)|0;hi=hi+Math.imul(ah6,bh1)|0;lo=lo+Math.imul(al5,bl2)|0;mid=mid+Math.imul(al5,bh2)|0;mid=mid+Math.imul(ah5,bl2)|0;hi=hi+Math.imul(ah5,bh2)|0;lo=lo+Math.imul(al4,bl3)|0;mid=mid+Math.imul(al4,bh3)|0;mid=mid+Math.imul(ah4,bl3)|0;hi=hi+Math.imul(ah4,bh3)|0;lo=lo+Math.imul(al3,bl4)|0;mid=mid+Math.imul(al3,bh4)|0;mid=mid+Math.imul(ah3,bl4)|0;hi=hi+Math.imul(ah3,bh4)|0;lo=lo+Math.imul(al2,bl5)|0;mid=mid+Math.imul(al2,bh5)|0;mid=mid+Math.imul(ah2,bl5)|0;hi=hi+Math.imul(ah2,bh5)|0;lo=lo+Math.imul(al1,bl6)|0;mid=mid+Math.imul(al1,bh6)|0;mid=mid+Math.imul(ah1,bl6)|0;hi=hi+Math.imul(ah1,bh6)|0;lo=lo+Math.imul(al0,bl7)|0;mid=mid+Math.imul(al0,bh7)|0;mid=mid+Math.imul(ah0,bl7)|0;hi=hi+Math.imul(ah0,bh7)|0;var w7=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w7>>>26)|0;w7&=0x3ffffff;/* k = 8 */lo=Math.imul(al8,bl0);mid=Math.imul(al8,bh0);mid=mid+Math.imul(ah8,bl0)|0;hi=Math.imul(ah8,bh0);lo=lo+Math.imul(al7,bl1)|0;mid=mid+Math.imul(al7,bh1)|0;mid=mid+Math.imul(ah7,bl1)|0;hi=hi+Math.imul(ah7,bh1)|0;lo=lo+Math.imul(al6,bl2)|0;mid=mid+Math.imul(al6,bh2)|0;mid=mid+Math.imul(ah6,bl2)|0;hi=hi+Math.imul(ah6,bh2)|0;lo=lo+Math.imul(al5,bl3)|0;mid=mid+Math.imul(al5,bh3)|0;mid=mid+Math.imul(ah5,bl3)|0;hi=hi+Math.imul(ah5,bh3)|0;lo=lo+Math.imul(al4,bl4)|0;mid=mid+Math.imul(al4,bh4)|0;mid=mid+Math.imul(ah4,bl4)|0;hi=hi+Math.imul(ah4,bh4)|0;lo=lo+Math.imul(al3,bl5)|0;mid=mid+Math.imul(al3,bh5)|0;mid=mid+Math.imul(ah3,bl5)|0;hi=hi+Math.imul(ah3,bh5)|0;lo=lo+Math.imul(al2,bl6)|0;mid=mid+Math.imul(al2,bh6)|0;mid=mid+Math.imul(ah2,bl6)|0;hi=hi+Math.imul(ah2,bh6)|0;lo=lo+Math.imul(al1,bl7)|0;mid=mid+Math.imul(al1,bh7)|0;mid=mid+Math.imul(ah1,bl7)|0;hi=hi+Math.imul(ah1,bh7)|0;lo=lo+Math.imul(al0,bl8)|0;mid=mid+Math.imul(al0,bh8)|0;mid=mid+Math.imul(ah0,bl8)|0;hi=hi+Math.imul(ah0,bh8)|0;var w8=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w8>>>26)|0;w8&=0x3ffffff;/* k = 9 */lo=Math.imul(al9,bl0);mid=Math.imul(al9,bh0);mid=mid+Math.imul(ah9,bl0)|0;hi=Math.imul(ah9,bh0);lo=lo+Math.imul(al8,bl1)|0;mid=mid+Math.imul(al8,bh1)|0;mid=mid+Math.imul(ah8,bl1)|0;hi=hi+Math.imul(ah8,bh1)|0;lo=lo+Math.imul(al7,bl2)|0;mid=mid+Math.imul(al7,bh2)|0;mid=mid+Math.imul(ah7,bl2)|0;hi=hi+Math.imul(ah7,bh2)|0;lo=lo+Math.imul(al6,bl3)|0;mid=mid+Math.imul(al6,bh3)|0;mid=mid+Math.imul(ah6,bl3)|0;hi=hi+Math.imul(ah6,bh3)|0;lo=lo+Math.imul(al5,bl4)|0;mid=mid+Math.imul(al5,bh4)|0;mid=mid+Math.imul(ah5,bl4)|0;hi=hi+Math.imul(ah5,bh4)|0;lo=lo+Math.imul(al4,bl5)|0;mid=mid+Math.imul(al4,bh5)|0;mid=mid+Math.imul(ah4,bl5)|0;hi=hi+Math.imul(ah4,bh5)|0;lo=lo+Math.imul(al3,bl6)|0;mid=mid+Math.imul(al3,bh6)|0;mid=mid+Math.imul(ah3,bl6)|0;hi=hi+Math.imul(ah3,bh6)|0;lo=lo+Math.imul(al2,bl7)|0;mid=mid+Math.imul(al2,bh7)|0;mid=mid+Math.imul(ah2,bl7)|0;hi=hi+Math.imul(ah2,bh7)|0;lo=lo+Math.imul(al1,bl8)|0;mid=mid+Math.imul(al1,bh8)|0;mid=mid+Math.imul(ah1,bl8)|0;hi=hi+Math.imul(ah1,bh8)|0;lo=lo+Math.imul(al0,bl9)|0;mid=mid+Math.imul(al0,bh9)|0;mid=mid+Math.imul(ah0,bl9)|0;hi=hi+Math.imul(ah0,bh9)|0;var w9=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w9>>>26)|0;w9&=0x3ffffff;/* k = 10 */lo=Math.imul(al9,bl1);mid=Math.imul(al9,bh1);mid=mid+Math.imul(ah9,bl1)|0;hi=Math.imul(ah9,bh1);lo=lo+Math.imul(al8,bl2)|0;mid=mid+Math.imul(al8,bh2)|0;mid=mid+Math.imul(ah8,bl2)|0;hi=hi+Math.imul(ah8,bh2)|0;lo=lo+Math.imul(al7,bl3)|0;mid=mid+Math.imul(al7,bh3)|0;mid=mid+Math.imul(ah7,bl3)|0;hi=hi+Math.imul(ah7,bh3)|0;lo=lo+Math.imul(al6,bl4)|0;mid=mid+Math.imul(al6,bh4)|0;mid=mid+Math.imul(ah6,bl4)|0;hi=hi+Math.imul(ah6,bh4)|0;lo=lo+Math.imul(al5,bl5)|0;mid=mid+Math.imul(al5,bh5)|0;mid=mid+Math.imul(ah5,bl5)|0;hi=hi+Math.imul(ah5,bh5)|0;lo=lo+Math.imul(al4,bl6)|0;mid=mid+Math.imul(al4,bh6)|0;mid=mid+Math.imul(ah4,bl6)|0;hi=hi+Math.imul(ah4,bh6)|0;lo=lo+Math.imul(al3,bl7)|0;mid=mid+Math.imul(al3,bh7)|0;mid=mid+Math.imul(ah3,bl7)|0;hi=hi+Math.imul(ah3,bh7)|0;lo=lo+Math.imul(al2,bl8)|0;mid=mid+Math.imul(al2,bh8)|0;mid=mid+Math.imul(ah2,bl8)|0;hi=hi+Math.imul(ah2,bh8)|0;lo=lo+Math.imul(al1,bl9)|0;mid=mid+Math.imul(al1,bh9)|0;mid=mid+Math.imul(ah1,bl9)|0;hi=hi+Math.imul(ah1,bh9)|0;var w10=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w10>>>26)|0;w10&=0x3ffffff;/* k = 11 */lo=Math.imul(al9,bl2);mid=Math.imul(al9,bh2);mid=mid+Math.imul(ah9,bl2)|0;hi=Math.imul(ah9,bh2);lo=lo+Math.imul(al8,bl3)|0;mid=mid+Math.imul(al8,bh3)|0;mid=mid+Math.imul(ah8,bl3)|0;hi=hi+Math.imul(ah8,bh3)|0;lo=lo+Math.imul(al7,bl4)|0;mid=mid+Math.imul(al7,bh4)|0;mid=mid+Math.imul(ah7,bl4)|0;hi=hi+Math.imul(ah7,bh4)|0;lo=lo+Math.imul(al6,bl5)|0;mid=mid+Math.imul(al6,bh5)|0;mid=mid+Math.imul(ah6,bl5)|0;hi=hi+Math.imul(ah6,bh5)|0;lo=lo+Math.imul(al5,bl6)|0;mid=mid+Math.imul(al5,bh6)|0;mid=mid+Math.imul(ah5,bl6)|0;hi=hi+Math.imul(ah5,bh6)|0;lo=lo+Math.imul(al4,bl7)|0;mid=mid+Math.imul(al4,bh7)|0;mid=mid+Math.imul(ah4,bl7)|0;hi=hi+Math.imul(ah4,bh7)|0;lo=lo+Math.imul(al3,bl8)|0;mid=mid+Math.imul(al3,bh8)|0;mid=mid+Math.imul(ah3,bl8)|0;hi=hi+Math.imul(ah3,bh8)|0;lo=lo+Math.imul(al2,bl9)|0;mid=mid+Math.imul(al2,bh9)|0;mid=mid+Math.imul(ah2,bl9)|0;hi=hi+Math.imul(ah2,bh9)|0;var w11=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w11>>>26)|0;w11&=0x3ffffff;/* k = 12 */lo=Math.imul(al9,bl3);mid=Math.imul(al9,bh3);mid=mid+Math.imul(ah9,bl3)|0;hi=Math.imul(ah9,bh3);lo=lo+Math.imul(al8,bl4)|0;mid=mid+Math.imul(al8,bh4)|0;mid=mid+Math.imul(ah8,bl4)|0;hi=hi+Math.imul(ah8,bh4)|0;lo=lo+Math.imul(al7,bl5)|0;mid=mid+Math.imul(al7,bh5)|0;mid=mid+Math.imul(ah7,bl5)|0;hi=hi+Math.imul(ah7,bh5)|0;lo=lo+Math.imul(al6,bl6)|0;mid=mid+Math.imul(al6,bh6)|0;mid=mid+Math.imul(ah6,bl6)|0;hi=hi+Math.imul(ah6,bh6)|0;lo=lo+Math.imul(al5,bl7)|0;mid=mid+Math.imul(al5,bh7)|0;mid=mid+Math.imul(ah5,bl7)|0;hi=hi+Math.imul(ah5,bh7)|0;lo=lo+Math.imul(al4,bl8)|0;mid=mid+Math.imul(al4,bh8)|0;mid=mid+Math.imul(ah4,bl8)|0;hi=hi+Math.imul(ah4,bh8)|0;lo=lo+Math.imul(al3,bl9)|0;mid=mid+Math.imul(al3,bh9)|0;mid=mid+Math.imul(ah3,bl9)|0;hi=hi+Math.imul(ah3,bh9)|0;var w12=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w12>>>26)|0;w12&=0x3ffffff;/* k = 13 */lo=Math.imul(al9,bl4);mid=Math.imul(al9,bh4);mid=mid+Math.imul(ah9,bl4)|0;hi=Math.imul(ah9,bh4);lo=lo+Math.imul(al8,bl5)|0;mid=mid+Math.imul(al8,bh5)|0;mid=mid+Math.imul(ah8,bl5)|0;hi=hi+Math.imul(ah8,bh5)|0;lo=lo+Math.imul(al7,bl6)|0;mid=mid+Math.imul(al7,bh6)|0;mid=mid+Math.imul(ah7,bl6)|0;hi=hi+Math.imul(ah7,bh6)|0;lo=lo+Math.imul(al6,bl7)|0;mid=mid+Math.imul(al6,bh7)|0;mid=mid+Math.imul(ah6,bl7)|0;hi=hi+Math.imul(ah6,bh7)|0;lo=lo+Math.imul(al5,bl8)|0;mid=mid+Math.imul(al5,bh8)|0;mid=mid+Math.imul(ah5,bl8)|0;hi=hi+Math.imul(ah5,bh8)|0;lo=lo+Math.imul(al4,bl9)|0;mid=mid+Math.imul(al4,bh9)|0;mid=mid+Math.imul(ah4,bl9)|0;hi=hi+Math.imul(ah4,bh9)|0;var w13=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w13>>>26)|0;w13&=0x3ffffff;/* k = 14 */lo=Math.imul(al9,bl5);mid=Math.imul(al9,bh5);mid=mid+Math.imul(ah9,bl5)|0;hi=Math.imul(ah9,bh5);lo=lo+Math.imul(al8,bl6)|0;mid=mid+Math.imul(al8,bh6)|0;mid=mid+Math.imul(ah8,bl6)|0;hi=hi+Math.imul(ah8,bh6)|0;lo=lo+Math.imul(al7,bl7)|0;mid=mid+Math.imul(al7,bh7)|0;mid=mid+Math.imul(ah7,bl7)|0;hi=hi+Math.imul(ah7,bh7)|0;lo=lo+Math.imul(al6,bl8)|0;mid=mid+Math.imul(al6,bh8)|0;mid=mid+Math.imul(ah6,bl8)|0;hi=hi+Math.imul(ah6,bh8)|0;lo=lo+Math.imul(al5,bl9)|0;mid=mid+Math.imul(al5,bh9)|0;mid=mid+Math.imul(ah5,bl9)|0;hi=hi+Math.imul(ah5,bh9)|0;var w14=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w14>>>26)|0;w14&=0x3ffffff;/* k = 15 */lo=Math.imul(al9,bl6);mid=Math.imul(al9,bh6);mid=mid+Math.imul(ah9,bl6)|0;hi=Math.imul(ah9,bh6);lo=lo+Math.imul(al8,bl7)|0;mid=mid+Math.imul(al8,bh7)|0;mid=mid+Math.imul(ah8,bl7)|0;hi=hi+Math.imul(ah8,bh7)|0;lo=lo+Math.imul(al7,bl8)|0;mid=mid+Math.imul(al7,bh8)|0;mid=mid+Math.imul(ah7,bl8)|0;hi=hi+Math.imul(ah7,bh8)|0;lo=lo+Math.imul(al6,bl9)|0;mid=mid+Math.imul(al6,bh9)|0;mid=mid+Math.imul(ah6,bl9)|0;hi=hi+Math.imul(ah6,bh9)|0;var w15=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w15>>>26)|0;w15&=0x3ffffff;/* k = 16 */lo=Math.imul(al9,bl7);mid=Math.imul(al9,bh7);mid=mid+Math.imul(ah9,bl7)|0;hi=Math.imul(ah9,bh7);lo=lo+Math.imul(al8,bl8)|0;mid=mid+Math.imul(al8,bh8)|0;mid=mid+Math.imul(ah8,bl8)|0;hi=hi+Math.imul(ah8,bh8)|0;lo=lo+Math.imul(al7,bl9)|0;mid=mid+Math.imul(al7,bh9)|0;mid=mid+Math.imul(ah7,bl9)|0;hi=hi+Math.imul(ah7,bh9)|0;var w16=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w16>>>26)|0;w16&=0x3ffffff;/* k = 17 */lo=Math.imul(al9,bl8);mid=Math.imul(al9,bh8);mid=mid+Math.imul(ah9,bl8)|0;hi=Math.imul(ah9,bh8);lo=lo+Math.imul(al8,bl9)|0;mid=mid+Math.imul(al8,bh9)|0;mid=mid+Math.imul(ah8,bl9)|0;hi=hi+Math.imul(ah8,bh9)|0;var w17=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w17>>>26)|0;w17&=0x3ffffff;/* k = 18 */lo=Math.imul(al9,bl9);mid=Math.imul(al9,bh9);mid=mid+Math.imul(ah9,bl9)|0;hi=Math.imul(ah9,bh9);var w18=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w18>>>26)|0;w18&=0x3ffffff;o[0]=w0;o[1]=w1;o[2]=w2;o[3]=w3;o[4]=w4;o[5]=w5;o[6]=w6;o[7]=w7;o[8]=w8;o[9]=w9;o[10]=w10;o[11]=w11;o[12]=w12;o[13]=w13;o[14]=w14;o[15]=w15;o[16]=w16;o[17]=w17;o[18]=w18;if(c!==0){o[19]=c;out.length++;}return out;};// Polyfill comb +if(!Math.imul){comb10MulTo=smallMulTo;}function bigMulTo(self,num,out){out.negative=num.negative^self.negative;out.length=self.length+num.length;var carry=0;var hncarry=0;for(var k=0;k= 0x3ffffff +var ncarry=hncarry;hncarry=0;var rword=carry&0x3ffffff;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j;var a=self.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&0x3ffffff;ncarry=ncarry+(r/0x4000000|0)|0;lo=lo+rword|0;rword=lo&0x3ffffff;ncarry=ncarry+(lo>>>26)|0;hncarry+=ncarry>>>26;ncarry&=0x3ffffff;}out.words[k]=rword;carry=ncarry;ncarry=hncarry;}if(carry!==0){out.words[k]=carry;}else{out.length--;}return out.strip();}function jumboMulTo(self,num,out){var fftm=new FFTM();return fftm.mulp(self,num,out);}BN.prototype.mulTo=function mulTo(num,out){var res;var len=this.length+num.length;if(this.length===10&&num.length===10){res=comb10MulTo(this,num,out);}else if(len<63){res=smallMulTo(this,num,out);}else if(len<1024){res=bigMulTo(this,num,out);}else{res=jumboMulTo(this,num,out);}return res;};// Cooley-Tukey algorithm for FFT +// slightly revisited to rely on looping instead of recursion +function FFTM(x,y){this.x=x;this.y=y;}FFTM.prototype.makeRBT=function makeRBT(N){var t=new Array(N);var l=BN.prototype._countBits(N)-1;for(var i=0;i>=1;}return rb;};// Performs "tweedling" phase, therefore 'emulating' +// behaviour of the recursive algorithm +FFTM.prototype.permute=function permute(rbt,rws,iws,rtws,itws,N){for(var i=0;i>>1){i++;}return 1<>>13;rws[2*i+1]=carry&0x1fff;carry=carry>>>13;}// Pad with zeroes +for(i=2*len;i>=26;carry+=w/0x4000000|0;// NOTE: lo is 27bit maximum +carry+=lo>>>26;this.words[i]=lo&0x3ffffff;}if(carry!==0){this.words[i]=carry;this.length++;}return this;};BN.prototype.muln=function muln(num){return this.clone().imuln(num);};// `this` * `this` +BN.prototype.sqr=function sqr(){return this.mul(this);};// `this` * `this` in-place +BN.prototype.isqr=function isqr(){return this.imul(this.clone());};// Math.pow(`this`, `num`) +BN.prototype.pow=function pow(num){var w=toBitArray(num);if(w.length===0)return new BN(1);// Skip leading zeroes +var res=this;for(var i=0;i=0);var r=bits%26;var s=(bits-r)/26;var carryMask=0x3ffffff>>>26-r<<26-r;var i;if(r!==0){var carry=0;for(i=0;i>>26-r;}if(carry){this.words[i]=carry;this.length++;}}if(s!==0){for(i=this.length-1;i>=0;i--){this.words[i+s]=this.words[i];}for(i=0;i=0);var h;if(hint){h=(hint-hint%26)/26;}else{h=0;}var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=0x3ffffff^0x3ffffff>>>r<s){this.length-=s;for(i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i]|0;this.words[i]=carry<<26-r|word>>>r;carry=word&mask;}// Push carried bits as a mask +if(maskedWords&&carry!==0){maskedWords.words[maskedWords.length++]=carry;}if(this.length===0){this.words[0]=0;this.length=1;}return this.strip();};BN.prototype.ishrn=function ishrn(bits,hint,extended){// TODO(indutny): implement me +assert(this.negative===0);return this.iushrn(bits,hint,extended);};// Shift-left +BN.prototype.shln=function shln(bits){return this.clone().ishln(bits);};BN.prototype.ushln=function ushln(bits){return this.clone().iushln(bits);};// Shift-right +BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits);};BN.prototype.ushrn=function ushrn(bits){return this.clone().iushrn(bits);};// Test if n bit is set +BN.prototype.testn=function testn(bit){assert(typeof bit==='number'&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(this.negative===0,'imaskn works only with positive numbers');if(this.length<=s){return this;}if(r!==0){s++;}this.length=Math.min(s,this.length);if(r!==0){var mask=0x3ffffff^0x3ffffff>>>r<=0x4000000;i++){this.words[i]-=0x4000000;if(i===this.length-1){this.words[i+1]=1;}else{this.words[i+1]++;}}this.length=Math.max(this.length,i+1);return this;};// Subtract plain number `num` from `this` +BN.prototype.isubn=function isubn(num){assert(typeof num==='number');assert(num<0x4000000);if(num<0)return this.iaddn(-num);if(this.negative!==0){this.negative=0;this.iaddn(num);this.negative=1;return this;}this.words[0]-=num;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1;}else{// Carry +for(var i=0;i>26)-(right/0x4000000|0);this.words[i+shift]=w&0x3ffffff;}for(;i>26;this.words[i+shift]=w&0x3ffffff;}if(carry===0)return this.strip();// Subtraction overflow +assert(carry===-1);carry=0;for(i=0;i>26;this.words[i]=w&0x3ffffff;}this.negative=1;return this.strip();};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;// Normalize +var bhi=b.words[b.length-1]|0;var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.ushln(shift);a.iushln(shift);bhi=b.words[b.length-1]|0;}// Initialize quotient +var m=a.length-b.length;var q;if(mode!=='mod'){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=(a.words[b.length+j]|0)*0x4000000+(a.words[b.length+j-1]|0);// NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max +// (0x7ffffff) +qj=Math.min(qj/bhi|0,0x3ffffff);a._ishlnsubmul(b,qj,j);while(a.negative!==0){qj--;a.negative=0;a._ishlnsubmul(b,1,j);if(!a.isZero()){a.negative^=1;}}if(q){q.words[j]=qj;}}if(q){q.strip();}a.strip();// Denormalize +if(mode!=='div'&&shift!==0){a.iushrn(shift);}return{div:q||null,mod:a};};// NOTE: 1) `mode` can be set to `mod` to request mod only, +// to `div` to request div only, or be absent to +// request both div & mod +// 2) `positive` is true if unsigned mod is requested +BN.prototype.divmod=function divmod(num,mode,positive){assert(!num.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)};}var div,mod,res;if(this.negative!==0&&num.negative===0){res=this.neg().divmod(num,mode);if(mode!=='mod'){div=res.div.neg();}if(mode!=='div'){mod=res.mod.neg();if(positive&&mod.negative!==0){mod.iadd(num);}}return{div:div,mod:mod};}if(this.negative===0&&num.negative!==0){res=this.divmod(num.neg(),mode);if(mode!=='mod'){div=res.div.neg();}return{div:div,mod:res.mod};}if((this.negative&num.negative)!==0){res=this.neg().divmod(num.neg(),mode);if(mode!=='div'){mod=res.mod.neg();if(positive&&mod.negative!==0){mod.isub(num);}}return{div:res.div,mod:mod};}// Both numbers are positive at this point +// Strip both numbers to approximate shift value +if(num.length>this.length||this.cmp(num)<0){return{div:new BN(0),mod:this};}// Very short reduction +if(num.length===1){if(mode==='div'){return{div:this.divn(num.words[0]),mod:null};}if(mode==='mod'){return{div:null,mod:new BN(this.modn(num.words[0]))};}return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))};}return this._wordDiv(num,mode);};// Find `this` / `num` +BN.prototype.div=function div(num){return this.divmod(num,'div',false).div;};// Find `this` % `num` +BN.prototype.mod=function mod(num){return this.divmod(num,'mod',false).mod;};BN.prototype.umod=function umod(num){return this.divmod(num,'mod',true).mod;};// Find Round(`this` / `num`) +BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);// Fast case - exact division +if(dm.mod.isZero())return dm.div;var mod=dm.div.negative!==0?dm.mod.isub(num):dm.mod;var half=num.ushrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);// Round down +if(cmp<0||r2===1&&cmp===0)return dm.div;// Round up +return dm.div.negative!==0?dm.div.isubn(1):dm.div.iaddn(1);};BN.prototype.modn=function modn(num){assert(num<=0x3ffffff);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--){acc=(p*acc+(this.words[i]|0))%num;}return acc;};// In-place division by number +BN.prototype.idivn=function idivn(num){assert(num<=0x3ffffff);var carry=0;for(var i=this.length-1;i>=0;i--){var w=(this.words[i]|0)+carry*0x4000000;this.words[i]=w/num|0;carry=w%num;}return this.strip();};BN.prototype.divn=function divn(num){return this.clone().idivn(num);};BN.prototype.egcd=function egcd(p){assert(p.negative===0);assert(!p.isZero());var x=this;var y=p.clone();if(x.negative!==0){x=x.umod(p);}else{x=x.clone();}// A * x + B * y = x +var A=new BN(1);var B=new BN(0);// C * x + D * y = y +var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.iushrn(1);y.iushrn(1);++g;}var yp=y.clone();var xp=x.clone();while(!x.isZero()){for(var i=0,im=1;(x.words[0]&im)===0&&i<26;++i,im<<=1){}if(i>0){x.iushrn(i);while(i-->0){if(A.isOdd()||B.isOdd()){A.iadd(yp);B.isub(xp);}A.iushrn(1);B.iushrn(1);}}for(var j=0,jm=1;(y.words[0]&jm)===0&&j<26;++j,jm<<=1){}if(j>0){y.iushrn(j);while(j-->0){if(C.isOdd()||D.isOdd()){C.iadd(yp);D.isub(xp);}C.iushrn(1);D.iushrn(1);}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D);}else{y.isub(x);C.isub(A);D.isub(B);}}return{a:C,b:D,gcd:y.iushln(g)};};// This is reduced incarnation of the binary EEA +// above, designated to invert members of the +// _prime_ fields F(p) at a maximal speed +BN.prototype._invmp=function _invmp(p){assert(p.negative===0);assert(!p.isZero());var a=this;var b=p.clone();if(a.negative!==0){a=a.umod(p);}else{a=a.clone();}var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){for(var i=0,im=1;(a.words[0]&im)===0&&i<26;++i,im<<=1){}if(i>0){a.iushrn(i);while(i-->0){if(x1.isOdd()){x1.iadd(delta);}x1.iushrn(1);}}for(var j=0,jm=1;(b.words[0]&jm)===0&&j<26;++j,jm<<=1){}if(j>0){b.iushrn(j);while(j-->0){if(x2.isOdd()){x2.iadd(delta);}x2.iushrn(1);}}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2);}else{b.isub(a);x2.isub(x1);}}var res;if(a.cmpn(1)===0){res=x1;}else{res=x2;}if(res.cmpn(0)<0){res.iadd(p);}return res;};BN.prototype.gcd=function gcd(num){if(this.isZero())return num.abs();if(num.isZero())return this.abs();var a=this.clone();var b=num.clone();a.negative=0;b.negative=0;// Remove common factor of two +for(var shift=0;a.isEven()&&b.isEven();shift++){a.iushrn(1);b.iushrn(1);}do{while(a.isEven()){a.iushrn(1);}while(b.isEven()){b.iushrn(1);}var r=a.cmp(b);if(r<0){// Swap `a` and `b` to make `a` always bigger than `b` +var t=a;a=b;b=t;}else if(r===0||b.cmpn(1)===0){break;}a.isub(b);}while(true);return b.iushln(shift);};// Invert number in the field F(num) +BN.prototype.invm=function invm(num){return this.egcd(num).a.umod(num);};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0;};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1;};// And first word and num +BN.prototype.andln=function andln(num){return this.words[0]#};// Increment at the bit position in-line +BN.prototype.bincn=function bincn(bit){assert(typeof bit==='number');var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=0x3ffffff;this.words[i]=w;}if(carry!==0){this.words[i]=carry;this.length++;}return this;};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0;};BN.prototype.cmpn=function cmpn(num){var negative=num<0;if(this.negative!==0&&!negative)return-1;if(this.negative===0&&negative)return 1;this.strip();var res;if(this.length>1){res=1;}else{if(negative){num=-num;}assert(num<=0x3ffffff,'Number is too big');var w=this.words[0]|0;res=w===num?0:w `num` +// 0 - if `this` == `num` +// -1 - if `this` < `num` +BN.prototype.cmp=function cmp(num){if(this.negative!==0&&num.negative===0)return-1;if(this.negative===0&&num.negative!==0)return 1;var res=this.ucmp(num);if(this.negative!==0)return-res|0;return res;};// Unsigned comparison +BN.prototype.ucmp=function ucmp(num){// At this point both numbers have the same sign +if(this.length>num.length)return 1;if(this.length=0;i--){var a=this.words[i]|0;var b=num.words[i]|0;if(a===b)continue;if(ab){res=1;}break;}return res;};BN.prototype.gtn=function gtn(num){return this.cmpn(num)===1;};BN.prototype.gt=function gt(num){return this.cmp(num)===1;};BN.prototype.gten=function gten(num){return this.cmpn(num)>=0;};BN.prototype.gte=function gte(num){return this.cmp(num)>=0;};BN.prototype.ltn=function ltn(num){return this.cmpn(num)===-1;};BN.prototype.lt=function lt(num){return this.cmp(num)===-1;};BN.prototype.lten=function lten(num){return this.cmpn(num)<=0;};BN.prototype.lte=function lte(num){return this.cmp(num)<=0;};BN.prototype.eqn=function eqn(num){return this.cmpn(num)===0;};BN.prototype.eq=function eq(num){return this.cmp(num)===0;};// +// A reduce context, could be using montgomery or something better, depending +// on the `m` itself. +// +BN.red=function red(num){return new Red(num);};BN.prototype.toRed=function toRed(ctx){assert(!this.red,'Already a number in reduction context');assert(this.negative===0,'red works only with positives');return ctx.convertTo(this)._forceRed(ctx);};BN.prototype.fromRed=function fromRed(){assert(this.red,'fromRed works only with numbers in reduction context');return this.red.convertFrom(this);};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this;};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,'Already a number in reduction context');return this._forceRed(ctx);};BN.prototype.redAdd=function redAdd(num){assert(this.red,'redAdd works only with red numbers');return this.red.add(this,num);};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,'redIAdd works only with red numbers');return this.red.iadd(this,num);};BN.prototype.redSub=function redSub(num){assert(this.red,'redSub works only with red numbers');return this.red.sub(this,num);};BN.prototype.redISub=function redISub(num){assert(this.red,'redISub works only with red numbers');return this.red.isub(this,num);};BN.prototype.redShl=function redShl(num){assert(this.red,'redShl works only with red numbers');return this.red.shl(this,num);};BN.prototype.redMul=function redMul(num){assert(this.red,'redMul works only with red numbers');this.red._verify2(this,num);return this.red.mul(this,num);};BN.prototype.redIMul=function redIMul(num){assert(this.red,'redMul works only with red numbers');this.red._verify2(this,num);return this.red.imul(this,num);};BN.prototype.redSqr=function redSqr(){assert(this.red,'redSqr works only with red numbers');this.red._verify1(this);return this.red.sqr(this);};BN.prototype.redISqr=function redISqr(){assert(this.red,'redISqr works only with red numbers');this.red._verify1(this);return this.red.isqr(this);};// Square root over p +BN.prototype.redSqrt=function redSqrt(){assert(this.red,'redSqrt works only with red numbers');this.red._verify1(this);return this.red.sqrt(this);};BN.prototype.redInvm=function redInvm(){assert(this.red,'redInvm works only with red numbers');this.red._verify1(this);return this.red.invm(this);};// Return negative clone of `this` % `red modulo` +BN.prototype.redNeg=function redNeg(){assert(this.red,'redNeg works only with red numbers');this.red._verify1(this);return this.red.neg(this);};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,'redPow(normalNum)');this.red._verify1(this);return this.red.pow(this,num);};// Prime numbers with efficient reduction +var primes={k256:null,p224:null,p192:null,p25519:null};// Pseudo-Mersenne prime +function MPrime(name,p){// P = 2 ^ N - K +this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp();}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp;};MPrime.prototype.ireduce=function ireduce(num){// Assumes that `num` is less than `P^2` +// num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P) +var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength();}while(rlen>this.n);var cmp=rlen0){r.isub(this.p);}else{r.strip();}return r;};MPrime.prototype.split=function split(input,out){input.iushrn(this.n,0,out);};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k);};function K256(){MPrime.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');}inherits(K256,MPrime);K256.prototype.split=function split(input,output){// 256 = 9 * 26 + 22 +var mask=0x3fffff;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next;}prev>>>=22;input.words[i-10]=prev;if(prev===0&&input.length>10){input.length-=10;}else{input.length-=9;}};K256.prototype.imulK=function imulK(num){// K = 0x1000003d1 = [ 0x40, 0x3d1 ] +num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;// bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390 +var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi;}if(carry!==0){num.words[num.length++]=carry;}return num;};// Exported mostly for testing purposes, use plain name instead +BN._prime=function prime(name){// Cached version of prime +if(primes[name])return primes[name];var prime;if(name==='k256'){prime=new K256();}else if(name==='p224'){prime=new P224();}else if(name==='p192'){prime=new P192();}else if(name==='p25519'){prime=new P25519();}else{throw new Error('Unknown prime '+name);}primes[name]=prime;return prime;};// +// Base reduction engine +// +function Red(m){if(typeof m==='string'){var prime=BN._prime(m);this.m=prime.p;this.prime=prime;}else{assert(m.gtn(1),'modulus must be greater than 1');this.m=m;this.prime=null;}}Red.prototype._verify1=function _verify1(a){assert(a.negative===0,'red works only with positives');assert(a.red,'red works only with red numbers');};Red.prototype._verify2=function _verify2(a,b){assert((a.negative|b.negative)===0,'red works only with positives');assert(a.red&&a.red===b.red,'red works only with red numbers');};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.umod(this.m)._forceRed(this);};Red.prototype.neg=function neg(a){if(a.isZero()){return a.clone();}return this.m.sub(a)._forceRed(this);};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0){res.isub(this.m);}return res._forceRed(this);};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0){res.isub(this.m);}return res;};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0){res.iadd(this.m);}return res._forceRed(this);};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0){res.iadd(this.m);}return res;};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.ushln(num));};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b));};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b));};Red.prototype.isqr=function isqr(a){return this.imul(a,a.clone());};Red.prototype.sqr=function sqr(a){return this.mul(a,a);};Red.prototype.sqrt=function sqrt(a){if(a.isZero())return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);// Fast case +if(mod3===3){var pow=this.m.add(new BN(1)).iushrn(2);return this.pow(a,pow);}// Tonelli-Shanks algorithm (Totally unoptimized and slow) +// +// Find Q and S, that Q * 2 ^ S = (P - 1) +var q=this.m.subn(1);var s=0;while(!q.isZero()&&q.andln(1)===0){s++;q.iushrn(1);}assert(!q.isZero());var one=new BN(1).toRed(this);var nOne=one.redNeg();// Find quadratic non-residue +// NOTE: Max is such because of generalized Riemann hypothesis. +var lpow=this.m.subn(1).iushrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0){z.redIAdd(nOne);}var c=this.pow(z,q);var r=this.pow(a,q.addn(1).iushrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++){tmp=tmp.redSqr();}assert(i=0;i--){var word=num.words[i];for(var j=start-1;j>=0;j--){var bit=word>>j&1;if(res!==wnd[0]){res=this.sqr(res);}if(bit===0&¤t===0){currentLen=0;continue;}current<<=1;current|=bit;currentLen++;if(currentLen!==windowSize&&(i!==0||j!==0))continue;res=this.mul(res,wnd[current]);currentLen=0;current=0;}start=26;}return res;};Red.prototype.convertTo=function convertTo(num){var r=num.umod(this.m);return r===num?r.clone():r;};Red.prototype.convertFrom=function convertFrom(num){var res=num.clone();res.red=null;return res;};// +// Montgomery method engine +// +BN.mont=function mont(num){return new Mont(num);};function Mont(m){Red.call(this,m);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26;}this.r=new BN(1).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv);}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(num){return this.imod(num.ushln(this.shift));};Mont.prototype.convertFrom=function convertFrom(num){var r=this.imod(num.mul(this.rinv));r.red=null;return r;};Mont.prototype.imul=function imul(a,b){if(a.isZero()||b.isZero()){a.words[0]=0;a.length=1;return a;}var t=a.imul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).iushrn(this.shift);var res=u;if(u.cmp(this.m)>=0){res=u.isub(this.m);}else if(u.cmpn(0)<0){res=u.iadd(this.m);}return res._forceRed(this);};Mont.prototype.mul=function mul(a,b){if(a.isZero()||b.isZero())return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).iushrn(this.shift);var res=u;if(u.cmp(this.m)>=0){res=u.isub(this.m);}else if(u.cmpn(0)<0){res=u.iadd(this.m);}return res._forceRed(this);};Mont.prototype.invm=function invm(a){// (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R +var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this);};})(typeof module==='undefined'||module,undefined); +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module))) + +/***/ }, +/* 15 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var baseConvert=__webpack_require__(838),util=__webpack_require__(840);/** * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last * version with conversion `options` applied. If `name` is an object its methods * will be converted. @@ -246,7 +723,56 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function convert(name,func,options){return baseConvert(util,name,func,options);}module.exports=convert; /***/ }, -/* 10 */ +/* 16 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +module.exports=Stream;var EE=__webpack_require__(35).EventEmitter;var inherits=__webpack_require__(5);inherits(Stream,EE);Stream.Readable=__webpack_require__(1138);Stream.Writable=__webpack_require__(1140);Stream.Duplex=__webpack_require__(1135);Stream.Transform=__webpack_require__(1139);Stream.PassThrough=__webpack_require__(1137);// Backwards-compat with node 0.4.x +Stream.Stream=Stream;// old-style streams. Note that the pipe method (the only relevant +// part of this class) is overridden in the Readable class. +function Stream(){EE.call(this);}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){if(dest.writable){if(false===dest.write(chunk)&&source.pause){source.pause();}}}source.on('data',ondata);function ondrain(){if(source.readable&&source.resume){source.resume();}}dest.on('drain',ondrain);// If the 'end' option is not supplied, dest.end() will be called when +// source gets the 'end' or 'close' events. Only dest.end() once. +if(!dest._isStdio&&(!options||options.end!==false)){source.on('end',onend);source.on('close',onclose);}var didOnEnd=false;function onend(){if(didOnEnd)return;didOnEnd=true;dest.end();}function onclose(){if(didOnEnd)return;didOnEnd=true;if(typeof dest.destroy==='function')dest.destroy();}// don't leave dangling pipes when there are errors. +function onerror(er){cleanup();if(EE.listenerCount(this,'error')===0){throw er;// Unhandled stream error in pipe. +}}source.on('error',onerror);dest.on('error',onerror);// remove all the event listeners that were added. +function cleanup(){source.removeListener('data',ondata);dest.removeListener('drain',ondrain);source.removeListener('end',onend);source.removeListener('close',onclose);source.removeListener('error',onerror);dest.removeListener('error',onerror);source.removeListener('end',cleanup);source.removeListener('close',cleanup);dest.removeListener('close',cleanup);}source.on('end',cleanup);source.on('close',cleanup);dest.on('close',cleanup);dest.emit('pipe',source);// Allow for unix-like usage: A.pipe(B).pipe(C) +return dest;}; + +/***/ }, +/* 17 */ +/***/ function(module, exports) { + +"use strict"; +"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var g;// This works in non-strict mode +g=function(){return this;}();try{// This works if eval is allowed (see CSP) +g=g||Function("return this")()||(1,eval)("this");}catch(e){// This works if the window reference is available +if((typeof window==="undefined"?"undefined":_typeof(window))==="object")g=window;}// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} +module.exports=g; + +/***/ }, +/* 18 */ /***/ function(module, exports) { "use strict"; @@ -268,11 +794,11 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; };module.exports=ExecutionEnvironment; /***/ }, -/* 11 */ +/* 19 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseDifference=__webpack_require__(241),baseRest=__webpack_require__(29),isArrayLikeObject=__webpack_require__(108);/** +'use strict';var baseDifference=__webpack_require__(344),baseRest=__webpack_require__(46),isArrayLikeObject=__webpack_require__(165);/** * Creates an array excluding all given values using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. @@ -294,11 +820,20 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */var without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[];});module.exports=without; /***/ }, -/* 12 */ +/* 20 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayMap=__webpack_require__(28),baseIteratee=__webpack_require__(22),baseMap=__webpack_require__(245),isArray=__webpack_require__(7);/** +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. +module.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,mpNormalize:mpNormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo};var assert=__webpack_require__(13);var PrivateKey=__webpack_require__(27);var crypto=__webpack_require__(11);var MAX_CLASS_DEPTH=3;function isCompatible(obj,klass,needVer){if(obj===null||(typeof obj==='undefined'?'undefined':_typeof(obj))!=='object')return false;if(needVer===undefined)needVer=klass.prototype._sshpkApiVersion;if(obj instanceof klass&&klass.prototype._sshpkApiVersion[0]==needVer[0])return true;var proto=Object.getPrototypeOf(obj);var depth=0;while(proto.constructor.name!==klass.name){proto=Object.getPrototypeOf(proto);if(!proto||++depth>MAX_CLASS_DEPTH)return false;}if(proto.constructor.name!==klass.name)return false;var ver=proto._sshpkApiVersion;if(ver===undefined)ver=klass._oldVersionDetect(obj);if(ver[0]!=needVer[0]||ver[1]=needVer[1],name+' must be compatible with '+klass.name+' klass '+'version '+needVer[0]+'.'+needVer[1]);}var CIPHER_LEN={'des-ede3-cbc':{key:7,iv:8},'aes-128-cbc':{key:16,iv:16}};var PKCS5_SALT_LEN=8;function opensslKeyDeriv(cipher,salt,passphrase,count){assert.buffer(salt,'salt');assert.buffer(passphrase,'passphrase');assert.number(count,'iteration count');var clen=CIPHER_LEN[cipher];assert.object(clen,'supported cipher');salt=salt.slice(0,PKCS5_SALT_LEN);var D,D_prev,bufs;var material=new Buffer(0);while(material.length=chr.length){var newPart=i+1;parts.push(buf.slice(lastPart,newPart-matches));lastPart=newPart;matches=0;}}if(lastPart<=buf.length)parts.push(buf.slice(lastPart,buf.length));return parts;}function ecNormalize(buf,addZero){assert.buffer(buf);if(buf[0]===0x00&&buf[1]===0x04){if(addZero)return buf;return buf.slice(1);}else if(buf[0]===0x04){if(!addZero)return buf;}else{while(buf[0]===0x00){buf=buf.slice(1);}if(buf[0]===0x02||buf[0]===0x03)throw new Error('Compressed elliptic curve points '+'are not supported');if(buf[0]!==0x04)throw new Error('Not a valid elliptic curve point');if(!addZero)return buf;}var b=new Buffer(buf.length+1);b[0]=0x0;buf.copy(b,1);return b;}function mpNormalize(buf){assert.buffer(buf);while(buf.length>1&&buf[0]===0x00&&(buf[1]&0x80)===0x00){buf=buf.slice(1);}if((buf[0]&0x80)===0x80){var b=new Buffer(buf.length+1);b[0]=0x00;buf.copy(b,1);buf=b;}return buf;}function bigintToMpBuf(bigint){var buf=new Buffer(bigint.toByteArray());buf=mpNormalize(buf);return buf;}function calculateDSAPublic(g,p,x){assert.buffer(g);assert.buffer(p);assert.buffer(x);try{var bigInt=__webpack_require__(69).BigInteger;}catch(e){throw new Error('To load a PKCS#8 format DSA private key, '+'the node jsbn library is required.');}g=new bigInt(g);p=new bigInt(p);x=new bigInt(x);var y=g.modPow(x,p);var ybuf=bigintToMpBuf(y);return ybuf;}function addRSAMissing(key){assert.object(key);assertCompatible(key,PrivateKey,[1,1]);try{var bigInt=__webpack_require__(69).BigInteger;}catch(e){throw new Error('To write a PEM private key from '+'this source, the node jsbn lib is required.');}var d=new bigInt(key.part.d.data);var buf;if(!key.part.dmodp){var p=new bigInt(key.part.p.data);var dmodp=d.mod(p.subtract(1));buf=bigintToMpBuf(dmodp);key.part.dmodp={name:'dmodp',data:buf};key.parts.push(key.part.dmodp);}if(!key.part.dmodq){var q=new bigInt(key.part.q.data);var dmodq=d.mod(q.subtract(1));buf=bigintToMpBuf(dmodq);key.part.dmodq={name:'dmodq',data:buf};key.parts.push(key.part.dmodq);}}function opensshCipherInfo(cipher){var inf={};switch(cipher){case'3des-cbc':inf.keySize=24;inf.blockSize=8;inf.opensslName='des-ede3-cbc';break;case'blowfish-cbc':inf.keySize=16;inf.blockSize=8;inf.opensslName='bf-cbc';break;case'aes128-cbc':case'aes128-ctr':case'aes128-gcm@openssh.com':inf.keySize=16;inf.blockSize=16;inf.opensslName='aes-128-'+cipher.slice(7,10);break;case'aes192-cbc':case'aes192-ctr':case'aes192-gcm@openssh.com':inf.keySize=24;inf.blockSize=16;inf.opensslName='aes-192-'+cipher.slice(7,10);break;case'aes256-cbc':case'aes256-ctr':case'aes256-gcm@openssh.com':inf.keySize=32;inf.blockSize=16;inf.opensslName='aes-256-'+cipher.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+cipher+'"');}return inf;} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 21 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var arrayMap=__webpack_require__(45),baseIteratee=__webpack_require__(38),baseMap=__webpack_require__(348),isArray=__webpack_require__(9);/** * Creates an array of values by running each element in `collection` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, index|key, collection). @@ -342,18 +877,18 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,baseIteratee(iteratee,3));}module.exports=map; /***/ }, -/* 13 */ +/* 22 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Icon=__webpack_require__(125);var _Icon2=_interopRequireDefault(_Icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Icon2.default; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Icon=__webpack_require__(185);var _Icon2=_interopRequireDefault(_Icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Icon2.default; /***/ }, -/* 14 */ +/* 23 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayLikeKeys=__webpack_require__(237),baseKeys=__webpack_require__(149),isArrayLike=__webpack_require__(26);/** +'use strict';var arrayLikeKeys=__webpack_require__(340),baseKeys=__webpack_require__(221),isArrayLike=__webpack_require__(42);/** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the @@ -383,7 +918,7 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}module.exports=keys; /***/ }, -/* 15 */ +/* 24 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -396,7 +931,7 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMount - */'use strict';var DOMProperty=__webpack_require__(49);var ReactBrowserEventEmitter=__webpack_require__(115);var ReactCurrentOwner=__webpack_require__(33);var ReactDOMFeatureFlags=__webpack_require__(308);var ReactElement=__webpack_require__(20);var ReactEmptyComponentRegistry=__webpack_require__(315);var ReactInstanceHandles=__webpack_require__(59);var ReactInstanceMap=__webpack_require__(77);var ReactMarkupChecksum=__webpack_require__(318);var ReactPerf=__webpack_require__(21);var ReactReconciler=__webpack_require__(50);var ReactUpdateQueue=__webpack_require__(173);var ReactUpdates=__webpack_require__(23);var assign=__webpack_require__(5);var emptyObject=__webpack_require__(64);var containsNode=__webpack_require__(222);var instantiateReactComponent=__webpack_require__(180);var invariant=__webpack_require__(4);var setInnerHTML=__webpack_require__(122);var shouldUpdateReactComponent=__webpack_require__(183);var validateDOMNesting=__webpack_require__(185);var warning=__webpack_require__(6);var ATTR_NAME=DOMProperty.ID_ATTRIBUTE_NAME;var nodeCache={};var ELEMENT_NODE_TYPE=1;var DOC_NODE_TYPE=9;var DOCUMENT_FRAGMENT_NODE_TYPE=11;var ownerDocumentContextKey='__ReactMount_ownerDocument$'+Math.random().toString(36).slice(2);/** Mapping from reactRootID to React component instance. */var instancesByReactRootID={};/** Mapping from reactRootID to `container` nodes. */var containersByReactRootID={};if(process.env.NODE_ENV!=='production'){/** __DEV__-only mapping from reactRootID to root elements. */var rootElementsByReactRootID={};}// Used to store breadth-first search state in findComponentRoot. + */'use strict';var DOMProperty=__webpack_require__(75);var ReactBrowserEventEmitter=__webpack_require__(175);var ReactCurrentOwner=__webpack_require__(52);var ReactDOMFeatureFlags=__webpack_require__(417);var ReactElement=__webpack_require__(34);var ReactEmptyComponentRegistry=__webpack_require__(424);var ReactInstanceHandles=__webpack_require__(92);var ReactInstanceMap=__webpack_require__(120);var ReactMarkupChecksum=__webpack_require__(427);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var ReactUpdateQueue=__webpack_require__(247);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(103);var containsNode=__webpack_require__(323);var instantiateReactComponent=__webpack_require__(254);var invariant=__webpack_require__(6);var setInnerHTML=__webpack_require__(182);var shouldUpdateReactComponent=__webpack_require__(257);var validateDOMNesting=__webpack_require__(259);var warning=__webpack_require__(8);var ATTR_NAME=DOMProperty.ID_ATTRIBUTE_NAME;var nodeCache={};var ELEMENT_NODE_TYPE=1;var DOC_NODE_TYPE=9;var DOCUMENT_FRAGMENT_NODE_TYPE=11;var ownerDocumentContextKey='__ReactMount_ownerDocument$'+Math.random().toString(36).slice(2);/** Mapping from reactRootID to React component instance. */var instancesByReactRootID={};/** Mapping from reactRootID to `container` nodes. */var containersByReactRootID={};if(process.env.NODE_ENV!=='production'){/** __DEV__-only mapping from reactRootID to root elements. */var rootElementsByReactRootID={};}// Used to store breadth-first search state in findComponentRoot. var findComponentRootReusableArray=[];/** * Finds the index of the first character * that's not common between the two given strings. @@ -661,7 +1196,94 @@ var normalizer;if(container.nodeType===ELEMENT_NODE_TYPE){normalizer=document.cr /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 16 */ +/* 25 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. +var algInfo={'dsa':{parts:['p','q','g','y'],sizePart:'p'},'rsa':{parts:['e','n'],sizePart:'n'},'ecdsa':{parts:['curve','Q'],sizePart:'Q'},'ed25519':{parts:['R'],normalize:false,sizePart:'R'}};algInfo['curve25519']=algInfo['ed25519'];var algPrivInfo={'dsa':{parts:['p','q','g','y','x']},'rsa':{parts:['n','e','d','iqmp','p','q']},'ecdsa':{parts:['curve','Q','d']},'ed25519':{parts:['R','r'],normalize:false}};algPrivInfo['curve25519']=algPrivInfo['ed25519'];var hashAlgs={'md5':true,'sha1':true,'sha256':true,'sha384':true,'sha512':true};/* + * Taken from + * http://csrc.nist.gov/groups/ST/toolkit/documents/dss/NISTReCur.pdf + */var curves={'nistp256':{size:256,pkcs8oid:'1.2.840.10045.3.1.7',p:new Buffer(('00'+'ffffffff 00000001 00000000 00000000'+'00000000 ffffffff ffffffff ffffffff').replace(/ /g,''),'hex'),a:new Buffer(('00'+'FFFFFFFF 00000001 00000000 00000000'+'00000000 FFFFFFFF FFFFFFFF FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('5ac635d8 aa3a93e7 b3ebbd55 769886bc'+'651d06b0 cc53b0f6 3bce3c3e 27d2604b').replace(/ /g,''),'hex'),s:new Buffer(('00'+'c49d3608 86e70493 6a6678e1 139d26b7'+'819f7e90').replace(/ /g,''),'hex'),n:new Buffer(('00'+'ffffffff 00000000 ffffffff ffffffff'+'bce6faad a7179e84 f3b9cac2 fc632551').replace(/ /g,''),'hex'),G:new Buffer(('04'+'6b17d1f2 e12c4247 f8bce6e5 63a440f2'+'77037d81 2deb33a0 f4a13945 d898c296'+'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16'+'2bce3357 6b315ece cbb64068 37bf51f5').replace(/ /g,''),'hex')},'nistp384':{size:384,pkcs8oid:'1.3.132.0.34',p:new Buffer(('00'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff fffffffe'+'ffffffff 00000000 00000000 ffffffff').replace(/ /g,''),'hex'),a:new Buffer(('00'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE'+'FFFFFFFF 00000000 00000000 FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('b3312fa7 e23ee7e4 988e056b e3f82d19'+'181d9c6e fe814112 0314088f 5013875a'+'c656398d 8a2ed19d 2a85c8ed d3ec2aef').replace(/ /g,''),'hex'),s:new Buffer(('00'+'a335926a a319a27a 1d00896a 6773a482'+'7acdac73').replace(/ /g,''),'hex'),n:new Buffer(('00'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff c7634d81 f4372ddf'+'581a0db2 48b0a77a ecec196a ccc52973').replace(/ /g,''),'hex'),G:new Buffer(('04'+'aa87ca22 be8b0537 8eb1c71e f320ad74'+'6e1d3b62 8ba79b98 59f741e0 82542a38'+'5502f25d bf55296c 3a545e38 72760ab7'+'3617de4a 96262c6f 5d9e98bf 9292dc29'+'f8f41dbd 289a147c e9da3113 b5f0b8c0'+'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f').replace(/ /g,''),'hex')},'nistp521':{size:521,pkcs8oid:'1.3.132.0.35',p:new Buffer(('01ffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffff').replace(/ /g,''),'hex'),a:new Buffer(('01FF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('51'+'953eb961 8e1c9a1f 929a21a0 b68540ee'+'a2da725b 99b315f3 b8b48991 8ef109e1'+'56193951 ec7e937b 1652c0bd 3bb1bf07'+'3573df88 3d2c34f1 ef451fd4 6b503f00').replace(/ /g,''),'hex'),s:new Buffer(('00'+'d09e8800 291cb853 96cc6717 393284aa'+'a0da64ba').replace(/ /g,''),'hex'),n:new Buffer(('01ff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff fffffffa'+'51868783 bf2f966b 7fcc0148 f709a5d0'+'3bb5c9b8 899c47ae bb6fb71e 91386409').replace(/ /g,''),'hex'),G:new Buffer(('04'+'00c6 858e06b7 0404e9cd 9e3ecb66 2395b442'+'9c648139 053fb521 f828af60 6b4d3dba'+'a14b5e77 efe75928 fe1dc127 a2ffa8de'+'3348b3c1 856a429b f97e7e31 c2e5bd66'+'0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9'+'98f54449 579b4468 17afbd17 273e662c'+'97ee7299 5ef42640 c550b901 3fad0761'+'353c7086 a272c240 88be9476 9fd16650').replace(/ /g,''),'hex')}};module.exports={info:algInfo,privInfo:algPrivInfo,hashAlgs:hashAlgs,curves:curves}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 26 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. +module.exports=Key;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var DiffieHellman=__webpack_require__(1129);var errs=__webpack_require__(54);var utils=__webpack_require__(20);var PrivateKey=__webpack_require__(27);var edCompat;try{edCompat=__webpack_require__(540);}catch(e){/* Just continue through, and bail out if we try to use it. */}var InvalidAlgorithmError=errs.InvalidAlgorithmError;var KeyParseError=errs.KeyParseError;var formats={};formats['auto']=__webpack_require__(541);formats['pem']=__webpack_require__(65);formats['pkcs1']=__webpack_require__(289);formats['pkcs8']=__webpack_require__(124);formats['rfc4253']=__webpack_require__(78);formats['ssh']=__webpack_require__(542);formats['ssh-private']=__webpack_require__(191);formats['openssh']=formats['ssh-private'];function Key(opts){assert.object(opts,'options');assert.arrayOfObject(opts.parts,'options.parts');assert.string(opts.type,'options.type');assert.optionalString(opts.comment,'options.comment');var algInfo=algs.info[opts.type];if((typeof algInfo==='undefined'?'undefined':_typeof(algInfo))!=='object')throw new InvalidAlgorithmError(opts.type);var partLookup={};for(var i=0;i1024)hashAlgo='sha256';if(this.type==='ed25519')hashAlgo='sha512';if(this.type==='ecdsa'){if(this.size<=256)hashAlgo='sha256';else if(this.size<=384)hashAlgo='sha384';else hashAlgo='sha512';}return hashAlgo;};Key.prototype.createVerify=function(hashAlgo){if(hashAlgo===undefined)hashAlgo=this.defaultHashAlgorithm();assert.string(hashAlgo,'hash algorithm');/* ED25519 is not supported by OpenSSL, use a javascript impl. */if(this.type==='ed25519'&&edCompat!==undefined)return new edCompat.Verifier(this,hashAlgo);if(this.type==='curve25519')throw new Error('Curve25519 keys are not suitable for '+'signing or verification');var v,nm,err;try{nm=hashAlgo.toUpperCase();v=crypto.createVerify(nm);}catch(e){err=e;}if(v===undefined||err instanceof Error&&err.message.match(/Unknown message digest/)){nm='RSA-';nm+=hashAlgo.toUpperCase();v=crypto.createVerify(nm);}assert.ok(v,'failed to create verifier');var oldVerify=v.verify.bind(v);var key=this.toBuffer('pkcs8');var self=this;v.verify=function(signature,fmt){if(Signature.isSignature(signature,[2,0])){if(signature.type!==self.type)return false;if(signature.hashAlgorithm&&signature.hashAlgorithm!==hashAlgo)return false;return oldVerify(key,signature.toBuffer('asn1'));}else if(typeof signature==='string'||Buffer.isBuffer(signature)){return oldVerify(key,signature,fmt);/* + * Avoid doing this on valid arguments, walking the prototype + * chain can be quite slow. + */}else if(Signature.isSignature(signature,[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');}};return v;};Key.prototype.createDiffieHellman=function(){if(this.type==='rsa')throw new Error('RSA keys do not support Diffie-Hellman');return new DiffieHellman(this);};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(data,format,options){if(typeof data!=='string')assert.buffer(data,'data');if(format===undefined)format='auto';assert.string(format,'format');if(typeof options==='string')options={filename:options};assert.optionalObject(options,'options');if(options===undefined)options={};assert.optionalString(options.filename,'options.filename');if(options.filename===undefined)options.filename='(unnamed)';assert.object(formats[format],'formats[format]');try{var k=formats[format].read(data,options);if(k instanceof PrivateKey)k=k.toPublic();if(!k.comment)k.comment=options.filename;return k;}catch(e){if(e.name==='KeyEncryptedError')throw e;throw new KeyParseError(options.filename,format,e);}};Key.isKey=function(obj,ver){return utils.isCompatible(obj,Key,ver);};/* + * API versions for Key: + * [1,0] -- initial ver, may take Signature for createVerify or may not + * [1,1] -- added pkcs1, pkcs8 formats + * [1,2] -- added auto, ssh-private, openssh formats + * [1,3] -- added defaultHashAlgorithm + * [1,4] -- added ed support, createDH + * [1,5] -- first explicitly tagged version + */Key.prototype._sshpkApiVersion=[1,5];Key._oldVersionDetect=function(obj){assert.func(obj.toBuffer);assert.func(obj.fingerprint);if(obj.createDH)return[1,4];if(obj.defaultHashAlgorithm)return[1,3];if(obj.formats['auto'])return[1,2];if(obj.formats['pkcs1'])return[1,1];return[1,0];}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 27 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. +module.exports=PrivateKey;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var errs=__webpack_require__(54);var util=__webpack_require__(10);var utils=__webpack_require__(20);var edCompat;var ed;try{edCompat=__webpack_require__(540);}catch(e){/* Just continue through, and bail out if we try to use it. */}var Key=__webpack_require__(26);var InvalidAlgorithmError=errs.InvalidAlgorithmError;var KeyParseError=errs.KeyParseError;var KeyEncryptedError=errs.KeyEncryptedError;var formats={};formats['auto']=__webpack_require__(541);formats['pem']=__webpack_require__(65);formats['pkcs1']=__webpack_require__(289);formats['pkcs8']=__webpack_require__(124);formats['rfc4253']=__webpack_require__(78);formats['ssh-private']=__webpack_require__(191);formats['openssh']=formats['ssh-private'];formats['ssh']=formats['ssh-private'];function PrivateKey(opts){assert.object(opts,'options');Key.call(this,opts);this._pubCache=undefined;}util.inherits(PrivateKey,Key);PrivateKey.formats=formats;PrivateKey.prototype.toBuffer=function(format,options){if(format===undefined)format='pkcs1';assert.string(format,'format');assert.object(formats[format],'formats[format]');assert.optionalObject(options,'options');return formats[format].write(this,options);};PrivateKey.prototype.hash=function(algo){return this.toPublic().hash(algo);};PrivateKey.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;var algInfo=algs.info[this.type];var pubParts=[];for(var i=0;i0&&this._events[type].length>m){this._events[type].warned=true;console.error('(node) warning: possible EventEmitter memory '+'leak detected. %d listeners added. '+'Use emitter.setMaxListeners() to increase limit.',this._events[type].length);if(typeof console.trace==='function'){// not supported in IE 10 +console.trace();}}}return this;};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throw TypeError('listener must be a function');var fired=false;function g(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments);}}g.listener=listener;this.on(type,g);return this;};// emits a 'removeListener' event iff the listener was removed +EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError('listener must be a function');if(!this._events||!this._events[type])return this;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){delete this._events[type];if(this._events.removeListener)this.emit('removeListener',type,listener);}else if(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break;}}if(position<0)return this;if(list.length===1){list.length=0;delete this._events[type];}else{list.splice(position,1);}if(this._events.removeListener)this.emit('removeListener',type,listener);}return this;};EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;// not listening for removeListener, no need to emit +if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[type])delete this._events[type];return this;}// emit removeListener for all listeners on all events +if(arguments.length===0){for(key in this._events){if(key==='removeListener')continue;this.removeAllListeners(key);}this.removeAllListeners('removeListener');this._events={};return this;}listeners=this._events[type];if(isFunction(listeners)){this.removeListener(type,listeners);}else if(listeners){// LIFO order +while(listeners.length){this.removeListener(type,listeners[listeners.length-1]);}}delete this._events[type];return this;};EventEmitter.prototype.listeners=function(type){var ret;if(!this._events||!this._events[type])ret=[];else if(isFunction(this._events[type]))ret=[this._events[type]];else ret=this._events[type].slice();return ret;};EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;else if(evlistener)return evlistener.length;}return 0;};EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type);};function isFunction(arg){return typeof arg==='function';}function isNumber(arg){return typeof arg==='number';}function isObject(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'&&arg!==null;}function isUndefined(arg){return arg===void 0;} + +/***/ }, +/* 36 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */function isObjectLike(value){return value!=null&&(typeof value==='undefined'?'undefined':_typeof(value))=='object';}module.exports=isObjectLike; + +/***/ }, +/* 37 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -866,11 +1566,11 @@ var childrenLength=arguments.length-2;if(childrenLength===1){props.children=chil /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 22 */ +/* 38 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseMatches=__webpack_require__(517),baseMatchesProperty=__webpack_require__(518),identity=__webpack_require__(39),isArray=__webpack_require__(7),property=__webpack_require__(654);/** +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseMatches=__webpack_require__(730),baseMatchesProperty=__webpack_require__(731),identity=__webpack_require__(61),isArray=__webpack_require__(9),property=__webpack_require__(867);/** * The base implementation of `_.iteratee`. * * @private @@ -881,7 +1581,7 @@ var childrenLength=arguments.length-2;if(childrenLength===1){props.children=chil if(typeof value=='function'){return value;}if(value==null){return identity;}if((typeof value==='undefined'?'undefined':_typeof(value))=='object'){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}module.exports=baseIteratee; /***/ }, -/* 23 */ +/* 39 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -894,7 +1594,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdates - */'use strict';var CallbackQueue=__webpack_require__(167);var PooledClass=__webpack_require__(42);var ReactPerf=__webpack_require__(21);var ReactReconciler=__webpack_require__(50);var Transaction=__webpack_require__(119);var assign=__webpack_require__(5);var invariant=__webpack_require__(4);var dirtyComponents=[];var asapCallbackQueue=CallbackQueue.getPooled();var asapEnqueued=false;var batchingStrategy=null;function ensureInjected(){!(ReactUpdates.ReactReconcileTransaction&&batchingStrategy)?process.env.NODE_ENV!=='production'?invariant(false,'ReactUpdates: must inject a reconcile transaction class and batching '+'strategy'):invariant(false):undefined;}var NESTED_UPDATES={initialize:function initialize(){this.dirtyComponentsLength=dirtyComponents.length;},close:function close(){if(this.dirtyComponentsLength!==dirtyComponents.length){// Additional updates were enqueued by componentDidUpdate handlers or + */'use strict';var CallbackQueue=__webpack_require__(241);var PooledClass=__webpack_require__(64);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var Transaction=__webpack_require__(179);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var dirtyComponents=[];var asapCallbackQueue=CallbackQueue.getPooled();var asapEnqueued=false;var batchingStrategy=null;function ensureInjected(){!(ReactUpdates.ReactReconcileTransaction&&batchingStrategy)?process.env.NODE_ENV!=='production'?invariant(false,'ReactUpdates: must inject a reconcile transaction class and batching '+'strategy'):invariant(false):undefined;}var NESTED_UPDATES={initialize:function initialize(){this.dirtyComponentsLength=dirtyComponents.length;},close:function close(){if(this.dirtyComponentsLength!==dirtyComponents.length){// Additional updates were enqueued by componentDidUpdate handlers or // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run // these new updates so that if A's componentDidUpdate calls setState on // B, B will update before the callback A's updater provided when calling @@ -940,7 +1640,7 @@ if(!batchingStrategy.isBatchingUpdates){batchingStrategy.batchedUpdates(enqueueU /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 24 */ +/* 40 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -962,7 +1662,7 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 25 */ +/* 41 */ /***/ function(module, exports) { "use strict"; @@ -982,11 +1682,11 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function emptyFunction(){}emptyFunction.thatReturns=makeEmptyFunction;emptyFunction.thatReturnsFalse=makeEmptyFunction(false);emptyFunction.thatReturnsTrue=makeEmptyFunction(true);emptyFunction.thatReturnsNull=makeEmptyFunction(null);emptyFunction.thatReturnsThis=function(){return this;};emptyFunction.thatReturnsArgument=function(arg){return arg;};module.exports=emptyFunction; /***/ }, -/* 26 */ +/* 42 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isFunction=__webpack_require__(46),isLength=__webpack_require__(161);/** +'use strict';var isFunction=__webpack_require__(48),isLength=__webpack_require__(233);/** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. @@ -1013,37 +1713,127 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}module.exports=isArrayLike; /***/ }, -/* 27 */ -/***/ function(module, exports) { +/* 43 */ +/***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". +/* WEBPACK VAR INJECTION */(function(global) {'use strict';// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js +// original notice: +/*! + * The buffer module from node.js, for the browser. * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */function isObjectLike(value){return value!=null&&(typeof value==='undefined'?'undefined':_typeof(value))=='object';}module.exports=isObjectLike; + * @author Feross Aboukhadijeh + * @license MIT + */var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function compare(a,b){if(a===b){return 0;}var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the 'Software'), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +var util=__webpack_require__(10);var hasOwn=Object.prototype.hasOwnProperty;var pSlice=Array.prototype.slice;var functionsHaveNames=function(){return function foo(){}.name==='foo';}();function pToString(obj){return Object.prototype.toString.call(obj);}function isView(arrbuf){if(isBuffer(arrbuf)){return false;}if(typeof global.ArrayBuffer!=='function'){return false;}if(typeof ArrayBuffer.isView==='function'){return ArrayBuffer.isView(arrbuf);}if(!arrbuf){return false;}if(arrbuf instanceof DataView){return true;}if(arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer){return true;}return false;}// 1. The assert module provides functions that throw +// AssertionError's when particular conditions are not met. The +// assert module must conform to the following interface. +var assert=module.exports=ok;// 2. The AssertionError is defined in assert. +// new assert.AssertionError({ message: message, +// actual: actual, +// expected: expected }) +var regex=/\s*function\s+([^\(\s]*)\s*/;// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js +function getName(func){if(!util.isFunction(func)){return;}if(functionsHaveNames){return func.name;}var str=func.toString();var match=str.match(regex);return match&&match[1];}assert.AssertionError=function AssertionError(options){this.name='AssertionError';this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false;}else{this.message=getMessage(this);this.generatedMessage=true;}var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction);}else{// non v8 browsers so we can have a stacktrace +var err=new Error();if(err.stack){var out=err.stack;// try to strip useless frames +var fn_name=getName(stackStartFunction);var idx=out.indexOf('\n'+fn_name);if(idx>=0){// once we have located the function frame +// we need to strip out everything before it (and its line) +var next_line=out.indexOf('\n',idx+1);out=out.substring(next_line+1);}this.stack=out;}}};// assert.AssertionError instanceof Error +util.inherits(assert.AssertionError,Error);function truncate(s,n){if(typeof s==='string'){return s.length=0;i--){if(ka[i]!==kb[i])return false;}//equivalent values for every corresponding key, and +//~~~possibly expensive deep test +for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key],strict,actualVisitedObjects))return false;}return true;}// 8. The non-equivalence assertion tests for any deep inequality. +// assert.notDeepEqual(actual, expected, message_opt); +assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected,false)){fail(actual,expected,message,'notDeepEqual',assert.notDeepEqual);}};assert.notDeepStrictEqual=notDeepStrictEqual;function notDeepStrictEqual(actual,expected,message){if(_deepEqual(actual,expected,true)){fail(actual,expected,message,'notDeepStrictEqual',notDeepStrictEqual);}}// 9. The strict equality assertion tests strict equality, as determined by ===. +// assert.strictEqual(actual, expected, message_opt); +assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,'===',assert.strictEqual);}};// 10. The strict non-equality assertion tests for strict inequality, as +// determined by !==. assert.notStrictEqual(actual, expected, message_opt); +assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,'!==',assert.notStrictEqual);}};function expectedException(actual,expected){if(!actual||!expected){return false;}if(Object.prototype.toString.call(expected)=='[object RegExp]'){return expected.test(actual);}try{if(actual instanceof expected){return true;}}catch(e){// Ignore. The instanceof check doesn't work for arrow functions. +}if(Error.isPrototypeOf(expected)){return false;}return expected.call({},actual)===true;}function _tryBlock(block){var error;try{block();}catch(e){error=e;}return error;}function _throws(shouldThrow,block,expected,message){var actual;if(typeof block!=='function'){throw new TypeError('"block" argument must be a function');}if(typeof expected==='string'){message=expected;expected=null;}actual=_tryBlock(block);message=(expected&&expected.name?' ('+expected.name+').':'.')+(message?' '+message:'.');if(shouldThrow&&!actual){fail(actual,expected,'Missing expected exception'+message);}var userProvidedMessage=typeof message==='string';var isUnwantedException=!shouldThrow&&util.isError(actual);var isUnexpectedException=!shouldThrow&&actual&&!expected;if(isUnwantedException&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException){fail(actual,expected,'Got unwanted exception'+message);}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual;}}// 11. Expected to throw an error: +// assert.throws(block, Error_opt, message_opt); +assert.throws=function(block,/*optional*/error,/*optional*/message){_throws(true,block,error,message);};// EXTENSION! This is annoying to write outside this module. +assert.doesNotThrow=function(block,/*optional*/error,/*optional*/message){_throws(false,block,error,message);};assert.ifError=function(err){if(err)throw err;};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key);}return keys;}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }, -/* 28 */ +/* 44 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(global) {'use strict';var buffer=__webpack_require__(4);var Buffer=buffer.Buffer;var SlowBuffer=buffer.SlowBuffer;var MAX_LEN=buffer.kMaxLength||2147483647;exports.alloc=function alloc(size,fill,encoding){if(typeof Buffer.alloc==='function'){return Buffer.alloc(size,fill,encoding);}if(typeof encoding==='number'){throw new TypeError('encoding must not be number');}if(typeof size!=='number'){throw new TypeError('size must be a number');}if(size>MAX_LEN){throw new RangeError('size is too large');}var enc=encoding;var _fill=fill;if(_fill===undefined){enc=undefined;_fill=0;}var buf=new Buffer(size);if(typeof _fill==='string'){var fillBuf=new Buffer(_fill,enc);var flen=fillBuf.length;var i=-1;while(++iMAX_LEN){throw new RangeError('size is too large');}return new Buffer(size);};exports.from=function from(value,encodingOrOffset,length){if(typeof Buffer.from==='function'&&(!global.Uint8Array||Uint8Array.from!==Buffer.from)){return Buffer.from(value,encodingOrOffset,length);}if(typeof value==='number'){throw new TypeError('"value" argument must not be a number');}if(typeof value==='string'){return new Buffer(value,encodingOrOffset);}if(typeof ArrayBuffer!=='undefined'&&value instanceof ArrayBuffer){var offset=encodingOrOffset;if(arguments.length===1){return new Buffer(value);}if(typeof offset==='undefined'){offset=0;}var len=length;if(typeof len==='undefined'){len=value.byteLength-offset;}if(offset>=value.byteLength){throw new RangeError('\'offset\' is out of bounds');}if(len>value.byteLength-offset){throw new RangeError('\'length\' is out of bounds');}return new Buffer(value.slice(offset,offset+len));}if(Buffer.isBuffer(value)){var out=new Buffer(value.length);value.copy(out,0,0,value.length);return out;}if(value){if(Array.isArray(value)||typeof ArrayBuffer!=='undefined'&&value.buffer instanceof ArrayBuffer||'length'in value){return new Buffer(value);}if(value.type==='Buffer'&&Array.isArray(value.data)){return new Buffer(value.data);}}throw new TypeError('First argument must be a string, Buffer, '+'ArrayBuffer, Array, or array-like object.');};exports.allocUnsafeSlow=function allocUnsafeSlow(size){if(typeof Buffer.allocUnsafeSlow==='function'){return Buffer.allocUnsafeSlow(size);}if(typeof size!=='number'){throw new TypeError('size must be a number');}if(size>=MAX_LEN){throw new RangeError('size is too large');}return new SlowBuffer(size);}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) + +/***/ }, +/* 45 */ /***/ function(module, exports) { "use strict"; @@ -1058,11 +1848,11 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index true + * + * _.isFunction(/abc/); + * // => false + */function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator +// in Safari 9 which returns 'object' for typed arrays and other constructors. +var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}module.exports=isFunction; + +/***/ }, +/* 49 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var toFinite=__webpack_require__(395);/** * Converts `value` to an integer. * * **Note:** This method is loosely based on @@ -1111,7 +1926,15 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */function toInteger(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}module.exports=toInteger; /***/ }, -/* 32 */ +/* 50 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';if(!process.version||process.version.indexOf('v0.')===0||process.version.indexOf('v1.')===0&&process.version.indexOf('v1.8.')!==0){module.exports=nextTick;}else{module.exports=process.nextTick;}function nextTick(fn,arg1,arg2,arg3){if(typeof fn!=='function'){throw new TypeError('"callback" argument must be a function');}var len=arguments.length;var args,i;switch(len){case 0:case 1:return process.nextTick(fn);case 2:return process.nextTick(function afterTickOne(){fn.call(null,arg1);});case 3:return process.nextTick(function afterTickTwo(){fn.call(null,arg1,arg2);});case 4:return process.nextTick(function afterTickThree(){fn.call(null,arg1,arg2,arg3);});default:args=new Array(len-1);i=0;while(i) */type:_lib.customPropTypes.every([_lib.customPropTypes.demand(['control'])]),/** A field can specify its width in grid columns */width:_react.PropTypes.oneOf(FormField._meta.props.width)};exports.default=FormField; /***/ }, -/* 35 */ +/* 54 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';// Copyright 2015 Joyent, Inc. +var assert=__webpack_require__(13);var util=__webpack_require__(10);function FingerprintFormatError(fp,format){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name='FingerprintFormatError';this.fingerprint=fp;this.format=format;this.message='Fingerprint format is not supported, or is invalid: ';if(fp!==undefined)this.message+=' fingerprint = '+fp;if(format!==undefined)this.message+=' format = '+format;}util.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(alg){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name='InvalidAlgorithmError';this.algorithm=alg;this.message='Algorithm "'+alg+'" is not supported';}util.inherits(InvalidAlgorithmError,Error);function KeyParseError(name,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name='KeyParseError';this.format=format;this.keyName=name;this.innerErr=innerErr;this.message='Failed to parse '+name+' as a valid '+format+' format key: '+innerErr.message;}util.inherits(KeyParseError,Error);function SignatureParseError(type,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name='SignatureParseError';this.type=type;this.format=format;this.innerErr=innerErr;this.message='Failed to parse the given data as a '+type+' signature in '+format+' format: '+innerErr.message;}util.inherits(SignatureParseError,Error);function CertificateParseError(name,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name='CertificateParseError';this.format=format;this.certName=name;this.innerErr=innerErr;this.message='Failed to parse '+name+' as a valid '+format+' format certificate: '+innerErr.message;}util.inherits(CertificateParseError,Error);function KeyEncryptedError(name,format){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name='KeyEncryptedError';this.format=format;this.keyName=name;this.message='The '+format+' format key '+name+' is '+'encrypted (password-protected), and no passphrase was '+'provided in `options`';}util.inherits(KeyEncryptedError,Error);module.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}; + +/***/ }, +/* 55 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. +module.exports=Signature;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var errs=__webpack_require__(54);var utils=__webpack_require__(20);var asn1=__webpack_require__(56);var SSHBuffer=__webpack_require__(192);var InvalidAlgorithmError=errs.InvalidAlgorithmError;var SignatureParseError=errs.SignatureParseError;function Signature(opts){assert.object(opts,'options');assert.arrayOfObject(opts.parts,'options.parts');assert.string(opts.type,'options.type');var partLookup={};for(var i=0;i20&&r[0]===0x00)r=r.slice(1);s=this.part.s.data;if(s.length>20&&s[0]===0x00)s=s.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=='sha1'||r.length+s.length!==40){throw new Error('OpenSSH only supports '+'DSA signatures with SHA1 hash');}buf.writeBuffer(Buffer.concat([r,s]));return buf.toBuffer();}else if(format==='ssh'&&this.type==='ecdsa'){var inner=new SSHBuffer({});r=this.part.r.data;inner.writeBuffer(r);inner.writePart(this.part.s);buf=new SSHBuffer({});/* XXX: find a more proper way to do this? */var curve;if(r[0]===0x00)r=r.slice(1);var sz=r.length*8;if(sz===256)curve='nistp256';else if(sz===384)curve='nistp384';else if(sz===528)curve='nistp521';buf.writeString('ecdsa-sha2-'+curve);buf.writeBuffer(inner.toBuffer());return buf.toBuffer();}throw new Error('Invalid signature format');default:throw new Error('Invalid signature data');}};Signature.prototype.toString=function(format){assert.optionalString(format,'format');return this.toBuffer(format).toString('base64');};Signature.parse=function(data,type,format){if(typeof data==='string')data=new Buffer(data,'base64');assert.buffer(data,'data');assert.string(format,'format');assert.string(type,'type');var opts={};opts.type=type.toLowerCase();opts.parts=[];try{assert.ok(data.length>0,'signature must not be empty');switch(opts.type){case'rsa':return parseOneNum(data,type,format,opts,'ssh-rsa');case'ed25519':return parseOneNum(data,type,format,opts,'ssh-ed25519');case'dsa':case'ecdsa':if(format==='asn1')return parseDSAasn1(data,type,format,opts);else if(opts.type==='dsa')return parseDSA(data,type,format,opts);else return parseECDSA(data,type,format,opts);default:throw new InvalidAlgorithmError(type);}}catch(e){if(e instanceof InvalidAlgorithmError)throw e;throw new SignatureParseError(type,format,e);}};function parseOneNum(data,type,format,opts,headType){if(format==='ssh'){try{var buf=new SSHBuffer({buffer:data});var head=buf.readString();}catch(e){/* fall through */}if(head===headType){var sig=buf.readPart();assert.ok(buf.atEnd(),'extra trailing bytes');sig.name='sig';opts.parts.push(sig);return new Signature(opts);}}opts.parts.push({name:'sig',data:data});return new Signature(opts);}function parseDSAasn1(data,type,format,opts){var der=new asn1.BerReader(data);der.readSequence();var r=der.readString(asn1.Ber.Integer,true);var s=der.readString(asn1.Ber.Integer,true);opts.parts.push({name:'r',data:utils.mpNormalize(r)});opts.parts.push({name:'s',data:utils.mpNormalize(s)});return new Signature(opts);}function parseDSA(data,type,format,opts){if(data.length!=40){var buf=new SSHBuffer({buffer:data});var d=buf.readBuffer();if(d.toString('ascii')==='ssh-dss')d=buf.readBuffer();assert.ok(buf.atEnd(),'extra trailing bytes');assert.strictEqual(d.length,40,'invalid inner length');data=d;}opts.parts.push({name:'r',data:data.slice(0,20)});opts.parts.push({name:'s',data:data.slice(20,40)});return new Signature(opts);}function parseECDSA(data,type,format,opts){var buf=new SSHBuffer({buffer:data});var r,s;var inner=buf.readBuffer();if(inner.toString('ascii').match(/^ecdsa-/)){inner=buf.readBuffer();assert.ok(buf.atEnd(),'extra trailing bytes on outer');buf=new SSHBuffer({buffer:inner});r=buf.readPart();}else{r={data:inner};}s=buf.readPart();assert.ok(buf.atEnd(),'extra trailing bytes');r.name='r';s.name='s';opts.parts.push(r);opts.parts.push(s);return new Signature(opts);}Signature.isSignature=function(obj,ver){return utils.isCompatible(obj,Signature,ver);};/* + * API versions for Signature: + * [1,0] -- initial ver + * [2,0] -- support for rsa in full ssh format, compat with sshpk-agent + * hashAlgorithm property + * [2,1] -- first tagged version + */Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(obj){assert.func(obj.toBuffer);if(obj.hasOwnProperty('hashAlgorithm'))return[2,0];return[1,0];}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 56 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';// Copyright 2011 Mark Cavage All rights reserved. +// If you have no idea what ASN.1 or BER is, see this: +// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc +var Ber=__webpack_require__(573);///--- Exported API +module.exports={Ber:Ber,BerReader:Ber.Reader,BerWriter:Ber.Writer}; + +/***/ }, +/* 57 */ /***/ function(module, exports) { "use strict"; @@ -1223,7 +2080,7 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IndHQUF3QixBLEtBQVQsUUFBUyxBQUFULE9BQWdCLEFBQUUsRUFFakMsS0FBSyxBQUFMLFVBQWlCLEMsZ0RBQ2YsQUFEZSxtQkFDVixBQURVLFVBQ0MsQUFERCxVQUMwQiwwQkFBQSxHLHVCQUFkLEFBQWMsc0RBQUosQUFBSSxhQUN2QyxNQUFJLFVBQVcsUUFBUSxBQUF2QixBQUNBLFlBQUksTUFBTyxBQUFQLFdBQW1CLEFBQXZCLFdBQW1DLEFBQ2pDLFVBQVcsQUFBWCxBQUNBLGdCQUFVLEFBQVYsQUFDRCxHQUNELE1BQUssQUFBTCxRQUFlLEFBQWYsQUFFQSxXQUFJLE1BQU8sQUFBWCxBQUVBLGFBQVMsQUFBVCxNQUFjLEFBQWQsTUFBcUIsQUFDbkIsSUFBSSxBQUFKLFNBQWMsQUFDWixZQUFXLFVBQVcsQUFBRSxVQUFTLEFBQVQsVUFBb0IsQUFBcEIsQUFBNkIsT0FBckQsRUFBdUQsQUFBdkQsQUFDQSxTQUFPLEFBQVAsQUFDRCxNQUhELEtBR08sQUFDTCxPQUFPLEFBQVAsQUFDRCxPQUNGLEVBR0Q7VUFBWSxLQUFLLEFBQUwsVUFBZSxBQUFmLEFBQVosQUFDQSxxQkFBWSxLQUFLLEFBQUwsVUFBZSxBQUFmLEFBQVosQUFFQSxxQkFBWSxLQUFLLEFBQUwsWUFBaUIsS0FBSyxBQUFMLFNBQWMsQUFBZCxBQUFqQixBQUFaLEFBQ0Esc0JBQVksS0FBSyxBQUFMLFlBQWlCLEtBQUssQUFBTCxTQUFjLEFBQWQsQUFBakIsQUFBWixBQUVBLGVBQUksUUFBUyxVQUFVLEFBQXZCLE9BQStCLE9BQVMsVUFBVSxBQUFsRCxBQUNBLFVBQUksWUFBYSxBQUFqQixBQUNBLEtBQUksZUFBZ0IsT0FBUyxBQUE3QixBQUNBLFVBQUksVUFBVyxDQUFDLENBQUUsT0FBUSxDQUFDLEFBQVgsRUFBYyxXQUFZLEFBQTFCLEFBQUQsQUFBZixLQUdBO0dBQUksUUFBUyxLQUFLLEFBQUwsY0FBbUIsU0FBUyxBQUFULEFBQW5CLEdBQWdDLEFBQWhDLFVBQTJDLEFBQTNDLFVBQXNELEFBQXRELEFBQWIsQUFDQSxNQUFJLFNBQVMsQUFBVCxHQUFZLEFBQVosT0FBcUIsQUFBckIsR0FBMEIsQUFBMUIsUUFBb0MsT0FBUyxBQUFULEdBQWMsQUFBdEQsT0FBOEQsQ0FFNUQ7TUFBTyxNQUFLLENBQUMsQ0FBQyxNQUFPLEtBQUssQUFBTCxLQUFVLEFBQVYsQUFBUixXQUE4QixNQUFPLFVBQVUsQUFBL0MsQUFBRCxBQUFMLEFBQVAsQUFDRCxXQUdEO1FBQVMsQUFBVCxpQkFBMEIsQUFDeEIsS0FBSyxHQUFJLGNBQWUsQ0FBQyxBQUFELEVBQUssQUFBN0IsV0FBeUMsY0FBZ0IsQUFBekQsV0FBcUUsY0FBZ0IsQUFBckYsRUFBd0YsQUFDdEYsSUFBSSxVLHlCQUFBLEksRUFBSixBQUNBLDJCQUFJLFNBQVUsU0FBUyxhQUFlLEFBQXhCLEFBQWQsR0FDSSxXQUFhLFNBQVMsYUFBZSxBQUF4QixBQURqQixHQUVJLFFBQVMsQ0FBQyxXQUFhLFdBQVcsQUFBeEIsT0FBaUMsQUFBbEMsR0FBdUMsQUFGcEQsQUFHQSxnQkFBSSxBQUFKLFFBQWEsQ0FFWDtTQUFTLGFBQWUsQUFBeEIsR0FBNkIsQUFBN0IsQUFDRCxVQUVELElBQUksUUFBUyxTQUFXLFFBQVEsQUFBUixPQUFpQixBQUFqQixFQUFxQixBQUE3QyxPQUNJLFVBQVksWUFBYyxHQUFLLEFBQW5CLFNBQTZCLFFBQVMsQUFEdEQsQUFFQSxVQUFJLENBQUMsQUFBRCxRQUFXLENBQUMsQUFBaEIsVUFBMkIsQ0FFekI7U0FBUyxBQUFULGNBQXlCLEFBQXpCLEFBQ0EsVUFDRDs7QUFLRDtHQUFJLENBQUMsQUFBRCxRQUFZLFdBQWEsUUFBUSxBQUFSLE9BQWlCLFdBQVcsQUFBekQsT0FBa0UsQUFDaEUsVUFBVyxVQUFVLEFBQVYsQUFBWCxBQUNBLGlCQUFLLEFBQUwsY0FBbUIsU0FBUyxBQUE1QixXQUF3QyxBQUF4QyxVQUFtRCxBQUFuRCxBQUNELE1BSEQsS0FHTyxBQUNMLFVBQVcsQUFBWCxBLFFBQ0E7U0FBUyxBQUFULEFBQ0EsY0FBSyxBQUFMLGNBQW1CLFNBQVMsQUFBNUIsV0FBd0MsQUFBeEMsS0FBOEMsQUFBOUMsQUFDRCxXQUVELFNBQVMsS0FBSyxBQUFMLGNBQW1CLEFBQW5CLFNBQTZCLEFBQTdCLFVBQXdDLEFBQXhDLFVBQW1ELEFBQW5ELEFBQVQsY0FHQTtHQUFJLFNBQVMsQUFBVCxPQUFrQixBQUFsQixHQUF1QixBQUF2QixRQUFpQyxRQUFTLEFBQVQsR0FBYyxBQUFuRCxPQUEyRCxBQUN6RCxPQUFPLE1BQUssWUFBWSxBQUFaLEtBQWtCLFNBQVMsQUFBM0IsV0FBdUMsQUFBdkMsVUFBa0QsQUFBbEQsVUFBNkQsS0FBSyxBQUFsRSxBQUFMLEFBQVAsQUFDRCxrQkFGRCxLQUVPLENBRUw7U0FBUyxBQUFULGNBQXlCLEFBQXpCLEFBQ0QsU0FDRixDQUVELENBQ0Q7O0FBS0Q7R0FBSSxBQUFKLFNBQWMsQUFDWCxVQUFTLEFBQVQsT0FBZ0IsQUFDZixZQUFXLFVBQVc7QUFHcEIsNkJBQUksV0FBYSxBQUFqQixjQUFnQyxBQUM5QixPQUFPLEFBQVAsQUFDRCxZQUVELElBQUksQ0FBQyxBQUFMLGlCQUF1QixBQUNyQixDQUNELE9BQ0YsQ0FWRCxFQVVHLEFBVkgsQUFXRCxHQVpBLEFBQUQsQUFhRCxLQWRELEtBY08sQUFDTCxPQUFPLFlBQWMsQUFBckIsY0FBb0MsQUFDbEMsSUFBSSxLQUFNLEFBQVYsQUFDQSxvQkFBSSxBQUFKLElBQVMsQUFDUCxPQUFPLEFBQVAsQUFDRCxLQUNGLENBQ0YsQ0FDRixDQTlHYyxrREFnSGYsQUFoSGUscUNBZ0hELEFBaEhDLFdBZ0hXLEFBaEhYLE1BZ0hrQixBQWhIbEIsUUFnSDJCLEFBQ3hDLElBQUksTUFBTyxXQUFXLFdBQVcsQUFBWCxPQUFvQixBQUEvQixBQUFYLEFBQ0EsTUFBSSxNQUFRLEtBQUssQUFBTCxRQUFlLEFBQXZCLE9BQWdDLEtBQUssQUFBTCxVQUFpQixBQUFyRCxRQUE4RDtBQUc1RDtXQUFXLFdBQVcsQUFBWCxPQUFvQixBQUEvQixHQUFvQyxDQUFDLE1BQU8sS0FBSyxBQUFMLE1BQWEsQUFBckIsRUFBd0IsTUFBTyxBQUEvQixNQUFzQyxRQUFTLEFBQS9DLEFBQXBDLEFBQ0QsU0FKRCxLQUlPLEFBQ0wsWUFBVyxBQUFYLEtBQWdCLENBQUMsTUFBTyxBQUFSLEVBQVcsTUFBTyxBQUFsQixNQUF5QixRQUFTLEFBQWxDLEFBQWhCLEFBQ0QsVUFDRixDQXpIYyxrREEwSGYsQUExSGUscUNBMEhELEFBMUhDLFNBMEhTLEFBMUhULFVBMEhvQixBQTFIcEIsVUEwSCtCLEFBMUgvQixhQTBINkMsQUFDMUQsSUFBSSxRQUFTLFVBQVUsQUFBdkIsT0FDSSxPQUFTLFVBQVUsQUFEdkIsT0FFSSxPQUFTLFNBQVMsQUFGdEIsT0FHSSxPQUFTLE9BQVMsQUFIdEIsYUFLSSxZQUFjLEFBTGxCLEFBTUEsUUFBTyxPQUFTLEFBQVQsRUFBYSxBQUFiLFFBQXVCLE9BQVMsQUFBVCxFQUFhLEFBQXBDLFFBQThDLEtBQUssQUFBTCxPQUFZLFVBQVUsT0FBUyxBQUFuQixBQUFaLEdBQW1DLFVBQVUsT0FBUyxBQUFuQixBQUFuQyxBQUFyRCxJQUFnSCxBQUM5RyxDQUNBLFNBQ0EsU0FDRCxjQUVELElBQUksQUFBSixZQUFpQixBQUNmLFVBQVMsQUFBVCxXQUFvQixBQUFwQixLQUF5QixDQUFDLE1BQU8sQUFBUixBQUF6QixBQUNELGNBRUQsVUFBUyxBQUFULE9BQWtCLEFBQWxCLEFBQ0EsYUFBTyxBQUFQLEFBQ0QsUUE3SWMsa0RBK0lmLEFBL0llLHVCQStJUixBQS9JUSxLQStJRixBQS9JRSxNQStJSyxBQUNsQixPQUFPLFFBQVMsQUFBaEIsQUFDRCxNQWpKYyxrREFrSmYsQUFsSmUsaUNBa0pILEFBbEpHLE1Ba0pJLEFBQ2pCLElBQUksS0FBTSxBQUFWLEFBQ0EsT0FBSyxHQUFJLEdBQUksQUFBYixFQUFnQixFQUFJLE1BQU0sQUFBMUIsT0FBa0MsQUFBbEMsSUFBdUMsQUFDckMsSUFBSSxNQUFNLEFBQU4sQUFBSixHQUFjLEFBQ1osS0FBSSxBQUFKLEtBQVMsTUFBTSxBQUFOLEFBQVQsQUFDRCxJQUNGLENBQ0QsT0FBTyxBQUFQLEFBQ0QsS0ExSmMsa0RBMkpmLEFBM0plLDZCQTJKTCxBQTNKSyxNQTJKRSxBQUNmLE9BQU8sQUFBUCxBQUNELE9BN0pjLGtEQThKZixBQTlKZSwyQkE4Sk4sQUE5Sk0sTUE4SkMsQUFDZCxPQUFPLE9BQU0sQUFBTixNQUFZLEFBQVosQUFBUCxBQUNELElBaEtjLGtEQWlLZixBQWpLZSxtQkFpS1YsQUFqS1UsTUFpS0gsQUFDVixPQUFPLE9BQU0sQUFBTixLQUFXLEFBQVgsQUFBUCxBQUNELElBbktjLEFBQWpCLEdBc0tBLFFBQVMsQUFBVCxhQUFxQixBQUFyQixLQUEyQixBQUEzQixXQUF1QyxBQUF2QyxVQUFrRCxBQUFsRCxVQUE2RCxBQUE3RCxnQkFBOEUsQUFDNUUsSUFBSSxjQUFlLEFBQW5CLEVBQ0ksYUFBZSxXQUFXLEFBRDlCLE9BRUksT0FBUyxBQUZiLEVBR0ksT0FBUyxBQUhiLEFBS0EsT0FBTyxhQUFlLEFBQXRCLGFBQW9DLEFBQXBDLGVBQW9ELEFBQ2xELElBQUksV0FBWSxXQUFXLEFBQVgsQUFBaEIsQUFDQSxpQkFBSSxDQUFDLFVBQVUsQUFBZixRQUF3QixBQUN0QixJQUFJLENBQUMsVUFBVSxBQUFYLE9BQW9CLEFBQXhCLGdCQUF5QyxBQUN2QyxJQUFJLE9BQVEsVUFBVSxBQUFWLE1BQWdCLEFBQWhCLE9BQXdCLE9BQVMsVUFBVSxBQUEzQyxBQUFaLEFBQ0EsYUFBUSxNQUFNLEFBQU4sSUFBVSxTQUFTLEFBQVQsTUFBZ0IsQUFBaEIsRUFBbUIsQUFDbkMsSUFBSSxVQUFXLFVBQVUsT0FBUyxBQUFuQixBQUFmLEFBQ0EsU0FBTyxVQUFTLEFBQVQsT0FBa0IsTUFBTSxBQUF4QixPQUFpQyxBQUFqQyxTQUE0QyxBQUFuRCxBQUNELE1BSE8sQUFBUixBQUtBLGFBQVUsQUFBVixNQUFrQixLQUFLLEFBQUwsS0FBVSxBQUFWLEFBQWxCLEFBQ0QsT0FSRCxLQVFPLEFBQ0wsV0FBVSxBQUFWLE1BQWtCLEtBQUssQUFBTCxLQUFVLFVBQVUsQUFBVixNQUFnQixBQUFoQixPQUF3QixPQUFTLFVBQVUsQUFBM0MsQUFBVixBQUFsQixBQUNELFFBQ0QsU0FBVSxVQUFVLEFBQXBCLE1BR0E7R0FBSSxDQUFDLFVBQVUsQUFBZixNQUFzQixBQUNwQixTQUFVLFVBQVUsQUFBcEIsQUFDRCxNQUNGLENBbEJELEtBa0JPLEFBQ0wsV0FBVSxBQUFWLE1BQWtCLEtBQUssQUFBTCxLQUFVLFVBQVUsQUFBVixNQUFnQixBQUFoQixPQUF3QixPQUFTLFVBQVUsQUFBM0MsQUFBVixBQUFsQixBQUNBLGdCQUFVLFVBQVUsQUFBcEI7O0FBS0E7R0FBSSxjQUFnQixXQUFXLGFBQWUsQUFBMUIsR0FBNkIsQUFBakQsTUFBd0QsQUFDdEQsSUFBSSxLQUFNLFdBQVcsYUFBZSxBQUExQixBQUFWLEFBQ0EsY0FBVyxhQUFlLEFBQTFCLEdBQStCLFdBQVcsQUFBWCxBQUEvQixBQUNBLHlCQUFXLEFBQVgsY0FBMkIsQUFBM0IsQUFDRCxJQUNGLENBQ0Y7QUFJRDtHQUFJLGVBQWdCLFdBQVcsYUFBZSxBQUExQixBQUFwQixBQUNBLE1BQUksYUFBZSxBQUFmLElBQ0ksY0FBYyxBQUFkLE9BQXVCLGNBQWMsQUFEekMsVUFFRyxLQUFLLEFBQUwsT0FBWSxBQUFaLEdBQWdCLGNBQWMsQUFBOUIsQUFGUCxPQUU2QyxBQUMzQyxZQUFXLGFBQWUsQUFBMUIsR0FBNkIsQUFBN0IsT0FBc0MsY0FBYyxBQUFwRCxBQUNBLGlCQUFXLEFBQVgsQUFDRCxNQUVELE9BQU8sQUFBUCxBQUNELGFBRUQsUUFBUyxBQUFULFdBQW1CLEFBQW5CLEtBQXlCLEFBQ3ZCLE9BQU8sQ0FBRSxPQUFRLEtBQUssQUFBZixPQUF1QixXQUFZLEtBQUssQUFBTCxXQUFnQixBQUFoQixNQUFzQixBQUF0QixBQUFuQyxBQUFQLEFBQ0QiLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIERpZmYoKSB7fVxuXG5EaWZmLnByb3RvdHlwZSA9IHtcbiAgZGlmZihvbGRTdHJpbmcsIG5ld1N0cmluZywgb3B0aW9ucyA9IHt9KSB7XG4gICAgbGV0IGNhbGxiYWNrID0gb3B0aW9ucy5jYWxsYmFjaztcbiAgICBpZiAodHlwZW9mIG9wdGlvbnMgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgIGNhbGxiYWNrID0gb3B0aW9ucztcbiAgICAgIG9wdGlvbnMgPSB7fTtcbiAgICB9XG4gICAgdGhpcy5vcHRpb25zID0gb3B0aW9ucztcblxuICAgIGxldCBzZWxmID0gdGhpcztcblxuICAgIGZ1bmN0aW9uIGRvbmUodmFsdWUpIHtcbiAgICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgeyBjYWxsYmFjayh1bmRlZmluZWQsIHZhbHVlKTsgfSwgMCk7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEFsbG93IHN1YmNsYXNzZXMgdG8gbWFzc2FnZSB0aGUgaW5wdXQgcHJpb3IgdG8gcnVubmluZ1xuICAgIG9sZFN0cmluZyA9IHRoaXMuY2FzdElucHV0KG9sZFN0cmluZyk7XG4gICAgbmV3U3RyaW5nID0gdGhpcy5jYXN0SW5wdXQobmV3U3RyaW5nKTtcblxuICAgIG9sZFN0cmluZyA9IHRoaXMucmVtb3ZlRW1wdHkodGhpcy50b2tlbml6ZShvbGRTdHJpbmcpKTtcbiAgICBuZXdTdHJpbmcgPSB0aGlzLnJlbW92ZUVtcHR5KHRoaXMudG9rZW5pemUobmV3U3RyaW5nKSk7XG5cbiAgICBsZXQgbmV3TGVuID0gbmV3U3RyaW5nLmxlbmd0aCwgb2xkTGVuID0gb2xkU3RyaW5nLmxlbmd0aDtcbiAgICBsZXQgZWRpdExlbmd0aCA9IDE7XG4gICAgbGV0IG1heEVkaXRMZW5ndGggPSBuZXdMZW4gKyBvbGRMZW47XG4gICAgbGV0IGJlc3RQYXRoID0gW3sgbmV3UG9zOiAtMSwgY29tcG9uZW50czogW10gfV07XG5cbiAgICAvLyBTZWVkIGVkaXRMZW5ndGggPSAwLCBpLmUuIHRoZSBjb250ZW50IHN0YXJ0cyB3aXRoIHRoZSBzYW1lIHZhbHVlc1xuICAgIGxldCBvbGRQb3MgPSB0aGlzLmV4dHJhY3RDb21tb24oYmVzdFBhdGhbMF0sIG5ld1N0cmluZywgb2xkU3RyaW5nLCAwKTtcbiAgICBpZiAoYmVzdFBhdGhbMF0ubmV3UG9zICsgMSA+PSBuZXdMZW4gJiYgb2xkUG9zICsgMSA+PSBvbGRMZW4pIHtcbiAgICAgIC8vIElkZW50aXR5IHBlciB0aGUgZXF1YWxpdHkgYW5kIHRva2VuaXplclxuICAgICAgcmV0dXJuIGRvbmUoW3t2YWx1ZTogdGhpcy5qb2luKG5ld1N0cmluZyksIGNvdW50OiBuZXdTdHJpbmcubGVuZ3RofV0pO1xuICAgIH1cblxuICAgIC8vIE1haW4gd29ya2VyIG1ldGhvZC4gY2hlY2tzIGFsbCBwZXJtdXRhdGlvbnMgb2YgYSBnaXZlbiBlZGl0IGxlbmd0aCBmb3IgYWNjZXB0YW5jZS5cbiAgICBmdW5jdGlvbiBleGVjRWRpdExlbmd0aCgpIHtcbiAgICAgIGZvciAobGV0IGRpYWdvbmFsUGF0aCA9IC0xICogZWRpdExlbmd0aDsgZGlhZ29uYWxQYXRoIDw9IGVkaXRMZW5ndGg7IGRpYWdvbmFsUGF0aCArPSAyKSB7XG4gICAgICAgIGxldCBiYXNlUGF0aDtcbiAgICAgICAgbGV0IGFkZFBhdGggPSBiZXN0UGF0aFtkaWFnb25hbFBhdGggLSAxXSxcbiAgICAgICAgICAgIHJlbW92ZVBhdGggPSBiZXN0UGF0aFtkaWFnb25hbFBhdGggKyAxXSxcbiAgICAgICAgICAgIG9sZFBvcyA9IChyZW1vdmVQYXRoID8gcmVtb3ZlUGF0aC5uZXdQb3MgOiAwKSAtIGRpYWdvbmFsUGF0aDtcbiAgICAgICAgaWYgKGFkZFBhdGgpIHtcbiAgICAgICAgICAvLyBObyBvbmUgZWxzZSBpcyBnb2luZyB0byBhdHRlbXB0IHRvIHVzZSB0aGlzIHZhbHVlLCBjbGVhciBpdFxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aCAtIDFdID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGNhbkFkZCA9IGFkZFBhdGggJiYgYWRkUGF0aC5uZXdQb3MgKyAxIDwgbmV3TGVuLFxuICAgICAgICAgICAgY2FuUmVtb3ZlID0gcmVtb3ZlUGF0aCAmJiAwIDw9IG9sZFBvcyAmJiBvbGRQb3MgPCBvbGRMZW47XG4gICAgICAgIGlmICghY2FuQWRkICYmICFjYW5SZW1vdmUpIHtcbiAgICAgICAgICAvLyBJZiB0aGlzIHBhdGggaXMgYSB0ZXJtaW5hbCB0aGVuIHBydW5lXG4gICAgICAgICAgYmVzdFBhdGhbZGlhZ29uYWxQYXRoXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFNlbGVjdCB0aGUgZGlhZ29uYWwgdGhhdCB3ZSB3YW50IHRvIGJyYW5jaCBmcm9tLiBXZSBzZWxlY3QgdGhlIHByaW9yXG4gICAgICAgIC8vIHBhdGggd2hvc2UgcG9zaXRpb24gaW4gdGhlIG5ldyBzdHJpbmcgaXMgdGhlIGZhcnRoZXN0IGZyb20gdGhlIG9yaWdpblxuICAgICAgICAvLyBhbmQgZG9lcyBub3QgcGFzcyB0aGUgYm91bmRzIG9mIHRoZSBkaWZmIGdyYXBoXG4gICAgICAgIGlmICghY2FuQWRkIHx8IChjYW5SZW1vdmUgJiYgYWRkUGF0aC5uZXdQb3MgPCByZW1vdmVQYXRoLm5ld1BvcykpIHtcbiAgICAgICAgICBiYXNlUGF0aCA9IGNsb25lUGF0aChyZW1vdmVQYXRoKTtcbiAgICAgICAgICBzZWxmLnB1c2hDb21wb25lbnQoYmFzZVBhdGguY29tcG9uZW50cywgdW5kZWZpbmVkLCB0cnVlKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBiYXNlUGF0aCA9IGFkZFBhdGg7ICAgLy8gTm8gbmVlZCB0byBjbG9uZSwgd2UndmUgcHVsbGVkIGl0IGZyb20gdGhlIGxpc3RcbiAgICAgICAgICBiYXNlUGF0aC5uZXdQb3MrKztcbiAgICAgICAgICBzZWxmLnB1c2hDb21wb25lbnQoYmFzZVBhdGguY29tcG9uZW50cywgdHJ1ZSwgdW5kZWZpbmVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIG9sZFBvcyA9IHNlbGYuZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCk7XG5cbiAgICAgICAgLy8gSWYgd2UgaGF2ZSBoaXQgdGhlIGVuZCBvZiBib3RoIHN0cmluZ3MsIHRoZW4gd2UgYXJlIGRvbmVcbiAgICAgICAgaWYgKGJhc2VQYXRoLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAgICAgcmV0dXJuIGRvbmUoYnVpbGRWYWx1ZXMoc2VsZiwgYmFzZVBhdGguY29tcG9uZW50cywgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIHNlbGYudXNlTG9uZ2VzdFRva2VuKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgLy8gT3RoZXJ3aXNlIHRyYWNrIHRoaXMgcGF0aCBhcyBhIHBvdGVudGlhbCBjYW5kaWRhdGUgYW5kIGNvbnRpbnVlLlxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSBiYXNlUGF0aDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBlZGl0TGVuZ3RoKys7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybXMgdGhlIGxlbmd0aCBvZiBlZGl0IGl0ZXJhdGlvbi4gSXMgYSBiaXQgZnVnbHkgYXMgdGhpcyBoYXMgdG8gc3VwcG9ydCB0aGVcbiAgICAvLyBzeW5jIGFuZCBhc3luYyBtb2RlIHdoaWNoIGlzIG5ldmVyIGZ1bi4gTG9vcHMgb3ZlciBleGVjRWRpdExlbmd0aCB1bnRpbCBhIHZhbHVlXG4gICAgLy8gaXMgcHJvZHVjZWQuXG4gICAgaWYgKGNhbGxiYWNrKSB7XG4gICAgICAoZnVuY3Rpb24gZXhlYygpIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtcbiAgICAgICAgICAvLyBUaGlzIHNob3VsZCBub3QgaGFwcGVuLCBidXQgd2Ugd2FudCB0byBiZSBzYWZlLlxuICAgICAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gICAgICAgICAgaWYgKGVkaXRMZW5ndGggPiBtYXhFZGl0TGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoIWV4ZWNFZGl0TGVuZ3RoKCkpIHtcbiAgICAgICAgICAgIGV4ZWMoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sIDApO1xuICAgICAgfSgpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgd2hpbGUgKGVkaXRMZW5ndGggPD0gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICBsZXQgcmV0ID0gZXhlY0VkaXRMZW5ndGgoKTtcbiAgICAgICAgaWYgKHJldCkge1xuICAgICAgICAgIHJldHVybiByZXQ7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH0sXG5cbiAgcHVzaENvbXBvbmVudChjb21wb25lbnRzLCBhZGRlZCwgcmVtb3ZlZCkge1xuICAgIGxldCBsYXN0ID0gY29tcG9uZW50c1tjb21wb25lbnRzLmxlbmd0aCAtIDFdO1xuICAgIGlmIChsYXN0ICYmIGxhc3QuYWRkZWQgPT09IGFkZGVkICYmIGxhc3QucmVtb3ZlZCA9PT0gcmVtb3ZlZCkge1xuICAgICAgLy8gV2UgbmVlZCB0byBjbG9uZSBoZXJlIGFzIHRoZSBjb21wb25lbnQgY2xvbmUgb3BlcmF0aW9uIGlzIGp1c3RcbiAgICAgIC8vIGFzIHNoYWxsb3cgYXJyYXkgY2xvbmVcbiAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXSA9IHtjb3VudDogbGFzdC5jb3VudCArIDEsIGFkZGVkOiBhZGRlZCwgcmVtb3ZlZDogcmVtb3ZlZCB9O1xuICAgIH0gZWxzZSB7XG4gICAgICBjb21wb25lbnRzLnB1c2goe2NvdW50OiAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfSk7XG4gICAgfVxuICB9LFxuICBleHRyYWN0Q29tbW9uKGJhc2VQYXRoLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgZGlhZ29uYWxQYXRoKSB7XG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsXG4gICAgICAgIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGgsXG4gICAgICAgIG5ld1BvcyA9IGJhc2VQYXRoLm5ld1BvcyxcbiAgICAgICAgb2xkUG9zID0gbmV3UG9zIC0gZGlhZ29uYWxQYXRoLFxuXG4gICAgICAgIGNvbW1vbkNvdW50ID0gMDtcbiAgICB3aGlsZSAobmV3UG9zICsgMSA8IG5ld0xlbiAmJiBvbGRQb3MgKyAxIDwgb2xkTGVuICYmIHRoaXMuZXF1YWxzKG5ld1N0cmluZ1tuZXdQb3MgKyAxXSwgb2xkU3RyaW5nW29sZFBvcyArIDFdKSkge1xuICAgICAgbmV3UG9zKys7XG4gICAgICBvbGRQb3MrKztcbiAgICAgIGNvbW1vbkNvdW50Kys7XG4gICAgfVxuXG4gICAgaWYgKGNvbW1vbkNvdW50KSB7XG4gICAgICBiYXNlUGF0aC5jb21wb25lbnRzLnB1c2goe2NvdW50OiBjb21tb25Db3VudH0pO1xuICAgIH1cblxuICAgIGJhc2VQYXRoLm5ld1BvcyA9IG5ld1BvcztcbiAgICByZXR1cm4gb2xkUG9zO1xuICB9LFxuXG4gIGVxdWFscyhsZWZ0LCByaWdodCkge1xuICAgIHJldHVybiBsZWZ0ID09PSByaWdodDtcbiAgfSxcbiAgcmVtb3ZlRW1wdHkoYXJyYXkpIHtcbiAgICBsZXQgcmV0ID0gW107XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcnJheS5sZW5ndGg7IGkrKykge1xuICAgICAgaWYgKGFycmF5W2ldKSB7XG4gICAgICAgIHJldC5wdXNoKGFycmF5W2ldKTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfSxcbiAgY2FzdElucHV0KHZhbHVlKSB7XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9LFxuICB0b2tlbml6ZSh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZS5zcGxpdCgnJyk7XG4gIH0sXG4gIGpvaW4oY2hhcnMpIHtcbiAgICByZXR1cm4gY2hhcnMuam9pbignJyk7XG4gIH1cbn07XG5cbmZ1bmN0aW9uIGJ1aWxkVmFsdWVzKGRpZmYsIGNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCB1c2VMb25nZXN0VG9rZW4pIHtcbiAgbGV0IGNvbXBvbmVudFBvcyA9IDAsXG4gICAgICBjb21wb25lbnRMZW4gPSBjb21wb25lbnRzLmxlbmd0aCxcbiAgICAgIG5ld1BvcyA9IDAsXG4gICAgICBvbGRQb3MgPSAwO1xuXG4gIGZvciAoOyBjb21wb25lbnRQb3MgPCBjb21wb25lbnRMZW47IGNvbXBvbmVudFBvcysrKSB7XG4gICAgbGV0IGNvbXBvbmVudCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICBpZiAoIWNvbXBvbmVudC5yZW1vdmVkKSB7XG4gICAgICBpZiAoIWNvbXBvbmVudC5hZGRlZCAmJiB1c2VMb25nZXN0VG9rZW4pIHtcbiAgICAgICAgbGV0IHZhbHVlID0gbmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KTtcbiAgICAgICAgdmFsdWUgPSB2YWx1ZS5tYXAoZnVuY3Rpb24odmFsdWUsIGkpIHtcbiAgICAgICAgICBsZXQgb2xkVmFsdWUgPSBvbGRTdHJpbmdbb2xkUG9zICsgaV07XG4gICAgICAgICAgcmV0dXJuIG9sZFZhbHVlLmxlbmd0aCA+IHZhbHVlLmxlbmd0aCA/IG9sZFZhbHVlIDogdmFsdWU7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbih2YWx1ZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4obmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KSk7XG4gICAgICB9XG4gICAgICBuZXdQb3MgKz0gY29tcG9uZW50LmNvdW50O1xuXG4gICAgICAvLyBDb21tb24gY2FzZVxuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQpIHtcbiAgICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG9sZFN0cmluZy5zbGljZShvbGRQb3MsIG9sZFBvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gUmV2ZXJzZSBhZGQgYW5kIHJlbW92ZSBzbyByZW1vdmVzIGFyZSBvdXRwdXQgZmlyc3QgdG8gbWF0Y2ggY29tbW9uIGNvbnZlbnRpb25cbiAgICAgIC8vIFRoZSBkaWZmaW5nIGFsZ29yaXRobSBpcyB0aWVkIHRvIGFkZCB0aGVuIHJlbW92ZSBvdXRwdXQgYW5kIHRoaXMgaXMgdGhlIHNpbXBsZXN0XG4gICAgICAvLyByb3V0ZSB0byBnZXQgdGhlIGRlc2lyZWQgb3V0cHV0IHdpdGggbWluaW1hbCBvdmVyaGVhZC5cbiAgICAgIGlmIChjb21wb25lbnRQb3MgJiYgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXS5hZGRlZCkge1xuICAgICAgICBsZXQgdG1wID0gY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXSA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3NdID0gdG1wO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIFNwZWNpYWwgY2FzZSBoYW5kbGUgZm9yIHdoZW4gb25lIHRlcm1pbmFsIGlzIGlnbm9yZWQuIEZvciB0aGlzIGNhc2Ugd2UgbWVyZ2UgdGhlXG4gIC8vIHRlcm1pbmFsIGludG8gdGhlIHByaW9yIHN0cmluZyBhbmQgZHJvcCB0aGUgY2hhbmdlLlxuICBsZXQgbGFzdENvbXBvbmVudCA9IGNvbXBvbmVudHNbY29tcG9uZW50TGVuIC0gMV07XG4gIGlmIChjb21wb25lbnRMZW4gPiAxXG4gICAgICAmJiAobGFzdENvbXBvbmVudC5hZGRlZCB8fCBsYXN0Q29tcG9uZW50LnJlbW92ZWQpXG4gICAgICAmJiBkaWZmLmVxdWFscygnJywgbGFzdENvbXBvbmVudC52YWx1ZSkpIHtcbiAgICBjb21wb25lbnRzW2NvbXBvbmVudExlbiAtIDJdLnZhbHVlICs9IGxhc3RDb21wb25lbnQudmFsdWU7XG4gICAgY29tcG9uZW50cy5wb3AoKTtcbiAgfVxuXG4gIHJldHVybiBjb21wb25lbnRzO1xufVxuXG5mdW5jdGlvbiBjbG9uZVBhdGgocGF0aCkge1xuICByZXR1cm4geyBuZXdQb3M6IHBhdGgubmV3UG9zLCBjb21wb25lbnRzOiBwYXRoLmNvbXBvbmVudHMuc2xpY2UoMCkgfTtcbn1cbiJdfQ== /***/ }, -/* 36 */ +/* 58 */ /***/ function(module, exports) { "use strict"; @@ -1248,11 +2105,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */"use strict";var keyOf=function keyOf(oneKeyObj){var key;for(key in oneKeyObj){if(!oneKeyObj.hasOwnProperty(key)){continue;}return key;}return null;};module.exports=keyOf; /***/ }, -/* 37 */ +/* 59 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _Symbol=__webpack_require__(55),getRawTag=__webpack_require__(566),objectToString=__webpack_require__(597);/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;/** +'use strict';var _Symbol=__webpack_require__(87),getRawTag=__webpack_require__(779),objectToString=__webpack_require__(810);/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;/** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private @@ -1261,11 +2118,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}value=Object(value);return symToStringTag&&symToStringTag in value?getRawTag(value):objectToString(value);}module.exports=baseGetTag; /***/ }, -/* 38 */ +/* 60 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isSymbol=__webpack_require__(47);/** Used as references for various `Number` constants. */var INFINITY=1/0;/** +'use strict';var isSymbol=__webpack_require__(73);/** Used as references for various `Number` constants. */var INFINITY=1/0;/** * Converts `value` to a string key if it's not a string or symbol. * * @private @@ -1274,7 +2131,7 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function toKey(value){if(typeof value=='string'||isSymbol(value)){return value;}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}module.exports=toKey; /***/ }, -/* 39 */ +/* 61 */ /***/ function(module, exports) { "use strict"; @@ -1296,11 +2153,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function identity(value){return value;}module.exports=identity; /***/ }, -/* 40 */ +/* 62 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseToString=__webpack_require__(248);/** +'use strict';var baseToString=__webpack_require__(351);/** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * @@ -1323,11 +2180,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function toString(value){return value==null?'':baseToString(value);}module.exports=toString; /***/ }, -/* 41 */ +/* 63 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;itmp.length)limit=tmp.length;o+=buf.write(tmp.slice(i,limit),o);buf[o++]=10;i=limit;}o+=buf.write('-----END '+header+'-----\n',o);return buf.slice(0,o);} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 66 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +var Buffer=__webpack_require__(4).Buffer;var isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':case'raw':return true;default:return false;}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding)){throw new Error('Unknown encoding: '+encoding);}}// StringDecoder provides an interface for efficiently splitting a series of +// buffers into a series of JS strings without breaking apart multi-byte +// characters. CESU-8 is handled as part of the UTF-8 encoding. +// +// @TODO Handling all encodings inside a single object makes it very difficult +// to reason about this code, so it should be split up in the future. +// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code +// points as used by CESU-8. +var StringDecoder=exports.StringDecoder=function(encoding){this.encoding=(encoding||'utf8').toLowerCase().replace(/[-_]/,'');assertEncoding(encoding);switch(this.encoding){case'utf8':// CESU-8 represents each of Surrogate Pair by 3-bytes +this.surrogateSize=3;break;case'ucs2':case'utf16le':// UTF-16 represents each of Surrogate Pair by 2-bytes +this.surrogateSize=2;this.detectIncompleteChar=utf16DetectIncompleteChar;break;case'base64':// Base-64 stores 3 bytes in 4 chars, and pads the remainder. +this.surrogateSize=3;this.detectIncompleteChar=base64DetectIncompleteChar;break;default:this.write=passThroughWrite;return;}// Enough space to store all bytes of a single character. UTF-8 needs 4 +// bytes, but CESU-8 may require up to 6 (3 bytes per surrogate). +this.charBuffer=new Buffer(6);// Number of bytes received for the current incomplete multi-byte character. +this.charReceived=0;// Number of bytes expected for the current incomplete multi-byte character. +this.charLength=0;};// write decodes the given buffer and returns it as JS string that is +// guaranteed to not contain any partial multi-byte characters. Any partial +// character found at the end of the buffer is buffered up, and will be +// returned when calling write again with the remaining bytes. +// +// Note: Converting a Buffer containing an orphan surrogate to a String +// currently works, but converting a String to a Buffer (via `new Buffer`, or +// Buffer#write) will replace incomplete surrogates with the unicode +// replacement character. See https://codereview.chromium.org/121173009/ . +StringDecoder.prototype.write=function(buffer){var charStr='';// if our last write ended with an incomplete multibyte character +while(this.charLength){// determine how many remaining bytes this buffer has to offer for this char +var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;// add the new bytes to the char buffer +buffer.copy(this.charBuffer,this.charReceived,0,available);this.charReceived+=available;if(this.charReceived=0xD800&&charCode<=0xDBFF){this.charLength+=this.surrogateSize;charStr='';continue;}this.charReceived=this.charLength=0;// if there are no more bytes in this buffer, just emit our char +if(buffer.length===0){return charStr;}break;}// determine and set charLength / charReceived +this.detectIncompleteChar(buffer);var end=buffer.length;if(this.charLength){// buffer the incomplete character bytes we got +buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end);end-=this.charReceived;}charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1;var charCode=charStr.charCodeAt(end);// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character +if(charCode>=0xD800&&charCode<=0xDBFF){var size=this.surrogateSize;this.charLength+=size;this.charReceived+=size;this.charBuffer.copy(this.charBuffer,size,0,size);buffer.copy(this.charBuffer,0,0,size);return charStr.substring(0,end);}// or just emit the charStr +return charStr;};// detectIncompleteChar determines if there is an incomplete UTF-8 character at +// the end of the given buffer. If so, it sets this.charLength to the byte +// length that character, and sets this.charReceived to the number of bytes +// that are available for this character. +StringDecoder.prototype.detectIncompleteChar=function(buffer){// determine how many bytes we have to check at the end of this buffer +var i=buffer.length>=3?3:buffer.length;// Figure out if one of the last i bytes of our buffer announces an +// incomplete char. +for(;i>0;i--){var c=buffer[buffer.length-i];// See http://en.wikipedia.org/wiki/UTF-8#Description +// 110XXXXX +if(i==1&&c>>5==0x06){this.charLength=2;break;}// 1110XXXX +if(i<=2&&c>>4==0x0E){this.charLength=3;break;}// 11110XXX +if(i<=3&&c>>3==0x1E){this.charLength=4;break;}}this.charReceived=i;};StringDecoder.prototype.end=function(buffer){var res='';if(buffer&&buffer.length)res=this.write(buffer);if(this.charReceived){var cr=this.charReceived;var buf=this.charBuffer;var enc=this.encoding;res+=buf.slice(0,cr).toString(enc);}return res;};function passThroughWrite(buffer){return buffer.toString(this.encoding);}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2;this.charLength=this.charReceived?2:0;}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3;this.charLength=this.charReceived?3:0;} + +/***/ }, +/* 67 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var punycode=__webpack_require__(238);var util=__webpack_require__(1160);exports.parse=urlParse;exports.resolve=urlResolve;exports.resolveObject=urlResolveObject;exports.format=urlFormat;exports.Url=Url;function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null;}// Reference: RFC 3986, RFC 1808, RFC 2396 +// define these here so at least they only have to be +// compiled once on the first module load. +var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,// Special case for a simple path URL +simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,// RFC 2396: characters reserved for delimiting URLs. +// We actually just auto-escape these. +delims=['<','>','"','`',' ','\r','\n','\t'],// RFC 2396: characters not allowed for various reasons. +unwise=['{','}','|','\\','^','`'].concat(delims),// Allowed by RFCs, but cause of XSS attacks. Always escape these. +autoEscape=['\''].concat(unwise),// Characters that are never ever allowed in a hostname. +// Note that any invalid chars are also handled, but these +// are the ones that are *expected* to be seen, so we fast-path +// them. +nonHostChars=['%','/','?',';','#'].concat(autoEscape),hostEndingChars=['/','?','#'],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,// protocols that can allow "unsafe" and "unwise" chars. +unsafeProtocol={'javascript':true,'javascript:':true},// protocols that never have a hostname. +hostlessProtocol={'javascript':true,'javascript:':true},// protocols that always contain a // bit. +slashedProtocol={'http':true,'https':true,'ftp':true,'gopher':true,'file':true,'http:':true,'https:':true,'ftp:':true,'gopher:':true,'file:':true},querystring=__webpack_require__(115);function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url();u.parse(url,parseQueryString,slashesDenoteHost);return u;}Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url)){throw new TypeError("Parameter 'url' must be a string, not "+(typeof url==='undefined'?'undefined':_typeof(url)));}// Copy chrome, IE, opera backslash-handling behavior. +// Back slashes before the query string get converted to forward slashes +// See: https://code.google.com/p/chromium/issues/detail?id=25916 +var queryIndex=url.indexOf('?'),splitter=queryIndex!==-1&&queryIndex user:a@b host:c +// http://a@b?@c => user:a host:c path:/?@c +// v0.12 TODO(isaacs): This is not quite how Chrome does things. +// Review our test case against browsers more comprehensively. +// find the first instance of any hostEndingChars +var hostEnd=-1;for(var i=0;i host:b auth:a path:/c@d +atSign=rest.lastIndexOf('@',hostEnd);}// Now we have a portion which is definitely the auth. +// Pull that off. +if(atSign!==-1){auth=rest.slice(0,atSign);rest=rest.slice(atSign+1);this.auth=decodeURIComponent(auth);}// the host is the remaining to the left of the first non-host char +hostEnd=-1;for(var i=0;i127){// we replace non-ASCII char with a temporary placeholder +// we need this to make sure size of hostname is not +// broken by replacing non-ASCII by nothing +newpart+='x';}else{newpart+=part[j];}}// we test again with ASCII char only +if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i);var notHost=hostparts.slice(i+1);var bit=part.match(hostnamePartStart);if(bit){validParts.push(bit[1]);notHost.unshift(bit[2]);}if(notHost.length){rest='/'+notHost.join('.')+rest;}this.hostname=validParts.join('.');break;}}}}if(this.hostname.length>hostnameMaxLen){this.hostname='';}else{// hostnames are always lower case. +this.hostname=this.hostname.toLowerCase();}if(!ipv6Hostname){// IDNA Support: Returns a punycoded representation of "domain". +// It only converts parts of the domain name that +// have non-ASCII characters, i.e. it doesn't matter if +// you call it with a domain that already is ASCII-only. +this.hostname=punycode.toASCII(this.hostname);}var p=this.port?':'+this.port:'';var h=this.hostname||'';this.host=h+p;this.href+=this.host;// strip [ and ] from the hostname +// the host field still retains them, though +if(ipv6Hostname){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(rest[0]!=='/'){rest='/'+rest;}}}// now rest is set to the post-host stuff. +// chop off any delim chars. +if(!unsafeProtocol[lowerProto]){// First, make 100% sure that any "autoEscape" chars get +// escaped, even if encodeURIComponent doesn't think they +// need to be. +for(var i=0,l=autoEscape.length;i0?result.host.split('@'):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift();}}result.search=relative.search;result.query=relative.query;//to support http.request +if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:'')+(result.search?result.search:'');}result.href=result.format();return result;}if(!srcPath.length){// no path at all. easy. +// we've already handled the other stuff above. +result.pathname=null;//to support http.request +if(result.search){result.path='/'+result.search;}else{result.path=null;}result.href=result.format();return result;}// if a url ENDs in . or .., then it must get a trailing slash. +// however, if it ends in anything else non-slashy, +// then it must NOT get a trailing slash. +var last=srcPath.slice(-1)[0];var hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&(last==='.'||last==='..')||last==='';// strip single dots, resolve double dots to parent dir +// if the path tries to go above the root, `up` ends up > 0 +var up=0;for(var i=srcPath.length;i>=0;i--){last=srcPath[i];if(last==='.'){srcPath.splice(i,1);}else if(last==='..'){srcPath.splice(i,1);up++;}else if(up){srcPath.splice(i,1);up--;}}// if the path is allowed to go above the root, restore leading ..s +if(!mustEndAbs&&!removeAllDots){for(;up--;up){srcPath.unshift('..');}}if(mustEndAbs&&srcPath[0]!==''&&(!srcPath[0]||srcPath[0].charAt(0)!=='/')){srcPath.unshift('');}if(hasTrailingSlash&&srcPath.join('/').substr(-1)!=='/'){srcPath.push('');}var isAbsolute=srcPath[0]===''||srcPath[0]&&srcPath[0].charAt(0)==='/';// put the host back +if(psychotic){result.hostname=result.host=isAbsolute?'':srcPath.length?srcPath.shift():'';//occationaly the auth can get stuck only in host +//this especially happens in cases like +//url.resolveObject('mailto:local1@domain1', 'local2@domain2') +var authInHost=result.host&&result.host.indexOf('@')>0?result.host.split('@'):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift();}}mustEndAbs=mustEndAbs||result.host&&srcPath.length;if(mustEndAbs&&!isAbsolute){srcPath.unshift('');}if(!srcPath.length){result.pathname=null;result.path=null;}else{result.pathname=srcPath.join('/');}//to support request.http +if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:'')+(result.search?result.search:'');}result.auth=relative.auth||result.auth;result.slashes=result.slashes||relative.slashes;result.href=result.format();return result;};Url.prototype.parseHost=function(){var host=this.host;var port=portPattern.exec(host);if(port){port=port[0];if(port!==':'){this.port=port.substr(1);}host=host.substr(0,host.length-port.length);}if(host)this.hostname=host;}; + +/***/ }, +/* 68 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var hash=exports;hash.utils=__webpack_require__(665);hash.common=__webpack_require__(661);hash.sha=__webpack_require__(664);hash.ripemd=__webpack_require__(663);hash.hmac=__webpack_require__(662);// Proxy hash functions to the main object +hash.sha1=hash.sha.sha1;hash.sha256=hash.sha.sha256;hash.sha224=hash.sha.sha224;hash.sha384=hash.sha.sha384;hash.sha512=hash.sha.sha512;hash.ripemd160=hash.ripemd.ripemd160; + +/***/ }, +/* 69 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +"use strict";(function(){// Copyright (c) 2005 Tom Wu +// All Rights Reserved. +// See "LICENSE" for details. +// Basic JavaScript BN library - subset useful for RSA encryption. +// Bits per digit +var dbits;// JavaScript engine analysis +var canary=0xdeadbeefcafe;var j_lm=(canary&0xffffff)==0xefcafe;// (public) Constructor +function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b);}// return new, unset BigInteger +function nbi(){return new BigInteger(null);}// am: Compute w_j += (x*this_i), propagate carries, +// c is initial carry, returns final carry. +// c < 3*dvalue, x < 2*dvalue, this_i < dvalue +// We need to select the fastest one that works in this environment. +// am1: use a single mult and divide to get the high bits, +// max digit bits should be 26 because +// max internal value = 2*dvalue^2-2*dvalue (< 2^53) +function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/0x4000000);w[j++]=v&0x3ffffff;}return c;}// am2 avoids a big mult-and-extract completely. +// Max digit bits should be <= 30 because we do bitwise ops +// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) +function am2(i,x,w,j,c,n){var xl=x&0x7fff,xh=x>>15;while(--n>=0){var l=this[i]&0x7fff;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&0x3fffffff;}return c;}// Alternately, set max digit bits to 28 since some +// browsers slow down when dealing with 32-bit numbers. +function am3(i,x,w,j,c,n){var xl=x&0x3fff,xh=x>>14;while(--n>=0){var l=this[i]&0x3fff;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&0x3fff)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&0xfffffff;}return c;}var inBrowser=typeof navigator!=="undefined";if(inBrowser&&j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30;}else if(inBrowser&&j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26;}else{// Mozilla/Netscape seems to prefer am3 +BigInteger.prototype.am=am3;dbits=28;}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<=0;--i){r[i]=this[i];}r.t=this.t;r.s=this.s;}// (protected) set from integer value x, -DV <= x < DV +function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+this.DV;else this.t=0;}// return bigint initialized to value +function nbv(i){var r=nbi();r.fromInt(i);return r;}// (protected) set from string and radix +function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;// byte array +else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return;}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&0xff:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue;}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<>this.DB-sh;}else this[this.t-1]|=x<=this.DB)sh-=this.DB;}if(k==8&&(s[0]&0x80)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<0&&this[this.t-1]==c){--this.t;}}// (public) return string representation in given radix +function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<0){if(p>p)>0){m=true;r=int2char(d);}while(i>=0){if(p>(p+=this.DB-k);}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i;}}if(d>0)m=true;if(m)r+=int2char(d);}}return m?r:"0";}// (public) -this +function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r;}// (public) |this| +function bnAbs(){return this.s<0?this.negate():this;}// (public) return + if this > a, - if this < a, 0 if equal +function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0){if((r=this[i]-a[i])!=0)return r;}return 0;}// returns bit length of the integer x +function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16;}if((t=x>>8)!=0){x=t;r+=8;}if((t=x>>4)!=0){x=t;r+=4;}if((t=x>>2)!=0){x=t;r+=2;}if((t=x>>1)!=0){x=t;r+=1;}return r;}// (public) return the number of bits in "this" +function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM);}// (protected) r = this << n*DB +function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i){r[i+n]=this[i];}for(i=n-1;i>=0;--i){r[i]=0;}r.t=this.t+n;r.s=this.s;}// (protected) r = this >> n*DB +function bnpDRShiftTo(n,r){for(var i=n;i=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<=0;--i){r[i]=0;}r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp();}// (protected) r = this >> n +function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return;}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<>bs;for(var i=ds+1;i>bs;}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<>=this.DB;}if(a.t>=this.DB;}c+=this.s;}else{c+=this.s;while(i>=this.DB;}c-=a.s;}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp();}// (protected) r = this * a, r != this,a (HAC 14.12) +// "this" should be the larger one if appropriate. +function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0){r[i]=0;}for(i=0;i=0){r[i]=0;}for(i=0;i=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1;}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp();}// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) +// r != q, this != m. q or r may be null. +function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r);}else{pm.copyTo(y);pt.copyTo(r);}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<=0){r[r.t++]=1;r.subTo(t,r);}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);// "negative" y so we can replace sub with am later +while(y.t=0){// Estimate quotient digit +var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))0)r.rShiftTo(nsh,r);// Denormalize remainder +if(ts<0)BigInteger.ZERO.subTo(r,r);}// (public) this mod a +function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r;}// Modular reduction using "classic" algorithm +function Classic(m){this.m=m;}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x;}function cRevert(x){return x;}function cReduce(x){x.divRemTo(this.m,null,x);}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}function cSqrTo(x,r){x.squareTo(r);this.reduce(r);}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;// (protected) return "-1/this % 2^DB"; useful for Mont. reduction +// justification: +// xy == 1 (mod m) +// xy = 1+km +// xy(2-xy) = (1+km)(1-km) +// x[y(2-xy)] = 1-k^2m^2 +// x[y(2-xy)] == 1 (mod m^2) +// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 +// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. +// JS multiply "overflows" differently from C/C++, so care is needed here. +function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;// y == 1/x mod 2^2 +y=y*(2-(x&0xf)*y)&0xf;// y == 1/x mod 2^4 +y=y*(2-(x&0xff)*y)&0xff;// y == 1/x mod 2^8 +y=y*(2-((x&0xffff)*y&0xffff))&0xffff;// y == 1/x mod 2^16 +// last step - calculate inverse mod DV directly; +// assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints +y=y*(2-x*y%this.DV)%this.DV;// y == 1/x mod 2^dbits +// we really want the negative inverse, and -DV < y < DV +return y>0?this.DV-y:-y;}// Montgomery reduction +function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&0x7fff;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(r,r);return r;}// x/R mod m +function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r;}// x = x/R mod m (HAC 14.32) +function montReduce(x){while(x.t<=this.mt2){// pad x so am has enough room later +x[x.t++]=0;}for(var i=0;i>15)*this.mpl&this.um)<<15)&x.DM;// use am to combine the multiply-shift-add into one call +j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);// propagate carry +while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++;}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x);}// r = "x^2/R mod m"; x != r +function montSqrTo(x,r){x.squareTo(r);this.reduce(r);}// r = "xy/R mod m"; x,y != r +function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;// (protected) true iff this is even +function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0;}// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) +function bnpExp(e,z){if(e>0xffffffff||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t;}}return z.revert(r);}// (public) this^e % m, 0 <= e < 2^32 +function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z);}// protected +BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;// public +BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;// "constants" +BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);// Copyright (c) 2005-2009 Tom Wu +// All Rights Reserved. +// See "LICENSE" for details. +// Extended JavaScript BN functions, required for RSA private ops. +// Version 1.1: new BigInteger("0", 10) returns "proper" zero +// Version 1.2: square() API, isProbablePrime fix +// (public) +function bnClone(){var r=nbi();this.copyTo(r);return r;}// (public) return value as integer +function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1;}else if(this.t==1)return this[0];else if(this.t==0)return 0;// assumes 16 < DB < 32 +return(this[1]&(1<<32-this.DB)-1)<>24;}// (public) return value as short (assumes DB>=16) +function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16;}// (protected) return x s.t. r^x < DV +function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r));}// (public) 0 if this == 0, 1 if this > 0 +function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1;}// (protected) convert to radix string +function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z);}return z.intValue().toString(b)+r;}// (protected) convert from radix string +function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0;}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0);}if(mi)BigInteger.ZERO.subTo(this,this);}// (protected) alternate constructor +function bnpFromNumber(a,b,c){if("number"==typeof b){// new BigInteger(int,int,RNG) +if(a<2)this.fromInt(1);else{this.fromNumber(a,c);if(!this.testBit(a-1))// force MSB set +this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);// force odd +while(!this.isProbablePrime(b)){this.dAddOffset(2,0);if(this.bitLength()>a)this.subTo(BigInteger.ONE.shiftLeft(a-1),this);}}}else{// new BigInteger(int,RNG) +var x=new Array(),t=a&7;x.length=(a>>3)+1;b.nextBytes(x);if(t>0)x[0]&=(1<0){if(p>p)!=(this.s&this.DM)>>p)r[k++]=d|this.s<=0){if(p<8){d=(this[i]&(1<>(p+=this.DB-8);}else{d=this[i]>>(p-=8)&0xff;if(p<=0){p+=this.DB;--i;}}if((d&0x80)!=0)d|=-256;if(k==0&&(this.s&0x80)!=(d&0x80))++k;if(k>0||d!=this.s)r[k++]=d;}}return r;}function bnEquals(a){return this.compareTo(a)==0;}function bnMin(a){return this.compareTo(a)<0?this:a;}function bnMax(a){return this.compareTo(a)>0?this:a;}// (protected) r = this op a (bitwise) +function bnpBitwiseTo(a,op,r){var i,f,m=Math.min(a.t,this.t);for(i=0;i> n +function bnShiftRight(n){var r=nbi();if(n<0)this.lShiftTo(-n,r);else this.rShiftTo(n,r);return r;}// return index of lowest 1-bit in x, x < 2^31 +function lbit(x){if(x==0)return-1;var r=0;if((x&0xffff)==0){x>>=16;r+=16;}if((x&0xff)==0){x>>=8;r+=8;}if((x&0xf)==0){x>>=4;r+=4;}if((x&3)==0){x>>=2;r+=2;}if((x&1)==0)++r;return r;}// (public) returns index of lowest 1-bit (or -1 if none) +function bnGetLowestSetBit(){for(var i=0;i=this.t)return this.s!=0;return(this[j]&1<>=this.DB;}if(a.t>=this.DB;}c+=this.s;}else{c+=this.s;while(i>=this.DB;}c+=a.s;}r.s=c<0?-1:0;if(c>0)r[i++]=c;else if(c<-1)r[i++]=this.DV+c;r.t=i;r.clamp();}// (public) this + a +function bnAdd(a){var r=nbi();this.addTo(a,r);return r;}// (public) this - a +function bnSubtract(a){var r=nbi();this.subTo(a,r);return r;}// (public) this * a +function bnMultiply(a){var r=nbi();this.multiplyTo(a,r);return r;}// (public) this^2 +function bnSquare(){var r=nbi();this.squareTo(r);return r;}// (public) this / a +function bnDivide(a){var r=nbi();this.divRemTo(a,r,null);return r;}// (public) this % a +function bnRemainder(a){var r=nbi();this.divRemTo(a,null,r);return r;}// (public) [this/a,this%a] +function bnDivideAndRemainder(a){var q=nbi(),r=nbi();this.divRemTo(a,q,r);return new Array(q,r);}// (protected) this *= n, this >= 0, 1 < n < DV +function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp();}// (protected) this += n << w words, this >= 0 +function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w){this[this.t++]=0;}this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w];}}// A "null" reducer +function NullExp(){}function nNop(x){return x;}function nMulTo(x,y,r){x.multiplyTo(y,r);}function nSqrTo(x,r){x.squareTo(r);}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;// (public) this^e +function bnPow(e){return this.exp(e,new NullExp());}// (protected) r = lower n words of "this * a", a.t <= n +// "this" should be the larger one if appropriate. +function bnpMultiplyLowerTo(a,n,r){var i=Math.min(this.t+a.t,n);r.s=0;// assumes a,this >= 0 +r.t=i;while(i>0){r[--i]=0;}var j;for(j=r.t-this.t;i 0 +// "this" should be the larger one if appropriate. +function bnpMultiplyUpperTo(a,n,r){--n;var i=r.t=this.t+a.t-n;r.s=0;// assumes a,this >= 0 +while(--i>=0){r[i]=0;}for(i=Math.max(n-this.t,0);i2*this.m.t)return x.mod(this.m);else if(x.compareTo(this.m)<0)return x;else{var r=nbi();x.copyTo(r);this.reduce(r);return r;}}function barrettRevert(x){return x;}// x = x mod m (HAC 14.42) +function barrettReduce(x){x.drShiftTo(this.m.t-1,this.r2);if(x.t>this.m.t+1){x.t=this.m.t+1;x.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(x.compareTo(this.r2)<0){x.dAddOffset(1,this.m.t+1);}x.subTo(this.r2,x);while(x.compareTo(this.m)>=0){x.subTo(this.m,x);}}// r = x^2 mod m; x != r +function barrettSqrTo(x,r){x.squareTo(r);this.reduce(r);}// r = x*y mod m; x,y != r +function barrettMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;// (public) this^e % m (HAC 14.85) +function bnModPow(e,m){var i=e.bitLength(),k,r=nbv(1),z;if(i<=0)return r;else if(i<18)k=1;else if(i<48)k=3;else if(i<144)k=4;else if(i<768)k=5;else k=6;if(i<8)z=new Classic(m);else if(m.isEven())z=new Barrett(m);else z=new Montgomery(m);// precomputation +var g=new Array(),n=3,k1=k-1,km=(1<1){var g2=nbi();z.sqrTo(g[1],g2);while(n<=km){g[n]=nbi();z.mulTo(g2,g[n-2],g[n]);n+=2;}}var j=e.t-1,w,is1=true,r2=nbi(),t;i=nbits(e[j])-1;while(j>=0){if(i>=k1)w=e[j]>>i-k1&km;else{w=(e[j]&(1<0)w|=e[j-1]>>this.DB+i-k1;}n=k;while((w&1)==0){w>>=1;--n;}if((i-=n)<0){i+=this.DB;--j;}if(is1){// ret == 1, don't bother squaring or multiplying it +g[w].copyTo(r);is1=false;}else{while(n>1){z.sqrTo(r,r2);z.sqrTo(r2,r);n-=2;}if(n>0)z.sqrTo(r,r2);else{t=r;r=r2;r2=t;}z.mulTo(r2,g[w],r);}while(j>=0&&(e[j]&1<0){x.rShiftTo(g,x);y.rShiftTo(g,y);}while(x.signum()>0){if((i=x.getLowestSetBit())>0)x.rShiftTo(i,x);if((i=y.getLowestSetBit())>0)y.rShiftTo(i,y);if(x.compareTo(y)>=0){x.subTo(y,x);x.rShiftTo(1,x);}else{y.subTo(x,y);y.rShiftTo(1,y);}}if(g>0)y.lShiftTo(g,y);return y;}// (protected) this % n, n < 2^26 +function bnpModInt(n){if(n<=0)return 0;var d=this.DV%n,r=this.s<0?n-1:0;if(this.t>0)if(d==0)r=this[0]%n;else for(var i=this.t-1;i>=0;--i){r=(d*r+this[i])%n;}return r;}// (public) 1/this % m (HAC 14.61) +function bnModInverse(m){var ac=m.isEven();if(this.isEven()&&ac||m.signum()==0)return BigInteger.ZERO;var u=m.clone(),v=this.clone();var a=nbv(1),b=nbv(0),c=nbv(0),d=nbv(1);while(u.signum()!=0){while(u.isEven()){u.rShiftTo(1,u);if(ac){if(!a.isEven()||!b.isEven()){a.addTo(this,a);b.subTo(m,b);}a.rShiftTo(1,a);}else if(!b.isEven())b.subTo(m,b);b.rShiftTo(1,b);}while(v.isEven()){v.rShiftTo(1,v);if(ac){if(!c.isEven()||!d.isEven()){c.addTo(this,c);d.subTo(m,d);}c.rShiftTo(1,c);}else if(!d.isEven())d.subTo(m,d);d.rShiftTo(1,d);}if(u.compareTo(v)>=0){u.subTo(v,u);if(ac)a.subTo(c,a);b.subTo(d,b);}else{v.subTo(u,v);if(ac)c.subTo(a,c);d.subTo(b,d);}}if(v.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(d.compareTo(m)>=0)return d.subtract(m);if(d.signum()<0)d.addTo(m,d);else return d;if(d.signum()<0)return d.add(m);else return d;}var lowprimes=[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];var lplim=(1<<26)/lowprimes[lowprimes.length-1];// (public) test primality with certainty >= 1-.5^t +function bnIsProbablePrime(t){var i,x=this.abs();if(x.t==1&&x[0]<=lowprimes[lowprimes.length-1]){for(i=0;i>1;if(t>lowprimes.length)t=lowprimes.length;var a=nbi();for(var i=0;i +// in your main HTML document. +var rng_state;var rng_pool;var rng_pptr;// Mix in a 32-bit integer into the pool +function rng_seed_int(x){rng_pool[rng_pptr++]^=x&255;rng_pool[rng_pptr++]^=x>>8&255;rng_pool[rng_pptr++]^=x>>16&255;rng_pool[rng_pptr++]^=x>>24&255;if(rng_pptr>=rng_psize)rng_pptr-=rng_psize;}// Mix in the current time (w/milliseconds) into the pool +function rng_seed_time(){rng_seed_int(new Date().getTime());}// Initialize the pool with junk if needed. +if(rng_pool==null){rng_pool=new Array();rng_pptr=0;var t;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){// Use webcrypto if available +var ua=new Uint8Array(32);window.crypto.getRandomValues(ua);for(t=0;t<32;++t){rng_pool[rng_pptr++]=ua[t];}}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){// Extract entropy (256 bits) from NS4 RNG if available +var z=window.crypto.random(32);for(t=0;t>>8;rng_pool[rng_pptr++]=t&255;}rng_pptr=0;rng_seed_time();//rng_seed_int(window.screenX); +//rng_seed_int(window.screenY); +}function rng_get_byte(){if(rng_state==null){rng_seed_time();rng_state=prng_newstate();rng_state.init(rng_pool);for(rng_pptr=0;rng_pptr true - * - * _.isFunction(/abc/); - * // => false - */function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator -// in Safari 9 which returns 'object' for typed arrays and other constructors. -var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}module.exports=isFunction; - -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseGetTag=__webpack_require__(37),isObjectLike=__webpack_require__(27);/** `Object#toString` result references. */var symbolTag='[object Symbol]';/** +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseGetTag=__webpack_require__(59),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var symbolTag='[object Symbol]';/** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static @@ -1491,14 +2766,14 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag== */function isSymbol(value){return(typeof value==='undefined'?'undefined':_typeof(value))=='symbol'||isObjectLike(value)&&baseGetTag(value)==symbolTag;}module.exports=isSymbol; /***/ }, -/* 48 */ +/* 74 */ /***/ function(module, exports, __webpack_require__) { "use strict"; 'use strict';exports.__esModule=true;exports.falsy=falsy;var _react=__webpack_require__(0);var func=_react.PropTypes.func;var object=_react.PropTypes.object;var arrayOf=_react.PropTypes.arrayOf;var oneOfType=_react.PropTypes.oneOfType;var element=_react.PropTypes.element;var shape=_react.PropTypes.shape;var string=_react.PropTypes.string;function falsy(props,propName,componentName){if(props[propName])return new Error('<'+componentName+'> should not have a "'+propName+'" prop');}var history=shape({listen:func.isRequired,pushState:func.isRequired,replaceState:func.isRequired,go:func.isRequired});exports.history=history;var location=shape({pathname:string.isRequired,search:string.isRequired,state:object,action:string.isRequired,key:string});exports.location=location;var component=oneOfType([func,string]);exports.component=component;var components=oneOfType([component,object]);exports.components=components;var route=oneOfType([object,element]);exports.route=route;var routes=oneOfType([route,arrayOf(route)]);exports.routes=routes;exports['default']={falsy:falsy,history:history,location:location,component:component,components:components,route:route}; /***/ }, -/* 49 */ +/* 75 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -1512,7 +2787,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag== * * @providesModule DOMProperty * @typechecks static-only - */'use strict';var invariant=__webpack_require__(4);function checkMask(value,bitmask){return(value&bitmask)===bitmask;}var DOMPropertyInjection={/** + */'use strict';var invariant=__webpack_require__(6);function checkMask(value,bitmask){return(value&bitmask)===bitmask;}var DOMPropertyInjection={/** * Mapping from normalized, camelcased property names to a configuration that * specifies how the associated DOM property should be accessed or rendered. */MUST_USE_ATTRIBUTE:0x1,MUST_USE_PROPERTY:0x2,HAS_SIDE_EFFECTS:0x4,HAS_BOOLEAN_VALUE:0x8,HAS_NUMERIC_VALUE:0x10,HAS_POSITIVE_NUMERIC_VALUE:0x20|0x10,HAS_OVERLOADED_BOOLEAN_VALUE:0x40,/** @@ -1609,7 +2884,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag== /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 50 */ +/* 76 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -1622,7 +2897,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag== * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactReconciler - */'use strict';var ReactRef=__webpack_require__(726);/** + */'use strict';var ReactRef=__webpack_require__(965);/** * Helper to call ReactRef.attachRefs with this composite component, split out * to avoid allocations in the transaction mount-ready queue. */function attachRefs(){ReactRef.attachRefs(this,this._currentElement);}var ReactReconciler={/** @@ -1665,7 +2940,7 @@ return;}var refsChanged=ReactRef.shouldUpdateRefs(prevElement,nextElement);if(re */performUpdateIfNecessary:function performUpdateIfNecessary(internalInstance,transaction){internalInstance.performUpdateIfNecessary(transaction);}};module.exports=ReactReconciler; /***/ }, -/* 51 */ +/* 77 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -1679,7 +2954,7 @@ return;}var refsChanged=ReactRef.shouldUpdateRefs(prevElement,nextElement);if(re * * @providesModule SyntheticEvent * @typechecks static-only - */'use strict';var PooledClass=__webpack_require__(42);var assign=__webpack_require__(5);var emptyFunction=__webpack_require__(25);var warning=__webpack_require__(6);/** + */'use strict';var PooledClass=__webpack_require__(64);var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(41);var warning=__webpack_require__(8);/** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/ */var EventInterface={type:null,target:null,// currentTarget is set when dispatching; no use in copying it here @@ -1718,14 +2993,79 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 52 */ +/* 78 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';exports.__esModule=true;exports.connect=exports.Provider=undefined;var _Provider=__webpack_require__(675);var _Provider2=_interopRequireDefault(_Provider);var _connect=__webpack_require__(676);var _connect2=_interopRequireDefault(_connect);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}exports.Provider=_Provider2["default"];exports.connect=_connect2["default"]; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. +module.exports={read:read.bind(undefined,false,undefined),readType:read.bind(undefined,false),write:write,/* semi-private api, used by sshpk-agent */readPartial:read.bind(undefined,true),/* shared with ssh format */readInternal:read,keyTypeToAlg:keyTypeToAlg,algToKeyType:algToKeyType};var assert=__webpack_require__(13);var algs=__webpack_require__(25);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var SSHBuffer=__webpack_require__(192);function algToKeyType(alg){assert.string(alg);if(alg==='ssh-dss')return'dsa';else if(alg==='ssh-rsa')return'rsa';else if(alg==='ssh-ed25519')return'ed25519';else if(alg==='ssh-curve25519')return'curve25519';else if(alg.match(/^ecdsa-sha2-/))return'ecdsa';else throw new Error('Unknown algorithm '+alg);}function keyTypeToAlg(key){assert.object(key);if(key.type==='dsa')return'ssh-dss';else if(key.type==='rsa')return'ssh-rsa';else if(key.type==='ed25519')return'ssh-ed25519';else if(key.type==='curve25519')return'ssh-curve25519';else if(key.type==='ecdsa')return'ecdsa-sha2-'+key.part.curve.data.toString();else throw new Error('Unknown key type '+key.type);}function read(partial,type,buf,options){if(typeof buf==='string')buf=new Buffer(buf);assert.buffer(buf,'buf');var key={};var parts=key.parts=[];var sshbuf=new SSHBuffer({buffer:buf});var alg=sshbuf.readString();assert.ok(!sshbuf.atEnd(),'key must have at least one part');key.type=algToKeyType(alg);var partCount=algs.info[key.type].parts.length;if(type&&type==='private')partCount=algs.privInfo[key.type].parts.length;while(!sshbuf.atEnd()&&parts.length=1,'key must have at least one part');assert.ok(partial||sshbuf.atEnd(),'leftover bytes at end of key');var Constructor=Key;var algInfo=algs.info[key.type];if(type==='private'||algInfo.parts.length!==parts.length){algInfo=algs.privInfo[key.type];Constructor=PrivateKey;}assert.strictEqual(algInfo.parts.length,parts.length);if(key.type==='ecdsa'){var res=/^ecdsa-sha2-(.+)$/.exec(alg);assert.ok(res!==null);assert.strictEqual(res[1],parts[0].data.toString());}var normalized=true;for(var i=0;i*/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(545);var Writable=__webpack_require__(292);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout)item._onTimeout();},msecs);}};// That's not how node.js implements it but the exposed api is the same. +exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){// fn.call() is faster so we optimize for the common use-case +// @see http://jsperf.com/call-apply-segu +if(args){fn.apply(null,args);}else{fn.call(null);}// Prevent ids from leaking +exports.clearImmediate(id);}});return id;};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id];}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(80).setImmediate, __webpack_require__(80).clearImmediate)) + +/***/ }, +/* 81 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;exports.connect=exports.Provider=undefined;var _Provider=__webpack_require__(914);var _Provider2=_interopRequireDefault(_Provider);var _connect=__webpack_require__(915);var _connect2=_interopRequireDefault(_connect);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}exports.Provider=_Provider2["default"];exports.connect=_connect2["default"]; + +/***/ }, +/* 82 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.save=exports.showDifference=exports.showFinal=exports.showOriginal=exports.setMarkdownFormat=exports.setPlaintextFormat=exports.clearCompare=exports.updateFinalCompare=exports.updateOriginalCompare=exports.clearInput=exports.updateFinalInput=exports.updateOriginalInput=undefined;var _requestPromiseNative=__webpack_require__(1038);var _requestPromiseNative2=_interopRequireDefault(_requestPromiseNative);var _v=__webpack_require__(1164);var _v2=_interopRequireDefault(_v);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var updateOriginalInput=exports.updateOriginalInput=function updateOriginalInput(text){return function(dispatch,getState){dispatch({type:'UPDATE_ORIGINAL_INPUT',data:text});if(getState().input.original.length>0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var updateFinalInput=exports.updateFinalInput=function updateFinalInput(text){return function(dispatch,getState){dispatch({type:'UPDATE_FINAL_INPUT',data:text});if(getState().input.final.length>0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var clearInput=exports.clearInput=function clearInput(){return function(dispatch){dispatch({type:'CLEAR_INPUT'});dispatch({type:'SAVE_STATUS_EMPTY'});};};var updateOriginalCompare=exports.updateOriginalCompare=function updateOriginalCompare(text){return{type:'UPDATE_ORIGINAL_COMPARE',data:text};};var updateFinalCompare=exports.updateFinalCompare=function updateFinalCompare(text){return{type:'UPDATE_FINAL_COMPARE',data:text};};var clearCompare=exports.clearCompare=function clearCompare(){return{type:'CLEAR_COMPARE'};};var setPlaintextFormat=exports.setPlaintextFormat=function setPlaintextFormat(){return{type:'SET_PLAINTEXT_FORMAT'};};var setMarkdownFormat=exports.setMarkdownFormat=function setMarkdownFormat(){return{type:'SET_MARKDOWN_FORMAT'};};var showOriginal=exports.showOriginal=function showOriginal(){return{type:'SHOW_ORIGINAL'};};var showFinal=exports.showFinal=function showFinal(){return{type:'SHOW_FINAL'};};var showDifference=exports.showDifference=function showDifference(){return{type:'SHOW_DIFFERENCE'};};var save=exports.save=function save(){return function(dispatch,getState){console.log("!!! SAVING");//generate an id +var id=(0,_v2.default)();dispatch({type:'SAVE_STATUS_ASSIGN_ID',id:id});//set waiting state +dispatch({type:'SAVE_STATUS_WAITING'});var reqOptions={method:'POST',uri:location.origin+'/api/compare/'+id,body:{a:getState().input.original,b:getState().input.final},json:true};//dispatch post request +(0,_requestPromiseNative2.default)(reqOptions).then(function(returnBodyJson){dispatch({type:'SAVE_STATUS_SAVED'});}).catch(function(error){dispatch({type:'SAVE_STATUS_FAILED',error:error});});};}; + +/***/ }, +/* 83 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var Transform=__webpack_require__(16).Transform;var inherits=__webpack_require__(5);var StringDecoder=__webpack_require__(66).StringDecoder;module.exports=CipherBase;inherits(CipherBase,Transform);function CipherBase(hashMode){Transform.call(this);this.hashMode=typeof hashMode==='string';if(this.hashMode){this[hashMode]=this._finalOrDigest;}else{this.final=this._finalOrDigest;}this._decoder=null;this._encoding=null;}CipherBase.prototype.update=function(data,inputEnc,outputEnc){if(typeof data==='string'){data=new Buffer(data,inputEnc);}var outData=this._update(data);if(this.hashMode){return this;}if(outputEnc){outData=this._toString(outData,outputEnc);}return outData;};CipherBase.prototype.setAutoPadding=function(){};CipherBase.prototype.getAuthTag=function(){throw new Error('trying to get auth tag in unsupported state');};CipherBase.prototype.setAuthTag=function(){throw new Error('trying to set auth tag in unsupported state');};CipherBase.prototype.setAAD=function(){throw new Error('trying to set aad in unsupported state');};CipherBase.prototype._transform=function(data,_,next){var err;try{if(this.hashMode){this._update(data);}else{this.push(this._update(data));}}catch(e){err=e;}finally{next(err);}};CipherBase.prototype._flush=function(done){var err;try{this.push(this._final());}catch(e){err=e;}finally{done(err);}};CipherBase.prototype._finalOrDigest=function(outputEnc){var outData=this._final()||new Buffer('');if(outputEnc){outData=this._toString(outData,outputEnc,true);}return outData;};CipherBase.prototype._toString=function(value,enc,fin){if(!this._decoder){this._decoder=new StringDecoder(enc);this._encoding=enc;}if(this._encoding!==enc){throw new Error('can\'t switch encodings');}var out=this._decoder.write(value);if(fin){out+=this._decoder.end();}return out;}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 84 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var inherits=__webpack_require__(5);var md5=__webpack_require__(316);var rmd160=__webpack_require__(1052);var sha=__webpack_require__(1124);var Base=__webpack_require__(83);function HashNoConstructor(hash){Base.call(this,'digest');this._hash=hash;this.buffers=[];}inherits(HashNoConstructor,Base);HashNoConstructor.prototype._update=function(data){this.buffers.push(data);};HashNoConstructor.prototype._final=function(){var buf=Buffer.concat(this.buffers);var r=this._hash(buf);this.buffers=null;return r;};function Hash(hash){Base.call(this,'digest');this._hash=hash;}inherits(Hash,Base);Hash.prototype._update=function(data){this._hash.update(data);};Hash.prototype._final=function(){return this._hash.digest();};module.exports=function createHash(alg){alg=alg.toLowerCase();if('md5'===alg)return new HashNoConstructor(md5);if('rmd160'===alg||'ripemd160'===alg)return new HashNoConstructor(rmd160);return new Hash(sha(alg));}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 85 */ /***/ function(module, exports) { "use strict"; @@ -1743,7 +3083,7 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela */var POP='POP';exports.POP=POP;exports['default']={PUSH:PUSH,REPLACE:REPLACE,POP:POP}; /***/ }, -/* 54 */ +/* 86 */ /***/ function(module, exports) { "use strict"; @@ -1762,18 +3102,18 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela */function decimal(character){var code=typeof character==='string'?character.charCodeAt(0):character;return code>=48&&code<=57;/* 0-9 */} /***/ }, -/* 55 */ +/* 87 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var root=__webpack_require__(17);/** Built-in value references. */var _Symbol=root.Symbol;module.exports=_Symbol; +'use strict';var root=__webpack_require__(31);/** Built-in value references. */var _Symbol=root.Symbol;module.exports=_Symbol; /***/ }, -/* 56 */ +/* 88 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseForOwn=__webpack_require__(147),createBaseEach=__webpack_require__(550);/** +'use strict';var baseForOwn=__webpack_require__(219),createBaseEach=__webpack_require__(763);/** * The base implementation of `_.forEach` without support for iteratee shorthands. * * @private @@ -1783,11 +3123,11 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela */var baseEach=createBaseEach(baseForOwn);module.exports=baseEach; /***/ }, -/* 57 */ +/* 89 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var assignValue=__webpack_require__(89),baseAssignValue=__webpack_require__(145);/** +'use strict';var assignValue=__webpack_require__(146),baseAssignValue=__webpack_require__(217);/** * Copies properties of `source` to `object`. * * @private @@ -1799,11 +3139,11 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index=this._finalSize*8){this._update(this._block);this._block.fill(0);}// to this append the block which is equal to the number l written in binary +// TODO: handle case where l is > Math.pow(2, 29) +this._block.writeInt32BE(l,this._blockSize-4);var hash=this._update(this._block)||this._hash();return enc?hash.toString(enc):hash;};Hash.prototype._update=function(){throw new Error('_update must be implemented by subclass');};module.exports=Hash; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 96 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. +'use strict';/**/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(547);var Writable=__webpack_require__(549);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v-1&&value%1==0&&value false */var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(131)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module))) /***/ }, -/* 74 */ +/* 113 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';module.exports=assert;function assert(val,msg){if(!val)throw new Error(msg||'Assertion failed');}assert.equal=function assertEqual(l,r,msg){if(l!=r)throw new Error(msg||'Assertion failed: '+l+' != '+r);}; + +/***/ }, +/* 114 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;exports.compilePattern=compilePattern;exports.matchPattern=matchPattern;exports.getParamNames=getParamNames;exports.getParams=getParams;exports.formatPattern=formatPattern;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _invariant=__webpack_require__(19);var _invariant2=_interopRequireDefault(_invariant);function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}function escapeSource(string){return escapeRegExp(string).replace(/\/+/g,'/+');}function _compilePattern(pattern){var regexpSource='';var paramNames=[];var tokens=[];var match=undefined,lastIndex=0,matcher=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;while(match=matcher.exec(pattern)){if(match.index!==lastIndex){tokens.push(pattern.slice(lastIndex,match.index));regexpSource+=escapeSource(pattern.slice(lastIndex,match.index));}if(match[1]){regexpSource+='([^/?#]+)';paramNames.push(match[1]);}else if(match[0]==='**'){regexpSource+='([\\s\\S]*)';paramNames.push('splat');}else if(match[0]==='*'){regexpSource+='([\\s\\S]*?)';paramNames.push('splat');}else if(match[0]==='('){regexpSource+='(?:';}else if(match[0]===')'){regexpSource+=')?';}tokens.push(match[0]);lastIndex=matcher.lastIndex;}if(lastIndex!==pattern.length){tokens.push(pattern.slice(lastIndex,pattern.length));regexpSource+=escapeSource(pattern.slice(lastIndex,pattern.length));}return{pattern:pattern,regexpSource:regexpSource,paramNames:paramNames,tokens:tokens};}var CompiledPatternsCache={};function compilePattern(pattern){if(!(pattern in CompiledPatternsCache))CompiledPatternsCache[pattern]=_compilePattern(pattern);return CompiledPatternsCache[pattern];}/** +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. +'use strict';/**/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(887);var Writable=__webpack_require__(889);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v65536)throw new Error('requested too many random bytes');// in case browserify isn't using the Uint8Array version +var rawBytes=new global.Uint8Array(size);// This will not work in older browsers. +// See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues +if(size>0){// getRandomValues fails on IE if size == 0 +crypto.getRandomValues(rawBytes);}// phantomjs doesn't like a buffer being passed here +var bytes=new Buffer(rawBytes.buffer);if(typeof cb==='function'){return process.nextTick(function(){cb(null,bytes);});}return bytes;} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17), __webpack_require__(4).Buffer, __webpack_require__(3))) + +/***/ }, +/* 117 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;exports.compilePattern=compilePattern;exports.matchPattern=matchPattern;exports.getParamNames=getParamNames;exports.getParams=getParams;exports.formatPattern=formatPattern;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _invariant=__webpack_require__(33);var _invariant2=_interopRequireDefault(_invariant);function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}function escapeSource(string){return escapeRegExp(string).replace(/\/+/g,'/+');}function _compilePattern(pattern){var regexpSource='';var paramNames=[];var tokens=[];var match=undefined,lastIndex=0,matcher=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;while(match=matcher.exec(pattern)){if(match.index!==lastIndex){tokens.push(pattern.slice(lastIndex,match.index));regexpSource+=escapeSource(pattern.slice(lastIndex,match.index));}if(match[1]){regexpSource+='([^/?#]+)';paramNames.push(match[1]);}else if(match[0]==='**'){regexpSource+='([\\s\\S]*)';paramNames.push('splat');}else if(match[0]==='*'){regexpSource+='([\\s\\S]*?)';paramNames.push('splat');}else if(match[0]==='('){regexpSource+='(?:';}else if(match[0]===')'){regexpSource+=')?';}tokens.push(match[0]);lastIndex=matcher.lastIndex;}if(lastIndex!==pattern.length){tokens.push(pattern.slice(lastIndex,pattern.length));regexpSource+=escapeSource(pattern.slice(lastIndex,pattern.length));}return{pattern:pattern,regexpSource:regexpSource,paramNames:paramNames,tokens:tokens};}var CompiledPatternsCache={};function compilePattern(pattern){if(!(pattern in CompiledPatternsCache))CompiledPatternsCache[pattern]=_compilePattern(pattern);return CompiledPatternsCache[pattern];}/** * Attempts to match a pattern on the given pathname. Patterns may use * the following special characters: * @@ -2231,7 +3682,7 @@ remainingPathname='';}paramValues=match.slice(1).map(function(v){return v!=null? /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 75 */ +/* 118 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2244,7 +3695,7 @@ remainingPathname='';}paramValues=match.slice(1).map(function(v){return v!=null? * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginHub - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var EventPluginRegistry=__webpack_require__(303);var EventPluginUtils=__webpack_require__(702);var ReactErrorUtils=__webpack_require__(316);var accumulateInto=__webpack_require__(325);var forEachAccumulated=__webpack_require__(326);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var EventPluginRegistry=__webpack_require__(412);var EventPluginUtils=__webpack_require__(941);var ReactErrorUtils=__webpack_require__(425);var accumulateInto=__webpack_require__(434);var forEachAccumulated=__webpack_require__(435);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Internal store for event listeners */var listenerBank={};/** * Internal queue of events that have accumulated their dispatches and are @@ -2342,7 +3793,7 @@ ReactErrorUtils.rethrowCaughtError();},/** /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 76 */ +/* 119 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2355,7 +3806,7 @@ ReactErrorUtils.rethrowCaughtError();},/** * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPropagators - */'use strict';var EventConstants=__webpack_require__(32);var EventPluginHub=__webpack_require__(75);var warning=__webpack_require__(6);var accumulateInto=__webpack_require__(325);var forEachAccumulated=__webpack_require__(326);var PropagationPhases=EventConstants.PropagationPhases;var getListener=EventPluginHub.getListener;/** + */'use strict';var EventConstants=__webpack_require__(51);var EventPluginHub=__webpack_require__(118);var warning=__webpack_require__(8);var accumulateInto=__webpack_require__(434);var forEachAccumulated=__webpack_require__(435);var PropagationPhases=EventConstants.PropagationPhases;var getListener=EventPluginHub.getListener;/** * Some event types have a notion of different registration names for different * "phases" of propagation. This finds listeners by a given phase. */function listenerAtPhase(id,event,propagationPhase){var registrationName=event.dispatchConfig.phasedRegistrationNames[propagationPhase];return getListener(id,registrationName);}/** @@ -2393,7 +3844,7 @@ ReactErrorUtils.rethrowCaughtError();},/** /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 77 */ +/* 120 */ /***/ function(module, exports) { "use strict"; @@ -2419,7 +3870,7 @@ var ReactInstanceMap={/** */remove:function remove(key){key._reactInternalInstance=undefined;},get:function get(key){return key._reactInternalInstance;},has:function has(key){return key._reactInternalInstance!==undefined;},set:function set(key,value){key._reactInternalInstance=value;}};module.exports=ReactInstanceMap; /***/ }, -/* 78 */ +/* 121 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2433,7 +3884,7 @@ var ReactInstanceMap={/** * * @providesModule SyntheticUIEvent * @typechecks static-only - */'use strict';var SyntheticEvent=__webpack_require__(51);var getEventTarget=__webpack_require__(178);/** + */'use strict';var SyntheticEvent=__webpack_require__(77);var getEventTarget=__webpack_require__(252);/** * @interface UIEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */var UIEventInterface={view:function view(event){if(event.view){return event.view;}var target=getEventTarget(event);if(target!=null&&target.window===target){// target is a window object @@ -2446,27 +3897,167 @@ if(doc){return doc.defaultView||doc.parentWindow;}else{return window;}},detail:f */function SyntheticUIEvent(dispatchConfig,dispatchMarker,nativeEvent,nativeEventTarget){SyntheticEvent.call(this,dispatchConfig,dispatchMarker,nativeEvent,nativeEventTarget);}SyntheticEvent.augmentClass(SyntheticUIEvent,UIEventInterface);module.exports=SyntheticUIEvent; /***/ }, -/* 79 */ +/* 122 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2016 Joyent, Inc. +module.exports=Certificate;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var errs=__webpack_require__(54);var util=__webpack_require__(10);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var Identity=__webpack_require__(125);var formats={};formats['openssh']=__webpack_require__(1130);formats['x509']=__webpack_require__(543);formats['pem']=__webpack_require__(1131);var CertificateParseError=errs.CertificateParseError;var InvalidAlgorithmError=errs.InvalidAlgorithmError;function Certificate(opts){assert.object(opts,'options');assert.arrayOfObject(opts.subjects,'options.subjects');utils.assertCompatible(opts.subjects[0],Identity,[1,0],'options.subjects');utils.assertCompatible(opts.subjectKey,Key,[1,0],'options.subjectKey');utils.assertCompatible(opts.issuer,Identity,[1,0],'options.issuer');if(opts.issuerKey!==undefined){utils.assertCompatible(opts.issuerKey,Key,[1,0],'options.issuerKey');}assert.object(opts.signatures,'options.signatures');assert.buffer(opts.serial,'options.serial');assert.date(opts.validFrom,'options.validFrom');assert.date(opts.validUntil,'optons.validUntil');this._hashCache={};this.subjects=opts.subjects;this.issuer=opts.issuer;this.subjectKey=opts.subjectKey;this.issuerKey=opts.issuerKey;this.signatures=opts.signatures;this.serial=opts.serial;this.validFrom=opts.validFrom;this.validUntil=opts.validUntil;}Certificate.formats=formats;Certificate.prototype.toBuffer=function(format,options){if(format===undefined)format='x509';assert.string(format,'format');assert.object(formats[format],'formats[format]');assert.optionalObject(options,'options');return formats[format].write(this,options);};Certificate.prototype.toString=function(format,options){if(format===undefined)format='pem';return this.toBuffer(format,options).toString();};Certificate.prototype.fingerprint=function(algo){if(algo===undefined)algo='sha256';assert.string(algo,'algorithm');var opts={type:'certificate',hash:this.hash(algo),algorithm:algo};return new Fingerprint(opts);};Certificate.prototype.hash=function(algo){assert.string(algo,'algorithm');algo=algo.toLowerCase();if(algs.hashAlgs[algo]===undefined)throw new InvalidAlgorithmError(algo);if(this._hashCache[algo])return this._hashCache[algo];var hash=crypto.createHash(algo).update(this.toBuffer('x509')).digest();this._hashCache[algo]=hash;return hash;};Certificate.prototype.isExpired=function(when){if(when===undefined)when=new Date();return!(when.getTime()>=this.validFrom.getTime()&&when.getTime()2){alg='md5';if(parts[0].toLowerCase()==='md5')parts=parts.slice(1);parts=parts.join('');/*JSSTYLED*/var md5RE=/^[a-fA-F0-9]+$/;if(!md5RE.test(parts))throw new FingerprintFormatError(fp);try{hash=new Buffer(parts,'hex');}catch(e){throw new FingerprintFormatError(fp);}}if(alg===undefined)throw new FingerprintFormatError(fp);if(algs.hashAlgs[alg]===undefined)throw new InvalidAlgorithmError(alg);if(enAlgs!==undefined){enAlgs=enAlgs.map(function(a){return a.toLowerCase();});if(enAlgs.indexOf(alg)===-1)throw new InvalidAlgorithmError(alg);}return new Fingerprint({algorithm:alg,hash:hash,type:options.type||'key'});};function addColons(s){/*JSSTYLED*/return s.replace(/(.{2})(?=.)/g,'$1:');}function base64Strip(s){/*JSSTYLED*/return s.replace(/=*$/,'');}function sshBase64Format(alg,h){return alg.toUpperCase()+':'+base64Strip(h);}Fingerprint.isFingerprint=function(obj,ver){return utils.isCompatible(obj,Fingerprint,ver);};/* + * API versions for Fingerprint: + * [1,0] -- initial ver + * [1,1] -- first tagged ver + */Fingerprint.prototype._sshpkApiVersion=[1,1];Fingerprint._oldVersionDetect=function(obj){assert.func(obj.toString);assert.func(obj.matches);return[1,0];}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 124 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. +module.exports={read:read,readPkcs8:readPkcs8,write:write,writePkcs8:writePkcs8,readECDSACurve:readECDSACurve,writeECDSACurve:writeECDSACurve};var assert=__webpack_require__(13);var asn1=__webpack_require__(56);var algs=__webpack_require__(25);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var pem=__webpack_require__(65);function read(buf,options){return pem.read(buf,options,'pkcs8');}function write(key,options){return pem.write(key,options,'pkcs8');}/* Helper to read in a single mpint */function readMPInt(der,nm){assert.strictEqual(der.peek(),asn1.Ber.Integer,nm+' is not an Integer');return utils.mpNormalize(der.readString(asn1.Ber.Integer,true));}function readPkcs8(alg,type,der){/* Private keys in pkcs#8 format have a weird extra int */if(der.peek()===asn1.Ber.Integer){assert.strictEqual(type,'private','unexpected Integer at start of public key');der.readString(asn1.Ber.Integer,true);}der.readSequence();var next=der.offset+der.length;var oid=der.readOID();switch(oid){case'1.2.840.113549.1.1.1':der._offset=next;if(type==='public')return readPkcs8RSAPublic(der);else return readPkcs8RSAPrivate(der);case'1.2.840.10040.4.1':if(type==='public')return readPkcs8DSAPublic(der);else return readPkcs8DSAPrivate(der);case'1.2.840.10045.2.1':if(type==='public')return readPkcs8ECDSAPublic(der);else return readPkcs8ECDSAPrivate(der);default:throw new Error('Unknown key type OID '+oid);}}function readPkcs8RSAPublic(der){// bit string sequence +der.readSequence(asn1.Ber.BitString);der.readByte();der.readSequence();// modulus +var n=readMPInt(der,'modulus');var e=readMPInt(der,'exponent');// now, make the key +var key={type:'rsa',source:der.originalInput,parts:[{name:'e',data:e},{name:'n',data:n}]};return new Key(key);}function readPkcs8RSAPrivate(der){der.readSequence(asn1.Ber.OctetString);der.readSequence();var ver=readMPInt(der,'version');assert.equal(ver[0],0x0,'unknown RSA private key version');// modulus then public exponent +var n=readMPInt(der,'modulus');var e=readMPInt(der,'public exponent');var d=readMPInt(der,'private exponent');var p=readMPInt(der,'prime1');var q=readMPInt(der,'prime2');var dmodp=readMPInt(der,'exponent1');var dmodq=readMPInt(der,'exponent2');var iqmp=readMPInt(der,'iqmp');// now, make the key +var key={type:'rsa',parts:[{name:'n',data:n},{name:'e',data:e},{name:'d',data:d},{name:'iqmp',data:iqmp},{name:'p',data:p},{name:'q',data:q},{name:'dmodp',data:dmodp},{name:'dmodq',data:dmodq}]};return new PrivateKey(key);}function readPkcs8DSAPublic(der){der.readSequence();var p=readMPInt(der,'p');var q=readMPInt(der,'q');var g=readMPInt(der,'g');// bit string sequence +der.readSequence(asn1.Ber.BitString);der.readByte();var y=readMPInt(der,'y');// now, make the key +var key={type:'dsa',parts:[{name:'p',data:p},{name:'q',data:q},{name:'g',data:g},{name:'y',data:y}]};return new Key(key);}function readPkcs8DSAPrivate(der){der.readSequence();var p=readMPInt(der,'p');var q=readMPInt(der,'q');var g=readMPInt(der,'g');der.readSequence(asn1.Ber.OctetString);var x=readMPInt(der,'x');/* The pkcs#8 format does not include the public key */var y=utils.calculateDSAPublic(g,p,x);var key={type:'dsa',parts:[{name:'p',data:p},{name:'q',data:q},{name:'g',data:g},{name:'y',data:y},{name:'x',data:x}]};return new PrivateKey(key);}function readECDSACurve(der){var curveName,curveNames;var j,c,cd;if(der.peek()===asn1.Ber.OID){var oid=der.readOID();curveNames=Object.keys(algs.curves);for(j=0;j0){this.cn=this.componentLookup.cn[0].value;}assert.optionalString(opts.type,'options.type');if(opts.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(DNS_NAME_RE)){this.type='host';this.hostname=this.componentLookup.cn[0].value;}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type='host';this.hostname=this.componentLookup.dc.map(function(c){return c.value;}).join('.');}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type='user';this.uid=this.componentLookup.uid[0].value;}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(DNS_NAME_RE)){this.type='host';this.hostname=this.componentLookup.cn[0].value;}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type='user';this.uid=this.componentLookup.uid[0].value;}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type='email';this.email=this.componentLookup.mail[0].value;}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type='user';this.uid=this.componentLookup.cn[0].value;}else{this.type='unknown';}}else{this.type=opts.type;if(this.type==='host')this.hostname=opts.hostname;else if(this.type==='user')this.uid=opts.uid;else if(this.type==='email')this.email=opts.email;else throw new Error('Unknown type '+this.type);}}Identity.prototype.toString=function(){return this.components.map(function(c){return c.name.toUpperCase()+'='+c.value;}).join(', ');};Identity.prototype.toAsn1=function(der,tag){der.startSequence(tag);this.components.forEach(function(c){der.startSequence(asn1.Ber.Constructor|asn1.Ber.Set);der.startSequence();der.writeOID(c.oid);der.writeString(c.value,asn1.Ber.PrintableString);der.endSequence();der.endSequence();});der.endSequence();};function globMatch(a,b){if(a==='**'||b==='**')return true;var aParts=a.split('.');var bParts=b.split('.');if(aParts.length!==bParts.length)return false;for(var i=0;iuint_max||x<0?(x_pos=Math.abs(x)%uint_max,x<0?uint_max-x_pos:x_pos):x;return ret;}function scrub_vec(v){for(var i=0;i>>8^sx&0xff^0x63;this.SBOX[x]=sx;this.INV_SBOX[sx]=x;x2=d[x];x4=d[x2];x8=d[x4];t=d[sx]*0x101^sx*0x1010100;this.SUB_MIX[0][x]=t<<24|t>>>8;this.SUB_MIX[1][x]=t<<16|t>>>16;this.SUB_MIX[2][x]=t<<8|t>>>24;this.SUB_MIX[3][x]=t;t=x8*0x1010101^x4*0x10001^x2*0x101^x*0x1010100;this.INV_SUB_MIX[0][sx]=t<<24|t>>>8;this.INV_SUB_MIX[1][sx]=t<<16|t>>>16;this.INV_SUB_MIX[2][sx]=t<<8|t>>>24;this.INV_SUB_MIX[3][sx]=t;if(x===0){x=xi=1;}else{x=x2^d[d[d[x8^x2]]];xi^=d[d[xi]];}}return true;};var G=new Global();AES.blockSize=4*4;AES.prototype.blockSize=AES.blockSize;AES.keySize=256/8;AES.prototype.keySize=AES.keySize;function bufferToArray(buf){var len=buf.length/4;var out=new Array(len);var i=-1;while(++i>>24,t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&0xff]<<16|G.SBOX[t>>>8&0xff]<<8|G.SBOX[t&0xff],t^=G.RCON[ksRow/keySize|0]<<24):keySize>6&&ksRow%keySize===4?t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&0xff]<<16|G.SBOX[t>>>8&0xff]<<8|G.SBOX[t&0xff]:void 0,this._keySchedule[ksRow-keySize]^t);}this._invKeySchedule=[];for(invKsRow=0;invKsRow>>24]]^G.INV_SUB_MIX[1][G.SBOX[t>>>16&0xff]]^G.INV_SUB_MIX[2][G.SBOX[t>>>8&0xff]]^G.INV_SUB_MIX[3][G.SBOX[t&0xff]];}return true;};AES.prototype.encryptBlock=function(M){M=bufferToArray(new Buffer(M));var out=this._doCryptBlock(M,this._keySchedule,G.SUB_MIX,G.SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[1],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[3],12);return buf;};AES.prototype.decryptBlock=function(M){M=bufferToArray(new Buffer(M));var temp=[M[3],M[1]];M[1]=temp[0];M[3]=temp[1];var out=this._doCryptBlock(M,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[3],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[1],12);return buf;};AES.prototype.scrub=function(){scrub_vec(this._keySchedule);scrub_vec(this._invKeySchedule);scrub_vec(this._key);};AES.prototype._doCryptBlock=function(M,keySchedule,SUB_MIX,SBOX){var ksRow,s0,s1,s2,s3,t0,t1,t2,t3;s0=M[0]^keySchedule[0];s1=M[1]^keySchedule[1];s2=M[2]^keySchedule[2];s3=M[3]^keySchedule[3];ksRow=4;for(var round=1;round>>24]^SUB_MIX[1][s1>>>16&0xff]^SUB_MIX[2][s2>>>8&0xff]^SUB_MIX[3][s3&0xff]^keySchedule[ksRow++];t1=SUB_MIX[0][s1>>>24]^SUB_MIX[1][s2>>>16&0xff]^SUB_MIX[2][s3>>>8&0xff]^SUB_MIX[3][s0&0xff]^keySchedule[ksRow++];t2=SUB_MIX[0][s2>>>24]^SUB_MIX[1][s3>>>16&0xff]^SUB_MIX[2][s0>>>8&0xff]^SUB_MIX[3][s1&0xff]^keySchedule[ksRow++];t3=SUB_MIX[0][s3>>>24]^SUB_MIX[1][s0>>>16&0xff]^SUB_MIX[2][s1>>>8&0xff]^SUB_MIX[3][s2&0xff]^keySchedule[ksRow++];s0=t0;s1=t1;s2=t2;s3=t3;}t0=(SBOX[s0>>>24]<<24|SBOX[s1>>>16&0xff]<<16|SBOX[s2>>>8&0xff]<<8|SBOX[s3&0xff])^keySchedule[ksRow++];t1=(SBOX[s1>>>24]<<24|SBOX[s2>>>16&0xff]<<16|SBOX[s3>>>8&0xff]<<8|SBOX[s0&0xff])^keySchedule[ksRow++];t2=(SBOX[s2>>>24]<<24|SBOX[s3>>>16&0xff]<<16|SBOX[s0>>>8&0xff]<<8|SBOX[s1&0xff])^keySchedule[ksRow++];t3=(SBOX[s3>>>24]<<24|SBOX[s0>>>16&0xff]<<16|SBOX[s1>>>8&0xff]<<8|SBOX[s2&0xff])^keySchedule[ksRow++];return[fixup_uint32(t0),fixup_uint32(t1),fixup_uint32(t2),fixup_uint32(t3)];};exports.AES=AES; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 130 */ /***/ function(module, exports) { "use strict"; -"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var g;// This works in non-strict mode -g=function(){return this;}();try{// This works if eval is allowed (see CSP) -g=g||Function("return this")()||(1,eval)("this");}catch(e){// This works if the window reference is available -if((typeof window==="undefined"?"undefined":_typeof(window))==="object")g=window;}// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} -module.exports=g; +'use strict';exports['aes-128-ecb']={cipher:'AES',key:128,iv:0,mode:'ECB',type:'block'};exports['aes-192-ecb']={cipher:'AES',key:192,iv:0,mode:'ECB',type:'block'};exports['aes-256-ecb']={cipher:'AES',key:256,iv:0,mode:'ECB',type:'block'};exports['aes-128-cbc']={cipher:'AES',key:128,iv:16,mode:'CBC',type:'block'};exports['aes-192-cbc']={cipher:'AES',key:192,iv:16,mode:'CBC',type:'block'};exports['aes-256-cbc']={cipher:'AES',key:256,iv:16,mode:'CBC',type:'block'};exports['aes128']=exports['aes-128-cbc'];exports['aes192']=exports['aes-192-cbc'];exports['aes256']=exports['aes-256-cbc'];exports['aes-128-cfb']={cipher:'AES',key:128,iv:16,mode:'CFB',type:'stream'};exports['aes-192-cfb']={cipher:'AES',key:192,iv:16,mode:'CFB',type:'stream'};exports['aes-256-cfb']={cipher:'AES',key:256,iv:16,mode:'CFB',type:'stream'};exports['aes-128-cfb8']={cipher:'AES',key:128,iv:16,mode:'CFB8',type:'stream'};exports['aes-192-cfb8']={cipher:'AES',key:192,iv:16,mode:'CFB8',type:'stream'};exports['aes-256-cfb8']={cipher:'AES',key:256,iv:16,mode:'CFB8',type:'stream'};exports['aes-128-cfb1']={cipher:'AES',key:128,iv:16,mode:'CFB1',type:'stream'};exports['aes-192-cfb1']={cipher:'AES',key:192,iv:16,mode:'CFB1',type:'stream'};exports['aes-256-cfb1']={cipher:'AES',key:256,iv:16,mode:'CFB1',type:'stream'};exports['aes-128-ofb']={cipher:'AES',key:128,iv:16,mode:'OFB',type:'stream'};exports['aes-192-ofb']={cipher:'AES',key:192,iv:16,mode:'OFB',type:'stream'};exports['aes-256-ofb']={cipher:'AES',key:256,iv:16,mode:'OFB',type:'stream'};exports['aes-128-ctr']={cipher:'AES',key:128,iv:16,mode:'CTR',type:'stream'};exports['aes-192-ctr']={cipher:'AES',key:192,iv:16,mode:'CTR',type:'stream'};exports['aes-256-ctr']={cipher:'AES',key:256,iv:16,mode:'CTR',type:'stream'};exports['aes-128-gcm']={cipher:'AES',key:128,iv:12,mode:'GCM',type:'auth'};exports['aes-192-gcm']={cipher:'AES',key:192,iv:12,mode:'GCM',type:'auth'};exports['aes-256-gcm']={cipher:'AES',key:256,iv:12,mode:'GCM',type:'auth'}; /***/ }, -/* 80 */ +/* 131 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var xor=__webpack_require__(102);function incr32(iv){var len=iv.length;var item;while(len--){item=iv.readUInt8(len);if(item===255){iv.writeUInt8(0,len);}else{item++;iv.writeUInt8(item,len);break;}}}function getBlock(self){var out=self._cipher.encryptBlock(self._prev);incr32(self._prev);return out;}exports.encrypt=function(self,chunk){while(self._cache.length0){bufs.push(md_buf);}bufs.push(password);if(salt){bufs.push(salt);}md_buf=md5(Buffer.concat(bufs));bufs=[];i=0;if(keyLen>0){while(true){if(keyLen===0){break;}if(i===md_buf.length){break;}key[ki++]=md_buf[i];keyLen--;i++;}}if(ivLen>0&&i!==md_buf.length){while(true){if(ivLen===0){break;}if(i===md_buf.length){break;}iv[ii++]=md_buf[i];ivLen--;i++;}}if(keyLen===0&&ivLen===0){break;}}for(i=0;i=97&&code<=122||/* a-z */code>=65&&code<=90;/* A-Z */} /***/ }, -/* 84 */ +/* 139 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var listCacheClear=__webpack_require__(582),listCacheDelete=__webpack_require__(583),listCacheGet=__webpack_require__(584),listCacheHas=__webpack_require__(585),listCacheSet=__webpack_require__(586);/** +"use strict";/** + * @fileOverview + * Core operations on curve 25519 required for the higher level modules. + *//* + * Copyright (c) 2007, 2013, 2014 Michele Bini + * Copyright (c) 2014 Mega Limited + * under the MIT License. + * + * Authors: Guy K. Kloss, Michele Bini + * + * You should have received a copy of the license along with this program. + */var crypto=__webpack_require__(11);/** + * @exports jodid25519/core + * Core operations on curve 25519 required for the higher level modules. + * + * @description + * Core operations on curve 25519 required for the higher level modules. + * + *

+ * This core code is extracted from Michele Bini's curve255.js implementation, + * which is used as a base for Curve25519 ECDH and Ed25519 EdDSA operations. + *

+ */var ns={};function _setbit(n,c,v){var i=c>>4;var a=n[i];a=a+(1<<(c&0xf))*v;n[i]=a;}function _getbit(n,c){return n[c>>4]>>(c&0xf)&1;}function _ZERO(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}function _ONE(){return[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}// Basepoint. +function _BASE(){return[9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}// return -1, 0, +1 when a is less than, equal, or greater than b +function _bigintcmp(a,b){// The following code is a bit tricky to avoid code branching +var c,abs_r,mask;var r=0;for(c=15;c>=0;c--){var x=a[c];var y=b[c];r=r+(x-y)*(1-r*r);// http://graphics.stanford.edu/~seander/bithacks.html#IntegerAbs +// correct for [-294967295, 294967295] +mask=r>>31;abs_r=r+mask^mask;// http://stackoverflow.com/questions/596467/how-do-i-convert-a-number-to-an-integer-in-javascript +// this rounds towards zero +r=~~((r<<1)/(abs_r+1));}return r;}function _bigintadd(a,b){var r=[];var v;r[0]=(v=a[0]+b[0])&0xffff;r[1]=(v=(v>>>16)+a[1]+b[1])&0xffff;r[2]=(v=(v>>>16)+a[2]+b[2])&0xffff;r[3]=(v=(v>>>16)+a[3]+b[3])&0xffff;r[4]=(v=(v>>>16)+a[4]+b[4])&0xffff;r[5]=(v=(v>>>16)+a[5]+b[5])&0xffff;r[6]=(v=(v>>>16)+a[6]+b[6])&0xffff;r[7]=(v=(v>>>16)+a[7]+b[7])&0xffff;r[8]=(v=(v>>>16)+a[8]+b[8])&0xffff;r[9]=(v=(v>>>16)+a[9]+b[9])&0xffff;r[10]=(v=(v>>>16)+a[10]+b[10])&0xffff;r[11]=(v=(v>>>16)+a[11]+b[11])&0xffff;r[12]=(v=(v>>>16)+a[12]+b[12])&0xffff;r[13]=(v=(v>>>16)+a[13]+b[13])&0xffff;r[14]=(v=(v>>>16)+a[14]+b[14])&0xffff;r[15]=(v>>>16)+a[15]+b[15];return r;}function _bigintsub(a,b){var r=[];var v;r[0]=(v=0x80000+a[0]-b[0])&0xffff;r[1]=(v=(v>>>16)+0x7fff8+a[1]-b[1])&0xffff;r[2]=(v=(v>>>16)+0x7fff8+a[2]-b[2])&0xffff;r[3]=(v=(v>>>16)+0x7fff8+a[3]-b[3])&0xffff;r[4]=(v=(v>>>16)+0x7fff8+a[4]-b[4])&0xffff;r[5]=(v=(v>>>16)+0x7fff8+a[5]-b[5])&0xffff;r[6]=(v=(v>>>16)+0x7fff8+a[6]-b[6])&0xffff;r[7]=(v=(v>>>16)+0x7fff8+a[7]-b[7])&0xffff;r[8]=(v=(v>>>16)+0x7fff8+a[8]-b[8])&0xffff;r[9]=(v=(v>>>16)+0x7fff8+a[9]-b[9])&0xffff;r[10]=(v=(v>>>16)+0x7fff8+a[10]-b[10])&0xffff;r[11]=(v=(v>>>16)+0x7fff8+a[11]-b[11])&0xffff;r[12]=(v=(v>>>16)+0x7fff8+a[12]-b[12])&0xffff;r[13]=(v=(v>>>16)+0x7fff8+a[13]-b[13])&0xffff;r[14]=(v=(v>>>16)+0x7fff8+a[14]-b[14])&0xffff;r[15]=(v>>>16)-8+a[15]-b[15];return r;}function _sqr8h(a7,a6,a5,a4,a3,a2,a1,a0){// 'division by 0x10000' can not be replaced by '>> 16' because +// more than 32 bits of precision are needed similarly +// 'multiplication by 2' cannot be replaced by '<< 1' +var r=[];var v;r[0]=(v=a0*a0)&0xffff;r[1]=(v=(0|v/0x10000)+2*a0*a1)&0xffff;r[2]=(v=(0|v/0x10000)+2*a0*a2+a1*a1)&0xffff;r[3]=(v=(0|v/0x10000)+2*a0*a3+2*a1*a2)&0xffff;r[4]=(v=(0|v/0x10000)+2*a0*a4+2*a1*a3+a2*a2)&0xffff;r[5]=(v=(0|v/0x10000)+2*a0*a5+2*a1*a4+2*a2*a3)&0xffff;r[6]=(v=(0|v/0x10000)+2*a0*a6+2*a1*a5+2*a2*a4+a3*a3)&0xffff;r[7]=(v=(0|v/0x10000)+2*a0*a7+2*a1*a6+2*a2*a5+2*a3*a4)&0xffff;r[8]=(v=(0|v/0x10000)+2*a1*a7+2*a2*a6+2*a3*a5+a4*a4)&0xffff;r[9]=(v=(0|v/0x10000)+2*a2*a7+2*a3*a6+2*a4*a5)&0xffff;r[10]=(v=(0|v/0x10000)+2*a3*a7+2*a4*a6+a5*a5)&0xffff;r[11]=(v=(0|v/0x10000)+2*a4*a7+2*a5*a6)&0xffff;r[12]=(v=(0|v/0x10000)+2*a5*a7+a6*a6)&0xffff;r[13]=(v=(0|v/0x10000)+2*a6*a7)&0xffff;r[14]=(v=(0|v/0x10000)+a7*a7)&0xffff;r[15]=0|v/0x10000;return r;}function _sqrmodp(a){var x=_sqr8h(a[15],a[14],a[13],a[12],a[11],a[10],a[9],a[8]);var z=_sqr8h(a[7],a[6],a[5],a[4],a[3],a[2],a[1],a[0]);var y=_sqr8h(a[15]+a[7],a[14]+a[6],a[13]+a[5],a[12]+a[4],a[11]+a[3],a[10]+a[2],a[9]+a[1],a[8]+a[0]);var r=[];var v;r[0]=(v=0x800000+z[0]+(y[8]-x[8]-z[8]+x[0]-0x80)*38)&0xffff;r[1]=(v=0x7fff80+(v>>>16)+z[1]+(y[9]-x[9]-z[9]+x[1])*38)&0xffff;r[2]=(v=0x7fff80+(v>>>16)+z[2]+(y[10]-x[10]-z[10]+x[2])*38)&0xffff;r[3]=(v=0x7fff80+(v>>>16)+z[3]+(y[11]-x[11]-z[11]+x[3])*38)&0xffff;r[4]=(v=0x7fff80+(v>>>16)+z[4]+(y[12]-x[12]-z[12]+x[4])*38)&0xffff;r[5]=(v=0x7fff80+(v>>>16)+z[5]+(y[13]-x[13]-z[13]+x[5])*38)&0xffff;r[6]=(v=0x7fff80+(v>>>16)+z[6]+(y[14]-x[14]-z[14]+x[6])*38)&0xffff;r[7]=(v=0x7fff80+(v>>>16)+z[7]+(y[15]-x[15]-z[15]+x[7])*38)&0xffff;r[8]=(v=0x7fff80+(v>>>16)+z[8]+y[0]-x[0]-z[0]+x[8]*38)&0xffff;r[9]=(v=0x7fff80+(v>>>16)+z[9]+y[1]-x[1]-z[1]+x[9]*38)&0xffff;r[10]=(v=0x7fff80+(v>>>16)+z[10]+y[2]-x[2]-z[2]+x[10]*38)&0xffff;r[11]=(v=0x7fff80+(v>>>16)+z[11]+y[3]-x[3]-z[3]+x[11]*38)&0xffff;r[12]=(v=0x7fff80+(v>>>16)+z[12]+y[4]-x[4]-z[4]+x[12]*38)&0xffff;r[13]=(v=0x7fff80+(v>>>16)+z[13]+y[5]-x[5]-z[5]+x[13]*38)&0xffff;r[14]=(v=0x7fff80+(v>>>16)+z[14]+y[6]-x[6]-z[6]+x[14]*38)&0xffff;r[15]=0x7fff80+(v>>>16)+z[15]+y[7]-x[7]-z[7]+x[15]*38;_reduce(r);return r;}function _mul8h(a7,a6,a5,a4,a3,a2,a1,a0,b7,b6,b5,b4,b3,b2,b1,b0){// 'division by 0x10000' can not be replaced by '>> 16' because +// more than 32 bits of precision are needed +var r=[];var v;r[0]=(v=a0*b0)&0xffff;r[1]=(v=(0|v/0x10000)+a0*b1+a1*b0)&0xffff;r[2]=(v=(0|v/0x10000)+a0*b2+a1*b1+a2*b0)&0xffff;r[3]=(v=(0|v/0x10000)+a0*b3+a1*b2+a2*b1+a3*b0)&0xffff;r[4]=(v=(0|v/0x10000)+a0*b4+a1*b3+a2*b2+a3*b1+a4*b0)&0xffff;r[5]=(v=(0|v/0x10000)+a0*b5+a1*b4+a2*b3+a3*b2+a4*b1+a5*b0)&0xffff;r[6]=(v=(0|v/0x10000)+a0*b6+a1*b5+a2*b4+a3*b3+a4*b2+a5*b1+a6*b0)&0xffff;r[7]=(v=(0|v/0x10000)+a0*b7+a1*b6+a2*b5+a3*b4+a4*b3+a5*b2+a6*b1+a7*b0)&0xffff;r[8]=(v=(0|v/0x10000)+a1*b7+a2*b6+a3*b5+a4*b4+a5*b3+a6*b2+a7*b1)&0xffff;r[9]=(v=(0|v/0x10000)+a2*b7+a3*b6+a4*b5+a5*b4+a6*b3+a7*b2)&0xffff;r[10]=(v=(0|v/0x10000)+a3*b7+a4*b6+a5*b5+a6*b4+a7*b3)&0xffff;r[11]=(v=(0|v/0x10000)+a4*b7+a5*b6+a6*b5+a7*b4)&0xffff;r[12]=(v=(0|v/0x10000)+a5*b7+a6*b6+a7*b5)&0xffff;r[13]=(v=(0|v/0x10000)+a6*b7+a7*b6)&0xffff;r[14]=(v=(0|v/0x10000)+a7*b7)&0xffff;r[15]=0|v/0x10000;return r;}function _mulmodp(a,b){// Karatsuba multiplication scheme: x*y = (b^2+b)*x1*y1 - +// b*(x1-x0)*(y1-y0) + (b+1)*x0*y0 +var x=_mul8h(a[15],a[14],a[13],a[12],a[11],a[10],a[9],a[8],b[15],b[14],b[13],b[12],b[11],b[10],b[9],b[8]);var z=_mul8h(a[7],a[6],a[5],a[4],a[3],a[2],a[1],a[0],b[7],b[6],b[5],b[4],b[3],b[2],b[1],b[0]);var y=_mul8h(a[15]+a[7],a[14]+a[6],a[13]+a[5],a[12]+a[4],a[11]+a[3],a[10]+a[2],a[9]+a[1],a[8]+a[0],b[15]+b[7],b[14]+b[6],b[13]+b[5],b[12]+b[4],b[11]+b[3],b[10]+b[2],b[9]+b[1],b[8]+b[0]);var r=[];var v;r[0]=(v=0x800000+z[0]+(y[8]-x[8]-z[8]+x[0]-0x80)*38)&0xffff;r[1]=(v=0x7fff80+(v>>>16)+z[1]+(y[9]-x[9]-z[9]+x[1])*38)&0xffff;r[2]=(v=0x7fff80+(v>>>16)+z[2]+(y[10]-x[10]-z[10]+x[2])*38)&0xffff;r[3]=(v=0x7fff80+(v>>>16)+z[3]+(y[11]-x[11]-z[11]+x[3])*38)&0xffff;r[4]=(v=0x7fff80+(v>>>16)+z[4]+(y[12]-x[12]-z[12]+x[4])*38)&0xffff;r[5]=(v=0x7fff80+(v>>>16)+z[5]+(y[13]-x[13]-z[13]+x[5])*38)&0xffff;r[6]=(v=0x7fff80+(v>>>16)+z[6]+(y[14]-x[14]-z[14]+x[6])*38)&0xffff;r[7]=(v=0x7fff80+(v>>>16)+z[7]+(y[15]-x[15]-z[15]+x[7])*38)&0xffff;r[8]=(v=0x7fff80+(v>>>16)+z[8]+y[0]-x[0]-z[0]+x[8]*38)&0xffff;r[9]=(v=0x7fff80+(v>>>16)+z[9]+y[1]-x[1]-z[1]+x[9]*38)&0xffff;r[10]=(v=0x7fff80+(v>>>16)+z[10]+y[2]-x[2]-z[2]+x[10]*38)&0xffff;r[11]=(v=0x7fff80+(v>>>16)+z[11]+y[3]-x[3]-z[3]+x[11]*38)&0xffff;r[12]=(v=0x7fff80+(v>>>16)+z[12]+y[4]-x[4]-z[4]+x[12]*38)&0xffff;r[13]=(v=0x7fff80+(v>>>16)+z[13]+y[5]-x[5]-z[5]+x[13]*38)&0xffff;r[14]=(v=0x7fff80+(v>>>16)+z[14]+y[6]-x[6]-z[6]+x[14]*38)&0xffff;r[15]=0x7fff80+(v>>>16)+z[15]+y[7]-x[7]-z[7]+x[15]*38;_reduce(r);return r;}function _reduce(arr){var aCopy=arr.slice(0);var choice=[arr,aCopy];var v=arr[15];// Use the dummy copy instead of just returning to be more constant time. +var a=choice[v<0x8000&1];a[15]=v&0x7fff;// >32-bits of precision are required here so '/ 0x8000' can not be +// replaced by the arithmetic equivalent '>>> 15' +v=(0|v/0x8000)*19;a[0]=(v+=a[0])&0xffff;v=v>>>16;a[1]=(v+=a[1])&0xffff;v=v>>>16;a[2]=(v+=a[2])&0xffff;v=v>>>16;a[3]=(v+=a[3])&0xffff;v=v>>>16;a[4]=(v+=a[4])&0xffff;v=v>>>16;a[5]=(v+=a[5])&0xffff;v=v>>>16;a[6]=(v+=a[6])&0xffff;v=v>>>16;a[7]=(v+=a[7])&0xffff;v=v>>>16;a[8]=(v+=a[8])&0xffff;v=v>>>16;a[9]=(v+=a[9])&0xffff;v=v>>>16;a[10]=(v+=a[10])&0xffff;v=v>>>16;a[11]=(v+=a[11])&0xffff;v=v>>>16;a[12]=(v+=a[12])&0xffff;v=v>>>16;a[13]=(v+=a[13])&0xffff;v=v>>>16;a[14]=(v+=a[14])&0xffff;v=v>>>16;a[15]+=v;}function _addmodp(a,b){var r=[];var v;r[0]=(v=((0|a[15]>>>15)+(0|b[15]>>>15))*19+a[0]+b[0])&0xffff;r[1]=(v=(v>>>16)+a[1]+b[1])&0xffff;r[2]=(v=(v>>>16)+a[2]+b[2])&0xffff;r[3]=(v=(v>>>16)+a[3]+b[3])&0xffff;r[4]=(v=(v>>>16)+a[4]+b[4])&0xffff;r[5]=(v=(v>>>16)+a[5]+b[5])&0xffff;r[6]=(v=(v>>>16)+a[6]+b[6])&0xffff;r[7]=(v=(v>>>16)+a[7]+b[7])&0xffff;r[8]=(v=(v>>>16)+a[8]+b[8])&0xffff;r[9]=(v=(v>>>16)+a[9]+b[9])&0xffff;r[10]=(v=(v>>>16)+a[10]+b[10])&0xffff;r[11]=(v=(v>>>16)+a[11]+b[11])&0xffff;r[12]=(v=(v>>>16)+a[12]+b[12])&0xffff;r[13]=(v=(v>>>16)+a[13]+b[13])&0xffff;r[14]=(v=(v>>>16)+a[14]+b[14])&0xffff;r[15]=(v>>>16)+(a[15]&0x7fff)+(b[15]&0x7fff);return r;}function _submodp(a,b){var r=[];var v;r[0]=(v=0x80000+((0|a[15]>>>15)-(0|b[15]>>>15)-1)*19+a[0]-b[0])&0xffff;r[1]=(v=(v>>>16)+0x7fff8+a[1]-b[1])&0xffff;r[2]=(v=(v>>>16)+0x7fff8+a[2]-b[2])&0xffff;r[3]=(v=(v>>>16)+0x7fff8+a[3]-b[3])&0xffff;r[4]=(v=(v>>>16)+0x7fff8+a[4]-b[4])&0xffff;r[5]=(v=(v>>>16)+0x7fff8+a[5]-b[5])&0xffff;r[6]=(v=(v>>>16)+0x7fff8+a[6]-b[6])&0xffff;r[7]=(v=(v>>>16)+0x7fff8+a[7]-b[7])&0xffff;r[8]=(v=(v>>>16)+0x7fff8+a[8]-b[8])&0xffff;r[9]=(v=(v>>>16)+0x7fff8+a[9]-b[9])&0xffff;r[10]=(v=(v>>>16)+0x7fff8+a[10]-b[10])&0xffff;r[11]=(v=(v>>>16)+0x7fff8+a[11]-b[11])&0xffff;r[12]=(v=(v>>>16)+0x7fff8+a[12]-b[12])&0xffff;r[13]=(v=(v>>>16)+0x7fff8+a[13]-b[13])&0xffff;r[14]=(v=(v>>>16)+0x7fff8+a[14]-b[14])&0xffff;r[15]=(v>>>16)+0x7ff8+(a[15]&0x7fff)-(b[15]&0x7fff);return r;}function _invmodp(a){var c=a;var i=250;while(--i){a=_sqrmodp(a);a=_mulmodp(a,c);}a=_sqrmodp(a);a=_sqrmodp(a);a=_mulmodp(a,c);a=_sqrmodp(a);a=_sqrmodp(a);a=_mulmodp(a,c);a=_sqrmodp(a);a=_mulmodp(a,c);return a;}function _mulasmall(a){// 'division by 0x10000' can not be replaced by '>> 16' because +// more than 32 bits of precision are needed +var m=121665;var r=[];var v;r[0]=(v=a[0]*m)&0xffff;r[1]=(v=(0|v/0x10000)+a[1]*m)&0xffff;r[2]=(v=(0|v/0x10000)+a[2]*m)&0xffff;r[3]=(v=(0|v/0x10000)+a[3]*m)&0xffff;r[4]=(v=(0|v/0x10000)+a[4]*m)&0xffff;r[5]=(v=(0|v/0x10000)+a[5]*m)&0xffff;r[6]=(v=(0|v/0x10000)+a[6]*m)&0xffff;r[7]=(v=(0|v/0x10000)+a[7]*m)&0xffff;r[8]=(v=(0|v/0x10000)+a[8]*m)&0xffff;r[9]=(v=(0|v/0x10000)+a[9]*m)&0xffff;r[10]=(v=(0|v/0x10000)+a[10]*m)&0xffff;r[11]=(v=(0|v/0x10000)+a[11]*m)&0xffff;r[12]=(v=(0|v/0x10000)+a[12]*m)&0xffff;r[13]=(v=(0|v/0x10000)+a[13]*m)&0xffff;r[14]=(v=(0|v/0x10000)+a[14]*m)&0xffff;r[15]=(0|v/0x10000)+a[15]*m;_reduce(r);return r;}function _dbl(x,z){var x_2,z_2,m,n,o;m=_sqrmodp(_addmodp(x,z));n=_sqrmodp(_submodp(x,z));o=_submodp(m,n);x_2=_mulmodp(n,m);z_2=_mulmodp(_addmodp(_mulasmall(o),m),o);return[x_2,z_2];}function _sum(x,z,x_p,z_p,x_1){var x_3,z_3,p,q;p=_mulmodp(_submodp(x,z),_addmodp(x_p,z_p));q=_mulmodp(_addmodp(x,z),_submodp(x_p,z_p));x_3=_sqrmodp(_addmodp(p,q));z_3=_mulmodp(_sqrmodp(_submodp(p,q)),x_1);return[x_3,z_3];}function _generateKey(curve25519){var buffer=crypto.randomBytes(32);// For Curve25519 DH keys, we need to apply some bit mask on generated +// keys: +// * clear bit 0, 1, 2 of first byte +// * clear bit 7 of last byte +// * set bit 6 of last byte +if(curve25519===true){buffer[0]&=0xf8;buffer[31]=buffer[31]&0x7f|0x40;}var result=[];for(var i=0;i=0;i--){var value=vector[i];result.push(_HEXCHARS.substr(value>>>12&0x0f,1));result.push(_HEXCHARS.substr(value>>>8&0x0f,1));result.push(_HEXCHARS.substr(value>>>4&0x0f,1));result.push(_HEXCHARS.substr(value&0x0f,1));}return result.join('');}function _hexdecode(vector){var result=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(var i=vector.length-1,l=0;i>=0;i-=4){result[l]=_HEXCHARS.indexOf(vector.charAt(i))|_HEXCHARS.indexOf(vector.charAt(i-1))<<4|_HEXCHARS.indexOf(vector.charAt(i-2))<<8|_HEXCHARS.indexOf(vector.charAt(i-3))<<12;l++;}return result;}var _BASE32CHARS="abcdefghijklmnopqrstuvwxyz234567";var _BASE32VALUES=function(){var result={};for(var i=0;i<_BASE32CHARS.length;i++){result[_BASE32CHARS.charAt(i)]=i;}return result;}();function _base32encode(n){var c;var r="";for(c=0;c<255;c+=5){r=_BASE32CHARS.substr(core.getbit(n,c)+(core.getbit(n,c+1)<<1)+(core.getbit(n,c+2)<<2)+(core.getbit(n,c+3)<<3)+(core.getbit(n,c+4)<<4),1)+r;}return r;}function _base32decode(n){var c=0;var r=core.ZERO();var l=n.length;for(c=0;l>0&&c<255;c+=5){l--;var v=_BASE32VALUES[n.substr(l,1)];core.setbit(r,c,v&1);v>>=1;core.setbit(r,c+1,v&1);v>>=1;core.setbit(r,c+2,v&1);v>>=1;core.setbit(r,c+3,v&1);v>>=1;core.setbit(r,c+4,v&1);}return r;}function _map(f,l){var result=new Array(l.length);for(var i=0;i-1;}module.exports=arrayIncludes; /***/ }, -/* 88 */ +/* 145 */ /***/ function(module, exports) { "use strict"; @@ -2605,11 +4356,11 @@ SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.ha */function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array==null?0:array.length;if(initAccum&&length){accumulator=array[++index];}while(++indexlength?0:length+start;}end=end>length?length:end;if(end<0){end+=length;}length=start>end?0:end-start>>>0;start>>>=0;var result=Array(length);while(++index-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1;}module.exports=includes; /***/ }, -/* 107 */ +/* 164 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseIsArguments=__webpack_require__(509),isObjectLike=__webpack_require__(27);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Built-in value references. */var propertyIsEnumerable=objectProto.propertyIsEnumerable;/** +'use strict';var baseIsArguments=__webpack_require__(722),isObjectLike=__webpack_require__(36);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Built-in value references. */var propertyIsEnumerable=objectProto.propertyIsEnumerable;/** * Checks if `value` is likely an `arguments` object. * * @static @@ -2892,11 +4643,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');};module.exports=isArguments; /***/ }, -/* 108 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isArrayLike=__webpack_require__(26),isObjectLike=__webpack_require__(27);/** +'use strict';var isArrayLike=__webpack_require__(42),isObjectLike=__webpack_require__(36);/** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * @@ -2923,11 +4674,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}module.exports=isArrayLikeObject; /***/ }, -/* 109 */ +/* 166 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseIsEqual=__webpack_require__(148);/** +'use strict';var baseIsEqual=__webpack_require__(220);/** * Performs a deep comparison between two values to determine if they are * equivalent. * @@ -2957,11 +4708,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isEqual(value,other){return baseIsEqual(value,other);}module.exports=isEqual; /***/ }, -/* 110 */ +/* 167 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseGetTag=__webpack_require__(37),getPrototype=__webpack_require__(101),isObjectLike=__webpack_require__(27);/** `Object#toString` result references. */var objectTag='[object Object]';/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** +'use strict';var baseGetTag=__webpack_require__(59),getPrototype=__webpack_require__(158),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var objectTag='[object Object]';/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * @@ -2991,11 +4742,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}module.exports=isPlainObject; /***/ }, -/* 111 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseIsTypedArray=__webpack_require__(514),baseUnary=__webpack_require__(94),nodeUtil=__webpack_require__(596);/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/** +'use strict';var baseIsTypedArray=__webpack_require__(727),baseUnary=__webpack_require__(151),nodeUtil=__webpack_require__(809);/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/** * Checks if `value` is classified as a typed array. * * @static @@ -3014,11 +4765,34 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray; /***/ }, -/* 112 */ +/* 169 */ +/***/ function(module, exports) { + +"use strict"; +"use strict";/** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */function isUndefined(value){return value===undefined;}module.exports=isUndefined; + +/***/ }, +/* 170 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayMap=__webpack_require__(28),baseClone=__webpack_require__(146),baseUnset=__webpack_require__(532),castPath=__webpack_require__(43),copyObject=__webpack_require__(57),flatRest=__webpack_require__(98),getAllKeysIn=__webpack_require__(257);/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** +'use strict';var arrayMap=__webpack_require__(45),baseClone=__webpack_require__(218),baseUnset=__webpack_require__(745),castPath=__webpack_require__(70),copyObject=__webpack_require__(89),flatRest=__webpack_require__(155),getAllKeysIn=__webpack_require__(360);/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** * The opposite of `_.pick`; this method creates an object composed of the * own and inherited enumerable property paths of `object` that are not omitted. * @@ -3040,11 +4814,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var omit=flatRest(function(object,paths){var result={};if(object==null){return result;}var isDeep=false;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result);if(isDeep){result=baseClone(result,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG);}var length=paths.length;while(length--){baseUnset(result,paths[length]);}return result;});module.exports=omit; /***/ }, -/* 113 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var basePick=__webpack_require__(520),flatRest=__webpack_require__(98);/** +'use strict';var basePick=__webpack_require__(733),flatRest=__webpack_require__(155);/** * Creates an object composed of the picked `object` properties. * * @static @@ -3063,11 +4837,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});module.exports=pick; /***/ }, -/* 114 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isObject=__webpack_require__(18),isSymbol=__webpack_require__(47);/** Used as references for various `Number` constants. */var NAN=0/0;/** Used to match leading and trailing whitespace. */var reTrim=/^\s+|\s+$/g;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Built-in method references without a dependency on `root`. */var freeParseInt=parseInt;/** +'use strict';var isObject=__webpack_require__(32),isSymbol=__webpack_require__(73);/** Used as references for various `Number` constants. */var NAN=0/0;/** Used to match leading and trailing whitespace. */var reTrim=/^\s+|\s+$/g;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Built-in method references without a dependency on `root`. */var freeParseInt=parseInt;/** * Converts `value` to a number. * * @static @@ -3092,7 +4866,31 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function toNumber(value){if(typeof value=='number'){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject(other)?other+'':other;}if(typeof value!='string'){return value===0?value:+value;}value=value.replace(reTrim,'');var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}module.exports=toNumber; /***/ }, -/* 115 */ +/* 173 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var TYPED_OK=typeof Uint8Array!=='undefined'&&typeof Uint16Array!=='undefined'&&typeof Int32Array!=='undefined';exports.assign=function(obj/*from1, from2, from3, ...*/){var sources=Array.prototype.slice.call(arguments,1);while(sources.length){var source=sources.shift();if(!source){continue;}if((typeof source==='undefined'?'undefined':_typeof(source))!=='object'){throw new TypeError(source+'must be non-object');}for(var p in source){if(source.hasOwnProperty(p)){obj[p]=source[p];}}}return obj;};// reduce buffer size, avoiding mem copy +exports.shrinkBuf=function(buf,size){if(buf.length===size){return buf;}if(buf.subarray){return buf.subarray(0,size);}buf.length=size;return buf;};var fnTyped={arraySet:function arraySet(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray){dest.set(src.subarray(src_offs,src_offs+len),dest_offs);return;}// Fallback to ordinary array +for(var i=0;i]/;/** + *//* globals MSApp */'use strict';var ExecutionEnvironment=__webpack_require__(18);var WHITESPACE_TEST=/^[ \r\n\t\f]/;var NONVISIBLE_TEST=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/;/** * Set the innerHTML property of a node, ensuring that whitespace is preserved * even in IE8. * @@ -3502,59 +5300,59 @@ node.innerHTML=String.fromCharCode(0xFEFF)+html;// deleteData leaves an empty `T var textNode=node.firstChild;if(textNode.data.length===1){node.removeChild(textNode);}else{textNode.deleteData(0,1);}}else{node.innerHTML=html;}};}}module.exports=setInnerHTML; /***/ }, -/* 123 */ +/* 183 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Portal=__webpack_require__(799);var _Portal2=_interopRequireDefault(_Portal);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Portal2.default; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Portal=__webpack_require__(1055);var _Portal2=_interopRequireDefault(_Portal);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Portal2.default; /***/ }, -/* 124 */ +/* 184 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i */icon:_lib.customPropTypes.itemShorthand,/** A cell may let a user know whether a value is bad. */negative:_react.PropTypes.bool,/** A cell may let a user know whether a value is good. */positive:_react.PropTypes.bool,/** A cell can be selectable. */selectable:_react.PropTypes.bool,/** A cell can specify that its contents should remain on a single line and not wrap. */singleLine:_react.PropTypes.bool,/** A table cell can adjust its text alignment. */textAlign:_react.PropTypes.oneOf(TableCell._meta.props.textAlign),/** A table cell can adjust its text alignment. */verticalAlign:_react.PropTypes.oneOf(TableCell._meta.props.verticalAlign),/** A cell may warn a user. */warning:_react.PropTypes.bool,/** A table can specify the width of individual columns independently. */width:_react.PropTypes.oneOf(TableCell._meta.props.width)};TableCell.create=(0,_lib.createShorthandFactory)(TableCell,function(content){return{content:content};});exports.default=TableCell; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i */icon:_lib.customPropTypes.itemShorthand,/** A cell may let a user know whether a value is bad. */negative:_react.PropTypes.bool,/** A cell may let a user know whether a value is good. */positive:_react.PropTypes.bool,/** A cell can be selectable. */selectable:_react.PropTypes.bool,/** A cell can specify that its contents should remain on a single line and not wrap. */singleLine:_react.PropTypes.bool,/** A table cell can adjust its text alignment. */textAlign:_react.PropTypes.oneOf(TableCell._meta.props.textAlign),/** A table cell can adjust its text alignment. */verticalAlign:_react.PropTypes.oneOf(TableCell._meta.props.verticalAlign),/** A cell may warn a user. */warning:_react.PropTypes.bool,/** A table can specify the width of individual columns independently. */width:_react.PropTypes.oneOf(TableCell._meta.props.width)};TableCell.create=(0,_lib.createShorthandFactory)(TableCell,function(content){return{content:content};});exports.default=TableCell; /***/ }, -/* 125 */ +/* 185 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;itmp.length)limit=tmp.length;o+=buf.write(tmp.slice(i,limit),o);buf[o++]=10;i=limit;}o+=buf.write('-----END '+header+'-----\n',o);return buf.slice(0,o);} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 192 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. +module.exports=SSHBuffer;var assert=__webpack_require__(13);function SSHBuffer(opts){assert.object(opts,'options');if(opts.buffer!==undefined)assert.buffer(opts.buffer,'options.buffer');this._size=opts.buffer?opts.buffer.length:1024;this._buffer=opts.buffer||new Buffer(this._size);this._offset=0;}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset);};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length;};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset);};SSHBuffer.prototype.skip=function(n){this._offset+=n;};SSHBuffer.prototype.expand=function(){this._size*=2;var buf=new Buffer(this._size);this._buffer.copy(buf,0);this._buffer=buf;};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()};};SSHBuffer.prototype.readBuffer=function(){var len=this._buffer.readUInt32BE(this._offset);this._offset+=4;assert.ok(this._offset+len<=this._buffer.length,'length out of bounds at +0x'+this._offset.toString(16)+' (data truncated?)');var buf=this._buffer.slice(this._offset,this._offset+len);this._offset+=len;return buf;};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString();};SSHBuffer.prototype.readCString=function(){var offset=this._offset;while(offsetthis._size){this.expand();}this._buffer.writeUInt32BE(buf.length,this._offset);this._offset+=4;buf.copy(this._buffer,this._offset);this._offset+=buf.length;};SSHBuffer.prototype.writeString=function(str){this.writeBuffer(new Buffer(str,'utf8'));};SSHBuffer.prototype.writeCString=function(str){while(this._offset+1+str.length>this._size){this.expand();}this._buffer.write(str,this._offset);this._offset+=str.length;this._buffer[this._offset++]=0;};SSHBuffer.prototype.writeInt=function(v){while(this._offset+4>this._size){this.expand();}this._buffer.writeUInt32BE(v,this._offset);this._offset+=4;};SSHBuffer.prototype.writeInt64=function(v){assert.buffer(v,'value');if(v.length>8){var lead=v.slice(0,v.length-8);for(var i=0;ithis._size){this.expand();}v.copy(this._buffer,this._offset);this._offset+=8;};SSHBuffer.prototype.writeChar=function(v){while(this._offset+1>this._size){this.expand();}this._buffer[this._offset++]=v;};SSHBuffer.prototype.writePart=function(p){this.writeBuffer(p.data);};SSHBuffer.prototype.write=function(buf){while(this._offset+buf.length>this._size){this.expand();}buf.copy(this._buffer,this._offset);this._offset+=buf.length;}; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 193 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.diff=exports.isShowDifference=exports.isShowFinal=exports.isShowOriginal=exports.isMarkdownFormat=exports.safeInput=undefined;var _reselect=__webpack_require__(1051);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _constants=__webpack_require__(1207);var _dubdiff=__webpack_require__(560);var Dubdiff=_interopRequireWildcard(_dubdiff);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}//per http://redux.js.org/docs/recipes/ComputingDerivedData.html var input=function input(state){return state.input;};var format=function format(state){return state.format;};var show=function show(state){return state.show;};var compare=function compare(state){return state.compare;};var safeInput=exports.safeInput=(0,_reselect.createSelector)([input],function(input){//!!! sanitize the input here and return -return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.createSelector)([format],function(format){return format==_reducers.Format.MARKDOWN;});var isShow=function isShow(type){return(0,_reselect.createSelector)([show],function(show){return show==type;});};var isShowOriginal=exports.isShowOriginal=isShow(_reducers.Show.ORIGINAL);var isShowFinal=exports.isShowFinal=isShow(_reducers.Show.FINAL);var isShowDifference=exports.isShowDifference=isShow(_reducers.Show.DIFFERENCE);var diff=exports.diff=(0,_reselect.createSelector)([format,compare],function(format,compare){return Dubdiff.plaintextDiff(compare.original,compare.final);/* +return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.createSelector)([format],function(format){return format==_constants.Format.MARKDOWN;});var isShow=function isShow(type){return(0,_reselect.createSelector)([show],function(show){return show==type;});};var isShowOriginal=exports.isShowOriginal=isShow(_constants.Show.ORIGINAL);var isShowFinal=exports.isShowFinal=isShow(_constants.Show.FINAL);var isShowDifference=exports.isShowDifference=isShow(_constants.Show.DIFFERENCE);var diff=exports.diff=(0,_reselect.createSelector)([format,compare],function(format,compare){return Dubdiff.plaintextDiff(compare.original,compare.final);/* let diff = JsDiff.diffWords (input.original.replace(/ /g, ' '), input.final.replace(/ /g, ' ')) return diff.map(({added, removed, value})=>({added, removed, value:value.replace(/ /g, ' ')})).map(part => ( part.added ? {part.value} : @@ -3601,17 +5402,133 @@ return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.creat */ /***/ }, -/* 134 */ +/* 194 */ +/***/ function(module, exports) { + +/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; + +/* WEBPACK VAR INJECTION */}.call(exports, {})) + +/***/ }, +/* 195 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';// Copyright 2011 Mark Cavage All rights reserved. +module.exports={newInvalidAsn1Error:function newInvalidAsn1Error(msg){var e=new Error();e.name='InvalidAsn1Error';e.message=msg||'';return e;}}; + +/***/ }, +/* 196 */ +/***/ function(module, exports) { + +"use strict"; +"use strict";// Copyright 2011 Mark Cavage All rights reserved. +module.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,// float +Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}; + +/***/ }, +/* 197 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/*istanbul ignore start*/'use strict';exports.__esModule=true;exports.lineDiff=undefined;exports./*istanbul ignore end*/diffLines=diffLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffTrimmedLines=diffTrimmedLines;var/*istanbul ignore start*/_base=__webpack_require__(35)/*istanbul ignore end*/;/*istanbul ignore start*/var _base2=_interopRequireDefault(_base);/*istanbul ignore end*/var/*istanbul ignore start*/_params=__webpack_require__(220)/*istanbul ignore end*/;/*istanbul ignore start*/function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}/*istanbul ignore end*/var lineDiff=/*istanbul ignore start*/exports./*istanbul ignore end*/lineDiff=new/*istanbul ignore start*/_base2['default']()/*istanbul ignore end*/;lineDiff.tokenize=function(value){var retLines=[],linesAndNewlines=value.split(/(\n|\r\n)/);// Ignore the final empty token that occurs if the string ends with a new line +'use strict';var ciphers=__webpack_require__(582);exports.createCipher=exports.Cipher=ciphers.createCipher;exports.createCipheriv=exports.Cipheriv=ciphers.createCipheriv;var deciphers=__webpack_require__(581);exports.createDecipher=exports.Decipher=deciphers.createDecipher;exports.createDecipheriv=exports.Decipheriv=deciphers.createDecipheriv;var modes=__webpack_require__(130);function getCiphers(){return Object.keys(modes);}exports.listCiphers=exports.getCiphers=getCiphers; + +/***/ }, +/* 198 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var bn=__webpack_require__(14);var randomBytes=__webpack_require__(116);module.exports=crt;function blind(priv){var r=getr(priv);var blinder=r.toRed(bn.mont(priv.modulus)).redPow(new bn(priv.publicExponent)).fromRed();return{blinder:blinder,unblinder:r.invm(priv.modulus)};}function crt(msg,priv){var blinds=blind(priv);var len=priv.modulus.byteLength();var mod=bn.mont(priv.modulus);var blinded=new bn(msg).mul(blinds.blinder).umod(priv.modulus);var c1=blinded.toRed(bn.mont(priv.prime1));var c2=blinded.toRed(bn.mont(priv.prime2));var qinv=priv.coefficient;var p=priv.prime1;var q=priv.prime2;var m1=c1.redPow(priv.exponent1);var m2=c2.redPow(priv.exponent2);m1=m1.fromRed();m2=m2.fromRed();var h=m1.isub(m2).imul(qinv).umod(p);h.imul(q);m2.iadd(h);return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false,len));}crt.getr=getr;function getr(priv){var len=priv.modulus.byteLength();var r=new bn(randomBytes(len));while(r.cmp(priv.modulus)>=0||!r.umod(priv.prime1)||!r.umod(priv.prime2)){r=new bn(randomBytes(len));}return r;} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 199 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function Caseless(dict){this.dict=dict||{};}Caseless.prototype.set=function(name,value,clobber){if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){for(var i in name){this.set(i,name[i],value);}}else{if(typeof clobber==='undefined')clobber=true;var has=this.has(name);if(!clobber&&has)this.dict[has]=this.dict[has]+','+value;else this.dict[has||name]=value;return has;}};Caseless.prototype.has=function(name){var keys=Object.keys(this.dict),name=name.toLowerCase();for(var i=0;iblocksize){key=createHash(alg).update(key).digest();}else if(key.length= 0) error +this.q=q;}function feFpEquals(other){if(other==this)return true;return this.q.equals(other.q)&&this.x.equals(other.x);}function feFpToBigInteger(){return this.x;}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q));}function feFpAdd(b){return new ECFieldElementFp(this.q,this.x.add(b.toBigInteger()).mod(this.q));}function feFpSubtract(b){return new ECFieldElementFp(this.q,this.x.subtract(b.toBigInteger()).mod(this.q));}function feFpMultiply(b){return new ECFieldElementFp(this.q,this.x.multiply(b.toBigInteger()).mod(this.q));}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q));}function feFpDivide(b){return new ECFieldElementFp(this.q,this.x.multiply(b.toBigInteger().modInverse(this.q)).mod(this.q));}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;// ---------------- +// ECPointFp +// constructor +function ECPointFp(curve,x,y,z){this.curve=curve;this.x=x;this.y=y;// Projective coordinates: either zinv == null or z * zinv == 1 +// z and zinv are just BigIntegers, not fieldElements +if(z==null){this.z=BigInteger.ONE;}else{this.z=z;}this.zinv=null;//TODO: compression flag +}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q);}var r=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(r);return this.curve.fromBigInteger(r);}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q);}var r=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(r);return this.curve.fromBigInteger(r);}function pointFpEquals(other){if(other==this)return true;if(this.isInfinity())return other.isInfinity();if(other.isInfinity())return this.isInfinity();var u,v;// u = Y2 * Z1 - Y1 * Z2 +u=other.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(other.z)).mod(this.curve.q);if(!u.equals(BigInteger.ZERO))return false;// v = X2 * Z1 - X1 * Z2 +v=other.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(other.z)).mod(this.curve.q);return v.equals(BigInteger.ZERO);}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(BigInteger.ZERO)&&!this.y.toBigInteger().equals(BigInteger.ZERO);}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z);}function pointFpAdd(b){if(this.isInfinity())return b;if(b.isInfinity())return this;// u = Y2 * Z1 - Y1 * Z2 +var u=b.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(b.z)).mod(this.curve.q);// v = X2 * Z1 - X1 * Z2 +var v=b.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(b.z)).mod(this.curve.q);if(BigInteger.ZERO.equals(v)){if(BigInteger.ZERO.equals(u)){return this.twice();// this == b, so double +}return this.curve.getInfinity();// this = -b, so infinity +}var THREE=new BigInteger("3");var x1=this.x.toBigInteger();var y1=this.y.toBigInteger();var x2=b.x.toBigInteger();var y2=b.y.toBigInteger();var v2=v.square();var v3=v2.multiply(v);var x1v2=x1.multiply(v2);var zu2=u.square().multiply(this.z);// x3 = v * (z2 * (z1 * u^2 - 2 * x1 * v^2) - v^3) +var x3=zu2.subtract(x1v2.shiftLeft(1)).multiply(b.z).subtract(v3).multiply(v).mod(this.curve.q);// y3 = z2 * (3 * x1 * u * v^2 - y1 * v^3 - z1 * u^3) + u * v^3 +var y3=x1v2.multiply(THREE).multiply(u).subtract(y1.multiply(v3)).subtract(zu2.multiply(u)).multiply(b.z).add(u.multiply(v3)).mod(this.curve.q);// z3 = v^3 * z1 * z2 +var z3=v3.multiply(this.z).multiply(b.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(x3),this.curve.fromBigInteger(y3),z3);}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();// TODO: optimized handling of constants +var THREE=new BigInteger("3");var x1=this.x.toBigInteger();var y1=this.y.toBigInteger();var y1z1=y1.multiply(this.z);var y1sqz1=y1z1.multiply(y1).mod(this.curve.q);var a=this.curve.a.toBigInteger();// w = 3 * x1^2 + a * z1^2 +var w=x1.square().multiply(THREE);if(!BigInteger.ZERO.equals(a)){w=w.add(this.z.square().multiply(a));}w=w.mod(this.curve.q);//this.curve.reduce(w); +// x3 = 2 * y1 * z1 * (w^2 - 8 * x1 * y1^2 * z1) +var x3=w.square().subtract(x1.shiftLeft(3).multiply(y1sqz1)).shiftLeft(1).multiply(y1z1).mod(this.curve.q);// y3 = 4 * y1^2 * z1 * (3 * w * x1 - 2 * y1^2 * z1) - w^3 +var y3=w.multiply(THREE).multiply(x1).subtract(y1sqz1.shiftLeft(1)).shiftLeft(2).multiply(y1sqz1).subtract(w.square().multiply(w)).mod(this.curve.q);// z3 = 8 * (y1 * z1)^3 +var z3=y1z1.square().multiply(y1z1).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(x3),this.curve.fromBigInteger(y3),z3);}// Simple NAF (Non-Adjacent Form) multiplication algorithm +// TODO: modularize the multiplication algorithm +function pointFpMultiply(k){if(this.isInfinity())return this;if(k.signum()==0)return this.curve.getInfinity();var e=k;var h=e.multiply(new BigInteger("3"));var neg=this.negate();var R=this;var i;for(i=h.bitLength()-2;i>0;--i){R=R.twice();var hBit=h.testBit(i);var eBit=e.testBit(i);if(hBit!=eBit){R=R.add(hBit?this:neg);}}return R;}// Compute this*j + x*k (simultaneous multiplication) +function pointFpMultiplyTwo(j,x,k){var i;if(j.bitLength()>k.bitLength())i=j.bitLength()-1;else i=k.bitLength()-1;var R=this.curve.getInfinity();var both=this.add(x);while(i>=0){R=R.twice();if(j.testBit(i)){if(k.testBit(i)){R=R.add(both);}else{R=R.add(this);}}else{if(k.testBit(i)){R=R.add(x);}}--i;}return R;}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;// ---------------- +// ECCurveFp +// constructor +function ECCurveFp(q,a,b){this.q=q;this.a=this.fromBigInteger(a);this.b=this.fromBigInteger(b);this.infinity=new ECPointFp(this,null,null);this.reducer=new Barrett(this.q);}function curveFpGetQ(){return this.q;}function curveFpGetA(){return this.a;}function curveFpGetB(){return this.b;}function curveFpEquals(other){if(other==this)return true;return this.q.equals(other.q)&&this.a.equals(other.a)&&this.b.equals(other.b);}function curveFpGetInfinity(){return this.infinity;}function curveFpFromBigInteger(x){return new ECFieldElementFp(this.q,x);}function curveReduce(x){this.reducer.reduce(x);}// for now, work with hex strings because they're easier in JS +function curveFpDecodePointHex(s){switch(parseInt(s.substr(0,2),16)){// first byte +case 0:return this.infinity;case 2:case 3:// point compression not supported yet +return null;case 4:case 6:case 7:var len=(s.length-2)/2;var xHex=s.substr(2,len);var yHex=s.substr(len+2,len);return new ECPointFp(this,this.fromBigInteger(new BigInteger(xHex,16)),this.fromBigInteger(new BigInteger(yHex,16)));default:// unsupported +return null;}}function curveFpEncodePointHex(p){if(p.isInfinity())return"00";var xHex=p.getX().toBigInteger().toString(16);var yHex=p.getY().toBigInteger().toString(16);var oLen=this.getQ().toString(16).length;if(oLen%2!=0)oLen++;while(xHex.length128){var firstWord=this.q.shiftRight(bitLength-64);if(firstWord.intValue()==-1){this.r=BigInteger.ONE.shiftLeft(bitLength).subtract(this.q);}}return this.r;};ECFieldElementFp.prototype.modMult=function(x1,x2){return this.modReduce(x1.multiply(x2));};ECFieldElementFp.prototype.modReduce=function(x){if(this.getR()!=null){var qLen=q.bitLength();while(x.bitLength()>qLen+1){var u=x.shiftRight(qLen);var v=x.subtract(u.shiftLeft(qLen));if(!this.getR().equals(BigInteger.ONE)){u=u.multiply(this.getR());}x=u.add(v);}while(x.compareTo(q)>=0){x=x.subtract(q);}}else{x=x.mod(q);}return x;};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";// p mod 4 == 3 +if(this.q.testBit(1)){var z=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(BigInteger.ONE),this.q));return z.square().equals(this)?z:null;}// p mod 4 == 1 +var qMinusOne=this.q.subtract(BigInteger.ONE);var legendreExponent=qMinusOne.shiftRight(1);if(!this.x.modPow(legendreExponent,this.q).equals(BigInteger.ONE)){return null;}var u=qMinusOne.shiftRight(2);var k=u.shiftLeft(1).add(BigInteger.ONE);var Q=this.x;var fourQ=modDouble(modDouble(Q));var U,V;do{var P;do{P=new BigInteger(this.q.bitLength(),new SecureRandom());}while(P.compareTo(this.q)>=0||!P.multiply(P).subtract(fourQ).modPow(legendreExponent,this.q).equals(qMinusOne));var result=this.lucasSequence(P,Q,k);U=result[0];V=result[1];if(this.modMult(V,V).equals(fourQ)){// Integer division by 2, mod q +if(V.testBit(0)){V=V.add(q);}V=V.shiftRight(1);return new ECFieldElementFp(q,V);}}while(U.equals(BigInteger.ONE)||U.equals(qMinusOne));return null;};ECFieldElementFp.prototype.lucasSequence=function(P,Q,k){var n=k.bitLength();var s=k.getLowestSetBit();var Uh=BigInteger.ONE;var Vl=BigInteger.TWO;var Vh=P;var Ql=BigInteger.ONE;var Qh=BigInteger.ONE;for(var j=n-1;j>=s+1;--j){Ql=this.modMult(Ql,Qh);if(k.testBit(j)){Qh=this.modMult(Ql,Q);Uh=this.modMult(Uh,Vh);Vl=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Vh=this.modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1)));}else{Qh=Ql;Uh=this.modReduce(Uh.multiply(Vl).subtract(Ql));Vh=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Vl=this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));}}Ql=this.modMult(Ql,Qh);Qh=this.modMult(Ql,Q);Uh=this.modReduce(Uh.multiply(Vl).subtract(Ql));Vl=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Ql=this.modMult(Ql,Qh);for(var j=1;j<=s;++j){Uh=this.modMult(Uh,Vl);Vl=this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));Ql=this.modMult(Ql,Ql);}return[Uh,Vl];};var _exports={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};module.exports=_exports; + +/***/ }, +/* 204 */ /***/ function(module, exports) { "use strict"; @@ -3628,29 +5545,186 @@ return window.location.href.split('#')[1]||'';}function replaceHashPath(path){wi */function supportsGoWithoutReloadUsingHash(){var ua=navigator.userAgent;return ua.indexOf('Firefox')===-1;} /***/ }, -/* 136 */ +/* 205 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(24);var _warning2=_interopRequireDefault(_warning);var _extractPath=__webpack_require__(230);var _extractPath2=_interopRequireDefault(_extractPath);function parsePath(path){var pathname=_extractPath2['default'](path);var search='';var hash='';process.env.NODE_ENV!=='production'?_warning2['default'](path===pathname,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',path):undefined;var hashIndex=pathname.indexOf('#');if(hashIndex!==-1){hash=pathname.substring(hashIndex);pathname=pathname.substring(0,hashIndex);}var searchIndex=pathname.indexOf('?');if(searchIndex!==-1){search=pathname.substring(searchIndex);pathname=pathname.substring(0,searchIndex);}if(pathname==='')pathname='/';return{pathname:pathname,search:search,hash:hash};}exports['default']=parsePath;module.exports=exports['default']; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);var _extractPath=__webpack_require__(332);var _extractPath2=_interopRequireDefault(_extractPath);function parsePath(path){var pathname=_extractPath2['default'](path);var search='';var hash='';process.env.NODE_ENV!=='production'?_warning2['default'](path===pathname,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',path):undefined;var hashIndex=pathname.indexOf('#');if(hashIndex!==-1){hash=pathname.substring(hashIndex);pathname=pathname.substring(0,hashIndex);}var searchIndex=pathname.indexOf('?');if(searchIndex!==-1){search=pathname.substring(searchIndex);pathname=pathname.substring(0,searchIndex);}if(pathname==='')pathname='/';return{pathname:pathname,search:search,hash:hash};}exports['default']=parsePath;module.exports=exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 137 */ +/* 206 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(24);var _warning2=_interopRequireDefault(_warning);function runTransitionHook(hook,location,callback){var result=hook(location,callback);if(hook.length<2){// Assume the hook runs synchronously and automatically +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);function runTransitionHook(hook,location,callback){var result=hook(location,callback);if(hook.length<2){// Assume the hook runs synchronously and automatically // call the callback with the return value. callback(result);}else{process.env.NODE_ENV!=='production'?_warning2['default'](result===undefined,'You should not "return" in a transition hook with a callback argument; call the callback instead'):undefined;}}exports['default']=runTransitionHook;module.exports=exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 138 */ +/* 207 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseCreate=__webpack_require__(67),baseLodash=__webpack_require__(150);/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/** +'use strict';var http=__webpack_require__(126);var https=module.exports;for(var key in http){if(http.hasOwnProperty(key))https[key]=http[key];};https.request=function(params,cb){if(!params)params={};params.scheme='https';params.protocol='https:';return http.request.call(this,params,cb);}; + +/***/ }, +/* 208 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +"use strict";/* + * Copyright (c) 2014 Mega Limited + * under the MIT License. + * + * Authors: Guy K. Kloss + * + * You should have received a copy of the license along with this program. + */var dh=__webpack_require__(688);var eddsa=__webpack_require__(689);var curve255=__webpack_require__(209);var utils=__webpack_require__(140);/** + * @exports jodid25519 + * Curve 25519-based cryptography collection. + * + * @description + * EC Diffie-Hellman (ECDH) based on Curve25519 and digital signatures + * (EdDSA) based on Ed25519. + */var ns={};/** Module version indicator as string (format: [major.minor.patch]). */ns.VERSION='0.7.1';ns.dh=dh;ns.eddsa=eddsa;ns.curve255=curve255;ns.utils=utils;module.exports=ns; + +/***/ }, +/* 209 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +"use strict";/** + * @fileOverview + * Core operations on curve 25519 required for the higher level modules. + *//* + * Copyright (c) 2007, 2013, 2014 Michele Bini + * Copyright (c) 2014 Mega Limited + * under the MIT License. + * + * Authors: Guy K. Kloss, Michele Bini + * + * You should have received a copy of the license along with this program. + */var core=__webpack_require__(139);var utils=__webpack_require__(140);/** + * @exports jodid25519/curve255 + * Legacy compatibility module for Michele Bini's previous curve255.js. + * + * @description + * Legacy compatibility module for Michele Bini's previous curve255.js. + * + *

+ * This code presents an API with all key formats as previously available + * from Michele Bini's curve255.js implementation. + *

+ */var ns={};function curve25519_raw(f,c){var a,x_1,q;x_1=c;a=core.dbl(x_1,core.ONE());q=[x_1,core.ONE()];var n=255;while(core.getbit(f,n)==0){n--;// For correct constant-time operation, bit 255 should always be +// set to 1 so the following 'while' loop is never entered. +if(n<0){return core.ZERO();}}n--;var aq=[a,q];while(n>=0){var r,s;var b=core.getbit(f,n);r=core.sum(aq[0][0],aq[0][1],aq[1][0],aq[1][1],x_1);s=core.dbl(aq[1-b][0],aq[1-b][1]);aq[1-b]=s;aq[b]=r;n--;}q=aq[1];q[1]=core.invmodp(q[1]);q[0]=core.mulmodp(q[0],q[1]);core.reduce(q[0]);return q[0];}function curve25519b32(a,b){return _base32encode(curve25519(_base32decode(a),_base32decode(b)));}function curve25519(f,c){if(!c){c=core.BASE();}f[0]&=0xFFF8;f[15]=f[15]&0x7FFF|0x4000;return curve25519_raw(f,c);}function _hexEncodeVector(k){var hexKey=utils.hexEncode(k);// Pad with '0' at the front. +hexKey=new Array(64+1-hexKey.length).join('0')+hexKey;// Invert bytes. +return hexKey.split(/(..)/).reverse().join('');}function _hexDecodeVector(v){// assert(length(x) == 64); +// Invert bytes. +var hexKey=v.split(/(..)/).reverse().join('');return utils.hexDecode(hexKey);}// Expose some functions to the outside through this name space. +/** + * Computes the scalar product of a point on the curve 25519. + * + * This function is used for the DH key-exchange protocol. + * + * Before multiplication, some bit operations are applied to the + * private key to ensure it is a valid Curve25519 secret key. + * It is the user's responsibility to make sure that the private + * key is a uniformly random, secret value. + * + * @function + * @param f {array} + * Private key. + * @param c {array} + * Public point on the curve. If not given, the curve's base point is used. + * @returns {array} + * Key point resulting from scalar product. + */ns.curve25519=curve25519;/** + * Computes the scalar product of a point on the curve 25519. + * + * This variant does not make sure that the private key is valid. + * The user has the responsibility to ensure the private key is + * valid or that this results in a safe protocol. Unless you know + * exactly what you are doing, you should not use this variant, + * please use 'curve25519' instead. + * + * @function + * @param f {array} + * Private key. + * @param c {array} + * Public point on the curve. If not given, the curve's base point is used. + * @returns {array} + * Key point resulting from scalar product. + */ns.curve25519_raw=curve25519_raw;/** + * Encodes the internal representation of a key to a canonical hex + * representation. + * + * This is the format commonly used in other libraries and for + * test vectors, and is equivalent to the hex dump of the key in + * little-endian binary format. + * + * @function + * @param n {array} + * Array representation of key. + * @returns {string} + * Hexadecimal string representation of key. + */ns.hexEncodeVector=_hexEncodeVector;/** + * Decodes a canonical hex representation of a key + * to an internally compatible array representation. + * + * @function + * @param n {string} + * Hexadecimal string representation of key. + * @returns {array} + * Array representation of key. + */ns.hexDecodeVector=_hexDecodeVector;/** + * Encodes the internal representation of a key into a + * hexadecimal representation. + * + * This is a strict positional notation, most significant digit first. + * + * @function + * @param n {array} + * Array representation of key. + * @returns {string} + * Hexadecimal string representation of key. + */ns.hexencode=utils.hexEncode;/** + * Decodes a hex representation of a key to an internally + * compatible array representation. + * + * @function + * @param n {string} + * Hexadecimal string representation of key. + * @returns {array} + * Array representation of key. + */ns.hexdecode=utils.hexDecode;/** + * Encodes the internal representation of a key to a base32 + * representation. + * + * @function + * @param n {array} + * Array representation of key. + * @returns {string} + * Base32 string representation of key. + */ns.base32encode=utils.base32encode;/** + * Decodes a base32 representation of a key to an internally + * compatible array representation. + * + * @function + * @param n {string} + * Base32 string representation of key. + * @returns {array} + * Array representation of key. + */ns.base32decode=utils.base32decode;module.exports=ns; + +/***/ }, +/* 210 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var baseCreate=__webpack_require__(106),baseLodash=__webpack_require__(222);/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/** * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. * * @private @@ -3660,11 +5734,11 @@ callback(result);}else{process.env.NODE_ENV!=='production'?_warning2['default']( LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;module.exports=LazyWrapper; /***/ }, -/* 139 */ +/* 211 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseCreate=__webpack_require__(67),baseLodash=__webpack_require__(150);/** +'use strict';var baseCreate=__webpack_require__(106),baseLodash=__webpack_require__(222);/** * The base constructor for creating `lodash` wrapper objects. * * @private @@ -3673,18 +5747,18 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con */function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined;}LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;module.exports=LodashWrapper; /***/ }, -/* 140 */ +/* 212 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var getNative=__webpack_require__(44),root=__webpack_require__(17);/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map');module.exports=Map; +'use strict';var getNative=__webpack_require__(71),root=__webpack_require__(31);/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map');module.exports=Map; /***/ }, -/* 141 */ +/* 213 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var mapCacheClear=__webpack_require__(587),mapCacheDelete=__webpack_require__(588),mapCacheGet=__webpack_require__(589),mapCacheHas=__webpack_require__(590),mapCacheSet=__webpack_require__(591);/** +'use strict';var mapCacheClear=__webpack_require__(800),mapCacheDelete=__webpack_require__(801),mapCacheGet=__webpack_require__(802),mapCacheHas=__webpack_require__(803),mapCacheSet=__webpack_require__(804);/** * Creates a map cache object to store key-value pairs. * * @private @@ -3694,11 +5768,11 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;module.exports=MapCache; /***/ }, -/* 142 */ +/* 214 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var ListCache=__webpack_require__(84),stackClear=__webpack_require__(602),stackDelete=__webpack_require__(603),stackGet=__webpack_require__(604),stackHas=__webpack_require__(605),stackSet=__webpack_require__(606);/** +'use strict';var ListCache=__webpack_require__(141),stackClear=__webpack_require__(815),stackDelete=__webpack_require__(816),stackGet=__webpack_require__(817),stackHas=__webpack_require__(818),stackSet=__webpack_require__(819);/** * Creates a stack cache object to store key-value pairs. * * @private @@ -3708,7 +5782,7 @@ MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDele Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;module.exports=Stack; /***/ }, -/* 143 */ +/* 215 */ /***/ function(module, exports) { "use strict"; @@ -3723,7 +5797,7 @@ Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.pro */function arrayIncludesWith(array,value,comparator){var index=-1,length=array==null?0:array.length;while(++index-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}module.exports=isLength; /***/ }, -/* 162 */ -/***/ function(module, exports) { +/* 234 */ +/***/ function(module, exports, __webpack_require__) { "use strict"; -"use strict";/** - * Checks if `value` is `undefined`. +'use strict';var baseGetTag=__webpack_require__(59),isArray=__webpack_require__(9),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var stringTag='[object String]';/** + * Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * - * _.isUndefined(void 0); + * _.isString('abc'); * // => true * - * _.isUndefined(null); + * _.isString(1); * // => false - */function isUndefined(value){return value===undefined;}module.exports=isUndefined; + */function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}module.exports=isString; /***/ }, -/* 163 */ +/* 235 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseValues=__webpack_require__(533),keys=__webpack_require__(14);/** +'use strict';var baseValues=__webpack_require__(746),keys=__webpack_require__(23);/** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. @@ -4141,7 +6215,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( */function values(object){return object==null?[]:baseValues(object,keys(object));}module.exports=values; /***/ }, -/* 164 */ +/* 236 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4152,7 +6226,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( * @module parse-entities * @fileoverview Parse HTML character references: fast, spec-compliant, * positional information. - */'use strict';/* Dependencies. */var has=__webpack_require__(65);var characterEntities=__webpack_require__(889);var legacy=__webpack_require__(888);var invalid=__webpack_require__(890);var decimal=__webpack_require__(54);var hexadecimal=__webpack_require__(479);var alphanumerical=__webpack_require__(478);/* Expose. */module.exports=wrapper;/* Methods. */var fromCharCode=String.fromCharCode;var noop=Function.prototype;/* Characters. */var REPLACEMENT='\uFFFD';var FORM_FEED='\f';var AMPERSAND='&';var OCTOTHORP='#';var SEMICOLON=';';var NEWLINE='\n';var X_LOWER='x';var X_UPPER='X';var SPACE=' ';var LESS_THAN='<';var EQUAL='=';var EMPTY='';var TAB='\t';/* Default settings. */var defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:false,nonTerminated:true};/* Reference types. */var NAMED='named';var HEXADECIMAL='hexadecimal';var DECIMAL='decimal';/* Map of bases. */var BASE={};BASE[HEXADECIMAL]=16;BASE[DECIMAL]=10;/* Map of types to tests. Each type of character reference + */'use strict';/* Dependencies. */var has=__webpack_require__(104);var characterEntities=__webpack_require__(1178);var legacy=__webpack_require__(1177);var invalid=__webpack_require__(1179);var decimal=__webpack_require__(86);var hexadecimal=__webpack_require__(682);var alphanumerical=__webpack_require__(681);/* Expose. */module.exports=wrapper;/* Methods. */var fromCharCode=String.fromCharCode;var noop=Function.prototype;/* Characters. */var REPLACEMENT='\uFFFD';var FORM_FEED='\f';var AMPERSAND='&';var OCTOTHORP='#';var SEMICOLON=';';var NEWLINE='\n';var X_LOWER='x';var X_UPPER='X';var SPACE=' ';var LESS_THAN='<';var EQUAL='=';var EMPTY='';var TAB='\t';/* Default settings. */var defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:false,nonTerminated:true};/* Reference types. */var NAMED='named';var HEXADECIMAL='hexadecimal';var DECIMAL='decimal';/* Map of bases. */var BASE={};BASE[HEXADECIMAL]=16;BASE[DECIMAL]=10;/* Map of types to tests. Each type of character reference * accepts different characters. This test is used to * detect whether a reference has ended (as the semicolon * is not strictly needed). */var TESTS={};TESTS[NAMED]=alphanumerical;TESTS[DECIMAL]=decimal;TESTS[HEXADECIMAL]=hexadecimal;/* Warning messages. */var NAMED_NOT_TERMINATED=1;var NUMERIC_NOT_TERMINATED=2;var NAMED_EMPTY=3;var NUMERIC_EMPTY=4;var NAMED_UNKNOWN=5;var NUMERIC_DISALLOWED=6;var NUMERIC_PROHIBITED=7;var NUMERIC_REFERENCE='Numeric character references';var NAMED_REFERENCE='Named character references';var TERMINATED=' must be terminated by a semicolon';var VOID=' cannot be empty';var MESSAGES={};MESSAGES[NAMED_NOT_TERMINATED]=NAMED_REFERENCE+TERMINATED;MESSAGES[NUMERIC_NOT_TERMINATED]=NUMERIC_REFERENCE+TERMINATED;MESSAGES[NAMED_EMPTY]=NAMED_REFERENCE+VOID;MESSAGES[NUMERIC_EMPTY]=NUMERIC_REFERENCE+VOID;MESSAGES[NAMED_UNKNOWN]=NAMED_REFERENCE+' must be known';MESSAGES[NUMERIC_DISALLOWED]=NUMERIC_REFERENCE+' cannot be disallowed';MESSAGES[NUMERIC_PROHIBITED]=NUMERIC_REFERENCE+' cannot be outside the '+'permissible Unicode range';/** @@ -4233,18 +6307,234 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( */function isWarning(code){if(code>=0x0001&&code<=0x0008||code===0x000B||code>=0x000D&&code<=0x001F||code>=0x007F&&code<=0x009F||code>=0xFDD0&&code<=0xFDEF||(code&0xFFFF)===0xFFFF||(code&0xFFFF)===0xFFFE){return true;}return false;} /***/ }, -/* 165 */ +/* 237 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +// resolves . and .. elements in a path array with directory names there +// must be no slashes, empty elements, or device names (c:\) in the array +// (so also no leading and trailing slashes - it does not distinguish +// relative and absolute paths) +function normalizeArray(parts,allowAboveRoot){// if the path tries to go above the root, `up` ends up > 0 +var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==='.'){parts.splice(i,1);}else if(last==='..'){parts.splice(i,1);up++;}else if(up){parts.splice(i,1);up--;}}// if the path is allowed to go above the root, restore leading ..s +if(allowAboveRoot){for(;up--;up){parts.unshift('..');}}return parts;}// Split a filename into [root, dir, basename, ext], unix version +// 'root' is just a slash, or nothing. +var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function splitPath(filename){return splitPathRe.exec(filename).slice(1);};// path.resolve([from ...], to) +// posix version +exports.resolve=function(){var resolvedPath='',resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();// Skip empty and invalid entries +if(typeof path!=='string'){throw new TypeError('Arguments to path.resolve must be strings');}else if(!path){continue;}resolvedPath=path+'/'+resolvedPath;resolvedAbsolute=path.charAt(0)==='/';}// At this point the path should be resolved to a full absolute path, but +// handle relative paths to be safe (might happen when process.cwd() fails) +// Normalize the path +resolvedPath=normalizeArray(filter(resolvedPath.split('/'),function(p){return!!p;}),!resolvedAbsolute).join('/');return(resolvedAbsolute?'/':'')+resolvedPath||'.';};// path.normalize(path) +// posix version +exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==='/';// Normalize the path +path=normalizeArray(filter(path.split('/'),function(p){return!!p;}),!isAbsolute).join('/');if(!path&&!isAbsolute){path='.';}if(path&&trailingSlash){path+='/';}return(isAbsolute?'/':'')+path;};// posix version +exports.isAbsolute=function(path){return path.charAt(0)==='/';};// posix version +exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=='string'){throw new TypeError('Arguments to path.join must be strings');}return p;}).join('/'));};// path.relative(from, to) +// posix version +exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=='')break;}if(start>end)return[];return arr.slice(start,end-start+1);}var fromParts=trim(from.split('/'));var toParts=trim(to.split('/'));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i= 0x80 (not a basic code point)','invalid-input':'Invalid input'},/** Convenience shortcuts */baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode,/** Temporary variable */key;/*--------------------------------------------------------------------------*//** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */function error(type){throw new RangeError(errors[type]);}/** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */function map(array,fn){var length=array.length;var result=[];while(length--){result[length]=fn(array[length]);}return result;}/** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */function mapDomain(string,fn){var parts=string.split('@');var result='';if(parts.length>1){// In email addresses, only the domain name should be punycoded. Leave +// the local part (i.e. everything up to `@`) intact. +result=parts[0]+'@';string=parts[1];}// Avoid `split(regex)` for IE8 compatibility. See #17. +string=string.replace(regexSeparators,'\x2E');var labels=string.split('.');var encoded=map(labels,fn).join('.');return result+encoded;}/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */function ucs2decode(string){var output=[],counter=0,length=string.length,value,extra;while(counter=0xD800&&value<=0xDBFF&&counter0xFFFF){value-=0x10000;output+=stringFromCharCode(value>>>10&0x3FF|0xD800);value=0xDC00|value&0x3FF;}output+=stringFromCharCode(value);return output;}).join('');}/** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */function basicToDigit(codePoint){if(codePoint-48<10){return codePoint-22;}if(codePoint-65<26){return codePoint-65;}if(codePoint-97<26){return codePoint-97;}return base;}/** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */function digitToBasic(digit,flag){// 0..25 map to ASCII a..z or A..Z +// 26..35 map to ASCII 0..9 +return digit+22+75*(digit<26)-((flag!=0)<<5);}/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */function adapt(delta,numPoints,firstTime){var k=0;delta=firstTime?floor(delta/damp):delta>>1;delta+=floor(delta/numPoints);for(;/* no initialization */delta>baseMinusTMin*tMax>>1;k+=base){delta=floor(delta/baseMinusTMin);}return floor(k+(baseMinusTMin+1)*delta/(delta+skew));}/** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */function decode(input){// Don't use UCS-2 +var output=[],inputLength=input.length,out,i=0,n=initialN,bias=initialBias,basic,j,index,oldi,w,k,digit,t,/** Cached calculation results */baseMinusT;// Handle the basic code points: let `basic` be the number of input code +// points before the last delimiter, or `0` if there is none, then copy +// the first basic code points to the output. +basic=input.lastIndexOf(delimiter);if(basic<0){basic=0;}for(j=0;j=0x80){error('not-basic');}output.push(input.charCodeAt(j));}// Main decoding loop: start just after the last delimiter if any basic code +// points were copied; start at the beginning otherwise. +for(index=basic>0?basic+1:0;index=inputLength){error('invalid-input');}digit=basicToDigit(input.charCodeAt(index++));if(digit>=base||digit>floor((maxInt-i)/w)){error('overflow');}i+=digit*w;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(digitfloor(maxInt/baseMinusT)){error('overflow');}w*=baseMinusT;}out=output.length+1;bias=adapt(i-oldi,out,oldi==0);// `i` was supposed to wrap around from `out` to `0`, +// incrementing `n` each time, so we'll fix that now: +if(floor(i/out)>maxInt-n){error('overflow');}n+=floor(i/out);i%=out;// Insert `n` at position `i` of the output +output.splice(i++,0,n);}return ucs2encode(output);}/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,output=[],/** `inputLength` will hold the number of code points in `input`. */inputLength,/** Cached calculation results */handledCPCountPlusOne,baseMinusT,qMinusT;// Convert the input in UCS-2 to Unicode +input=ucs2decode(input);// Cache the length +inputLength=input.length;// Initialize the state +n=initialN;delta=0;bias=initialBias;// Handle the basic code points +for(j=0;j=n&¤tValue state to , +// but guard against overflow +handledCPCountPlusOne=handledCPCount+1;if(m-n>floor((maxInt-delta)/handledCPCountPlusOne)){error('overflow');}delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;jmaxInt){error('overflow');}if(currentValue==n){// Represent delta as a generalized variable-length integer +for(q=delta,k=base;;/* no condition */k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(q + * @memberOf punycode + * @type Object + */'ucs2':{'decode':ucs2decode,'encode':ucs2encode},'decode':decode,'encode':encode,'toASCII':toASCII,'toUnicode':toUnicode};/** Expose `punycode` */// Some AMD build optimizers, like r.js, check for specific condition patterns +// like the following: +if("function"=='function'&&_typeof(__webpack_require__(194))=='object'&&__webpack_require__(194)){!(__WEBPACK_AMD_DEFINE_RESULT__ = function(){return punycode;}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else if(freeExports&&freeModule){if(module.exports==freeExports){// in Node.js, io.js, or RingoJS v0.8.0+ +freeModule.exports=punycode;}else{// in Narwhal or RingoJS v0.7.0- +for(key in punycode){punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);}}}else{// in Rhino or a web browser +root.punycode=punycode;}})(undefined); +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module), __webpack_require__(17))) + +/***/ }, +/* 239 */ /***/ function(module, exports) { "use strict"; "use strict";exports.__esModule=true;exports.loopAsync=loopAsync;exports.mapAsync=mapAsync;function loopAsync(turns,work,callback){var currentTurn=0,isDone=false;function done(){isDone=true;callback.apply(this,arguments);}function next(){if(isDone)return;if(currentTurn=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var _warning=__webpack_require__(24);var _warning2=_interopRequireDefault(_warning);var _historyLibActions=__webpack_require__(53);var _historyLibUseQueries=__webpack_require__(475);var _historyLibUseQueries2=_interopRequireDefault(_historyLibUseQueries);var _computeChangedRoutes2=__webpack_require__(688);var _computeChangedRoutes3=_interopRequireDefault(_computeChangedRoutes2);var _TransitionUtils=__webpack_require__(687);var _isActive2=__webpack_require__(691);var _isActive3=_interopRequireDefault(_isActive2);var _getComponents=__webpack_require__(689);var _getComponents2=_interopRequireDefault(_getComponents);var _matchRoutes=__webpack_require__(693);var _matchRoutes2=_interopRequireDefault(_matchRoutes);function hasAnyProperties(object){for(var p in object){if(object.hasOwnProperty(p))return true;}return false;}/** +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);var _historyLibActions=__webpack_require__(85);var _historyLibUseQueries=__webpack_require__(673);var _historyLibUseQueries2=_interopRequireDefault(_historyLibUseQueries);var _computeChangedRoutes2=__webpack_require__(927);var _computeChangedRoutes3=_interopRequireDefault(_computeChangedRoutes2);var _TransitionUtils=__webpack_require__(926);var _isActive2=__webpack_require__(930);var _isActive3=_interopRequireDefault(_isActive2);var _getComponents=__webpack_require__(928);var _getComponents2=_interopRequireDefault(_getComponents);var _matchRoutes=__webpack_require__(932);var _matchRoutes2=_interopRequireDefault(_matchRoutes);function hasAnyProperties(object){for(var p in object){if(object.hasOwnProperty(p))return true;}return false;}/** * Returns a new createHistory function that may be used to create * history objects that know about routing. * @@ -4296,7 +6586,7 @@ return history.listen(function(location){if(state.location===location){listener( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 167 */ +/* 241 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4309,7 +6599,7 @@ return history.listen(function(location){if(state.location===location){listener( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule CallbackQueue - */'use strict';var PooledClass=__webpack_require__(42);var assign=__webpack_require__(5);var invariant=__webpack_require__(4);/** + */'use strict';var PooledClass=__webpack_require__(64);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);/** * A specialized pseudo-event module to help keep track of components waiting to * be notified when their DOM representations are available for use. * @@ -4340,7 +6630,7 @@ return history.listen(function(location){if(state.location===location){listener( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 168 */ +/* 242 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4354,7 +6644,7 @@ return history.listen(function(location){if(state.location===location){listener( * * @providesModule DOMPropertyOperations * @typechecks static-only - */'use strict';var DOMProperty=__webpack_require__(49);var ReactPerf=__webpack_require__(21);var quoteAttributeValueForBrowser=__webpack_require__(749);var warning=__webpack_require__(6);// Simplified subset + */'use strict';var DOMProperty=__webpack_require__(75);var ReactPerf=__webpack_require__(37);var quoteAttributeValueForBrowser=__webpack_require__(988);var warning=__webpack_require__(8);// Simplified subset var VALID_ATTRIBUTE_NAME_REGEX=/^[a-zA-Z_][\w\.\-]*$/;var illegalAttributeNameCache={};var validatedAttributeNameCache={};function isAttributeNameSafe(attributeName){if(validatedAttributeNameCache.hasOwnProperty(attributeName)){return true;}if(illegalAttributeNameCache.hasOwnProperty(attributeName)){return false;}if(VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)){validatedAttributeNameCache[attributeName]=true;return true;}illegalAttributeNameCache[attributeName]=true;process.env.NODE_ENV!=='production'?warning(false,'Invalid attribute name: `%s`',attributeName):undefined;return false;}function shouldIgnoreValue(propertyInfo,value){return value==null||propertyInfo.hasBooleanValue&&!value||propertyInfo.hasNumericValue&&isNaN(value)||propertyInfo.hasPositiveNumericValue&&value<1||propertyInfo.hasOverloadedBooleanValue&&value===false;}if(process.env.NODE_ENV!=='production'){var reactProps={children:true,dangerouslySetInnerHTML:true,key:true,ref:true};var warnedProperties={};var warnUnknownProperty=function warnUnknownProperty(name){if(reactProps.hasOwnProperty(name)&&reactProps[name]||warnedProperties.hasOwnProperty(name)&&warnedProperties[name]){return;}warnedProperties[name]=true;var lowerCasedName=name.toLowerCase();// data-* attributes should be lowercase; suggest the lowercase version var standardName=DOMProperty.isCustomAttribute(lowerCasedName)?lowerCasedName:DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName)?DOMProperty.getPossibleStandardName[lowerCasedName]:null;// For now, only warn when we have a suggested correction. This prevents // logging too much when using transferPropsTo. @@ -4398,7 +6688,7 @@ node[propName]=value;}}}else if(DOMProperty.isCustomAttribute(name)){DOMProperty /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 169 */ +/* 243 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4412,7 +6702,7 @@ node[propName]=value;}}}else if(DOMProperty.isCustomAttribute(name)){DOMProperty * * @providesModule LinkedValueUtils * @typechecks static-only - */'use strict';var ReactPropTypes=__webpack_require__(322);var ReactPropTypeLocations=__webpack_require__(117);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);var hasReadOnlyValue={'button':true,'checkbox':true,'image':true,'hidden':true,'radio':true,'reset':true,'submit':true};function _assertSingleLink(inputProps){!(inputProps.checkedLink==null||inputProps.valueLink==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a valueLink. If you want to use '+'checkedLink, you probably don\'t want to use valueLink and vice versa.'):invariant(false):undefined;}function _assertValueLink(inputProps){_assertSingleLink(inputProps);!(inputProps.value==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a valueLink and a value or onChange event. If you want '+'to use value or onChange, you probably don\'t want to use valueLink.'):invariant(false):undefined;}function _assertCheckedLink(inputProps){_assertSingleLink(inputProps);!(inputProps.checked==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a checked property or onChange event. '+'If you want to use checked or onChange, you probably don\'t want to '+'use checkedLink'):invariant(false):undefined;}var propTypes={value:function value(props,propName,componentName){if(!props[propName]||hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `value` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultValue`. Otherwise, '+'set either `onChange` or `readOnly`.');},checked:function checked(props,propName,componentName){if(!props[propName]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `checked` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultChecked`. Otherwise, '+'set either `onChange` or `readOnly`.');},onChange:ReactPropTypes.func};var loggedTypeFailures={};function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** + */'use strict';var ReactPropTypes=__webpack_require__(431);var ReactPropTypeLocations=__webpack_require__(177);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var hasReadOnlyValue={'button':true,'checkbox':true,'image':true,'hidden':true,'radio':true,'reset':true,'submit':true};function _assertSingleLink(inputProps){!(inputProps.checkedLink==null||inputProps.valueLink==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a valueLink. If you want to use '+'checkedLink, you probably don\'t want to use valueLink and vice versa.'):invariant(false):undefined;}function _assertValueLink(inputProps){_assertSingleLink(inputProps);!(inputProps.value==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a valueLink and a value or onChange event. If you want '+'to use value or onChange, you probably don\'t want to use valueLink.'):invariant(false):undefined;}function _assertCheckedLink(inputProps){_assertSingleLink(inputProps);!(inputProps.checked==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a checked property or onChange event. '+'If you want to use checked or onChange, you probably don\'t want to '+'use checkedLink'):invariant(false):undefined;}var propTypes={value:function value(props,propName,componentName){if(!props[propName]||hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `value` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultValue`. Otherwise, '+'set either `onChange` or `readOnly`.');},checked:function checked(props,propName,componentName){if(!props[propName]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `checked` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultChecked`. Otherwise, '+'set either `onChange` or `readOnly`.');},onChange:ReactPropTypes.func};var loggedTypeFailures={};function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** * Provide a linked `value` attribute for controlled forms. You should not use * this outside of the ReactDOM controlled form components. */var LinkedValueUtils={checkPropTypes:function checkPropTypes(tagName,props,owner){for(var propName in propTypes){if(propTypes.hasOwnProperty(propName)){var error=propTypes[propName](props,propName,tagName,ReactPropTypeLocations.prop);}if(error instanceof Error&&!(error.message in loggedTypeFailures)){// Only monitor this failure once because there tends to be a lot of the @@ -4431,7 +6721,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 170 */ +/* 244 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4444,7 +6734,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponentBrowserEnvironment - */'use strict';var ReactDOMIDOperations=__webpack_require__(172);var ReactMount=__webpack_require__(15);/** + */'use strict';var ReactDOMIDOperations=__webpack_require__(246);var ReactMount=__webpack_require__(24);/** * Abstracts away all functionality of the reconciler that requires knowledge of * the browser context. TODO: These callers should be refactored to avoid the * need for this injection. @@ -4457,7 +6747,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( */unmountIDFromEnvironment:function unmountIDFromEnvironment(rootNodeID){ReactMount.purgeID(rootNodeID);}};module.exports=ReactComponentBrowserEnvironment; /***/ }, -/* 171 */ +/* 245 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4470,7 +6760,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponentEnvironment - */'use strict';var invariant=__webpack_require__(4);var injected=false;var ReactComponentEnvironment={/** + */'use strict';var invariant=__webpack_require__(6);var injected=false;var ReactComponentEnvironment={/** * Optionally injectable environment dependent cleanup hook. (server vs. * browser etc). Example: A browser system caches DOM nodes based on component * ID and must remove that cache entry when this instance is unmounted. @@ -4484,7 +6774,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 172 */ +/* 246 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4498,7 +6788,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( * * @providesModule ReactDOMIDOperations * @typechecks static-only - */'use strict';var DOMChildrenOperations=__webpack_require__(302);var DOMPropertyOperations=__webpack_require__(168);var ReactMount=__webpack_require__(15);var ReactPerf=__webpack_require__(21);var invariant=__webpack_require__(4);/** + */'use strict';var DOMChildrenOperations=__webpack_require__(411);var DOMPropertyOperations=__webpack_require__(242);var ReactMount=__webpack_require__(24);var ReactPerf=__webpack_require__(37);var invariant=__webpack_require__(6);/** * Errors for properties that should not be updated with `updatePropertyByID()`. * * @type {object} @@ -4533,7 +6823,7 @@ if(value!=null){DOMPropertyOperations.setValueForProperty(node,name,value);}else /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 173 */ +/* 247 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4546,7 +6836,7 @@ if(value!=null){DOMPropertyOperations.setValueForProperty(node,name,value);}else * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdateQueue - */'use strict';var ReactCurrentOwner=__webpack_require__(33);var ReactElement=__webpack_require__(20);var ReactInstanceMap=__webpack_require__(77);var ReactUpdates=__webpack_require__(23);var assign=__webpack_require__(5);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);function enqueueUpdate(internalInstance){ReactUpdates.enqueueUpdate(internalInstance);}function getInternalInstanceReadyForUpdate(publicInstance,callerName){var internalInstance=ReactInstanceMap.get(publicInstance);if(!internalInstance){if(process.env.NODE_ENV!=='production'){// Only warn when we have a callerName. Otherwise we should be silent. + */'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactElement=__webpack_require__(34);var ReactInstanceMap=__webpack_require__(120);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);function enqueueUpdate(internalInstance){ReactUpdates.enqueueUpdate(internalInstance);}function getInternalInstanceReadyForUpdate(publicInstance,callerName){var internalInstance=ReactInstanceMap.get(publicInstance);if(!internalInstance){if(process.env.NODE_ENV!=='production'){// Only warn when we have a callerName. Otherwise we should be silent. // We're probably calling from enqueueCallback. We don't want to warn // there because we already warned for the corresponding lifecycle method. process.env.NODE_ENV!=='production'?warning(!callerName,'%s(...): Can only update a mounted or mounting component. '+'This usually means you called %s() on an unmounted component. '+'This is a no-op. Please check the code for the %s component.',callerName,callerName,publicInstance.constructor.displayName):undefined;}return null;}if(process.env.NODE_ENV!=='production'){process.env.NODE_ENV!=='production'?warning(ReactCurrentOwner.current==null,'%s(...): Cannot update during an existing state transition '+'(such as within `render`). Render methods should be a pure function '+'of props and state.',callerName):undefined;}return internalInstance;}/** @@ -4628,7 +6918,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 174 */ +/* 248 */ /***/ function(module, exports) { "use strict"; @@ -4644,7 +6934,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement */'use strict';module.exports='0.14.8'; /***/ }, -/* 175 */ +/* 249 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4658,7 +6948,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement * * @providesModule findDOMNode * @typechecks static-only - */'use strict';var ReactCurrentOwner=__webpack_require__(33);var ReactInstanceMap=__webpack_require__(77);var ReactMount=__webpack_require__(15);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);/** + */'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactInstanceMap=__webpack_require__(120);var ReactMount=__webpack_require__(24);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Returns the DOM node rendered by this element. * * @param {ReactComponent|DOMElement} componentOrElement @@ -4667,7 +6957,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 176 */ +/* 250 */ /***/ function(module, exports) { "use strict"; @@ -4697,7 +6987,7 @@ charCode=keyCode;}// Some non-printable keys are reported in `charCode`/`keyCode if(charCode>=32||charCode===13){return charCode;}return 0;}module.exports=getEventCharCode; /***/ }, -/* 177 */ +/* 251 */ /***/ function(module, exports) { "use strict"; @@ -4720,7 +7010,7 @@ if(charCode>=32||charCode===13){return charCode;}return 0;}module.exports=getEve function modifierStateGetter(keyArg){var syntheticEvent=this;var nativeEvent=syntheticEvent.nativeEvent;if(nativeEvent.getModifierState){return nativeEvent.getModifierState(keyArg);}var keyProp=modifierKeyToProp[keyArg];return keyProp?!!nativeEvent[keyProp]:false;}function getEventModifierState(nativeEvent){return modifierStateGetter;}module.exports=getEventModifierState; /***/ }, -/* 178 */ +/* 252 */ /***/ function(module, exports) { "use strict"; @@ -4745,7 +7035,7 @@ function modifierStateGetter(keyArg){var syntheticEvent=this;var nativeEvent=syn return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarget; /***/ }, -/* 179 */ +/* 253 */ /***/ function(module, exports) { "use strict"; @@ -4776,7 +7066,7 @@ return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarg */function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if(typeof iteratorFn==='function'){return iteratorFn;}}module.exports=getIteratorFn; /***/ }, -/* 180 */ +/* 254 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4790,7 +7080,7 @@ return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarg * * @providesModule instantiateReactComponent * @typechecks static-only - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCompositeComponent=__webpack_require__(708);var ReactEmptyComponent=__webpack_require__(314);var ReactNativeComponent=__webpack_require__(320);var assign=__webpack_require__(5);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);// To avoid a cyclic dependency, we create the final class in this module + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCompositeComponent=__webpack_require__(947);var ReactEmptyComponent=__webpack_require__(423);var ReactNativeComponent=__webpack_require__(429);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);// To avoid a cyclic dependency, we create the final class in this module var ReactCompositeComponentWrapper=function ReactCompositeComponentWrapper(){};assign(ReactCompositeComponentWrapper.prototype,ReactCompositeComponent.Mixin,{_instantiateReactComponent:instantiateReactComponent});function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** * Check if the type reference is a known internal type. I.e. not a user * provided composite type. @@ -4817,7 +7107,7 @@ if(process.env.NODE_ENV!=='production'){if(Object.preventExtensions){Object.prev /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 181 */ +/* 255 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4830,7 +7120,7 @@ if(process.env.NODE_ENV!=='production'){if(Object.preventExtensions){Object.prev * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isEventSupported - */'use strict';var ExecutionEnvironment=__webpack_require__(10);var useHasFeature;if(ExecutionEnvironment.canUseDOM){useHasFeature=document.implementation&&document.implementation.hasFeature&&// always returns true in newer browsers as per the standard. + */'use strict';var ExecutionEnvironment=__webpack_require__(18);var useHasFeature;if(ExecutionEnvironment.canUseDOM){useHasFeature=document.implementation&&document.implementation.hasFeature&&// always returns true in newer browsers as per the standard. // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature document.implementation.hasFeature('','')!==true;}/** * Checks if an event is supported in the current execution environment. @@ -4849,7 +7139,7 @@ document.implementation.hasFeature('','')!==true;}/** isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isSupported;}module.exports=isEventSupported; /***/ }, -/* 182 */ +/* 256 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4862,7 +7152,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setTextContent - */'use strict';var ExecutionEnvironment=__webpack_require__(10);var escapeTextContentForBrowser=__webpack_require__(121);var setInnerHTML=__webpack_require__(122);/** + */'use strict';var ExecutionEnvironment=__webpack_require__(18);var escapeTextContentForBrowser=__webpack_require__(181);var setInnerHTML=__webpack_require__(182);/** * Set the textContent property of a node, ensuring that whitespace is preserved * even in IE8. innerText is a poor substitute for textContent and, among many * issues, inserts
instead of the literal newline chars. innerHTML behaves @@ -4874,7 +7164,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS */var setTextContent=function setTextContent(node,text){node.textContent=text;};if(ExecutionEnvironment.canUseDOM){if(!('textContent'in document.documentElement)){setTextContent=function setTextContent(node,text){setInnerHTML(node,escapeTextContentForBrowser(text));};}}module.exports=setTextContent; /***/ }, -/* 183 */ +/* 257 */ /***/ function(module, exports) { "use strict"; @@ -4901,7 +7191,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS */var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function shouldUpdateReactComponent(prevElement,nextElement){var prevEmpty=prevElement===null||prevElement===false;var nextEmpty=nextElement===null||nextElement===false;if(prevEmpty||nextEmpty){return prevEmpty===nextEmpty;}var prevType=typeof prevElement==='undefined'?'undefined':_typeof(prevElement);var nextType=typeof nextElement==='undefined'?'undefined':_typeof(nextElement);if(prevType==='string'||prevType==='number'){return nextType==='string'||nextType==='number';}else{return nextType==='object'&&prevElement.type===nextElement.type&&prevElement.key===nextElement.key;}return false;}module.exports=shouldUpdateReactComponent; /***/ }, -/* 184 */ +/* 258 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4914,7 +7204,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule traverseAllChildren - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(33);var ReactElement=__webpack_require__(20);var ReactInstanceHandles=__webpack_require__(59);var getIteratorFn=__webpack_require__(179);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);var SEPARATOR=ReactInstanceHandles.SEPARATOR;var SUBSEPARATOR=':';/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(52);var ReactElement=__webpack_require__(34);var ReactInstanceHandles=__webpack_require__(92);var getIteratorFn=__webpack_require__(253);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var SEPARATOR=ReactInstanceHandles.SEPARATOR;var SUBSEPARATOR=':';/** * TODO: Test that a single child and an array with one item have the same key * pattern. */var userProvidedKeyEscaperLookup={'=':'=0','.':'=1',':':'=2'};var userProvidedKeyEscapeRegex=/[=.:]/g;var didWarnAboutMaps=false;function userProvidedKeyEscaper(match){return userProvidedKeyEscaperLookup[match];}/** @@ -4967,7 +7257,7 @@ while(!(step=iterator.next()).done){var entry=step.value;if(entry){child=entry[1 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 185 */ +/* 259 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4980,7 +7270,7 @@ while(!(step=iterator.next()).done){var entry=step.value;if(entry){child=entry[1 * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule validateDOMNesting - */'use strict';var assign=__webpack_require__(5);var emptyFunction=__webpack_require__(25);var warning=__webpack_require__(6);var validateDOMNesting=emptyFunction;if(process.env.NODE_ENV!=='production'){// This validation code was written based on the HTML5 parsing spec: + */'use strict';var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(41);var warning=__webpack_require__(8);var validateDOMNesting=emptyFunction;if(process.env.NODE_ENV!=='production'){// This validation code was written based on the HTML5 parsing spec: // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope // // Note: this does not catch all invalid nesting, nor does it try to (as it's @@ -5037,7 +7327,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 186 */ +/* 260 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -5047,7 +7337,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a * @license MIT * @module remark:parse:util:normalize * @fileoverview Normalize an identifier. - */'use strict';/* Dependencies. */var collapseWhiteSpace=__webpack_require__(434);/* Expose. */module.exports=normalize;/** + */'use strict';/* Dependencies. */var collapseWhiteSpace=__webpack_require__(594);/* Expose. */module.exports=normalize;/** * Normalize an identifier. Collapses multiple white space * characters into a single space, and removes casing. * @@ -5059,7 +7349,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a */function normalize(value){return collapseWhiteSpace(value).toLowerCase();} /***/ }, -/* 187 */ +/* 261 */ /***/ function(module, exports) { "use strict"; @@ -5092,81 +7382,89 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a if(num===1)return str;if(num===2)return str+str;var max=str.length*num;if(cache!==str||typeof cache==='undefined'){cache=str;res='';}else if(res.length>=max){return res.substr(0,max);}while(max>res.length&&num>1){if(num&1){res+=str;}num>>=1;str+=str;}res+=str;res=res.substr(0,max);return res;} /***/ }, -/* 188 */ +/* 262 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Radio=__webpack_require__(800);var _Radio2=_interopRequireDefault(_Radio);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Radio2.default; +/* WEBPACK VAR INJECTION */(function(setImmediate, process, Buffer) {'use strict';var jsonSafeStringify=__webpack_require__(691),crypto=__webpack_require__(11);var defer=typeof setImmediate==='undefined'?process.nextTick:setImmediate;function paramsHaveRequestBody(params){return params.body||params.requestBodyStream||params.json&&typeof params.json!=='boolean'||params.multipart;}function safeStringify(obj,replacer){var ret;try{ret=JSON.stringify(obj,replacer);}catch(e){ret=jsonSafeStringify(obj,replacer);}return ret;}function md5(str){return crypto.createHash('md5').update(str).digest('hex');}function isReadStream(rs){return rs.readable&&rs.path&&rs.mode;}function toBase64(str){return new Buffer(str||'','utf8').toString('base64');}function copy(obj){var o={};Object.keys(obj).forEach(function(i){o[i]=obj[i];});return o;}function version(){var numbers=process.version.replace('v','').split('.');return{major:parseInt(numbers[0],10),minor:parseInt(numbers[1],10),patch:parseInt(numbers[2],10)};}exports.paramsHaveRequestBody=paramsHaveRequestBody;exports.safeStringify=safeStringify;exports.md5=md5;exports.isReadStream=isReadStream;exports.toBase64=toBase64;exports.copy=copy;exports.version=version;exports.defer=defer; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(80).setImmediate, __webpack_require__(3), __webpack_require__(4).Buffer)) /***/ }, -/* 189 */ +/* 263 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Radio=__webpack_require__(1056);var _Radio2=_interopRequireDefault(_Radio);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Radio2.default; + +/***/ }, +/* 264 */ /***/ function(module, exports, __webpack_require__) { "use strict"; 'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i*/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/util.inherits(Transform,Duplex);function TransformState(stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data);};this.needTransform=false;this.transforming=false;this.writecb=null;this.writechunk=null;this.writeencoding=null;}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=false;var cb=ts.writecb;if(!cb)return stream.emit('error',new Error('no writecb in Transform class'));ts.writechunk=null;ts.writecb=null;if(data!==null&&data!==undefined)stream.push(data);cb(er);var rs=stream._readableState;rs.reading=false;if(rs.needReadable||rs.length*/var processNextTick=__webpack_require__(50);/**//**/var asyncWrite=!process.browser&&['v0.10','v0.9.'].indexOf(process.version.slice(0,5))>-1?setImmediate:processNextTick;/**//**/var Duplex;/**/Writable.WritableState=WritableState;/**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**//**/var internalUtil={deprecate:__webpack_require__(295)};/**//**/var Stream;(function(){try{Stream=__webpack_require__(16);}catch(_){}finally{if(!Stream)Stream=__webpack_require__(35).EventEmitter;}})();/**/var Buffer=__webpack_require__(4).Buffer;/**/var bufferShim=__webpack_require__(44);/**/util.inherits(Writable,Stream);function nop(){}function WriteReq(chunk,encoding,cb){this.chunk=chunk;this.encoding=encoding;this.callback=cb;this.next=null;}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(79);options=options||{};// object stream flag to indicate whether or not this stream +// contains buffers or objects. +this.objectMode=!!options.objectMode;if(stream instanceof Duplex)this.objectMode=this.objectMode||!!options.writableObjectMode;// the point at which write() starts returning false +// Note: 0 is a valid value, means that we always return false if +// the entire buffer is not flushed immediately on write() +var hwm=options.highWaterMark;var defaultHwm=this.objectMode?16:16*1024;this.highWaterMark=hwm||hwm===0?hwm:defaultHwm;// cast to ints. +this.highWaterMark=~~this.highWaterMark;// drain event flag. +this.needDrain=false;// at the start of calling end() +this.ending=false;// when end() has been called, and returned +this.ended=false;// when 'finish' is emitted +this.finished=false;// should we decode strings into buffers before passing to _write? +// this is here so that some node-core streams can optimize string +// handling at a lower level. +var noDecode=options.decodeStrings===false;this.decodeStrings=!noDecode;// Crypto is kind of old and crusty. Historically, its default string +// encoding is 'binary' so we have to make this configurable. +// Everything else in the universe uses 'utf8', though. +this.defaultEncoding=options.defaultEncoding||'utf8';// not an actual buffer we keep track of, but a measurement +// of how much we're waiting to get pushed to some underlying +// socket or file. +this.length=0;// a flag to see when we're in the middle of a write. +this.writing=false;// when true all writes will be buffered until .uncork() call +this.corked=0;// a flag to be able to tell if the onwrite cb is called immediately, +// or on a later tick. We set this to true at first, because any +// actions that shouldn't happen until "later" should generally also +// not happen before the first write call. +this.sync=true;// a flag to know if we're processing previously buffered items, which +// may call the _write() callback in the same tick, so that we don't +// end up in an overlapped onwrite situation. +this.bufferProcessing=false;// the callback that's passed to _write(chunk,cb) +this.onwrite=function(er){onwrite(stream,er);};// the callback that the user supplies to write(chunk,encoding,cb) +this.writecb=null;// the amount that is being written when _write is called. +this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;// number of pending user-supplied write callbacks +// this must be 0 before 'finish' can be emitted +this.pendingcb=0;// emit prefinish if the only thing we're waiting for is _write cbs +// This is relevant for synchronous Transform streams +this.prefinished=false;// True if the error was already emitted and should not be thrown again +this.errorEmitted=false;// count buffered requests +this.bufferedRequestCount=0;// allocate the first CorkedRequest, there is always +// one allocated and free to use, and we maintain at most two +this.corkedRequestsFree=new CorkedRequest(this);}WritableState.prototype.getBuffer=function getBuffer(){var current=this.bufferedRequest;var out=[];while(current){out.push(current);current=current.next;}return out;};(function(){try{Object.defineProperty(WritableState.prototype,'buffer',{get:internalUtil.deprecate(function(){return this.getBuffer();},'_writableState.buffer is deprecated. Use _writableState.getBuffer '+'instead.')});}catch(_){}})();// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. +var realHasInstance;if(typeof Symbol==='function'&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==='function'){realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(object){if(realHasInstance.call(this,object))return true;return object&&object._writableState instanceof WritableState;}});}else{realHasInstance=function realHasInstance(object){return object instanceof this;};}function Writable(options){Duplex=Duplex||__webpack_require__(79);// Writable ctor is applied to Duplexes, too. +// `realHasInstance` is necessary because using plain `instanceof` +// would return false, as no `_writableState` property is attached. +// Trying to use the custom `instanceof` for Writable here will also break the +// Node.js LazyTransform implementation, which has a non-trivial getter for +// `_writableState` that would lead to infinite recursion. +if(!realHasInstance.call(Writable,this)&&!(this instanceof Duplex)){return new Writable(options);}this._writableState=new WritableState(options,this);// legacy. +this.writable=true;if(options){if(typeof options.write==='function')this._write=options.write;if(typeof options.writev==='function')this._writev=options.writev;}Stream.call(this);}// Otherwise people can pipe Writable streams, which is just wrong. +Writable.prototype.pipe=function(){this.emit('error',new Error('Cannot pipe, not readable'));};function writeAfterEnd(stream,cb){var er=new Error('write after end');// TODO: defer error events consistently everywhere, not just the cb +stream.emit('error',er);processNextTick(cb,er);}// If we get something that is not a buffer, string, null, or undefined, +// and we're not in objectMode, then that's an error. +// Otherwise stream chunks are all considered to be of length=1, and the +// watermarks determine how many objects to keep in the buffer, rather than +// how many bytes or characters. +function validChunk(stream,state,chunk,cb){var valid=true;var er=false;// Always throw error if a null is written +// if we are not in object mode then throw +// if it is not a buffer, string, or undefined. +if(chunk===null){er=new TypeError('May not write null values to stream');}else if(!Buffer.isBuffer(chunk)&&typeof chunk!=='string'&&chunk!==undefined&&!state.objectMode){er=new TypeError('Invalid non-string/buffer chunk');}if(er){stream.emit('error',er);processNextTick(cb,er);valid=false;}return valid;}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState;var ret=false;if(typeof encoding==='function'){cb=encoding;encoding=null;}if(Buffer.isBuffer(chunk))encoding='buffer';else if(!encoding)encoding=state.defaultEncoding;if(typeof cb!=='function')cb=nop;if(state.ended)writeAfterEnd(this,cb);else if(validChunk(this,state,chunk,cb)){state.pendingcb++;ret=writeOrBuffer(this,state,chunk,encoding,cb);}return ret;};Writable.prototype.cork=function(){var state=this._writableState;state.corked++;};Writable.prototype.uncork=function(){var state=this._writableState;if(state.corked){state.corked--;if(!state.writing&&!state.corked&&!state.finished&&!state.bufferProcessing&&state.bufferedRequest)clearBuffer(this,state);}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(encoding){// node::ParseEncoding() requires lower case. +if(typeof encoding==='string')encoding=encoding.toLowerCase();if(!(['hex','utf8','utf-8','ascii','binary','base64','ucs2','ucs-2','utf16le','utf-16le','raw'].indexOf((encoding+'').toLowerCase())>-1))throw new TypeError('Unknown encoding: '+encoding);this._writableState.defaultEncoding=encoding;return this;};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==='string'){chunk=bufferShim.from(chunk,encoding);}return chunk;}// if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. +function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding);if(Buffer.isBuffer(chunk))encoding='buffer';var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length*/asyncWrite(afterWrite,stream,state,finished,cb);/**/}else{afterWrite(stream,state,finished,cb);}}}function afterWrite(stream,state,finished,cb){if(!finished)onwriteDrain(stream,state);state.pendingcb--;cb();finishMaybe(stream,state);}// Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. +function onwriteDrain(stream,state){if(state.length===0&&state.needDrain){state.needDrain=false;stream.emit('drain');}}// if there's something in the buffer waiting, then process it +function clearBuffer(stream,state){state.bufferProcessing=true;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){// Fast case, write everything using _writev() +var l=state.bufferedRequestCount;var buffer=new Array(l);var holder=state.corkedRequestsFree;holder.entry=entry;var count=0;while(entry){buffer[count]=entry;entry=entry.next;count+=1;}doWrite(stream,state,true,state.length,buffer,'',holder.finish);// doWrite is almost always async, defer these to save a bit of time +// as the hot path ends with doWrite +state.pendingcb++;state.lastBufferedRequest=null;if(holder.next){state.corkedRequestsFree=holder.next;holder.next=null;}else{state.corkedRequestsFree=new CorkedRequest(state);}}else{// Slow case, write chunks one-by-one +while(entry){var chunk=entry.chunk;var encoding=entry.encoding;var cb=entry.callback;var len=state.objectMode?1:chunk.length;doWrite(stream,state,false,len,chunk,encoding,cb);entry=entry.next;// if we didn't call the onwrite immediately, then +// it means that we need to wait until it does. +// also, that means that the chunk and cb are currently +// being processed, so move the buffer counter past them. +if(state.writing){break;}}if(entry===null)state.lastBufferedRequest=null;}state.bufferedRequestCount=0;state.bufferedRequest=entry;state.bufferProcessing=false;}Writable.prototype._write=function(chunk,encoding,cb){cb(new Error('_write() is not implemented'));};Writable.prototype._writev=null;Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;if(typeof chunk==='function'){cb=chunk;chunk=null;encoding=null;}else if(typeof encoding==='function'){cb=encoding;encoding=null;}if(chunk!==null&&chunk!==undefined)this.write(chunk,encoding);// .end() fully uncorks +if(state.corked){state.corked=1;this.uncork();}// ignore unnecessary end() calls. +if(!state.ending&&!state.finished)endWritable(this,state,cb);};function needFinish(state){return state.ending&&state.length===0&&state.bufferedRequest===null&&!state.finished&&!state.writing;}function prefinish(stream,state){if(!state.prefinished){state.prefinished=true;stream.emit('prefinish');}}function finishMaybe(stream,state){var need=needFinish(state);if(need){if(state.pendingcb===0){prefinish(stream,state);state.finished=true;stream.emit('finish');}else{prefinish(stream,state);}}return need;}function endWritable(stream,state,cb){state.ending=true;finishMaybe(stream,state);if(cb){if(state.finished)processNextTick(cb);else stream.once('finish',cb);}state.ended=true;stream.writable=false;}// It seems a linked list but it is not +// there will be only 2 of these for each stream +function CorkedRequest(state){var _this=this;this.next=null;this.entry=null;this.finish=function(err){var entry=_this.entry;_this.entry=null;while(entry){var cb=entry.callback;state.pendingcb--;cb(err);entry=entry.next;}if(state.corkedRequestsFree){state.corkedRequestsFree.next=_this;}else{state.corkedRequestsFree=_this;}};} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(80).setImmediate)) + +/***/ }, +/* 293 */ /***/ function(module, exports) { "use strict"; 'use strict';module.exports=trimTrailingLines;var line='\n';/* Remove final newline characters from `value`. */function trimTrailingLines(value){var val=String(value);var index=val.length;while(val.charAt(--index)===line){/* empty */}return val.slice(0,index+1);} /***/ }, -/* 215 */ +/* 294 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';module.exports=__webpack_require__(307); +'use strict';(function(nacl){'use strict';// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri. +// Public domain. +// +// Implementation derived from TweetNaCl version 20140427. +// See for details: http://tweetnacl.cr.yp.to/ +var gf=function gf(init){var i,r=new Float64Array(16);if(init)for(i=0;i>24&0xff;x[i+1]=h>>16&0xff;x[i+2]=h>>8&0xff;x[i+3]=h&0xff;x[i+4]=l>>24&0xff;x[i+5]=l>>16&0xff;x[i+6]=l>>8&0xff;x[i+7]=l&0xff;}function vn(x,xi,y,yi,n){var i,d=0;for(i=0;i>>8)-1;}function crypto_verify_16(x,xi,y,yi){return vn(x,xi,y,yi,16);}function crypto_verify_32(x,xi,y,yi){return vn(x,xi,y,yi,32);}function core_salsa20(o,p,k,c){var j0=c[0]&0xff|(c[1]&0xff)<<8|(c[2]&0xff)<<16|(c[3]&0xff)<<24,j1=k[0]&0xff|(k[1]&0xff)<<8|(k[2]&0xff)<<16|(k[3]&0xff)<<24,j2=k[4]&0xff|(k[5]&0xff)<<8|(k[6]&0xff)<<16|(k[7]&0xff)<<24,j3=k[8]&0xff|(k[9]&0xff)<<8|(k[10]&0xff)<<16|(k[11]&0xff)<<24,j4=k[12]&0xff|(k[13]&0xff)<<8|(k[14]&0xff)<<16|(k[15]&0xff)<<24,j5=c[4]&0xff|(c[5]&0xff)<<8|(c[6]&0xff)<<16|(c[7]&0xff)<<24,j6=p[0]&0xff|(p[1]&0xff)<<8|(p[2]&0xff)<<16|(p[3]&0xff)<<24,j7=p[4]&0xff|(p[5]&0xff)<<8|(p[6]&0xff)<<16|(p[7]&0xff)<<24,j8=p[8]&0xff|(p[9]&0xff)<<8|(p[10]&0xff)<<16|(p[11]&0xff)<<24,j9=p[12]&0xff|(p[13]&0xff)<<8|(p[14]&0xff)<<16|(p[15]&0xff)<<24,j10=c[8]&0xff|(c[9]&0xff)<<8|(c[10]&0xff)<<16|(c[11]&0xff)<<24,j11=k[16]&0xff|(k[17]&0xff)<<8|(k[18]&0xff)<<16|(k[19]&0xff)<<24,j12=k[20]&0xff|(k[21]&0xff)<<8|(k[22]&0xff)<<16|(k[23]&0xff)<<24,j13=k[24]&0xff|(k[25]&0xff)<<8|(k[26]&0xff)<<16|(k[27]&0xff)<<24,j14=k[28]&0xff|(k[29]&0xff)<<8|(k[30]&0xff)<<16|(k[31]&0xff)<<24,j15=c[12]&0xff|(c[13]&0xff)<<8|(c[14]&0xff)<<16|(c[15]&0xff)<<24;var x0=j0,x1=j1,x2=j2,x3=j3,x4=j4,x5=j5,x6=j6,x7=j7,x8=j8,x9=j9,x10=j10,x11=j11,x12=j12,x13=j13,x14=j14,x15=j15,u;for(var i=0;i<20;i+=2){u=x0+x12|0;x4^=u<<7|u>>>32-7;u=x4+x0|0;x8^=u<<9|u>>>32-9;u=x8+x4|0;x12^=u<<13|u>>>32-13;u=x12+x8|0;x0^=u<<18|u>>>32-18;u=x5+x1|0;x9^=u<<7|u>>>32-7;u=x9+x5|0;x13^=u<<9|u>>>32-9;u=x13+x9|0;x1^=u<<13|u>>>32-13;u=x1+x13|0;x5^=u<<18|u>>>32-18;u=x10+x6|0;x14^=u<<7|u>>>32-7;u=x14+x10|0;x2^=u<<9|u>>>32-9;u=x2+x14|0;x6^=u<<13|u>>>32-13;u=x6+x2|0;x10^=u<<18|u>>>32-18;u=x15+x11|0;x3^=u<<7|u>>>32-7;u=x3+x15|0;x7^=u<<9|u>>>32-9;u=x7+x3|0;x11^=u<<13|u>>>32-13;u=x11+x7|0;x15^=u<<18|u>>>32-18;u=x0+x3|0;x1^=u<<7|u>>>32-7;u=x1+x0|0;x2^=u<<9|u>>>32-9;u=x2+x1|0;x3^=u<<13|u>>>32-13;u=x3+x2|0;x0^=u<<18|u>>>32-18;u=x5+x4|0;x6^=u<<7|u>>>32-7;u=x6+x5|0;x7^=u<<9|u>>>32-9;u=x7+x6|0;x4^=u<<13|u>>>32-13;u=x4+x7|0;x5^=u<<18|u>>>32-18;u=x10+x9|0;x11^=u<<7|u>>>32-7;u=x11+x10|0;x8^=u<<9|u>>>32-9;u=x8+x11|0;x9^=u<<13|u>>>32-13;u=x9+x8|0;x10^=u<<18|u>>>32-18;u=x15+x14|0;x12^=u<<7|u>>>32-7;u=x12+x15|0;x13^=u<<9|u>>>32-9;u=x13+x12|0;x14^=u<<13|u>>>32-13;u=x14+x13|0;x15^=u<<18|u>>>32-18;}x0=x0+j0|0;x1=x1+j1|0;x2=x2+j2|0;x3=x3+j3|0;x4=x4+j4|0;x5=x5+j5|0;x6=x6+j6|0;x7=x7+j7|0;x8=x8+j8|0;x9=x9+j9|0;x10=x10+j10|0;x11=x11+j11|0;x12=x12+j12|0;x13=x13+j13|0;x14=x14+j14|0;x15=x15+j15|0;o[0]=x0>>>0&0xff;o[1]=x0>>>8&0xff;o[2]=x0>>>16&0xff;o[3]=x0>>>24&0xff;o[4]=x1>>>0&0xff;o[5]=x1>>>8&0xff;o[6]=x1>>>16&0xff;o[7]=x1>>>24&0xff;o[8]=x2>>>0&0xff;o[9]=x2>>>8&0xff;o[10]=x2>>>16&0xff;o[11]=x2>>>24&0xff;o[12]=x3>>>0&0xff;o[13]=x3>>>8&0xff;o[14]=x3>>>16&0xff;o[15]=x3>>>24&0xff;o[16]=x4>>>0&0xff;o[17]=x4>>>8&0xff;o[18]=x4>>>16&0xff;o[19]=x4>>>24&0xff;o[20]=x5>>>0&0xff;o[21]=x5>>>8&0xff;o[22]=x5>>>16&0xff;o[23]=x5>>>24&0xff;o[24]=x6>>>0&0xff;o[25]=x6>>>8&0xff;o[26]=x6>>>16&0xff;o[27]=x6>>>24&0xff;o[28]=x7>>>0&0xff;o[29]=x7>>>8&0xff;o[30]=x7>>>16&0xff;o[31]=x7>>>24&0xff;o[32]=x8>>>0&0xff;o[33]=x8>>>8&0xff;o[34]=x8>>>16&0xff;o[35]=x8>>>24&0xff;o[36]=x9>>>0&0xff;o[37]=x9>>>8&0xff;o[38]=x9>>>16&0xff;o[39]=x9>>>24&0xff;o[40]=x10>>>0&0xff;o[41]=x10>>>8&0xff;o[42]=x10>>>16&0xff;o[43]=x10>>>24&0xff;o[44]=x11>>>0&0xff;o[45]=x11>>>8&0xff;o[46]=x11>>>16&0xff;o[47]=x11>>>24&0xff;o[48]=x12>>>0&0xff;o[49]=x12>>>8&0xff;o[50]=x12>>>16&0xff;o[51]=x12>>>24&0xff;o[52]=x13>>>0&0xff;o[53]=x13>>>8&0xff;o[54]=x13>>>16&0xff;o[55]=x13>>>24&0xff;o[56]=x14>>>0&0xff;o[57]=x14>>>8&0xff;o[58]=x14>>>16&0xff;o[59]=x14>>>24&0xff;o[60]=x15>>>0&0xff;o[61]=x15>>>8&0xff;o[62]=x15>>>16&0xff;o[63]=x15>>>24&0xff;}function core_hsalsa20(o,p,k,c){var j0=c[0]&0xff|(c[1]&0xff)<<8|(c[2]&0xff)<<16|(c[3]&0xff)<<24,j1=k[0]&0xff|(k[1]&0xff)<<8|(k[2]&0xff)<<16|(k[3]&0xff)<<24,j2=k[4]&0xff|(k[5]&0xff)<<8|(k[6]&0xff)<<16|(k[7]&0xff)<<24,j3=k[8]&0xff|(k[9]&0xff)<<8|(k[10]&0xff)<<16|(k[11]&0xff)<<24,j4=k[12]&0xff|(k[13]&0xff)<<8|(k[14]&0xff)<<16|(k[15]&0xff)<<24,j5=c[4]&0xff|(c[5]&0xff)<<8|(c[6]&0xff)<<16|(c[7]&0xff)<<24,j6=p[0]&0xff|(p[1]&0xff)<<8|(p[2]&0xff)<<16|(p[3]&0xff)<<24,j7=p[4]&0xff|(p[5]&0xff)<<8|(p[6]&0xff)<<16|(p[7]&0xff)<<24,j8=p[8]&0xff|(p[9]&0xff)<<8|(p[10]&0xff)<<16|(p[11]&0xff)<<24,j9=p[12]&0xff|(p[13]&0xff)<<8|(p[14]&0xff)<<16|(p[15]&0xff)<<24,j10=c[8]&0xff|(c[9]&0xff)<<8|(c[10]&0xff)<<16|(c[11]&0xff)<<24,j11=k[16]&0xff|(k[17]&0xff)<<8|(k[18]&0xff)<<16|(k[19]&0xff)<<24,j12=k[20]&0xff|(k[21]&0xff)<<8|(k[22]&0xff)<<16|(k[23]&0xff)<<24,j13=k[24]&0xff|(k[25]&0xff)<<8|(k[26]&0xff)<<16|(k[27]&0xff)<<24,j14=k[28]&0xff|(k[29]&0xff)<<8|(k[30]&0xff)<<16|(k[31]&0xff)<<24,j15=c[12]&0xff|(c[13]&0xff)<<8|(c[14]&0xff)<<16|(c[15]&0xff)<<24;var x0=j0,x1=j1,x2=j2,x3=j3,x4=j4,x5=j5,x6=j6,x7=j7,x8=j8,x9=j9,x10=j10,x11=j11,x12=j12,x13=j13,x14=j14,x15=j15,u;for(var i=0;i<20;i+=2){u=x0+x12|0;x4^=u<<7|u>>>32-7;u=x4+x0|0;x8^=u<<9|u>>>32-9;u=x8+x4|0;x12^=u<<13|u>>>32-13;u=x12+x8|0;x0^=u<<18|u>>>32-18;u=x5+x1|0;x9^=u<<7|u>>>32-7;u=x9+x5|0;x13^=u<<9|u>>>32-9;u=x13+x9|0;x1^=u<<13|u>>>32-13;u=x1+x13|0;x5^=u<<18|u>>>32-18;u=x10+x6|0;x14^=u<<7|u>>>32-7;u=x14+x10|0;x2^=u<<9|u>>>32-9;u=x2+x14|0;x6^=u<<13|u>>>32-13;u=x6+x2|0;x10^=u<<18|u>>>32-18;u=x15+x11|0;x3^=u<<7|u>>>32-7;u=x3+x15|0;x7^=u<<9|u>>>32-9;u=x7+x3|0;x11^=u<<13|u>>>32-13;u=x11+x7|0;x15^=u<<18|u>>>32-18;u=x0+x3|0;x1^=u<<7|u>>>32-7;u=x1+x0|0;x2^=u<<9|u>>>32-9;u=x2+x1|0;x3^=u<<13|u>>>32-13;u=x3+x2|0;x0^=u<<18|u>>>32-18;u=x5+x4|0;x6^=u<<7|u>>>32-7;u=x6+x5|0;x7^=u<<9|u>>>32-9;u=x7+x6|0;x4^=u<<13|u>>>32-13;u=x4+x7|0;x5^=u<<18|u>>>32-18;u=x10+x9|0;x11^=u<<7|u>>>32-7;u=x11+x10|0;x8^=u<<9|u>>>32-9;u=x8+x11|0;x9^=u<<13|u>>>32-13;u=x9+x8|0;x10^=u<<18|u>>>32-18;u=x15+x14|0;x12^=u<<7|u>>>32-7;u=x12+x15|0;x13^=u<<9|u>>>32-9;u=x13+x12|0;x14^=u<<13|u>>>32-13;u=x14+x13|0;x15^=u<<18|u>>>32-18;}o[0]=x0>>>0&0xff;o[1]=x0>>>8&0xff;o[2]=x0>>>16&0xff;o[3]=x0>>>24&0xff;o[4]=x5>>>0&0xff;o[5]=x5>>>8&0xff;o[6]=x5>>>16&0xff;o[7]=x5>>>24&0xff;o[8]=x10>>>0&0xff;o[9]=x10>>>8&0xff;o[10]=x10>>>16&0xff;o[11]=x10>>>24&0xff;o[12]=x15>>>0&0xff;o[13]=x15>>>8&0xff;o[14]=x15>>>16&0xff;o[15]=x15>>>24&0xff;o[16]=x6>>>0&0xff;o[17]=x6>>>8&0xff;o[18]=x6>>>16&0xff;o[19]=x6>>>24&0xff;o[20]=x7>>>0&0xff;o[21]=x7>>>8&0xff;o[22]=x7>>>16&0xff;o[23]=x7>>>24&0xff;o[24]=x8>>>0&0xff;o[25]=x8>>>8&0xff;o[26]=x8>>>16&0xff;o[27]=x8>>>24&0xff;o[28]=x9>>>0&0xff;o[29]=x9>>>8&0xff;o[30]=x9>>>16&0xff;o[31]=x9>>>24&0xff;}function crypto_core_salsa20(out,inp,k,c){core_salsa20(out,inp,k,c);}function crypto_core_hsalsa20(out,inp,k,c){core_hsalsa20(out,inp,k,c);}var sigma=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);// "expand 32-byte k" +function crypto_stream_salsa20_xor(c,cpos,m,mpos,b,n,k){var z=new Uint8Array(16),x=new Uint8Array(64);var u,i;for(i=0;i<16;i++){z[i]=0;}for(i=0;i<8;i++){z[i]=n[i];}while(b>=64){crypto_core_salsa20(x,z,k,sigma);for(i=0;i<64;i++){c[cpos+i]=m[mpos+i]^x[i];}u=1;for(i=8;i<16;i++){u=u+(z[i]&0xff)|0;z[i]=u&0xff;u>>>=8;}b-=64;cpos+=64;mpos+=64;}if(b>0){crypto_core_salsa20(x,z,k,sigma);for(i=0;i=64){crypto_core_salsa20(x,z,k,sigma);for(i=0;i<64;i++){c[cpos+i]=x[i];}u=1;for(i=8;i<16;i++){u=u+(z[i]&0xff)|0;z[i]=u&0xff;u>>>=8;}b-=64;cpos+=64;}if(b>0){crypto_core_salsa20(x,z,k,sigma);for(i=0;i>>13|t1<<3)&0x1fff;t2=key[4]&0xff|(key[5]&0xff)<<8;this.r[2]=(t1>>>10|t2<<6)&0x1f03;t3=key[6]&0xff|(key[7]&0xff)<<8;this.r[3]=(t2>>>7|t3<<9)&0x1fff;t4=key[8]&0xff|(key[9]&0xff)<<8;this.r[4]=(t3>>>4|t4<<12)&0x00ff;this.r[5]=t4>>>1&0x1ffe;t5=key[10]&0xff|(key[11]&0xff)<<8;this.r[6]=(t4>>>14|t5<<2)&0x1fff;t6=key[12]&0xff|(key[13]&0xff)<<8;this.r[7]=(t5>>>11|t6<<5)&0x1f81;t7=key[14]&0xff|(key[15]&0xff)<<8;this.r[8]=(t6>>>8|t7<<8)&0x1fff;this.r[9]=t7>>>5&0x007f;this.pad[0]=key[16]&0xff|(key[17]&0xff)<<8;this.pad[1]=key[18]&0xff|(key[19]&0xff)<<8;this.pad[2]=key[20]&0xff|(key[21]&0xff)<<8;this.pad[3]=key[22]&0xff|(key[23]&0xff)<<8;this.pad[4]=key[24]&0xff|(key[25]&0xff)<<8;this.pad[5]=key[26]&0xff|(key[27]&0xff)<<8;this.pad[6]=key[28]&0xff|(key[29]&0xff)<<8;this.pad[7]=key[30]&0xff|(key[31]&0xff)<<8;};poly1305.prototype.blocks=function(m,mpos,bytes){var hibit=this.fin?0:1<<11;var t0,t1,t2,t3,t4,t5,t6,t7,c;var d0,d1,d2,d3,d4,d5,d6,d7,d8,d9;var h0=this.h[0],h1=this.h[1],h2=this.h[2],h3=this.h[3],h4=this.h[4],h5=this.h[5],h6=this.h[6],h7=this.h[7],h8=this.h[8],h9=this.h[9];var r0=this.r[0],r1=this.r[1],r2=this.r[2],r3=this.r[3],r4=this.r[4],r5=this.r[5],r6=this.r[6],r7=this.r[7],r8=this.r[8],r9=this.r[9];while(bytes>=16){t0=m[mpos+0]&0xff|(m[mpos+1]&0xff)<<8;h0+=t0&0x1fff;t1=m[mpos+2]&0xff|(m[mpos+3]&0xff)<<8;h1+=(t0>>>13|t1<<3)&0x1fff;t2=m[mpos+4]&0xff|(m[mpos+5]&0xff)<<8;h2+=(t1>>>10|t2<<6)&0x1fff;t3=m[mpos+6]&0xff|(m[mpos+7]&0xff)<<8;h3+=(t2>>>7|t3<<9)&0x1fff;t4=m[mpos+8]&0xff|(m[mpos+9]&0xff)<<8;h4+=(t3>>>4|t4<<12)&0x1fff;h5+=t4>>>1&0x1fff;t5=m[mpos+10]&0xff|(m[mpos+11]&0xff)<<8;h6+=(t4>>>14|t5<<2)&0x1fff;t6=m[mpos+12]&0xff|(m[mpos+13]&0xff)<<8;h7+=(t5>>>11|t6<<5)&0x1fff;t7=m[mpos+14]&0xff|(m[mpos+15]&0xff)<<8;h8+=(t6>>>8|t7<<8)&0x1fff;h9+=t7>>>5|hibit;c=0;d0=c;d0+=h0*r0;d0+=h1*(5*r9);d0+=h2*(5*r8);d0+=h3*(5*r7);d0+=h4*(5*r6);c=d0>>>13;d0&=0x1fff;d0+=h5*(5*r5);d0+=h6*(5*r4);d0+=h7*(5*r3);d0+=h8*(5*r2);d0+=h9*(5*r1);c+=d0>>>13;d0&=0x1fff;d1=c;d1+=h0*r1;d1+=h1*r0;d1+=h2*(5*r9);d1+=h3*(5*r8);d1+=h4*(5*r7);c=d1>>>13;d1&=0x1fff;d1+=h5*(5*r6);d1+=h6*(5*r5);d1+=h7*(5*r4);d1+=h8*(5*r3);d1+=h9*(5*r2);c+=d1>>>13;d1&=0x1fff;d2=c;d2+=h0*r2;d2+=h1*r1;d2+=h2*r0;d2+=h3*(5*r9);d2+=h4*(5*r8);c=d2>>>13;d2&=0x1fff;d2+=h5*(5*r7);d2+=h6*(5*r6);d2+=h7*(5*r5);d2+=h8*(5*r4);d2+=h9*(5*r3);c+=d2>>>13;d2&=0x1fff;d3=c;d3+=h0*r3;d3+=h1*r2;d3+=h2*r1;d3+=h3*r0;d3+=h4*(5*r9);c=d3>>>13;d3&=0x1fff;d3+=h5*(5*r8);d3+=h6*(5*r7);d3+=h7*(5*r6);d3+=h8*(5*r5);d3+=h9*(5*r4);c+=d3>>>13;d3&=0x1fff;d4=c;d4+=h0*r4;d4+=h1*r3;d4+=h2*r2;d4+=h3*r1;d4+=h4*r0;c=d4>>>13;d4&=0x1fff;d4+=h5*(5*r9);d4+=h6*(5*r8);d4+=h7*(5*r7);d4+=h8*(5*r6);d4+=h9*(5*r5);c+=d4>>>13;d4&=0x1fff;d5=c;d5+=h0*r5;d5+=h1*r4;d5+=h2*r3;d5+=h3*r2;d5+=h4*r1;c=d5>>>13;d5&=0x1fff;d5+=h5*r0;d5+=h6*(5*r9);d5+=h7*(5*r8);d5+=h8*(5*r7);d5+=h9*(5*r6);c+=d5>>>13;d5&=0x1fff;d6=c;d6+=h0*r6;d6+=h1*r5;d6+=h2*r4;d6+=h3*r3;d6+=h4*r2;c=d6>>>13;d6&=0x1fff;d6+=h5*r1;d6+=h6*r0;d6+=h7*(5*r9);d6+=h8*(5*r8);d6+=h9*(5*r7);c+=d6>>>13;d6&=0x1fff;d7=c;d7+=h0*r7;d7+=h1*r6;d7+=h2*r5;d7+=h3*r4;d7+=h4*r3;c=d7>>>13;d7&=0x1fff;d7+=h5*r2;d7+=h6*r1;d7+=h7*r0;d7+=h8*(5*r9);d7+=h9*(5*r8);c+=d7>>>13;d7&=0x1fff;d8=c;d8+=h0*r8;d8+=h1*r7;d8+=h2*r6;d8+=h3*r5;d8+=h4*r4;c=d8>>>13;d8&=0x1fff;d8+=h5*r3;d8+=h6*r2;d8+=h7*r1;d8+=h8*r0;d8+=h9*(5*r9);c+=d8>>>13;d8&=0x1fff;d9=c;d9+=h0*r9;d9+=h1*r8;d9+=h2*r7;d9+=h3*r6;d9+=h4*r5;c=d9>>>13;d9&=0x1fff;d9+=h5*r4;d9+=h6*r3;d9+=h7*r2;d9+=h8*r1;d9+=h9*r0;c+=d9>>>13;d9&=0x1fff;c=(c<<2)+c|0;c=c+d0|0;d0=c&0x1fff;c=c>>>13;d1+=c;h0=d0;h1=d1;h2=d2;h3=d3;h4=d4;h5=d5;h6=d6;h7=d7;h8=d8;h9=d9;mpos+=16;bytes-=16;}this.h[0]=h0;this.h[1]=h1;this.h[2]=h2;this.h[3]=h3;this.h[4]=h4;this.h[5]=h5;this.h[6]=h6;this.h[7]=h7;this.h[8]=h8;this.h[9]=h9;};poly1305.prototype.finish=function(mac,macpos){var g=new Uint16Array(10);var c,mask,f,i;if(this.leftover){i=this.leftover;this.buffer[i++]=1;for(;i<16;i++){this.buffer[i]=0;}this.fin=1;this.blocks(this.buffer,0,16);}c=this.h[1]>>>13;this.h[1]&=0x1fff;for(i=2;i<10;i++){this.h[i]+=c;c=this.h[i]>>>13;this.h[i]&=0x1fff;}this.h[0]+=c*5;c=this.h[0]>>>13;this.h[0]&=0x1fff;this.h[1]+=c;c=this.h[1]>>>13;this.h[1]&=0x1fff;this.h[2]+=c;g[0]=this.h[0]+5;c=g[0]>>>13;g[0]&=0x1fff;for(i=1;i<10;i++){g[i]=this.h[i]+c;c=g[i]>>>13;g[i]&=0x1fff;}g[9]-=1<<13;mask=(c^1)-1;for(i=0;i<10;i++){g[i]&=mask;}mask=~mask;for(i=0;i<10;i++){this.h[i]=this.h[i]&mask|g[i];}this.h[0]=(this.h[0]|this.h[1]<<13)&0xffff;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&0xffff;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&0xffff;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&0xffff;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&0xffff;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&0xffff;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&0xffff;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&0xffff;f=this.h[0]+this.pad[0];this.h[0]=f&0xffff;for(i=1;i<8;i++){f=(this.h[i]+this.pad[i]|0)+(f>>>16)|0;this.h[i]=f&0xffff;}mac[macpos+0]=this.h[0]>>>0&0xff;mac[macpos+1]=this.h[0]>>>8&0xff;mac[macpos+2]=this.h[1]>>>0&0xff;mac[macpos+3]=this.h[1]>>>8&0xff;mac[macpos+4]=this.h[2]>>>0&0xff;mac[macpos+5]=this.h[2]>>>8&0xff;mac[macpos+6]=this.h[3]>>>0&0xff;mac[macpos+7]=this.h[3]>>>8&0xff;mac[macpos+8]=this.h[4]>>>0&0xff;mac[macpos+9]=this.h[4]>>>8&0xff;mac[macpos+10]=this.h[5]>>>0&0xff;mac[macpos+11]=this.h[5]>>>8&0xff;mac[macpos+12]=this.h[6]>>>0&0xff;mac[macpos+13]=this.h[6]>>>8&0xff;mac[macpos+14]=this.h[7]>>>0&0xff;mac[macpos+15]=this.h[7]>>>8&0xff;};poly1305.prototype.update=function(m,mpos,bytes){var i,want;if(this.leftover){want=16-this.leftover;if(want>bytes)want=bytes;for(i=0;i=16){want=bytes-bytes%16;this.blocks(m,mpos,want);mpos+=want;bytes-=want;}if(bytes){for(i=0;i>16&1);m[i-1]&=0xffff;}m[15]=t[15]-0x7fff-(m[14]>>16&1);b=m[15]>>16&1;m[14]&=0xffff;sel25519(t,m,1-b);}for(i=0;i<16;i++){o[2*i]=t[i]&0xff;o[2*i+1]=t[i]>>8;}}function neq25519(a,b){var c=new Uint8Array(32),d=new Uint8Array(32);pack25519(c,a);pack25519(d,b);return crypto_verify_32(c,0,d,0);}function par25519(a){var d=new Uint8Array(32);pack25519(d,a);return d[0]&1;}function unpack25519(o,n){var i;for(i=0;i<16;i++){o[i]=n[2*i]+(n[2*i+1]<<8);}o[15]&=0x7fff;}function A(o,a,b){for(var i=0;i<16;i++){o[i]=a[i]+b[i];}}function Z(o,a,b){for(var i=0;i<16;i++){o[i]=a[i]-b[i];}}function M(o,a,b){var v,c,t0=0,t1=0,t2=0,t3=0,t4=0,t5=0,t6=0,t7=0,t8=0,t9=0,t10=0,t11=0,t12=0,t13=0,t14=0,t15=0,t16=0,t17=0,t18=0,t19=0,t20=0,t21=0,t22=0,t23=0,t24=0,t25=0,t26=0,t27=0,t28=0,t29=0,t30=0,b0=b[0],b1=b[1],b2=b[2],b3=b[3],b4=b[4],b5=b[5],b6=b[6],b7=b[7],b8=b[8],b9=b[9],b10=b[10],b11=b[11],b12=b[12],b13=b[13],b14=b[14],b15=b[15];v=a[0];t0+=v*b0;t1+=v*b1;t2+=v*b2;t3+=v*b3;t4+=v*b4;t5+=v*b5;t6+=v*b6;t7+=v*b7;t8+=v*b8;t9+=v*b9;t10+=v*b10;t11+=v*b11;t12+=v*b12;t13+=v*b13;t14+=v*b14;t15+=v*b15;v=a[1];t1+=v*b0;t2+=v*b1;t3+=v*b2;t4+=v*b3;t5+=v*b4;t6+=v*b5;t7+=v*b6;t8+=v*b7;t9+=v*b8;t10+=v*b9;t11+=v*b10;t12+=v*b11;t13+=v*b12;t14+=v*b13;t15+=v*b14;t16+=v*b15;v=a[2];t2+=v*b0;t3+=v*b1;t4+=v*b2;t5+=v*b3;t6+=v*b4;t7+=v*b5;t8+=v*b6;t9+=v*b7;t10+=v*b8;t11+=v*b9;t12+=v*b10;t13+=v*b11;t14+=v*b12;t15+=v*b13;t16+=v*b14;t17+=v*b15;v=a[3];t3+=v*b0;t4+=v*b1;t5+=v*b2;t6+=v*b3;t7+=v*b4;t8+=v*b5;t9+=v*b6;t10+=v*b7;t11+=v*b8;t12+=v*b9;t13+=v*b10;t14+=v*b11;t15+=v*b12;t16+=v*b13;t17+=v*b14;t18+=v*b15;v=a[4];t4+=v*b0;t5+=v*b1;t6+=v*b2;t7+=v*b3;t8+=v*b4;t9+=v*b5;t10+=v*b6;t11+=v*b7;t12+=v*b8;t13+=v*b9;t14+=v*b10;t15+=v*b11;t16+=v*b12;t17+=v*b13;t18+=v*b14;t19+=v*b15;v=a[5];t5+=v*b0;t6+=v*b1;t7+=v*b2;t8+=v*b3;t9+=v*b4;t10+=v*b5;t11+=v*b6;t12+=v*b7;t13+=v*b8;t14+=v*b9;t15+=v*b10;t16+=v*b11;t17+=v*b12;t18+=v*b13;t19+=v*b14;t20+=v*b15;v=a[6];t6+=v*b0;t7+=v*b1;t8+=v*b2;t9+=v*b3;t10+=v*b4;t11+=v*b5;t12+=v*b6;t13+=v*b7;t14+=v*b8;t15+=v*b9;t16+=v*b10;t17+=v*b11;t18+=v*b12;t19+=v*b13;t20+=v*b14;t21+=v*b15;v=a[7];t7+=v*b0;t8+=v*b1;t9+=v*b2;t10+=v*b3;t11+=v*b4;t12+=v*b5;t13+=v*b6;t14+=v*b7;t15+=v*b8;t16+=v*b9;t17+=v*b10;t18+=v*b11;t19+=v*b12;t20+=v*b13;t21+=v*b14;t22+=v*b15;v=a[8];t8+=v*b0;t9+=v*b1;t10+=v*b2;t11+=v*b3;t12+=v*b4;t13+=v*b5;t14+=v*b6;t15+=v*b7;t16+=v*b8;t17+=v*b9;t18+=v*b10;t19+=v*b11;t20+=v*b12;t21+=v*b13;t22+=v*b14;t23+=v*b15;v=a[9];t9+=v*b0;t10+=v*b1;t11+=v*b2;t12+=v*b3;t13+=v*b4;t14+=v*b5;t15+=v*b6;t16+=v*b7;t17+=v*b8;t18+=v*b9;t19+=v*b10;t20+=v*b11;t21+=v*b12;t22+=v*b13;t23+=v*b14;t24+=v*b15;v=a[10];t10+=v*b0;t11+=v*b1;t12+=v*b2;t13+=v*b3;t14+=v*b4;t15+=v*b5;t16+=v*b6;t17+=v*b7;t18+=v*b8;t19+=v*b9;t20+=v*b10;t21+=v*b11;t22+=v*b12;t23+=v*b13;t24+=v*b14;t25+=v*b15;v=a[11];t11+=v*b0;t12+=v*b1;t13+=v*b2;t14+=v*b3;t15+=v*b4;t16+=v*b5;t17+=v*b6;t18+=v*b7;t19+=v*b8;t20+=v*b9;t21+=v*b10;t22+=v*b11;t23+=v*b12;t24+=v*b13;t25+=v*b14;t26+=v*b15;v=a[12];t12+=v*b0;t13+=v*b1;t14+=v*b2;t15+=v*b3;t16+=v*b4;t17+=v*b5;t18+=v*b6;t19+=v*b7;t20+=v*b8;t21+=v*b9;t22+=v*b10;t23+=v*b11;t24+=v*b12;t25+=v*b13;t26+=v*b14;t27+=v*b15;v=a[13];t13+=v*b0;t14+=v*b1;t15+=v*b2;t16+=v*b3;t17+=v*b4;t18+=v*b5;t19+=v*b6;t20+=v*b7;t21+=v*b8;t22+=v*b9;t23+=v*b10;t24+=v*b11;t25+=v*b12;t26+=v*b13;t27+=v*b14;t28+=v*b15;v=a[14];t14+=v*b0;t15+=v*b1;t16+=v*b2;t17+=v*b3;t18+=v*b4;t19+=v*b5;t20+=v*b6;t21+=v*b7;t22+=v*b8;t23+=v*b9;t24+=v*b10;t25+=v*b11;t26+=v*b12;t27+=v*b13;t28+=v*b14;t29+=v*b15;v=a[15];t15+=v*b0;t16+=v*b1;t17+=v*b2;t18+=v*b3;t19+=v*b4;t20+=v*b5;t21+=v*b6;t22+=v*b7;t23+=v*b8;t24+=v*b9;t25+=v*b10;t26+=v*b11;t27+=v*b12;t28+=v*b13;t29+=v*b14;t30+=v*b15;t0+=38*t16;t1+=38*t17;t2+=38*t18;t3+=38*t19;t4+=38*t20;t5+=38*t21;t6+=38*t22;t7+=38*t23;t8+=38*t24;t9+=38*t25;t10+=38*t26;t11+=38*t27;t12+=38*t28;t13+=38*t29;t14+=38*t30;// t15 left as is +// first car +c=1;v=t0+c+65535;c=Math.floor(v/65536);t0=v-c*65536;v=t1+c+65535;c=Math.floor(v/65536);t1=v-c*65536;v=t2+c+65535;c=Math.floor(v/65536);t2=v-c*65536;v=t3+c+65535;c=Math.floor(v/65536);t3=v-c*65536;v=t4+c+65535;c=Math.floor(v/65536);t4=v-c*65536;v=t5+c+65535;c=Math.floor(v/65536);t5=v-c*65536;v=t6+c+65535;c=Math.floor(v/65536);t6=v-c*65536;v=t7+c+65535;c=Math.floor(v/65536);t7=v-c*65536;v=t8+c+65535;c=Math.floor(v/65536);t8=v-c*65536;v=t9+c+65535;c=Math.floor(v/65536);t9=v-c*65536;v=t10+c+65535;c=Math.floor(v/65536);t10=v-c*65536;v=t11+c+65535;c=Math.floor(v/65536);t11=v-c*65536;v=t12+c+65535;c=Math.floor(v/65536);t12=v-c*65536;v=t13+c+65535;c=Math.floor(v/65536);t13=v-c*65536;v=t14+c+65535;c=Math.floor(v/65536);t14=v-c*65536;v=t15+c+65535;c=Math.floor(v/65536);t15=v-c*65536;t0+=c-1+37*(c-1);// second car +c=1;v=t0+c+65535;c=Math.floor(v/65536);t0=v-c*65536;v=t1+c+65535;c=Math.floor(v/65536);t1=v-c*65536;v=t2+c+65535;c=Math.floor(v/65536);t2=v-c*65536;v=t3+c+65535;c=Math.floor(v/65536);t3=v-c*65536;v=t4+c+65535;c=Math.floor(v/65536);t4=v-c*65536;v=t5+c+65535;c=Math.floor(v/65536);t5=v-c*65536;v=t6+c+65535;c=Math.floor(v/65536);t6=v-c*65536;v=t7+c+65535;c=Math.floor(v/65536);t7=v-c*65536;v=t8+c+65535;c=Math.floor(v/65536);t8=v-c*65536;v=t9+c+65535;c=Math.floor(v/65536);t9=v-c*65536;v=t10+c+65535;c=Math.floor(v/65536);t10=v-c*65536;v=t11+c+65535;c=Math.floor(v/65536);t11=v-c*65536;v=t12+c+65535;c=Math.floor(v/65536);t12=v-c*65536;v=t13+c+65535;c=Math.floor(v/65536);t13=v-c*65536;v=t14+c+65535;c=Math.floor(v/65536);t14=v-c*65536;v=t15+c+65535;c=Math.floor(v/65536);t15=v-c*65536;t0+=c-1+37*(c-1);o[0]=t0;o[1]=t1;o[2]=t2;o[3]=t3;o[4]=t4;o[5]=t5;o[6]=t6;o[7]=t7;o[8]=t8;o[9]=t9;o[10]=t10;o[11]=t11;o[12]=t12;o[13]=t13;o[14]=t14;o[15]=t15;}function S(o,a){M(o,a,a);}function inv25519(o,i){var c=gf();var a;for(a=0;a<16;a++){c[a]=i[a];}for(a=253;a>=0;a--){S(c,c);if(a!==2&&a!==4)M(c,c,i);}for(a=0;a<16;a++){o[a]=c[a];}}function pow2523(o,i){var c=gf();var a;for(a=0;a<16;a++){c[a]=i[a];}for(a=250;a>=0;a--){S(c,c);if(a!==1)M(c,c,i);}for(a=0;a<16;a++){o[a]=c[a];}}function crypto_scalarmult(q,n,p){var z=new Uint8Array(32);var x=new Float64Array(80),r,i;var a=gf(),b=gf(),c=gf(),d=gf(),e=gf(),f=gf();for(i=0;i<31;i++){z[i]=n[i];}z[31]=n[31]&127|64;z[0]&=248;unpack25519(x,p);for(i=0;i<16;i++){b[i]=x[i];d[i]=a[i]=c[i]=0;}a[0]=d[0]=1;for(i=254;i>=0;--i){r=z[i>>>3]>>>(i&7)&1;sel25519(a,b,r);sel25519(c,d,r);A(e,a,c);Z(a,a,c);A(c,b,d);Z(b,b,d);S(d,e);S(f,a);M(a,c,a);M(c,b,e);A(e,a,c);Z(a,a,c);S(b,a);Z(c,d,f);M(a,c,_121665);A(a,a,d);M(c,c,a);M(a,d,f);M(d,b,x);S(b,e);sel25519(a,b,r);sel25519(c,d,r);}for(i=0;i<16;i++){x[i+16]=a[i];x[i+32]=c[i];x[i+48]=b[i];x[i+64]=d[i];}var x32=x.subarray(32);var x16=x.subarray(16);inv25519(x32,x32);M(x16,x16,x32);pack25519(q,x16);return 0;}function crypto_scalarmult_base(q,n){return crypto_scalarmult(q,n,_9);}function crypto_box_keypair(y,x){randombytes(x,32);return crypto_scalarmult_base(y,x);}function crypto_box_beforenm(k,y,x){var s=new Uint8Array(32);crypto_scalarmult(s,x,y);return crypto_core_hsalsa20(k,_0,s,sigma);}var crypto_box_afternm=crypto_secretbox;var crypto_box_open_afternm=crypto_secretbox_open;function crypto_box(c,m,d,n,y,x){var k=new Uint8Array(32);crypto_box_beforenm(k,y,x);return crypto_box_afternm(c,m,d,n,k);}function crypto_box_open(m,c,d,n,y,x){var k=new Uint8Array(32);crypto_box_beforenm(k,y,x);return crypto_box_open_afternm(m,c,d,n,k);}var K=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0x0fc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x06ca6351,0xe003826f,0x14292967,0x0a0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x0654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x06f067aa,0x72176fba,0x0a637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function crypto_hashblocks_hl(hh,hl,m,n){var wh=new Int32Array(16),wl=new Int32Array(16),bh0,bh1,bh2,bh3,bh4,bh5,bh6,bh7,bl0,bl1,bl2,bl3,bl4,bl5,bl6,bl7,th,tl,i,j,h,l,a,b,c,d;var ah0=hh[0],ah1=hh[1],ah2=hh[2],ah3=hh[3],ah4=hh[4],ah5=hh[5],ah6=hh[6],ah7=hh[7],al0=hl[0],al1=hl[1],al2=hl[2],al3=hl[3],al4=hl[4],al5=hl[5],al6=hl[6],al7=hl[7];var pos=0;while(n>=128){for(i=0;i<16;i++){j=8*i+pos;wh[i]=m[j+0]<<24|m[j+1]<<16|m[j+2]<<8|m[j+3];wl[i]=m[j+4]<<24|m[j+5]<<16|m[j+6]<<8|m[j+7];}for(i=0;i<80;i++){bh0=ah0;bh1=ah1;bh2=ah2;bh3=ah3;bh4=ah4;bh5=ah5;bh6=ah6;bh7=ah7;bl0=al0;bl1=al1;bl2=al2;bl3=al3;bl4=al4;bl5=al5;bl6=al6;bl7=al7;// add +h=ah7;l=al7;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;// Sigma1 +h=(ah4>>>14|al4<<32-14)^(ah4>>>18|al4<<32-18)^(al4>>>41-32|ah4<<32-(41-32));l=(al4>>>14|ah4<<32-14)^(al4>>>18|ah4<<32-18)^(ah4>>>41-32|al4<<32-(41-32));a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// Ch +h=ah4&ah5^~ah4&ah6;l=al4&al5^~al4&al6;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// K +h=K[i*2];l=K[i*2+1];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// w +h=wh[i%16];l=wl[i%16];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;th=c&0xffff|d<<16;tl=a&0xffff|b<<16;// add +h=th;l=tl;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;// Sigma0 +h=(ah0>>>28|al0<<32-28)^(al0>>>34-32|ah0<<32-(34-32))^(al0>>>39-32|ah0<<32-(39-32));l=(al0>>>28|ah0<<32-28)^(ah0>>>34-32|al0<<32-(34-32))^(ah0>>>39-32|al0<<32-(39-32));a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// Maj +h=ah0&ah1^ah0&ah2^ah1&ah2;l=al0&al1^al0&al2^al1&al2;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;bh7=c&0xffff|d<<16;bl7=a&0xffff|b<<16;// add +h=bh3;l=bl3;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=th;l=tl;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;bh3=c&0xffff|d<<16;bl3=a&0xffff|b<<16;ah1=bh0;ah2=bh1;ah3=bh2;ah4=bh3;ah5=bh4;ah6=bh5;ah7=bh6;ah0=bh7;al1=bl0;al2=bl1;al3=bl2;al4=bl3;al5=bl4;al6=bl5;al7=bl6;al0=bl7;if(i%16===15){for(j=0;j<16;j++){// add +h=wh[j];l=wl[j];a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=wh[(j+9)%16];l=wl[(j+9)%16];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// sigma0 +th=wh[(j+1)%16];tl=wl[(j+1)%16];h=(th>>>1|tl<<32-1)^(th>>>8|tl<<32-8)^th>>>7;l=(tl>>>1|th<<32-1)^(tl>>>8|th<<32-8)^(tl>>>7|th<<32-7);a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// sigma1 +th=wh[(j+14)%16];tl=wl[(j+14)%16];h=(th>>>19|tl<<32-19)^(tl>>>61-32|th<<32-(61-32))^th>>>6;l=(tl>>>19|th<<32-19)^(th>>>61-32|tl<<32-(61-32))^(tl>>>6|th<<32-6);a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;wh[j]=c&0xffff|d<<16;wl[j]=a&0xffff|b<<16;}}}// add +h=ah0;l=al0;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[0];l=hl[0];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[0]=ah0=c&0xffff|d<<16;hl[0]=al0=a&0xffff|b<<16;h=ah1;l=al1;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[1];l=hl[1];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[1]=ah1=c&0xffff|d<<16;hl[1]=al1=a&0xffff|b<<16;h=ah2;l=al2;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[2];l=hl[2];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[2]=ah2=c&0xffff|d<<16;hl[2]=al2=a&0xffff|b<<16;h=ah3;l=al3;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[3];l=hl[3];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[3]=ah3=c&0xffff|d<<16;hl[3]=al3=a&0xffff|b<<16;h=ah4;l=al4;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[4];l=hl[4];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[4]=ah4=c&0xffff|d<<16;hl[4]=al4=a&0xffff|b<<16;h=ah5;l=al5;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[5];l=hl[5];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[5]=ah5=c&0xffff|d<<16;hl[5]=al5=a&0xffff|b<<16;h=ah6;l=al6;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[6];l=hl[6];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[6]=ah6=c&0xffff|d<<16;hl[6]=al6=a&0xffff|b<<16;h=ah7;l=al7;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[7];l=hl[7];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[7]=ah7=c&0xffff|d<<16;hl[7]=al7=a&0xffff|b<<16;pos+=128;n-=128;}return n;}function crypto_hash(out,m,n){var hh=new Int32Array(8),hl=new Int32Array(8),x=new Uint8Array(256),i,b=n;hh[0]=0x6a09e667;hh[1]=0xbb67ae85;hh[2]=0x3c6ef372;hh[3]=0xa54ff53a;hh[4]=0x510e527f;hh[5]=0x9b05688c;hh[6]=0x1f83d9ab;hh[7]=0x5be0cd19;hl[0]=0xf3bcc908;hl[1]=0x84caa73b;hl[2]=0xfe94f82b;hl[3]=0x5f1d36f1;hl[4]=0xade682d1;hl[5]=0x2b3e6c1f;hl[6]=0xfb41bd6b;hl[7]=0x137e2179;crypto_hashblocks_hl(hh,hl,m,n);n%=128;for(i=0;i=0;--i){b=s[i/8|0]>>(i&7)&1;cswap(p,q,b);add(q,p);add(p,p);cswap(p,q,b);}}function scalarbase(p,s){var q=[gf(),gf(),gf(),gf()];set25519(q[0],X);set25519(q[1],Y);set25519(q[2],gf1);M(q[3],X,Y);scalarmult(p,q,s);}function crypto_sign_keypair(pk,sk,seeded){var d=new Uint8Array(64);var p=[gf(),gf(),gf(),gf()];var i;if(!seeded)randombytes(sk,32);crypto_hash(d,sk,32);d[0]&=248;d[31]&=127;d[31]|=64;scalarbase(p,d);pack(pk,p);for(i=0;i<32;i++){sk[i+32]=pk[i];}return 0;}var L=new Float64Array([0xed,0xd3,0xf5,0x5c,0x1a,0x63,0x12,0x58,0xd6,0x9c,0xf7,0xa2,0xde,0xf9,0xde,0x14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x10]);function modL(r,x){var carry,i,j,k;for(i=63;i>=32;--i){carry=0;for(j=i-32,k=i-12;j>8;x[j]-=carry*256;}x[j]+=carry;x[i]=0;}carry=0;for(j=0;j<32;j++){x[j]+=carry-(x[31]>>4)*L[j];carry=x[j]>>8;x[j]&=255;}for(j=0;j<32;j++){x[j]-=carry*L[j];}for(i=0;i<32;i++){x[i+1]+=x[i]>>8;r[i]=x[i]&255;}}function reduce(r){var x=new Float64Array(64),i;for(i=0;i<64;i++){x[i]=r[i];}for(i=0;i<64;i++){r[i]=0;}modL(r,x);}// Note: difference from C - smlen returned, not passed as argument. +function crypto_sign(sm,m,n,sk){var d=new Uint8Array(64),h=new Uint8Array(64),r=new Uint8Array(64);var i,j,x=new Float64Array(64);var p=[gf(),gf(),gf(),gf()];crypto_hash(d,sk,32);d[0]&=248;d[31]&=127;d[31]|=64;var smlen=n+64;for(i=0;i>7)Z(r[0],gf0,r[0]);M(r[3],r[0],r[1]);return 0;}function crypto_sign_open(m,sm,n,pk){var i,mlen;var t=new Uint8Array(32),h=new Uint8Array(64);var p=[gf(),gf(),gf(),gf()],q=[gf(),gf(),gf(),gf()];mlen=-1;if(n<64)return-1;if(unpackneg(q,pk))return-1;for(i=0;i=0;};nacl.sign.keyPair=function(){var pk=new Uint8Array(crypto_sign_PUBLICKEYBYTES);var sk=new Uint8Array(crypto_sign_SECRETKEYBYTES);crypto_sign_keypair(pk,sk);return{publicKey:pk,secretKey:sk};};nacl.sign.keyPair.fromSecretKey=function(secretKey){checkArrayTypes(secretKey);if(secretKey.length!==crypto_sign_SECRETKEYBYTES)throw new Error('bad secret key size');var pk=new Uint8Array(crypto_sign_PUBLICKEYBYTES);for(var i=0;i>6];var primitive=(tag&0x20)===0;// Multi-octet tag - load +if((tag&0x1f)===0x1f){var oct=tag;tag=0;while((oct&0x80)===0x80){oct=buf.readUInt8(fail);if(buf.isError(oct))return oct;tag<<=7;tag|=oct&0x7f;}}else{tag&=0x1f;}var tagStr=der.tag[tag];return{cls:cls,primitive:primitive,tag:tag,tagStr:tagStr};}function derDecodeLen(buf,primitive,fail){var len=buf.readUInt8(fail);if(buf.isError(len))return len;// Indefinite form +if(!primitive&&len===0x80)return null;// Definite form +if((len&0x80)===0){// Short form +return len;}// Long form +var num=len&0x7f;if(num>=4)return buf.error('length octect is too long');len=0;for(var i=0;i=0x100;i>>=8){lenOctets++;}var header=new Buffer(1+1+lenOctets);header[0]=encodedTag;header[1]=0x80|lenOctets;for(var i=1+lenOctets,j=content.length;j>0;i--,j>>=8){header[i]=j&0xff;}return this._createEncoderBuffer([header,content]);};DERNode.prototype._encodeStr=function encodeStr(str,tag){if(tag==='bitstr'){return this._createEncoderBuffer([str.unused|0,str.data]);}else if(tag==='bmpstr'){var buf=new Buffer(str.length*2);for(var i=0;i=40)return this.reporter.error('Second objid identifier OOB');id.splice(0,2,id[0]*40+id[1]);}// Count number of octets +var size=0;for(var i=0;i=0x80;ident>>=7){size++;}}var objid=new Buffer(size);var offset=objid.length-1;for(var i=id.length-1;i>=0;i--){var ident=id[i];objid[offset--]=ident&0x7f;while((ident>>=7)>0){objid[offset--]=0x80|ident&0x7f;}}return this._createEncoderBuffer(objid);};function two(num){if(num<10)return'0'+num;else return num;}DERNode.prototype._encodeTime=function encodeTime(time,tag){var str;var date=new Date(time);if(tag==='gentime'){str=[two(date.getFullYear()),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),'Z'].join('');}else if(tag==='utctime'){str=[two(date.getFullYear()%100),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),'Z'].join('');}else{this.reporter.error('Encoding '+tag+' time is not supported yet');}return this._encodeStr(str,'octstr');};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer('');};DERNode.prototype._encodeInt=function encodeInt(num,values){if(typeof num==='string'){if(!values)return this.reporter.error('String int or enum given, but no values map');if(!values.hasOwnProperty(num)){return this.reporter.error('Values map doesn\'t contain: '+JSON.stringify(num));}num=values[num];}// Bignum, assume big endian +if(typeof num!=='number'&&!Buffer.isBuffer(num)){var numArray=num.toArray();if(!num.sign&&numArray[0]&0x80){numArray.unshift(0);}num=new Buffer(numArray);}if(Buffer.isBuffer(num)){var size=num.length;if(num.length===0)size++;var out=new Buffer(size);num.copy(out);if(num.length===0)out[0]=0;return this._createEncoderBuffer(out);}if(num<0x80)return this._createEncoderBuffer(num);if(num<0x100)return this._createEncoderBuffer([0,num]);var size=1;for(var i=num;i>=0x100;i>>=8){size++;}var out=new Array(size);for(var i=out.length-1;i>=0;i--){out[i]=num&0xff;num>>=8;}if(out[0]&0x80){out.unshift(0);}return this._createEncoderBuffer(new Buffer(out));};DERNode.prototype._encodeBool=function encodeBool(value){return this._createEncoderBuffer(value?0xff:0);};DERNode.prototype._use=function use(entity,obj){if(typeof entity==='function')entity=entity(obj);return entity._getEncoder('der').tree;};DERNode.prototype._skipDefault=function skipDefault(dataBuffer,reporter,parent){var state=this._baseState;var i;if(state['default']===null)return false;var data=dataBuffer.join();if(state.defaultBuffer===undefined)state.defaultBuffer=this._encodeValue(state['default'],reporter,parent).join();if(data.length!==state.defaultBuffer.length)return false;for(i=0;i=0x1f)return reporter.error('Multi-octet tag encoding unsupported');if(!primitive)res|=0x20;res|=der.tagClassByName[cls||'universal']<<6;return res;} + +/***/ }, +/* 304 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var crypto_hash_sha512=__webpack_require__(294).lowlevel.crypto_hash;/* + * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a + * result, it retains the original copyright and license. The two files are + * under slightly different (but compatible) licenses, and are here combined in + * one file. + * + * Credit for the actual porting work goes to: + * Devi Mandiri + *//* + * The Blowfish portions are under the following license: + * + * Blowfish block cipher for OpenBSD + * Copyright 1997 Niels Provos + * All rights reserved. + * + * Implementation advice by David Mazieres . + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Niels Provos. + * 4. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *//* + * The bcrypt_pbkdf portions are under the following license: + * + * Copyright (c) 2013 Ted Unangst + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + *//* + * Performance improvements (Javascript-specific): + * + * Copyright 2016, Joyent Inc + * Author: Alex Wilson + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */// Ported from OpenBSD bcrypt_pbkdf.c v1.9 +var BLF_J=0;var Blowfish=function Blowfish(){this.S=[new Uint32Array([0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x0801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0x0d95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0x0f6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x075372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x04c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,0x00250e2d,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x02e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x08ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x08ba4799,0x6e85076a]),new Uint32Array([0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,0xad6ea6b0,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x021ecc5e,0x09686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x0200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0x0fd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x043556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x018cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x0334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0x0e358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x095bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0x0c55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0x0e1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7]),new Uint32Array([0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x03bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0x0a2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x04272f70,0x80bb155c,0x05282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x07f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0x0e12b4c2,0x02e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0x0a476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x06a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0x0a121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x09f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0x0ba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0x0de6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,0x006058aa,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x08fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0]),new Uint32Array([0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x022b8b51,0x96d5ac3a,0x017da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x03a16125,0x0564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x03563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x09072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x0115af84,0xe1b00428,0x95983a1d,0x06b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x011a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x0339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0x0f91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0x0fe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x02fb8a8c,0x01c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6])];this.P=new Uint32Array([0x243f6a88,0x85a308d3,0x13198a2e,0x03707344,0xa4093822,0x299f31d0,0x082efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b]);};function F(S,x8,i){return(S[0][x8[i+3]]+S[1][x8[i+2]]^S[2][x8[i+1]])+S[3][x8[i]];};Blowfish.prototype.encipher=function(x,x8){if(x8===undefined){x8=new Uint8Array(x.buffer);if(x.byteOffset!==0)x8=x8.subarray(x.byteOffset);}x[0]^=this.P[0];for(var i=1;i<16;i+=2){x[1]^=F(this.S,x8,0)^this.P[i];x[0]^=F(this.S,x8,4)^this.P[i+1];}var t=x[0];x[0]=x[1]^this.P[17];x[1]=t;};Blowfish.prototype.decipher=function(x){var x8=new Uint8Array(x.buffer);if(x.byteOffset!==0)x8=x8.subarray(x.byteOffset);x[0]^=this.P[17];for(var i=16;i>0;i-=2){x[1]^=F(this.S,x8,0)^this.P[i];x[0]^=F(this.S,x8,4)^this.P[i-1];}var t=x[0];x[0]=x[1]^this.P[0];x[1]=t;};function stream2word(data,databytes){var i,temp=0;for(i=0;i<4;i++,BLF_J++){if(BLF_J>=databytes)BLF_J=0;temp=temp<<8|data[BLF_J];}return temp;};Blowfish.prototype.expand0state=function(key,keybytes){var d=new Uint32Array(2),i,k;var d8=new Uint8Array(d.buffer);for(i=0,BLF_J=0;i<18;i++){this.P[i]^=stream2word(key,keybytes);}BLF_J=0;for(i=0;i<18;i+=2){this.encipher(d,d8);this.P[i]=d[0];this.P[i+1]=d[1];}for(i=0;i<4;i++){for(k=0;k<256;k+=2){this.encipher(d,d8);this.S[i][k]=d[0];this.S[i][k+1]=d[1];}}};Blowfish.prototype.expandstate=function(data,databytes,key,keybytes){var d=new Uint32Array(2),i,k;for(i=0,BLF_J=0;i<18;i++){this.P[i]^=stream2word(key,keybytes);}for(i=0,BLF_J=0;i<18;i+=2){d[0]^=stream2word(data,databytes);d[1]^=stream2word(data,databytes);this.encipher(d);this.P[i]=d[0];this.P[i+1]=d[1];}for(i=0;i<4;i++){for(k=0;k<256;k+=2){d[0]^=stream2word(data,databytes);d[1]^=stream2word(data,databytes);this.encipher(d);this.S[i][k]=d[0];this.S[i][k+1]=d[1];}}BLF_J=0;};Blowfish.prototype.enc=function(data,blocks){for(var i=0;i>>24;out[4*i+2]=cdata[i]>>>16;out[4*i+1]=cdata[i]>>>8;out[4*i+0]=cdata[i];}};function bcrypt_pbkdf(pass,passlen,salt,saltlen,key,keylen,rounds){var sha2pass=new Uint8Array(64),sha2salt=new Uint8Array(64),out=new Uint8Array(BCRYPT_HASHSIZE),tmpout=new Uint8Array(BCRYPT_HASHSIZE),countsalt=new Uint8Array(saltlen+4),i,j,amt,stride,dest,count,origkeylen=keylen;if(rounds<1)return-1;if(passlen===0||saltlen===0||keylen===0||keylen>out.byteLength*out.byteLength||saltlen>1<<20)return-1;stride=Math.floor((keylen+out.byteLength-1)/out.byteLength);amt=Math.floor((keylen+stride-1)/stride);for(i=0;i0;count++){countsalt[saltlen+0]=count>>>24;countsalt[saltlen+1]=count>>>16;countsalt[saltlen+2]=count>>>8;countsalt[saltlen+3]=count;crypto_hash_sha512(sha2salt,countsalt,saltlen+4);bcrypt_hash(sha2pass,sha2salt,tmpout);for(i=out.byteLength;i--;){out[i]=tmpout[i];}for(i=1;i=origkeylen)break;key[dest]=out[i];}keylen-=i;}return 0;};module.exports={BLOCKS:BCRYPT_BLOCKS,HASHSIZE:BCRYPT_HASHSIZE,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}; + +/***/ }, +/* 305 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var r;module.exports=function rand(len){if(!r)r=new Rand(null);return r.generate(len);};function Rand(rand){this.rand=rand;}module.exports.Rand=Rand;Rand.prototype.generate=function generate(len){return this._rand(len);};if((typeof window==='undefined'?'undefined':_typeof(window))==='object'){if(window.crypto&&window.crypto.getRandomValues){// Modern browsers +Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.crypto.getRandomValues(arr);return arr;};}else if(window.msCrypto&&window.msCrypto.getRandomValues){// IE +Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.msCrypto.getRandomValues(arr);return arr;};}else{// Old junk +Rand.prototype._rand=function(){throw new Error('Not implemented yet');};}}else{// Node.js or Web worker +try{var crypto=__webpack_require__(1201);Rand.prototype._rand=function _rand(n){return crypto.randomBytes(n);};}catch(e){// Emulate crypto API using randy +Rand.prototype._rand=function _rand(n){var res=new Uint8Array(n);for(var i=0;i>i%8;self._prev=shiftIn(self._prev,decrypt?bit:value);}return out;}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i>7;}return out;} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) + +/***/ }, +/* 310 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) {"use strict";function encryptByte(self,byteParam,decrypt){var pad=self._cipher.encryptBlock(self._prev);var out=pad[0]^byteParam;self._prev=Buffer.concat([self._prev.slice(1),new Buffer([decrypt?byteParam:out])]);return out;}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i>5]|=0x80<>>9<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&0xFFFF;}/* + * Bitwise rotate a 32-bit number to the left. + */function bit_rol(num,cnt){return num<>>32-cnt;}module.exports=function md5(buf){return helpers.hash(buf,core_md5,16);}; + +/***/ }, +/* 317 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/*istanbul ignore start*/'use strict';exports.__esModule=true;exports.canonicalize=exports.convertChangesToXML=exports.convertChangesToDMP=exports.parsePatch=exports.applyPatches=exports.applyPatch=exports.createPatch=exports.createTwoFilesPatch=exports.structuredPatch=exports.diffArrays=exports.diffJson=exports.diffCss=exports.diffSentences=exports.diffTrimmedLines=exports.diffLines=exports.diffWordsWithSpace=exports.diffWords=exports.diffChars=exports.Diff=undefined;/*istanbul ignore end*/var/*istanbul ignore start*/_base=__webpack_require__(57)/*istanbul ignore end*/;/*istanbul ignore start*/var _base2=_interopRequireDefault(_base);/*istanbul ignore end*/var/*istanbul ignore start*/_character=__webpack_require__(612)/*istanbul ignore end*/;var/*istanbul ignore start*/_word=__webpack_require__(616)/*istanbul ignore end*/;var/*istanbul ignore start*/_line=__webpack_require__(202)/*istanbul ignore end*/;var/*istanbul ignore start*/_sentence=__webpack_require__(615)/*istanbul ignore end*/;var/*istanbul ignore start*/_css=__webpack_require__(613)/*istanbul ignore end*/;var/*istanbul ignore start*/_json=__webpack_require__(614)/*istanbul ignore end*/;var/*istanbul ignore start*/_array=__webpack_require__(611)/*istanbul ignore end*/;var/*istanbul ignore start*/_apply=__webpack_require__(617)/*istanbul ignore end*/;var/*istanbul ignore start*/_parse=__webpack_require__(318)/*istanbul ignore end*/;var/*istanbul ignore start*/_create=__webpack_require__(618)/*istanbul ignore end*/;var/*istanbul ignore start*/_dmp=__webpack_require__(609)/*istanbul ignore end*/;var/*istanbul ignore start*/_xml=__webpack_require__(610)/*istanbul ignore end*/;/*istanbul ignore start*/function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}exports./*istanbul ignore end*/Diff=_base2['default'];/*istanbul ignore start*/exports./*istanbul ignore end*/diffChars=_character.diffChars;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWords=_word.diffWords;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWordsWithSpace=_word.diffWordsWithSpace;/*istanbul ignore start*/exports./*istanbul ignore end*/diffLines=_line.diffLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffTrimmedLines=_line.diffTrimmedLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffSentences=_sentence.diffSentences;/*istanbul ignore start*/exports./*istanbul ignore end*/diffCss=_css.diffCss;/*istanbul ignore start*/exports./*istanbul ignore end*/diffJson=_json.diffJson;/*istanbul ignore start*/exports./*istanbul ignore end*/diffArrays=_array.diffArrays;/*istanbul ignore start*/exports./*istanbul ignore end*/structuredPatch=_create.structuredPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createTwoFilesPatch=_create.createTwoFilesPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createPatch=_create.createPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatch=_apply.applyPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatches=_apply.applyPatches;/*istanbul ignore start*/exports./*istanbul ignore end*/parsePatch=_parse.parsePatch;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToDMP=_dmp.convertChangesToDMP;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToXML=_xml.convertChangesToXML;/*istanbul ignore start*/exports./*istanbul ignore end*/canonicalize=_json.canonicalize;/* See LICENSE file for terms of use *//* * Text diff implementation. * * This library supports the following APIS: @@ -5352,7 +8163,7 @@ var imageElements=(0,_map3.default)(images,function(image,index){var key=[index, //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiZ2ZBZ0JBLEcseUJBQUEsYyxjQUFBLGlIQUNBLEcseUJBQUEsbUIsbUJBQUEsd0JBQ0EsRyx5QkFBQSxjLGNBQUEsd0JBQ0EsRyx5QkFBQSxjLGNBQUEsd0JBQ0EsRyx5QkFBQSxrQixrQkFBQSx3QkFFQSxHLHlCQUFBLGEsYUFBQSx3QkFDQSxHLHlCQUFBLGMsY0FBQSx3QkFFQSxHLHlCQUFBLGUsZUFBQSx3QkFFQSxHLHlCQUFBLGUsZ0JBQUEsd0JBQ0EsRyx5QkFBQSxlLGdCQUFBLHdCQUNBLEcseUJBQUEsZ0IsaUJBQUEsd0JBRUEsRyx5QkFBQSxhLGdCQUFBLHdCQUNBLEcseUJBQUEsYSxnQkFBQSxxS0FHRSxBLCtFQUVBLEEsdUZBQ0EsQSxrRkFDQSxBLG9HQUNBLEEsa0ZBQ0EsQSxnR0FDQSxBLDhGQUVBLEEsNkVBQ0EsQSxnRkFFQSxBLHFGQUVBLEEsZ0dBQ0EsQSx3R0FDQSxBLHdGQUNBLEEscUZBQ0EsQSx5RkFDQSxBLHFGQUNBLEEscUdBQ0EsQSxxR0FDQSxBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2VlIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMgb2YgdXNlICovXG5cbi8qXG4gKiBUZXh0IGRpZmYgaW1wbGVtZW50YXRpb24uXG4gKlxuICogVGhpcyBsaWJyYXJ5IHN1cHBvcnRzIHRoZSBmb2xsb3dpbmcgQVBJUzpcbiAqIEpzRGlmZi5kaWZmQ2hhcnM6IENoYXJhY3RlciBieSBjaGFyYWN0ZXIgZGlmZlxuICogSnNEaWZmLmRpZmZXb3JkczogV29yZCAoYXMgZGVmaW5lZCBieSBcXGIgcmVnZXgpIGRpZmYgd2hpY2ggaWdub3JlcyB3aGl0ZXNwYWNlXG4gKiBKc0RpZmYuZGlmZkxpbmVzOiBMaW5lIGJhc2VkIGRpZmZcbiAqXG4gKiBKc0RpZmYuZGlmZkNzczogRGlmZiB0YXJnZXRlZCBhdCBDU1MgY29udGVudFxuICpcbiAqIFRoZXNlIG1ldGhvZHMgYXJlIGJhc2VkIG9uIHRoZSBpbXBsZW1lbnRhdGlvbiBwcm9wb3NlZCBpblxuICogXCJBbiBPKE5EKSBEaWZmZXJlbmNlIEFsZ29yaXRobSBhbmQgaXRzIFZhcmlhdGlvbnNcIiAoTXllcnMsIDE5ODYpLlxuICogaHR0cDovL2NpdGVzZWVyeC5pc3QucHN1LmVkdS92aWV3ZG9jL3N1bW1hcnk/ZG9pPTEwLjEuMS40LjY5MjdcbiAqL1xuaW1wb3J0IERpZmYgZnJvbSAnLi9kaWZmL2Jhc2UnO1xuaW1wb3J0IHtkaWZmQ2hhcnN9IGZyb20gJy4vZGlmZi9jaGFyYWN0ZXInO1xuaW1wb3J0IHtkaWZmV29yZHMsIGRpZmZXb3Jkc1dpdGhTcGFjZX0gZnJvbSAnLi9kaWZmL3dvcmQnO1xuaW1wb3J0IHtkaWZmTGluZXMsIGRpZmZUcmltbWVkTGluZXN9IGZyb20gJy4vZGlmZi9saW5lJztcbmltcG9ydCB7ZGlmZlNlbnRlbmNlc30gZnJvbSAnLi9kaWZmL3NlbnRlbmNlJztcblxuaW1wb3J0IHtkaWZmQ3NzfSBmcm9tICcuL2RpZmYvY3NzJztcbmltcG9ydCB7ZGlmZkpzb24sIGNhbm9uaWNhbGl6ZX0gZnJvbSAnLi9kaWZmL2pzb24nO1xuXG5pbXBvcnQge2RpZmZBcnJheXN9IGZyb20gJy4vZGlmZi9hcnJheSc7XG5cbmltcG9ydCB7YXBwbHlQYXRjaCwgYXBwbHlQYXRjaGVzfSBmcm9tICcuL3BhdGNoL2FwcGx5JztcbmltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXRjaC9wYXJzZSc7XG5pbXBvcnQge3N0cnVjdHVyZWRQYXRjaCwgY3JlYXRlVHdvRmlsZXNQYXRjaCwgY3JlYXRlUGF0Y2h9IGZyb20gJy4vcGF0Y2gvY3JlYXRlJztcblxuaW1wb3J0IHtjb252ZXJ0Q2hhbmdlc1RvRE1QfSBmcm9tICcuL2NvbnZlcnQvZG1wJztcbmltcG9ydCB7Y29udmVydENoYW5nZXNUb1hNTH0gZnJvbSAnLi9jb252ZXJ0L3htbCc7XG5cbmV4cG9ydCB7XG4gIERpZmYsXG5cbiAgZGlmZkNoYXJzLFxuICBkaWZmV29yZHMsXG4gIGRpZmZXb3Jkc1dpdGhTcGFjZSxcbiAgZGlmZkxpbmVzLFxuICBkaWZmVHJpbW1lZExpbmVzLFxuICBkaWZmU2VudGVuY2VzLFxuXG4gIGRpZmZDc3MsXG4gIGRpZmZKc29uLFxuXG4gIGRpZmZBcnJheXMsXG5cbiAgc3RydWN0dXJlZFBhdGNoLFxuICBjcmVhdGVUd29GaWxlc1BhdGNoLFxuICBjcmVhdGVQYXRjaCxcbiAgYXBwbHlQYXRjaCxcbiAgYXBwbHlQYXRjaGVzLFxuICBwYXJzZVBhdGNoLFxuICBjb252ZXJ0Q2hhbmdlc1RvRE1QLFxuICBjb252ZXJ0Q2hhbmdlc1RvWE1MLFxuICBjYW5vbmljYWxpemVcbn07XG4iXX0= /***/ }, -/* 219 */ +/* 318 */ /***/ function(module, exports) { "use strict"; @@ -5375,7 +8186,7 @@ if(options.strict){if(addCount!==hunk.newLines){throw new Error('Added line coun //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiNkZBQWdCLEEsVyxBQUFBLFdBQVQsUUFBQSxBQUFTLFlBQVQsQUFBb0IsUUFBdUIsMEJBQUEsRyx1QkFBZCxBQUFjLHNEQUFKLEFBQUksYUFDaEQsTUFBSSxTQUFVLFFBQUEsQUFBUSxNQUF0QixBQUFjLEFBQWMsdUJBQ3hCLFdBQWEsUUFBQSxBQUFRLE1BQVIsQUFBYyx5QkFEL0IsQUFDMEQsR0FDdEQsS0FGSixBQUVXLEdBQ1AsRUFISixBQUdRLEFBRVIsVUFBQSxBQUFTLGFBQWEsQUFDcEIsSUFBSSxPQUFKLEFBQVksQUFDWixRQUFBLEFBQUssS0FBTCxBQUFVLE9BR1Y7TUFBTyxFQUFJLFFBQVgsQUFBbUIsT0FBUSxBQUN6QixJQUFJLE1BQU8sUUFBWCxBQUFXLEFBQVEsR0FHbkI7R0FBSSx3QkFBQSxBQUF3QixLQUE1QixBQUFJLEFBQTZCLE1BQU8sQUFDdEMsQ0FDRCxPQUdEO0dBQUksUUFBUyxBQUFDLDJDQUFELEFBQTZDLEtBQTFELEFBQWEsQUFBa0QsQUFDL0QsU0FBQSxBQUFJLE9BQVEsQUFDVixPQUFBLEFBQU0sTUFBUSxPQUFkLEFBQWMsQUFBTyxBQUN0QixHQUVELENBQ0Q7QUFJRDtnQkFBQSxBQUFnQixBQUNoQix1QkFBQSxBQUFnQixPQUdoQjtNQUFBLEFBQU0sTUFBTixBQUFjLEFBRWQsU0FBTyxFQUFJLFFBQVgsQUFBbUIsT0FBUSxBQUN6QixJQUFJLE9BQU8sUUFBWCxBQUFXLEFBQVEsQUFFbkIsTUFBSSxpQ0FBQSxBQUFpQyxLQUFyQyxBQUFJLEFBQXNDLE9BQU8sQUFDL0MsQ0FDRCxNQUZELEtBRU8sSUFBSSxNQUFBLEFBQU0sS0FBVixBQUFJLEFBQVcsT0FBTyxBQUMzQixPQUFBLEFBQU0sTUFBTixBQUFZLEtBQVosQUFBaUIsQUFDbEIsYUFGTSxTQUVJLE9BQVEsUUFBWixBQUFvQixPQUFRLENBRWpDO0tBQU0sSUFBQSxBQUFJLE9BQU0saUJBQW1CLEVBQW5CLEFBQXVCLEdBQXZCLEFBQTRCLElBQU0sS0FBQSxBQUFLLFVBQXZELEFBQU0sQUFBNEMsQUFBZSxBQUNsRSxRQUhNLENBQUEsSUFHQSxBQUNMLENBQ0QsSUFDRixDQUNGO0FBSUQ7UUFBQSxBQUFTLGlCQUFULEFBQXlCLE1BQU8sQUFDOUIsSUFBTSxlQUFOLEFBQXNCLEFBQ3RCLDhDQUFNLFlBQWEsY0FBQSxBQUFjLEtBQUssUUFBdEMsQUFBbUIsQUFBbUIsQUFBUSxBQUM5QyxPQUFBLEFBQUksV0FBWSxBQUNkLElBQUksV0FBWSxXQUFBLEFBQVcsS0FBWCxBQUFrQixNQUFsQixBQUEwQixNQUExQyxBQUFrRCxBQUNsRCxZQUFNLFVBQU4sQUFBa0IsWUFBYyxXQUFoQyxBQUFnQyxBQUFXLEFBQzNDLFNBQU0sVUFBTixBQUFrQixVQUFZLFdBQTlCLEFBQThCLEFBQVcsQUFFekMsR0FDRCxJQUNGO0FBSUQ7UUFBQSxBQUFTLFlBQVksQUFDbkIsSUFBSSxrQkFBSixBQUF1QixFQUNuQixnQkFBa0IsUUFEdEIsQUFDc0IsQUFBUSxLQUMxQixZQUFjLGdCQUFBLEFBQWdCLE1BRmxDLEFBRWtCLEFBQXNCLEFBRXhDLGlEQUFJLE1BQU8sQUFDVCxVQUFVLENBQUMsWUFERixBQUNFLEFBQVksQUFDdkIsWUFBVSxDQUFDLFlBQUQsQUFBQyxBQUFZLElBRmQsQUFFb0IsQUFDN0IsV0FBVSxDQUFDLFlBSEYsQUFHRSxBQUFZLEFBQ3ZCLFlBQVUsQ0FBQyxZQUFELEFBQUMsQUFBWSxJQUpkLEFBSW9CLEFBQzdCLFFBTFMsQUFLRixBQUNQLGtCQU5GLEFBQVcsQUFNTyxBQUdsQixPQUFJLFVBQUosQUFBZSxFQUNYLFlBREosQUFDa0IsQUFDbEIsT0FBTyxFQUFJLFFBQVgsQUFBbUIsT0FBbkIsQUFBMkIsSUFBSztBQUc5QjtHQUFJLFFBQUEsQUFBUSxHQUFSLEFBQVcsUUFBWCxBQUFtQixVQUFuQixBQUErQixHQUN6QixFQUFBLEFBQUksRUFBSSxRQURkLEFBQ3NCLFFBQ2pCLFFBQVEsRUFBUixBQUFZLEdBQVosQUFBZSxRQUFmLEFBQXVCLFVBRjVCLEFBRXdDLEdBQ25DLFFBQVEsRUFBUixBQUFZLEdBQVosQUFBZSxRQUFmLEFBQXVCLFFBSGhDLEFBRzBDLEVBQUcsQUFDekMsQ0FDSCxNQUNELElBQUksV0FBWSxRQUFBLEFBQVEsR0FBeEIsQUFBZ0IsQUFBVyxBQUUzQixNQUFJLFlBQUEsQUFBYyxLQUFPLFlBQXJCLEFBQW1DLEtBQU8sWUFBMUMsQUFBd0QsS0FBTyxZQUFuRSxBQUFpRixLQUFNLEFBQ3JGLE1BQUEsQUFBSyxNQUFMLEFBQVcsS0FBSyxRQUFoQixBQUFnQixBQUFRLEFBQ3hCLFNBQUEsQUFBSyxlQUFMLEFBQW9CLEtBQUssV0FBQSxBQUFXLElBQXBDLEFBQTBDLEFBRTFDLFNBQUksWUFBSixBQUFrQixJQUFLLEFBQ3JCLENBQ0QsV0FGRCxLQUVPLElBQUksWUFBSixBQUFrQixJQUFLLEFBQzVCLENBQ0QsY0FGTSxLQUVBLElBQUksWUFBSixBQUFrQixJQUFLLEFBQzVCLENBQ0EsV0FDRCxjQUNGLENBWkQsS0FZTyxBQUNMLENBQ0QsTUFDRixFQUdEO0dBQUksQ0FBQSxBQUFDLFVBQVksS0FBQSxBQUFLLFdBQXRCLEFBQW1DLEVBQUcsQUFDcEMsTUFBQSxBQUFLLFNBQUwsQUFBZ0IsQUFDakIsRUFDRCxJQUFJLENBQUEsQUFBQyxhQUFlLEtBQUEsQUFBSyxXQUF6QixBQUFzQyxFQUFHLEFBQ3ZDLE1BQUEsQUFBSyxTQUFMLEFBQWdCLEFBQ2pCLEdBR0Q7R0FBSSxRQUFKLEFBQVksT0FBUSxBQUNsQixJQUFJLFdBQWEsS0FBakIsQUFBc0IsU0FBVSxBQUM5QixNQUFNLElBQUEsQUFBSSxPQUFNLG9EQUFzRCxpQkFBdEUsQUFBTSxBQUFVLEFBQXlFLEFBQzFGLElBQ0QsSUFBSSxjQUFnQixLQUFwQixBQUF5QixTQUFVLEFBQ2pDLE1BQU0sSUFBQSxBQUFJLE9BQU0sc0RBQXdELGlCQUF4RSxBQUFNLEFBQVUsQUFBMkUsQUFDNUYsSUFDRixDQUVELE9BQUEsQUFBTyxBQUNSLE1BRUQsT0FBTyxFQUFJLFFBQVgsQUFBbUIsT0FBUSxBQUN6QixDQUNELGFBRUQsT0FBQSxBQUFPLEFBQ1IiLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gcGFyc2VQYXRjaCh1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgbGV0IGRpZmZzdHIgPSB1bmlEaWZmLnNwbGl0KC9cXHJcXG58W1xcblxcdlxcZlxcclxceDg1XS8pLFxuICAgICAgZGVsaW1pdGVycyA9IHVuaURpZmYubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgbGlzdCA9IFtdLFxuICAgICAgaSA9IDA7XG5cbiAgZnVuY3Rpb24gcGFyc2VJbmRleCgpIHtcbiAgICBsZXQgaW5kZXggPSB7fTtcbiAgICBsaXN0LnB1c2goaW5kZXgpO1xuXG4gICAgLy8gUGFyc2UgZGlmZiBtZXRhZGF0YVxuICAgIHdoaWxlIChpIDwgZGlmZnN0ci5sZW5ndGgpIHtcbiAgICAgIGxldCBsaW5lID0gZGlmZnN0cltpXTtcblxuICAgICAgLy8gRmlsZSBoZWFkZXIgZm91bmQsIGVuZCBwYXJzaW5nIGRpZmYgbWV0YWRhdGFcbiAgICAgIGlmICgvXihcXC1cXC1cXC18XFwrXFwrXFwrfEBAKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgLy8gRGlmZiBpbmRleFxuICAgICAgbGV0IGhlYWRlciA9ICgvXig/OkluZGV4OnxkaWZmKD86IC1yIFxcdyspKylcXHMrKC4rPylcXHMqJC8pLmV4ZWMobGluZSk7XG4gICAgICBpZiAoaGVhZGVyKSB7XG4gICAgICAgIGluZGV4LmluZGV4ID0gaGVhZGVyWzFdO1xuICAgICAgfVxuXG4gICAgICBpKys7XG4gICAgfVxuXG4gICAgLy8gUGFyc2UgZmlsZSBoZWFkZXJzIGlmIHRoZXkgYXJlIGRlZmluZWQuIFVuaWZpZWQgZGlmZiByZXF1aXJlcyB0aGVtLCBidXRcbiAgICAvLyB0aGVyZSdzIG5vIHRlY2huaWNhbCBpc3N1ZXMgdG8gaGF2ZSBhbiBpc29sYXRlZCBodW5rIHdpdGhvdXQgZmlsZSBoZWFkZXJcbiAgICBwYXJzZUZpbGVIZWFkZXIoaW5kZXgpO1xuICAgIHBhcnNlRmlsZUhlYWRlcihpbmRleCk7XG5cbiAgICAvLyBQYXJzZSBodW5rc1xuICAgIGluZGV4Lmh1bmtzID0gW107XG5cbiAgICB3aGlsZSAoaSA8IGRpZmZzdHIubGVuZ3RoKSB7XG4gICAgICBsZXQgbGluZSA9IGRpZmZzdHJbaV07XG5cbiAgICAgIGlmICgvXihJbmRleDp8ZGlmZnxcXC1cXC1cXC18XFwrXFwrXFwrKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH0gZWxzZSBpZiAoL15AQC8udGVzdChsaW5lKSkge1xuICAgICAgICBpbmRleC5odW5rcy5wdXNoKHBhcnNlSHVuaygpKTtcbiAgICAgIH0gZWxzZSBpZiAobGluZSAmJiBvcHRpb25zLnN0cmljdCkge1xuICAgICAgICAvLyBJZ25vcmUgdW5leHBlY3RlZCBjb250ZW50IHVubGVzcyBpbiBzdHJpY3QgbW9kZVxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1Vua25vd24gbGluZSAnICsgKGkgKyAxKSArICcgJyArIEpTT04uc3RyaW5naWZ5KGxpbmUpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGkrKztcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBQYXJzZXMgdGhlIC0tLSBhbmQgKysrIGhlYWRlcnMsIGlmIG5vbmUgYXJlIGZvdW5kLCBubyBsaW5lc1xuICAvLyBhcmUgY29uc3VtZWQuXG4gIGZ1bmN0aW9uIHBhcnNlRmlsZUhlYWRlcihpbmRleCkge1xuICAgIGNvbnN0IGhlYWRlclBhdHRlcm4gPSAvXigtLS18XFwrXFwrXFwrKVxccysoW1xcUyBdKikoPzpcXHQoLio/KVxccyopPyQvO1xuICAgIGNvbnN0IGZpbGVIZWFkZXIgPSBoZWFkZXJQYXR0ZXJuLmV4ZWMoZGlmZnN0cltpXSk7XG4gICAgaWYgKGZpbGVIZWFkZXIpIHtcbiAgICAgIGxldCBrZXlQcmVmaXggPSBmaWxlSGVhZGVyWzFdID09PSAnLS0tJyA/ICdvbGQnIDogJ25ldyc7XG4gICAgICBpbmRleFtrZXlQcmVmaXggKyAnRmlsZU5hbWUnXSA9IGZpbGVIZWFkZXJbMl07XG4gICAgICBpbmRleFtrZXlQcmVmaXggKyAnSGVhZGVyJ10gPSBmaWxlSGVhZGVyWzNdO1xuXG4gICAgICBpKys7XG4gICAgfVxuICB9XG5cbiAgLy8gUGFyc2VzIGEgaHVua1xuICAvLyBUaGlzIGFzc3VtZXMgdGhhdCB3ZSBhcmUgYXQgdGhlIHN0YXJ0IG9mIGEgaHVuay5cbiAgZnVuY3Rpb24gcGFyc2VIdW5rKCkge1xuICAgIGxldCBjaHVua0hlYWRlckluZGV4ID0gaSxcbiAgICAgICAgY2h1bmtIZWFkZXJMaW5lID0gZGlmZnN0cltpKytdLFxuICAgICAgICBjaHVua0hlYWRlciA9IGNodW5rSGVhZGVyTGluZS5zcGxpdCgvQEAgLShcXGQrKSg/OiwoXFxkKykpPyBcXCsoXFxkKykoPzosKFxcZCspKT8gQEAvKTtcblxuICAgIGxldCBodW5rID0ge1xuICAgICAgb2xkU3RhcnQ6ICtjaHVua0hlYWRlclsxXSxcbiAgICAgIG9sZExpbmVzOiArY2h1bmtIZWFkZXJbMl0gfHwgMSxcbiAgICAgIG5ld1N0YXJ0OiArY2h1bmtIZWFkZXJbM10sXG4gICAgICBuZXdMaW5lczogK2NodW5rSGVhZGVyWzRdIHx8IDEsXG4gICAgICBsaW5lczogW10sXG4gICAgICBsaW5lZGVsaW1pdGVyczogW11cbiAgICB9O1xuXG4gICAgbGV0IGFkZENvdW50ID0gMCxcbiAgICAgICAgcmVtb3ZlQ291bnQgPSAwO1xuICAgIGZvciAoOyBpIDwgZGlmZnN0ci5sZW5ndGg7IGkrKykge1xuICAgICAgLy8gTGluZXMgc3RhcnRpbmcgd2l0aCAnLS0tJyBjb3VsZCBiZSBtaXN0YWtlbiBmb3IgdGhlIFwicmVtb3ZlIGxpbmVcIiBvcGVyYXRpb25cbiAgICAgIC8vIEJ1dCB0aGV5IGNvdWxkIGJlIHRoZSBoZWFkZXIgZm9yIHRoZSBuZXh0IGZpbGUuIFRoZXJlZm9yZSBwcnVuZSBzdWNoIGNhc2VzIG91dC5cbiAgICAgIGlmIChkaWZmc3RyW2ldLmluZGV4T2YoJy0tLSAnKSA9PT0gMFxuICAgICAgICAgICAgJiYgKGkgKyAyIDwgZGlmZnN0ci5sZW5ndGgpXG4gICAgICAgICAgICAmJiBkaWZmc3RyW2kgKyAxXS5pbmRleE9mKCcrKysgJykgPT09IDBcbiAgICAgICAgICAgICYmIGRpZmZzdHJbaSArIDJdLmluZGV4T2YoJ0BAJykgPT09IDApIHtcbiAgICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICAgIGxldCBvcGVyYXRpb24gPSBkaWZmc3RyW2ldWzBdO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnKycgfHwgb3BlcmF0aW9uID09PSAnLScgfHwgb3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnXFxcXCcpIHtcbiAgICAgICAgaHVuay5saW5lcy5wdXNoKGRpZmZzdHJbaV0pO1xuICAgICAgICBodW5rLmxpbmVkZWxpbWl0ZXJzLnB1c2goZGVsaW1pdGVyc1tpXSB8fCAnXFxuJyk7XG5cbiAgICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgICAgYWRkQ291bnQrKztcbiAgICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH0gZWxzZSBpZiAob3BlcmF0aW9uID09PSAnICcpIHtcbiAgICAgICAgICBhZGRDb3VudCsrO1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEhhbmRsZSB0aGUgZW1wdHkgYmxvY2sgY291bnQgY2FzZVxuICAgIGlmICghYWRkQ291bnQgJiYgaHVuay5uZXdMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5uZXdMaW5lcyA9IDA7XG4gICAgfVxuICAgIGlmICghcmVtb3ZlQ291bnQgJiYgaHVuay5vbGRMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5vbGRMaW5lcyA9IDA7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybSBvcHRpb25hbCBzYW5pdHkgY2hlY2tpbmdcbiAgICBpZiAob3B0aW9ucy5zdHJpY3QpIHtcbiAgICAgIGlmIChhZGRDb3VudCAhPT0gaHVuay5uZXdMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FkZGVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZW1vdmVDb3VudCAhPT0gaHVuay5vbGRMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1JlbW92ZWQgbGluZSBjb3VudCBkaWQgbm90IG1hdGNoIGZvciBodW5rIGF0IGxpbmUgJyArIChjaHVua0hlYWRlckluZGV4ICsgMSkpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBodW5rO1xuICB9XG5cbiAgd2hpbGUgKGkgPCBkaWZmc3RyLmxlbmd0aCkge1xuICAgIHBhcnNlSW5kZXgoKTtcbiAgfVxuXG4gIHJldHVybiBsaXN0O1xufVxuIl19 /***/ }, -/* 220 */ +/* 319 */ /***/ function(module, exports) { "use strict"; @@ -5383,7 +8194,46 @@ if(options.strict){if(addCount!==hunk.newLines){throw new Error('Added line coun //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiNkZBQWdCLEEsZ0JBQUEsQSxnQkFBVCxRQUFTLEFBQVQsaUJBQXlCLEFBQXpCLFFBQWtDLEFBQWxDLFNBQTRDLEFBQ2pELElBQUksTUFBTyxBQUFQLFdBQW1CLEFBQXZCLFdBQW1DLEFBQ2pDLFVBQVMsQUFBVCxTQUFvQixBQUFwQixBQUNELFFBRkQsS0FFTyxJQUFJLEFBQUosUUFBYSxBQUNsQixLQUFLLEdBQUksQUFBVCxRQUFpQixBQUFqQixTQUEwQixDQUV4Qiw2QkFBSSxRQUFRLEFBQVIsZUFBdUIsQUFBdkIsQUFBSixNQUFrQyxBQUNoQyxVQUFTLEFBQVQsTUFBaUIsUUFBUSxBQUFSLEFBQWpCLEFBQ0QsTUFDRixDQUNGLENBQ0QsT0FBTyxBQUFQLEFBQ0QiLCJmaWxlIjoicGFyYW1zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGdlbmVyYXRlT3B0aW9ucyhvcHRpb25zLCBkZWZhdWx0cykge1xuICBpZiAodHlwZW9mIG9wdGlvbnMgPT09ICdmdW5jdGlvbicpIHtcbiAgICBkZWZhdWx0cy5jYWxsYmFjayA9IG9wdGlvbnM7XG4gIH0gZWxzZSBpZiAob3B0aW9ucykge1xuICAgIGZvciAobGV0IG5hbWUgaW4gb3B0aW9ucykge1xuICAgICAgLyogaXN0YW5idWwgaWdub3JlIGVsc2UgKi9cbiAgICAgIGlmIChvcHRpb25zLmhhc093blByb3BlcnR5KG5hbWUpKSB7XG4gICAgICAgIGRlZmF1bHRzW25hbWVdID0gb3B0aW9uc1tuYW1lXTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgcmV0dXJuIGRlZmF1bHRzO1xufVxuIl19 /***/ }, -/* 221 */ +/* 320 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var randomBytes=__webpack_require__(116);module.exports=findPrime;findPrime.simpleSieve=simpleSieve;findPrime.fermatTest=fermatTest;var BN=__webpack_require__(14);var TWENTYFOUR=new BN(24);var MillerRabin=__webpack_require__(396);var millerRabin=new MillerRabin();var ONE=new BN(1);var TWO=new BN(2);var FIVE=new BN(5);var SIXTEEN=new BN(16);var EIGHT=new BN(8);var TEN=new BN(10);var THREE=new BN(3);var SEVEN=new BN(7);var ELEVEN=new BN(11);var FOUR=new BN(4);var TWELVE=new BN(12);var primes=null;function _getPrimes(){if(primes!==null)return primes;var limit=0x100000;var res=[];res[0]=2;for(var i=1,k=3;kbits){num.ishrn(1);}if(num.isEven()){num.iadd(ONE);}if(!num.testn(1)){num.iadd(TWO);}if(!gen.cmp(TWO)){while(num.mod(TWENTYFOUR).cmp(ELEVEN)){num.iadd(FOUR);}}else if(!gen.cmp(FIVE)){while(num.mod(TEN).cmp(THREE)){num.iadd(FOUR);}}n2=num.shrn(1);if(simpleSieve(n2)&&simpleSieve(num)&&fermatTest(n2)&&fermatTest(num)&&millerRabin.test(n2)&&millerRabin.test(num)){return num;}}} + +/***/ }, +/* 321 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/* + * extsprintf.js: extended POSIX-style sprintf + */var mod_assert=__webpack_require__(43);var mod_util=__webpack_require__(10);/* + * Public interface + */exports.sprintf=jsSprintf;/* + * Stripped down version of s[n]printf(3c). We make a best effort to throw an + * exception when given a format string we don't understand, rather than + * ignoring it, so that we won't break existing programs if/when we go implement + * the rest of this. + * + * This implementation currently supports specifying + * - field alignment ('-' flag), + * - zero-pad ('0' flag) + * - always show numeric sign ('+' flag), + * - field width + * - conversions for strings, decimal integers, and floats (numbers). + * - argument size specifiers. These are all accepted but ignored, since + * Javascript has no notion of the physical size of an argument. + * + * Everything else is currently unsupported, most notably precision, unsigned + * numbers, non-decimal numbers, and characters. + */function jsSprintf(fmt){var regex=['([^%]*)',/* normal text */'%',/* start of format */'([\'\\-+ #0]*?)',/* flags (optional) */'([1-9]\\d*)?',/* width (optional) */'(\\.([1-9]\\d*))?',/* precision (optional) */'[lhjztL]*?',/* length mods (ignored) */'([diouxXfFeEgGaAcCsSp%jr])'/* conversion */].join('');var re=new RegExp(regex);var args=Array.prototype.slice.call(arguments,1);var flags,width,precision,conversion;var left,pad,sign,arg,match;var ret='';var argn=1;mod_assert.equal('string',typeof fmt==='undefined'?'undefined':_typeof(fmt));while((match=re.exec(fmt))!==null){ret+=match[1];fmt=fmt.substring(match[0].length);flags=match[2]||'';width=match[3]||0;precision=match[4]||'';conversion=match[6];left=false;sign=false;pad=' ';if(conversion=='%'){ret+='%';continue;}if(args.length===0)throw new Error('too few args to sprintf');arg=args.shift();argn++;if(flags.match(/[\' #]/))throw new Error('unsupported flags: '+flags);if(precision.length>0)throw new Error('non-zero precision not supported');if(flags.match(/-/))left=true;if(flags.match(/0/))pad='0';if(flags.match(/\+/))sign=true;switch(conversion){case's':if(arg===undefined||arg===null)throw new Error('argument '+argn+': attempted to print undefined or null '+'as a string');ret+=doPad(pad,width,left,arg.toString());break;case'd':arg=Math.floor(arg);/*jsl:fallthru*/case'f':sign=sign&&arg>0?'+':'';ret+=sign+doPad(pad,width,left,arg.toString());break;case'j':/* non-standard */if(width===0)width=10;ret+=mod_util.inspect(arg,false,width);break;case'r':/* non-standard */ret+=dumpException(arg);break;default:throw new Error('unsupported conversion: '+conversion);}}ret+=fmt;return ret;}function doPad(chr,width,left,str){var ret=str;while(ret.length=lower?number:lower;}}return number;}module.exports=baseClamp; /***/ }, -/* 241 */ +/* 344 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var SetCache=__webpack_require__(85),arrayIncludes=__webpack_require__(87),arrayIncludesWith=__webpack_require__(143),arrayMap=__webpack_require__(28),baseUnary=__webpack_require__(94),cacheHas=__webpack_require__(95);/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** +'use strict';var SetCache=__webpack_require__(142),arrayIncludes=__webpack_require__(144),arrayIncludesWith=__webpack_require__(215),arrayMap=__webpack_require__(45),baseUnary=__webpack_require__(151),cacheHas=__webpack_require__(152);/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** * The base implementation of methods like `_.difference` without support * for excluding multiple arrays or iteratee shorthands. * @@ -5751,7 +8617,7 @@ isIndex(key,length)))){result.push(key);}}return result;}module.exports=arrayLik */function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=true,length=array.length,result=[],valuesLength=values.length;if(!length){return result;}if(iteratee){values=arrayMap(values,baseUnary(iteratee));}if(comparator){includes=arrayIncludesWith;isCommon=false;}else if(values.length>=LARGE_ARRAY_SIZE){includes=cacheHas;isCommon=false;values=new SetCache(values);}outer:while(++index1){args.reverse();}if(isAry&&ary0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined,arguments);};}module.exports=shortOut; /***/ }, -/* 272 */ +/* 375 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var memoizeCapped=__webpack_require__(592);/** Used to match property names within property paths. */var reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/** Used to match backslashes in property paths. */var reEscapeChar=/\\(\\)?/g;/** +'use strict';var memoizeCapped=__webpack_require__(805);/** Used to match property names within property paths. */var reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/** Used to match backslashes in property paths. */var reEscapeChar=/\\(\\)?/g;/** * Converts `string` to a property path array. * * @private @@ -6215,7 +9081,7 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */var stringToPath=memoizeCapped(function(string){var result=[];if(reLeadingDot.test(string)){result.push('');}string.replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,'$1'):number||match);});return result;});module.exports=stringToPath; /***/ }, -/* 273 */ +/* 376 */ /***/ function(module, exports) { "use strict"; @@ -6228,7 +9094,7 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}module.exports=toSource; /***/ }, -/* 274 */ +/* 377 */ /***/ function(module, exports) { "use strict"; @@ -6249,11 +9115,11 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */function compact(array){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index true - * - * _.isString(1); - * // => false - */function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}module.exports=isString; - -/***/ }, -/* 285 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var arrayLikeKeys=__webpack_require__(237),baseKeysIn=__webpack_require__(515),isArrayLike=__webpack_require__(26);/** +'use strict';var arrayLikeKeys=__webpack_require__(340),baseKeysIn=__webpack_require__(728),isArrayLike=__webpack_require__(42);/** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. @@ -6565,7 +9408,7 @@ curry.placeholder={};module.exports=curry; */function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}module.exports=keysIn; /***/ }, -/* 286 */ +/* 388 */ /***/ function(module, exports) { "use strict"; @@ -6585,7 +9428,7 @@ curry.placeholder={};module.exports=curry; */function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined;}module.exports=last; /***/ }, -/* 287 */ +/* 389 */ /***/ function(module, exports) { "use strict"; @@ -6604,11 +9447,11 @@ curry.placeholder={};module.exports=curry; }module.exports=noop; /***/ }, -/* 288 */ +/* 390 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayReduce=__webpack_require__(88),baseEach=__webpack_require__(56),baseIteratee=__webpack_require__(22),baseReduce=__webpack_require__(525),isArray=__webpack_require__(7);/** +'use strict';var arrayReduce=__webpack_require__(145),baseEach=__webpack_require__(88),baseIteratee=__webpack_require__(38),baseReduce=__webpack_require__(738),isArray=__webpack_require__(9);/** * Reduces `collection` to a value which is the accumulated result of running * each element in `collection` thru `iteratee`, where each successive * invocation is supplied the return value of the previous. If `accumulator` @@ -6647,11 +9490,11 @@ curry.placeholder={};module.exports=curry; */function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,baseIteratee(iteratee,4),accumulator,initAccum,baseEach);}module.exports=reduce; /***/ }, -/* 289 */ +/* 391 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arraySome=__webpack_require__(238),baseIteratee=__webpack_require__(22),baseSome=__webpack_require__(528),isArray=__webpack_require__(7),isIterateeCall=__webpack_require__(102);/** +'use strict';var arraySome=__webpack_require__(341),baseIteratee=__webpack_require__(38),baseSome=__webpack_require__(741),isArray=__webpack_require__(9),isIterateeCall=__webpack_require__(159);/** * Checks if `predicate` returns truthy for **any** element of `collection`. * Iteration is stopped once `predicate` returns truthy. The predicate is * invoked with three arguments: (value, index|key, collection). @@ -6689,11 +9532,11 @@ curry.placeholder={};module.exports=curry; */function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined;}return func(collection,baseIteratee(predicate,3));}module.exports=some; /***/ }, -/* 290 */ +/* 392 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseClamp=__webpack_require__(240),baseToString=__webpack_require__(248),toInteger=__webpack_require__(31),toString=__webpack_require__(40);/** +'use strict';var baseClamp=__webpack_require__(343),baseToString=__webpack_require__(351),toInteger=__webpack_require__(49),toString=__webpack_require__(62);/** * Checks if `string` starts with the given target string. * * @static @@ -6718,7 +9561,7 @@ curry.placeholder={};module.exports=curry; */function startsWith(string,target,position){string=toString(string);position=baseClamp(toInteger(position),0,string.length);target=baseToString(target);return string.slice(position,position+target.length)==target;}module.exports=startsWith; /***/ }, -/* 291 */ +/* 393 */ /***/ function(module, exports) { "use strict"; @@ -6742,11 +9585,11 @@ curry.placeholder={};module.exports=curry; */function stubArray(){return[];}module.exports=stubArray; /***/ }, -/* 292 */ +/* 394 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseTimes=__webpack_require__(247),castFunction=__webpack_require__(249),toInteger=__webpack_require__(31);/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeMin=Math.min;/** +'use strict';var baseTimes=__webpack_require__(350),castFunction=__webpack_require__(352),toInteger=__webpack_require__(49);/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeMin=Math.min;/** * Invokes the iteratee `n` times, returning an array of the results of * each invocation. The iteratee is invoked with one argument; (index). * @@ -6767,11 +9610,11 @@ curry.placeholder={};module.exports=curry; */function times(n,iteratee){n=toInteger(n);if(n<1||n>MAX_SAFE_INTEGER){return[];}var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee=castFunction(iteratee);n-=MAX_ARRAY_LENGTH;var result=baseTimes(length,iteratee);while(++index 0 -var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==='.'){parts.splice(i,1);}else if(last==='..'){parts.splice(i,1);up++;}else if(up){parts.splice(i,1);up--;}}// if the path is allowed to go above the root, restore leading ..s -if(allowAboveRoot){for(;up--;up){parts.unshift('..');}}return parts;}// Split a filename into [root, dir, basename, ext], unix version -// 'root' is just a slash, or nothing. -var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function splitPath(filename){return splitPathRe.exec(filename).slice(1);};// path.resolve([from ...], to) -// posix version -exports.resolve=function(){var resolvedPath='',resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();// Skip empty and invalid entries -if(typeof path!=='string'){throw new TypeError('Arguments to path.resolve must be strings');}else if(!path){continue;}resolvedPath=path+'/'+resolvedPath;resolvedAbsolute=path.charAt(0)==='/';}// At this point the path should be resolved to a full absolute path, but -// handle relative paths to be safe (might happen when process.cwd() fails) -// Normalize the path -resolvedPath=normalizeArray(filter(resolvedPath.split('/'),function(p){return!!p;}),!resolvedAbsolute).join('/');return(resolvedAbsolute?'/':'')+resolvedPath||'.';};// path.normalize(path) -// posix version -exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==='/';// Normalize the path -path=normalizeArray(filter(path.split('/'),function(p){return!!p;}),!isAbsolute).join('/');if(!path&&!isAbsolute){path='.';}if(path&&trailingSlash){path+='/';}return(isAbsolute?'/':'')+path;};// posix version -exports.isAbsolute=function(path){return path.charAt(0)==='/';};// posix version -exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=='string'){throw new TypeError('Arguments to path.join must be strings');}return p;}).join('/'));};// path.relative(from, to) -// posix version -exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=='')break;}if(start>end)return[];return arr.slice(start,end-start+1);}var fromParts=trim(from.split('/'));var toParts=trim(to.split('/'));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i>=7-mask;return new bn(buf);};MillerRabin.prototype.test=function test(n,k,cb){var len=n.bitLength();var red=bn.mont(n);var rone=new bn(1).toRed(red);if(!k)k=Math.max(1,len/48|0);// Find d and s, (n - 1) = (2 ^ s) * d; +var n1=n.subn(1);var n2=n1.subn(1);for(var s=0;!n1.testn(s);s++){}var d=n.shrn(s);var rn1=n1.toRed(red);var prime=true;for(;k>0;k--){var a=this._rand(n2);if(cb)cb(a);var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;i0;k--){var a=this._rand(n2);var g=n.gcd(a);if(g.cmpn(1)!==0)return g;var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;i>>16&0xffff|0,n=0;while(len!==0){// Set limit ~ twice less than 5552, to keep +// s2 in 31-bits, because we force signed ints. +// in other case %= will fail. +n=len>2000?2000:len;len-=n;do{s1=s1+buf[pos++]|0;s2=s2+s1|0;}while(--n);s1%=65521;s2%=65521;}return s1|s2<<16|0;}module.exports=adler32; + +/***/ }, +/* 398 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';// Note: we can't get significant speed boost here. +// So write code to minimize size - no pregenerated tables +// and array tools dependencies. +// Use ordinary array, since untyped makes no boost here +function makeTable(){var c,table=[];for(var n=0;n<256;n++){c=n;for(var k=0;k<8;k++){c=c&1?0xEDB88320^c>>>1:c>>>1;}table[n]=c;}return table;}// Create table on load. Just 255 signed longs. Not a problem. +var crcTable=makeTable();function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i>>8^t[(crc^buf[i])&0xFF];}return crc^-1;// >>> 0; +}module.exports=crc32; + +/***/ }, +/* 399 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';module.exports={2:'need dictionary',/* Z_NEED_DICT 2 */1:'stream end',/* Z_STREAM_END 1 */0:'',/* Z_OK 0 */'-1':'file error',/* Z_ERRNO (-1) */'-2':'stream error',/* Z_STREAM_ERROR (-2) */'-3':'data error',/* Z_DATA_ERROR (-3) */'-4':'insufficient memory',/* Z_MEM_ERROR (-4) */'-5':'buffer error',/* Z_BUF_ERROR (-5) */'-6':'incompatible version'/* Z_VERSION_ERROR (-6) */}; + +/***/ }, +/* 400 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process, Buffer) {'use strict';var createHmac=__webpack_require__(200);var checkParameters=__webpack_require__(903);exports.pbkdf2=function(password,salt,iterations,keylen,digest,callback){if(typeof digest==='function'){callback=digest;digest=undefined;}checkParameters(iterations,keylen);if(typeof callback!=='function')throw new Error('No callback provided to pbkdf2');setTimeout(function(){callback(null,exports.pbkdf2Sync(password,salt,iterations,keylen,digest));});};var defaultEncoding;if(process.browser){defaultEncoding='utf-8';}else{var pVersionMajor=parseInt(process.version.split('.')[0].slice(1),10);defaultEncoding=pVersionMajor>=6?'utf-8':'binary';}exports.pbkdf2Sync=function(password,salt,iterations,keylen,digest){if(!Buffer.isBuffer(password))password=new Buffer(password,defaultEncoding);if(!Buffer.isBuffer(salt))salt=new Buffer(salt,defaultEncoding);checkParameters(iterations,keylen);digest=digest||'sha1';var hLen;var l=1;var DK=new Buffer(keylen);var block1=new Buffer(salt.length+4);salt.copy(block1,0,0,salt.length);var r;var T;for(var i=1;i<=l;i++){block1.writeUInt32BE(i,salt.length);var U=createHmac(digest,password).update(block1).digest();if(!hLen){hLen=U.length;T=new Buffer(hLen);l=Math.ceil(keylen/hLen);r=keylen-(l-1)*hLen;}U.copy(T,0,0,hLen);for(var j=1;j=0x61&&c<=0x7A){// A-Z out+=str[i];continue;}if(c<0x80){out+=internals.hexTable[c];continue;}if(c<0x800){out+=internals.hexTable[0xC0|c>>6]+internals.hexTable[0x80|c&0x3F];continue;}if(c<0xD800||c>=0xE000){out+=internals.hexTable[0xE0|c>>12]+internals.hexTable[0x80|c>>6&0x3F]+internals.hexTable[0x80|c&0x3F];continue;}++i;c=0x10000+((c&0x3FF)<<10|str.charCodeAt(i)&0x3FF);out+=internals.hexTable[0xF0|c>>18]+internals.hexTable[0x80|c>>12&0x3F]+internals.hexTable[0x80|c>>6&0x3F]+internals.hexTable[0x80|c&0x3F];}return out;};exports.compact=function(obj,refs){if((typeof obj==='undefined'?'undefined':_typeof(obj))!=='object'||obj===null){return obj;}refs=refs||[];var lookup=refs.indexOf(obj);if(lookup!==-1){return refs[lookup];}refs.push(obj);if(Array.isArray(obj)){var compacted=[];for(var i=0,il=obj.length;i is used to declare another URL path a client should * be sent to when they request a given URL. * @@ -6931,11 +9796,11 @@ to:string.isRequired,query:object,state:object,onEnter:_PropTypes.falsy,children /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 300 */ +/* 409 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i renders the component tree for a given router state * and sets the history object and the current location in context. */var RoutingContext=function(_Component){_inherits(RoutingContext,_Component);function RoutingContext(){_classCallCheck(this,RoutingContext);_Component.apply(this,arguments);}RoutingContext.prototype.getChildContext=function getChildContext(){var _props=this.props;var history=_props.history;var location=_props.location;return{history:history,location:location};};RoutingContext.prototype.createElement=function createElement(component,props){return component==null?null:this.props.createElement(component,props);};RoutingContext.prototype.render=function render(){var _this=this;var _props2=this.props;var history=_props2.history;var location=_props2.location;var routes=_props2.routes;var params=_props2.params;var components=_props2.components;var element=null;if(components){element=components.reduceRight(function(element,components,index){if(components==null)return element;// Don't create new children; use the grandchildren. @@ -6943,7 +9808,7 @@ var route=routes[index];var routeParams=_getRouteParams2['default'](route,params /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 301 */ +/* 410 */ /***/ function(module, exports) { "use strict"; @@ -6980,7 +9845,7 @@ Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(p */var shorthandPropertyExpansions={background:{backgroundAttachment:true,backgroundColor:true,backgroundImage:true,backgroundPositionX:true,backgroundPositionY:true,backgroundRepeat:true},backgroundPosition:{backgroundPositionX:true,backgroundPositionY:true},border:{borderWidth:true,borderStyle:true,borderColor:true},borderBottom:{borderBottomWidth:true,borderBottomStyle:true,borderBottomColor:true},borderLeft:{borderLeftWidth:true,borderLeftStyle:true,borderLeftColor:true},borderRight:{borderRightWidth:true,borderRightStyle:true,borderRightColor:true},borderTop:{borderTopWidth:true,borderTopStyle:true,borderTopColor:true},font:{fontStyle:true,fontVariant:true,fontWeight:true,fontSize:true,lineHeight:true,fontFamily:true},outline:{outlineWidth:true,outlineStyle:true,outlineColor:true}};var CSSProperty={isUnitlessNumber:isUnitlessNumber,shorthandPropertyExpansions:shorthandPropertyExpansions};module.exports=CSSProperty; /***/ }, -/* 302 */ +/* 411 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6994,7 +9859,7 @@ Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(p * * @providesModule DOMChildrenOperations * @typechecks static-only - */'use strict';var Danger=__webpack_require__(699);var ReactMultiChildUpdateTypes=__webpack_require__(319);var ReactPerf=__webpack_require__(21);var setInnerHTML=__webpack_require__(122);var setTextContent=__webpack_require__(182);var invariant=__webpack_require__(4);/** + */'use strict';var Danger=__webpack_require__(938);var ReactMultiChildUpdateTypes=__webpack_require__(428);var ReactPerf=__webpack_require__(37);var setInnerHTML=__webpack_require__(182);var setTextContent=__webpack_require__(256);var invariant=__webpack_require__(6);/** * Inserts `childNode` as a child of `parentNode` at the `index`. * * @param {DOMElement} parentNode Parent node in which to insert. @@ -7025,7 +9890,7 @@ break;}}}};ReactPerf.measureMethods(DOMChildrenOperations,'DOMChildrenOperations /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 303 */ +/* 412 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7039,7 +9904,7 @@ break;}}}};ReactPerf.measureMethods(DOMChildrenOperations,'DOMChildrenOperations * * @providesModule EventPluginRegistry * @typechecks static-only - */'use strict';var invariant=__webpack_require__(4);/** + */'use strict';var invariant=__webpack_require__(6);/** * Injectable ordering of event plugins. */var EventPluginOrder=null;/** * Injectable mapping from names to event plugin modules. @@ -7105,7 +9970,7 @@ EventPluginOrder=Array.prototype.slice.call(InjectedEventPluginOrder);recomputeP /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 304 */ +/* 413 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7118,7 +9983,7 @@ EventPluginOrder=Array.prototype.slice.call(InjectedEventPluginOrder);recomputeP * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactChildren - */'use strict';var PooledClass=__webpack_require__(42);var ReactElement=__webpack_require__(20);var emptyFunction=__webpack_require__(25);var traverseAllChildren=__webpack_require__(184);var twoArgumentPooler=PooledClass.twoArgumentPooler;var fourArgumentPooler=PooledClass.fourArgumentPooler;var userProvidedKeyEscapeRegex=/\/(?!\/)/g;function escapeUserProvidedKey(text){return(''+text).replace(userProvidedKeyEscapeRegex,'//');}/** + */'use strict';var PooledClass=__webpack_require__(64);var ReactElement=__webpack_require__(34);var emptyFunction=__webpack_require__(41);var traverseAllChildren=__webpack_require__(258);var twoArgumentPooler=PooledClass.twoArgumentPooler;var fourArgumentPooler=PooledClass.fourArgumentPooler;var userProvidedKeyEscapeRegex=/\/(?!\/)/g;function escapeUserProvidedKey(text){return(''+text).replace(userProvidedKeyEscapeRegex,'//');}/** * PooledClass representing the bookkeeping associated with performing a child * traversal. Allows avoiding binding callbacks. * @@ -7166,7 +10031,7 @@ keyPrefix+(mappedChild!==child?escapeUserProvidedKey(mappedChild.key||'')+'/':'' */function toArray(children){var result=[];mapIntoWithKeyPrefixInternal(children,result,null,emptyFunction.thatReturnsArgument);return result;}var ReactChildren={forEach:forEachChildren,map:mapChildren,mapIntoWithKeyPrefixInternal:mapIntoWithKeyPrefixInternal,count:countChildren,toArray:toArray};module.exports=ReactChildren; /***/ }, -/* 305 */ +/* 414 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7179,7 +10044,7 @@ keyPrefix+(mappedChild!==child?escapeUserProvidedKey(mappedChild.key||'')+'/':'' * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactClass - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactComponent=__webpack_require__(306);var ReactElement=__webpack_require__(20);var ReactPropTypeLocations=__webpack_require__(117);var ReactPropTypeLocationNames=__webpack_require__(116);var ReactNoopUpdateQueue=__webpack_require__(321);var assign=__webpack_require__(5);var emptyObject=__webpack_require__(64);var invariant=__webpack_require__(4);var keyMirror=__webpack_require__(81);var keyOf=__webpack_require__(36);var warning=__webpack_require__(6);var MIXINS_KEY=keyOf({mixins:null});/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactComponent=__webpack_require__(415);var ReactElement=__webpack_require__(34);var ReactPropTypeLocations=__webpack_require__(177);var ReactPropTypeLocationNames=__webpack_require__(176);var ReactNoopUpdateQueue=__webpack_require__(430);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(103);var invariant=__webpack_require__(6);var keyMirror=__webpack_require__(135);var keyOf=__webpack_require__(58);var warning=__webpack_require__(8);var MIXINS_KEY=keyOf({mixins:null});/** * Policies that describe methods in `ReactClassInterface`. */var SpecPolicy=keyMirror({/** * These methods may be defined only once by the class specification or mixin. @@ -7498,7 +10363,7 @@ for(var methodName in ReactClassInterface){if(!Constructor.prototype[methodName] /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 306 */ +/* 415 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7511,7 +10376,7 @@ for(var methodName in ReactClassInterface){if(!Constructor.prototype[methodName] * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponent - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactNoopUpdateQueue=__webpack_require__(321);var canDefineProperty=__webpack_require__(120);var emptyObject=__webpack_require__(64);var invariant=__webpack_require__(4);var warning=__webpack_require__(6);/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactNoopUpdateQueue=__webpack_require__(430);var canDefineProperty=__webpack_require__(180);var emptyObject=__webpack_require__(103);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Base class helpers for the updating state of a component. */function ReactComponent(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;// We initialize the default updater but the real one gets injected by the // renderer. @@ -7560,7 +10425,7 @@ this.updater=updater||ReactNoopUpdateQueue;}ReactComponent.prototype.isReactComp /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 307 */ +/* 416 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7573,9 +10438,9 @@ this.updater=updater||ReactNoopUpdateQueue;}ReactComponent.prototype.isReactComp * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOM - *//* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/'use strict';var ReactCurrentOwner=__webpack_require__(33);var ReactDOMTextComponent=__webpack_require__(310);var ReactDefaultInjection=__webpack_require__(312);var ReactInstanceHandles=__webpack_require__(59);var ReactMount=__webpack_require__(15);var ReactPerf=__webpack_require__(21);var ReactReconciler=__webpack_require__(50);var ReactUpdates=__webpack_require__(23);var ReactVersion=__webpack_require__(174);var findDOMNode=__webpack_require__(175);var renderSubtreeIntoContainer=__webpack_require__(750);var warning=__webpack_require__(6);ReactDefaultInjection.inject();var render=ReactPerf.measure('React','render',ReactMount.render);var React={findDOMNode:findDOMNode,render:render,unmountComponentAtNode:ReactMount.unmountComponentAtNode,version:ReactVersion,/* eslint-disable camelcase */unstable_batchedUpdates:ReactUpdates.batchedUpdates,unstable_renderSubtreeIntoContainer:renderSubtreeIntoContainer};// Inject the runtime into a devtools global hook regardless of browser. + *//* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactDOMTextComponent=__webpack_require__(419);var ReactDefaultInjection=__webpack_require__(421);var ReactInstanceHandles=__webpack_require__(92);var ReactMount=__webpack_require__(24);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var ReactUpdates=__webpack_require__(39);var ReactVersion=__webpack_require__(248);var findDOMNode=__webpack_require__(249);var renderSubtreeIntoContainer=__webpack_require__(989);var warning=__webpack_require__(8);ReactDefaultInjection.inject();var render=ReactPerf.measure('React','render',ReactMount.render);var React={findDOMNode:findDOMNode,render:render,unmountComponentAtNode:ReactMount.unmountComponentAtNode,version:ReactVersion,/* eslint-disable camelcase */unstable_batchedUpdates:ReactUpdates.batchedUpdates,unstable_renderSubtreeIntoContainer:renderSubtreeIntoContainer};// Inject the runtime into a devtools global hook regardless of browser. // Allows for debugging when the hook is injected on the page. -/* eslint-enable camelcase */if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=='undefined'&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject==='function'){__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:ReactCurrentOwner,InstanceHandles:ReactInstanceHandles,Mount:ReactMount,Reconciler:ReactReconciler,TextComponent:ReactDOMTextComponent});}if(process.env.NODE_ENV!=='production'){var ExecutionEnvironment=__webpack_require__(10);if(ExecutionEnvironment.canUseDOM&&window.top===window.self){// First check if devtools is not installed +/* eslint-enable camelcase */if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=='undefined'&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject==='function'){__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:ReactCurrentOwner,InstanceHandles:ReactInstanceHandles,Mount:ReactMount,Reconciler:ReactReconciler,TextComponent:ReactDOMTextComponent});}if(process.env.NODE_ENV!=='production'){var ExecutionEnvironment=__webpack_require__(18);if(ExecutionEnvironment.canUseDOM&&window.top===window.self){// First check if devtools is not installed if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==='undefined'){// If we're in Chrome or Firefox, provide a download link if not installed. if(navigator.userAgent.indexOf('Chrome')>-1&&navigator.userAgent.indexOf('Edge')===-1||navigator.userAgent.indexOf('Firefox')>-1){console.debug('Download the React DevTools for a better development experience: '+'https://fb.me/react-devtools');}}// If we're in IE8, check to see if we are in compatibility mode and provide // information on preventing compatibility mode @@ -7585,7 +10450,7 @@ Object.create,Object.freeze];for(var i=0;i must be an array if '+'`multiple` is true.%s',propName,getDeclarationErrorAddendum(owner)):undefined;}else{process.env.NODE_ENV!=='production'?warning(!Array.isArray(props[propName]),'The `%s` prop supplied to native component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. @@ -15923,7 +23190,7 @@ ReactUpdates.asap(forceUpdateIfMounted,otherInstance);}}return returnValue;}modu /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 713 */ +/* 952 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -15936,7 +23203,7 @@ ReactUpdates.asap(forceUpdateIfMounted,otherInstance);}}return returnValue;}modu * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMOption - */'use strict';var ReactChildren=__webpack_require__(304);var ReactDOMSelect=__webpack_require__(309);var assign=__webpack_require__(5);var warning=__webpack_require__(6);var valueContextKey=ReactDOMSelect.valueContextKey;/** + */'use strict';var ReactChildren=__webpack_require__(413);var ReactDOMSelect=__webpack_require__(418);var assign=__webpack_require__(7);var warning=__webpack_require__(8);var valueContextKey=ReactDOMSelect.valueContextKey;/** * Implements an